2015-12-05 20:07:52 +00:00
|
|
|
# customize below to fit your system
|
|
|
|
|
|
|
|
# paths
|
|
|
|
PREFIX = /usr/local
|
2016-01-06 14:57:25 +00:00
|
|
|
MANPREFIX = ${PREFIX}/man
|
2015-12-05 20:07:52 +00:00
|
|
|
|
|
|
|
GITINC = /usr/local/include
|
|
|
|
GITLIB = /usr/local/lib
|
|
|
|
|
|
|
|
# includes and libs
|
|
|
|
INCS = -I${GITINC}
|
|
|
|
LIBS = -L${GITLIB} -lgit2 -lc
|
|
|
|
|
|
|
|
# debug
|
2016-03-20 15:23:33 +00:00
|
|
|
#CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic ${INCS}
|
|
|
|
#LDFLAGS = ${LIBS}
|
2015-12-05 20:07:52 +00:00
|
|
|
|
|
|
|
# optimized
|
2016-03-20 15:23:33 +00:00
|
|
|
CFLAGS = -O2 -std=c99 ${INCS}
|
|
|
|
LDFLAGS = -s ${LIBS}
|
2015-12-05 20:07:52 +00:00
|
|
|
|
|
|
|
# optimized static
|
2016-03-20 15:23:33 +00:00
|
|
|
#CFLAGS = -static -O2 -std=c99 ${INCS}
|
2015-12-05 20:07:52 +00:00
|
|
|
#LDFLAGS = -static -s ${LIBS}
|
|
|
|
|
2016-03-20 15:23:33 +00:00
|
|
|
CPPFLAGS= -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
|
2015-12-05 20:07:52 +00:00
|
|
|
# compiler and linker
|
|
|
|
#CC = cc
|