config.mk 932 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # dwm version
  2. VERSION = 6.3
  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. # Xinerama, comment if you don't want it
  10. XINERAMALIBS = -lXinerama
  11. XINERAMAFLAGS = -DXINERAMA
  12. # freetype
  13. FREETYPELIBS = -lfontconfig -lXft
  14. FREETYPEINC = /usr/include/freetype2
  15. # OpenBSD (uncomment)
  16. #FREETYPEINC = ${X11INC}/freetype2
  17. # includes and libs
  18. INCS = -I${X11INC} -I${FREETYPEINC}
  19. LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
  20. # flags
  21. CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
  22. #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
  23. CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
  24. LDFLAGS = ${LIBS}
  25. # Solaris
  26. #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
  27. #LDFLAGS = ${LIBS}
  28. # compiler and linker
  29. CC = cc