stagit/config.mk

31 lines
675 B
Makefile
Raw Normal View History

2015-12-05 20:07:52 +00:00
# customize below to fit your system
# paths
PREFIX = /usr/local
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
CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic \
-D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
2015-12-05 20:07:52 +00:00
LDFLAGS = ${LIBS}
# optimized
#CFLAGS = -O2 -std=c99 \
# -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
2015-12-05 20:07:52 +00:00
#LDFLAGS = -s ${LIBS}
# optimized static
#CFLAGS = -static -O2 -std=c99 \
# -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
2015-12-05 20:07:52 +00:00
#LDFLAGS = -static -s ${LIBS}
# compiler and linker
#CC = cc