config.mk 980 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # dwm version
  2. VERSION = 6.2
  3. # Customize below to fit your system
  4. # CORES
  5. MAKEOPTS="-j3"
  6. # paths
  7. PREFIX = /usr/local
  8. MANPREFIX = ${PREFIX}/share/man
  9. X11INC = /usr/X11R6/include
  10. X11LIB = /usr/X11R6/lib
  11. # Xinerama, comment if you don't want it
  12. XINERAMALIBS = -lXinerama
  13. XINERAMAFLAGS = -DXINERAMA
  14. # freetype
  15. FREETYPELIBS = -lfontconfig -lXft
  16. FREETYPEINC = /usr/include/freetype2
  17. # OpenBSD (uncomment)
  18. #FREETYPEINC = ${X11INC}/freetype2
  19. # includes and libs
  20. INCS = -I${X11INC} -I${FREETYPEINC}
  21. LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-res
  22. # flags
  23. CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
  24. #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
  25. CFLAGS = -std=gnu99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
  26. LDFLAGS = ${LIBS}
  27. # Solaris
  28. #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
  29. #LDFLAGS = ${LIBS}
  30. # compiler and linker
  31. CC = cc