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