summaryrefslogtreecommitdiff
path: root/Makefile
blob: bf83693360ac760420ddc781f2b113017f7e306f (plain)
1
2
3
4
5
6
7
8
9
10
11
CFLAGS=-I. -pthread -Wall -Wextra -Wpedantic -O3 -lm
CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wswitch-default
CFLAGS+= -Wunreachable-code -Wswitch-enum -Wformat=2 -Wc11-extensions -g
PREFIX ?= /usr
BINDIR ?= ${PREFIX}/bin

generate:
	$(CC) -o precedent precedent.c hashtable.c scope.c parse.c eval.c $(CFLAGS)

clean:
	rm precedent