config.mk (524B)
1 VERSION = 0.4 2 3 # Customize below to fit your system 4 5 # paths 6 PREFIX = /usr/local 7 MANPREFIX = ${PREFIX}/share/man 8 9 # includes and libs 10 INCS = -I. -I/usr/include 11 LIBS = -L/usr/lib -lc 12 13 # flags 14 CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809 -D_BSD_SOURCE -D_XOPEN_SOURCE=700 15 16 # debug 17 #CFLAGS = -g -std=c99 -pedantic -Wall -Wextra -O0 ${INCS} ${CPPFLAGS} 18 #LDFLAGS = ${LIBS} 19 20 # release 21 CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os ${INCS} ${CPPFLAGS} 22 LDFLAGS = -s ${LIBS} 23 24 # compiler and linker 25 CC = cc 26 LD = $(CC)