]> git.armaanb.net Git - stagit.git/blob - config.mk
Bring in reallocarray() from OpenBSD
[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 \
16         -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
17 LDFLAGS = ${LIBS}
18
19 # optimized
20 #CFLAGS = -O2 -std=c99 \
21 #       -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
22 #LDFLAGS = -s ${LIBS}
23
24 # optimized static
25 #CFLAGS = -static -O2 -std=c99 \
26 #       -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
27 #LDFLAGS = -static -s ${LIBS}
28
29 # uncomment for compat
30 CFLAGS += -DCOMPAT
31 # uncomment if your libc doesn't support reallocarray, strlcat, strlcpy.
32 COMPATOBJ = reallocarray.o strlcat.o strlcpy.o
33
34 # compiler and linker
35 #CC = cc