aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6599d016..4b22617b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,17 @@
CFLAGS=-g -Wall
-test-lexing: test-lexing.o tokenize.o
- gcc -o $@ test-lexing.o tokenize.o
+all: test-lexing test-parsing
+test-lexing: test-lexing.o tokenize.o lib.o
+ gcc -o $@ 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-lexing.o: token.h
tokenize.o: token.h
+parse.o: token.h
clean:
rm -f *.o