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