blob: 0948a4e78d1f434e482c39f0a8c5300a3a5d042a (
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 -Wswitch-enum -Wformat=2 -g
PREFIX ?= /usr
BINDIR ?= ${PREFIX}/bin
generate:
$(CC) -o operetta operetta.c proposition.c parse.c lexer.c $(CFLAGS)
install: operetta
install operetta ${DESTDIR}${BINDIR}
clean:
rm precedent
uninstall:
rm -f ${DESTDIR}${BINDIR}/operetta
|