aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 8b6cb84a01bb9637b39fe61eb748cf9483f18398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CFLAGS = -Wall -Wextra -g3 -ansi -pedantic
OBJ = main.o tokenizer.o parser.o

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)