summaryrefslogtreecommitdiff
path: root/Makefile
blob: 94251dc8e46e230924c155a540ac59393eb9602f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS=-I. -Wall -Wextra -Wpedantic -O3 -lm -Wcast-align 
CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith 
CFLAGS+= -Wunreachable-code -Wformat=2 -g
PREFIX ?= /usr
BINDIR ?= ${PREFIX}/bin

generate:
	$(CC) -o operetta operetta.c proposition.c parse.c lexer.c eval.c $(CFLAGS)

install: operetta
	install operetta ${DESTDIR}${BINDIR}
clean:
	rm precedent

uninstall:
	rm -f ${DESTDIR}${BINDIR}/operetta