-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
31 lines (22 loc) · 851 Bytes
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# C compiler on your system, "cc" or "gcc" are usually good choices
CC := cc
# "make" command, usually just "make"
MAKE := make
# Installation directory
PREFIX := /usr/local
# Man pages directory
MANDIR := ${PREFIX}/share/man
# C compilation flags
CFLAGS := ${CFLAGS} -std=c99 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 -Wall -pedantic -Wno-error -fPIE -fno-strict-aliasing -pthread
# C linker flags
LDFLAGS := ${LDFLAGS} -pie -pthread
# Uncomment the lines below for a release build
#CFLAGS += -DNDEBUG -O3
# Uncomment the lines below for a debug build
CFLAGS += -Og -g -fstack-protector-strong
# Uncomment the lines below to enable AddressSanitizer (Valgrind will not work)
#CFLAGS += -fsanitize=address
#LDFLAGS += -fsanitize=address
# Uncomment the lines below to compile for Windows
#CC := x86_64-w64-mingw32-gcc
#LDFLAGS += -lws2_32