CFLAGS= -Wall -Wextra -Werror -std=c99 DEBUG= 1 .ifdef DEBUG CFLAGS+= -O0 -g .endif SANITY= 1 .ifdef SANITY CFLAGS+= -Wno-unused-variable -Wno-unused-parameter -Wno-comment .endif OUT= bin/puffcrash DESTDIR= /usr/local/ all: build build: gcc $(CFLAGS) puffcrash.c -o $(OUT) install: build install -c -s -o root -g bin -m 555 $(OUT) $(DESTDIR)$(OUT) install -c -o root -g wheel -m 664 puffcrash.conf /etc/puffcrash.conf