genann/Makefile
Andrew Jeffery ad8bbaa979 Makefile: Add test and example programs to clean target
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2017-12-18 16:59:40 +10:30

24 lines
350 B
Makefile

CFLAGS = -Wall -Wshadow -O2 -g
LDLIBS = -lm
all: test example1 example2 example3 example4
test: test.o genann.o
check: test
./$^
example1: example1.o genann.o
example2: example2.o genann.o
example3: example3.o genann.o
example4: example4.o genann.o
clean:
$(RM) *.o
$(RM) test example1 example2 example3 example4 *.exe
$(RM) persist.txt