1 LIBRARY
=..
/libGP_core.a
2 LDFLAGS
=-L..
/ -lGP_core
6 CFLAGS
=$(INCLUDE
) -ggdb
-W
-Wall
-O
-std
=gnu99
19 rm -f core_tests.gen.c
22 for
test in
$(TESTS
); do LD_LIBRARY_PATH
=..
/ .
/"$$test" -v
; done
26 TEST_SRCS
=$(wildcard *.
test.c
)
27 TEST_OBJS
=$(patsubst %.c
,%.o
,$(TEST_SRCS
))
29 core_tests.gen.c
: $(TEST_SRCS
) find_tests.py
30 python find_tests.py
-c
$@
$(TEST_SRCS
)
32 core_tests
: $(TEST_OBJS
) core_tests.o core_tests.gen.o
33 $(CC
) $(CFLAGS
) $(LDFLAGS
) $^
$(LIBRARY
) -lcheck
-o
$@