config.mk 954 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # dwm version
  2. VERSION = 6.5
  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. #MANPREFIX = ${PREFIX}/man
  18. # includes and libs
  19. INCS = -I${X11INC} -I${FREETYPEINC}
  20. LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
  21. # flags
  22. CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
  23. #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
  24. CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
  25. LDFLAGS = ${LIBS}
  26. # Solaris
  27. #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
  28. #LDFLAGS = ${LIBS}
  29. # compiler and linker
  30. CC = cc