stagit

personal fork of static git page generator
git clone https://a3nm.net/git/stagit/
Log | Files | Refs | README | LICENSE

config.mk (692B)


      1 # customize below to fit your system
      2 
      3 # paths
      4 PREFIX = /usr/local
      5 MANPREFIX = ${PREFIX}/man
      6 
      7 # compiler and linker
      8 #CC = cc
      9 
     10 GITINC = /usr/local/include
     11 GITLIB = /usr/local/lib
     12 
     13 # includes and libs
     14 INCS = -I${GITINC}
     15 LIBS = -L${GITLIB} -lgit2
     16 
     17 # debug
     18 #CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic ${INCS}
     19 #LDFLAGS = ${LIBS}
     20 
     21 # optimized
     22 CFLAGS = -O2 -std=c99 ${INCS}
     23 LDFLAGS = -s ${LIBS}
     24 
     25 # optimized static
     26 #CFLAGS = -static -O2 -std=c99 ${INCS}
     27 #LDFLAGS = -static -s ${LIBS}
     28 
     29 CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS}
     30 
     31 # OpenBSD 5.9+: use pledge(2)
     32 #CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSE_PLEDGE ${INCS}