config.mk (839B)
1 # slock version 2 VERSION = 1.4 3 4 # Customize below to fit your system 5 6 # paths 7 PREFIX = /usr/local 8 MANPREFIX = ${PREFIX}/share/man 9 10 X11INC = /usr/X11R6/include 11 X11LIB = /usr/X11R6/lib 12 13 # includes and libs 14 INCS = -I. -I/usr/include -I${X11INC} 15 LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr 16 17 # flags 18 CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H 19 CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} 20 LDFLAGS = -s ${LIBS} 21 COMPATSRC = explicit_bzero.c 22 23 # On OpenBSD and Darwin remove -lcrypt from LIBS 24 #LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXext -lXrandr 25 # On *BSD remove -DHAVE_SHADOW_H from CPPFLAGS 26 # On NetBSD add -D_NETBSD_SOURCE to CPPFLAGS 27 #CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_NETBSD_SOURCE 28 # On OpenBSD set COMPATSRC to empty 29 #COMPATSRC = 30 31 # compiler and linker 32 CC = cc