1 all: test test1 test2 test3 test4
5 WARNINGS
= -Wextra
-Wall
-Wwrite-strings
-Wstrict-prototypes \
6 -Wmissing-prototypes
-Wno-long-long
-Wstrict-aliasing
=2
7 CFLAGS
+=-g
-O2
-I
$(TLSF_PATH
) $(WARNINGS
)
8 # CFLAGS+=-ftest-coverage -fprofile-arcs
11 test: test.o
$(TLSF_PATH
)/tlsf.h
12 $(CC
) $(CFLAGS
) -o
test test.o
$(TLSF_PATH
)/tlsf.o
14 test.o
: test.c
$(TLSF_PATH
)/tlsf.h
16 test1
: test1.o
$(TLSF_PATH
)/tlsf.h
17 $(CC
) $(CFLAGS
) -o test1 test1.o
$(TLSF_PATH
)/tlsf.o
-lm
19 test1.o
: test1.c
$(TLSF_PATH
)/tlsf.h
21 test2
: test2.o
$(TLSF_PATH
)/tlsf.h
22 $(CC
) $(CFLAGS
) -o test2 test2.o
$(TLSF_PATH
)/tlsf.o
-lm
24 test2.o
: test2.c
$(TLSF_PATH
)/tlsf.h
26 test3
: test3.o
$(TLSF_PATH
)/tlsf.h
27 $(CC
) $(CFLAGS
) -o test3 test3.o
$(TLSF_PATH
)/tlsf.o
-lm
29 test3.o
: test3.c
$(TLSF_PATH
)/tlsf.h
31 test4
: test4.o
$(TLSF_PATH
)/tlsf.h
32 $(CC
) $(CFLAGS
) -o test4 test4.o
$(TLSF_PATH
)/tlsf.o
-lm
34 test4.o
: test4.c
$(TLSF_PATH
)/tlsf.h
37 $(RM
) -rf
*.o
test test?
*~
*.c.gcov
*.gcda
*.gcno