config.mk 839 B

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