blob: b56d6dc8dd6f994b2e898469ec0ce54cf2e0b737 (
plain)
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
|
# customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man
# includes and libs
LIBS = -lc
# debug
#CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic \
# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
#LDFLAGS = ${LIBS}
# optimized
CFLAGS = -O2 -std=c99 \
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
LDFLAGS = -s ${LIBS}
# optimized static
#CFLAGS = -static -O2 -std=c99 \
# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
#LDFLAGS = -static -s ${LIBS}
# compiler and linker
#CC = cc
|