From f5fc07765303055922e1dfcc35f2f2f620c1e66b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 14 Jan 2020 07:54:59 +0100 Subject: add parser... --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3