Commit | Line | Data |
---|---|---|
46f0819c | 1 | CFLAGS= -Wall -Wextra -Werror -std=c99 |
2 | ||
3 | DEBUG= 1 | |
4 | .ifdef DEBUG | |
5 | CFLAGS+= -O0 -g | |
6 | .endif | |
7 | ||
8 | SANITY= 1 | |
9 | .ifdef SANITY | |
10 | CFLAGS+= -Wno-unused-variable -Wno-unused-parameter -Wno-comment | |
11 | .endif | |
12 | ||
13 | OUT= bin/puffcrash | |
14 | DESTDIR= /usr/local/ | |
15 | ||
16 | all: build | |
17 | ||
18 | build: | |
19 | gcc $(CFLAGS) puffcrash.c -o $(OUT) | |
20 | ||
21 | install: build | |
22 | install -c -s -o root -g bin -m 555 $(OUT) $(DESTDIR)$(OUT) | |
42f4441b | 23 | install -c -o root -g wheel -m 664 puffcrash.conf /etc/puffcrash.conf |
24 |