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

all: $(OBJ)
	cc -o tsl $(OBJ) -fPIE

clean:
	rm $(OBJ) tsl

compiledb:
	make clean; bear make

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)