Makefile: Add test and example programs to clean target

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
This commit is contained in:
Andrew Jeffery 2017-12-18 12:25:48 +10:30
parent 01511920e2
commit ad8bbaa979

View File

@ -1,10 +1,8 @@
CFLAGS = -Wall -Wshadow -O2 -g CFLAGS = -Wall -Wshadow -O2 -g
LDLIBS = -lm LDLIBS = -lm
all: test example1 example2 example3 example4 all: test example1 example2 example3 example4
test: test.o genann.o test: test.o genann.o
check: test check: test
@ -21,5 +19,5 @@ example4: example4.o genann.o
clean: clean:
$(RM) *.o $(RM) *.o
$(RM) *.exe $(RM) test example1 example2 example3 example4 *.exe
$(RM) persist.txt $(RM) persist.txt