stagit/config.mk

36 lines
839 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}/share/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_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
LDFLAGS = ${LIBS}
# optimized
#CFLAGS = -O2 -std=c99 \
# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
#LDFLAGS = -s ${LIBS}
# optimized static
#CFLAGS = -static -O2 -std=c99 \
# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE ${INCS}
#LDFLAGS = -static -s ${LIBS}
# uncomment for compat
CFLAGS += -DCOMPAT
# uncomment if your libc doesn't support strlcat, strlcpy.
2015-12-26 19:11:59 +00:00
COMPATOBJ = strlcat.o strlcpy.o
2015-12-05 20:07:52 +00:00
# compiler and linker
#CC = cc