aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9176922..8b6cb84 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,14 @@
-CFLAGS=-Wall -Wextra -g3
+CFLAGS = -Wall -Wextra -g3 -ansi -pedantic
+OBJ = main.o tokenizer.o parser.o
-all: main.o tokenizer.o
- cc -o tsl main.o tokenizer.o -fPIE
+all: $(OBJ)
+ cc -o tsl $(OBJ) -fPIE
main.o: src/main.c include/tokenizer.h
cc -c src/main.c $(CFLAGS)
tokenizer.o: src/tokenizer.c include/tokenizer.h
cc -c src/tokenizer.c $(CFLAGS)
+
+parser.o: src/parser.c include/parser.h
+ cc -c src/parser.c $(CFLAGS)