Remove test harness from Makefile
[tabular.git] / config.mk
bloba9a94df5854fd444d9513d3deabf03487b433aae
1 PROG = tabular
3 # compiler
4 CC = clang
6 # flags
7 CFLAGS = -std=c99 -O2 -Wall -Wextra -Wpedantic \
8 -Walloca -Wcast-qual -Wconversion -Wformat=2 -Wformat-security -Wvla \
9 -Wnull-dereference -Wstack-protector -Warray-bounds \
10 -Warray-bounds-pointer-arithmetic -Wassign-enum \
11 -Wbad-function-cast -Wconditional-uninitialized -Wconversion \
12 -Wfloat-equal -Wformat-type-confusion -Widiomatic-parentheses \
13 -Wimplicit-fallthrough -Wloop-analysis -Wpointer-arith \
14 -Wshift-sign-overflow -Wshorten-64-to-32 -Wswitch-enum \
15 -Wtautological-constant-in-range-compare -Wunreachable-code-aggressive \
16 -Wthread-safety -Wthread-safety-beta -Wcomma \
17 -D_FORTIFY_SOURCE=2 \
18 -fstack-protector-strong -fsanitize=safe-stack -fPIE \
19 -fstack-clash-protection
20 # -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer \
21 # -fsanitize=undefined -fsanitize=float-divide-by-zero \
22 # -fsanitize=float-cast-overflow -fsanitize=integer
24 LDFLAGS = -fsanitize=safe-stack -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack \
25 -Wl,-z,separate-code
27 # libs
28 LDLIBS =
30 # paths
31 PREFIX = /usr/local
32 MANPREFIX = ${PREFIX}/share/man
34 RM = rm