aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-01-14 07:54:59 +0100
committerdec05eba <dec05eba@protonmail.com>2020-01-14 07:54:59 +0100
commitf5fc07765303055922e1dfcc35f2f2f620c1e66b (patch)
tree99c82f033e81948f76d9367531d51a0955cb047f /Makefile
parente27bd78c8211532bf0d39d87d2051222f7e86e26 (diff)
add parser...
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)