blob: bfcaef6bac22cc3df6b96a5a4e72c4148e73ad68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
CFLAGS = -std=c99 -Wall -Wextra -pedantic -Wno-deprecated-declarations -D_XOPEN_SOURCE=700L
LDFLAGS = -lSDL2 -lSDL2_ttf -lm
SRC = main.c microui.c renderer.c widget.c ui.c unit.c engine.c
OBJ = ${SRC:.c=.o}
HDR = microui.h renderer.h widget.h ui.h unit.h engine.h
TEST_SRC = test.c test_angular_speed.c test_pressure.c test_temperature.c test_volume.c test_volume_flow_rate.c test_fraction.c test_engine.c unit.c engine.c
TEST_OBJ = ${TEST_SRC:.c=.o}
volute: ${OBJ}
${CC} -o $@ $^ ${LDFLAGS}
test: ${TEST_OBJ}
${CC} -o $@ $^ ${LDFLAGS}
./$@
clean:
rm -f volute test *.o
%.o: %.c
${CC} -c ${CFLAGS} $<
${OBJ}: ${HDR}
${TEST_OBJ}: ${HDR} test.h
|