diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-01-14 07:54:59 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-01-14 07:54:59 +0100 |
commit | f5fc07765303055922e1dfcc35f2f2f620c1e66b (patch) | |
tree | 99c82f033e81948f76d9367531d51a0955cb047f /Makefile | |
parent | e27bd78c8211532bf0d39d87d2051222f7e86e26 (diff) |
add parser...
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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) |