diff options
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) |