stagit

static git repository generator
Log | Files | Refs | README | LICENSE

config.mk (675B)


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
# customize below to fit your system

# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man

GITINC = /usr/local/include
GITLIB = /usr/local/lib

# includes and libs
INCS = -I${GITINC}
LIBS = -L${GITLIB} -lgit2 -lc

# debug
CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic \
	-D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
LDFLAGS = ${LIBS}

# optimized
#CFLAGS = -O2 -std=c99 \
#	-D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
#LDFLAGS = -s ${LIBS}

# optimized static
#CFLAGS = -static -O2 -std=c99 \
#	-D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
#LDFLAGS = -static -s ${LIBS}

# compiler and linker
#CC = cc