]> git.armaanb.net Git - stagit.git/blob - config.mk
Makefile: separate CPPFLAGS, compile optimized build by default
[stagit.git] / config.mk
1 # customize below to fit your system
2
3 # paths
4 PREFIX = /usr/local
5 MANPREFIX = ${PREFIX}/man
6
7 GITINC = /usr/local/include
8 GITLIB = /usr/local/lib
9
10 # includes and libs
11 INCS = -I${GITINC}
12 LIBS = -L${GITLIB} -lgit2 -lc
13
14 # debug
15 #CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic ${INCS}
16 #LDFLAGS = ${LIBS}
17
18 # optimized
19 CFLAGS = -O2 -std=c99 ${INCS}
20 LDFLAGS = -s ${LIBS}
21
22 # optimized static
23 #CFLAGS = -static -O2 -std=c99 ${INCS}
24 #LDFLAGS = -static -s ${LIBS}
25
26 CPPFLAGS= -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
27 # compiler and linker
28 #CC = cc