config.mk 1.0 KB

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