aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4b22617b..e6fee791 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
CFLAGS=-g -Wall
-all: test-lexing test-parsing
+PROGRAMS=test-lexing test-parsing
+
+all: $(PROGRAMS)
test-lexing: test-lexing.o tokenize.o lib.o
gcc -o $@ test-lexing.o tokenize.o lib.o
@@ -8,10 +10,10 @@ test-lexing: test-lexing.o tokenize.o lib.o
test-parsing: test-parsing.o parse.o tokenize.o lib.o
gcc -o $@ test-parsing.o parse.o tokenize.o lib.o
-test-parsing: token.h
+test-parsing.o: token.h parse.h
test-lexing.o: token.h
tokenize.o: token.h
-parse.o: token.h
+parse.o: token.h parse.h
clean:
- rm -f *.o
+ rm -f *.[oasi] $(PROGRAMS)