Rework unecessary complex if
[consume.git] / config.mk
blob2323b5aa7f7d7010dba7efefc2c60cd281c06b83
1 PROG = consume
3 # compiler
4 CC = cc
6 # flags
7 CFLAGS = -std=c99 -O2 -Wall -Wextra -Wpedantic \
8 -Walloca -Wcast-qual -Wconversion -Wformat=2 -Wformat-security \
9 -Wnull-dereference -Wstack-protector -Wvla -Warray-bounds \
10 -Wbad-function-cast -Wconversion -Wshadow -Wstrict-overflow=4 -Wundef \
11 -Wstrict-prototypes -Wswitch-default -Wfloat-equal -Wimplicit-fallthrough \
12 -Wpointer-arith -Wswitch-enum \
13 -D_FORTIFY_SOURCE=2 \
14 -fstack-protector-strong -fPIE -fstack-clash-protection
16 LDFLAGS = -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code
18 # libs
19 LDLIBS =
21 # paths
22 PREFIX = /usr/local
23 MANPREFIX = ${PREFIX}/share/man
25 RM = rm