2 CFLAGS
= -Wall
-Wextra
-Werror
-Wconversion
-pedantic
-std
=c99
11 OBJECTS
= test/test.o
test/test1.o
test/test2.o
12 TESTS
= $(OBJECTS
:%.o
=%.
test)
13 MEMTESTS
= $(OBJECTS
:%.o
=%.memtest
)
15 .PHONY
: test memtest
$(TESTS
) $(MEMTESTS
) clean help
18 @echo
"main targets: test memtest clean"
20 @echo
" RELEASE=1 remove debug outputs"
25 $(TESTS
): %.
test: %.bin
28 $(MEMTESTS
): %.memtest
: %.bin
31 %.bin
: test/vectors.o
%.o
32 $(CC
) $^
-o
$@
$(LDFLAGS
)
35 $(CC
) -E
test/vectors.c
38 rm -f
test/*.o
test/*.bin