2 # Show the tests summary
5 CFLAGS = -Wall -std=c89
9 OBJS = factorial.o sum.o
10 TESTS = factorial_test.o sum_test.o
13 SO = factorial.so sum.so
14 ALL = $(TESTER) $(OBJS) $(TESTS) $(MUTEST)
22 $(TESTER): $(OBJS) $(TESTS) $(MUTEST)
23 ../mkmutest ../mutest.h $(TESTS) | gcc -xc -o $(TESTER) -c -
25 factorial.so: factorial_test.c
29 $(MUTEST): ../mutest.c
30 $(CC) $(CFLAGS) -c -o mutest.o $^
39 $(RM) $(TARGET) $(SO) $(ALL)
42 $(CC) $(CFLAGS) $(LDFLAGS) -DMUTEST_PY -fPIC -shared -o $@ $^
46 .PHONY: all test clean