config.mk 771 B

123456789101112131415161718192021222324252627282930313233
  1. # dmenu version
  2. VERSION = 5.2
  3. # paths
  4. PREFIX = /usr/local
  5. MANPREFIX = $(PREFIX)/share/man
  6. X11INC = /usr/X11R6/include
  7. X11LIB = /usr/X11R6/lib
  8. # Xinerama, comment if you don't want it
  9. XINERAMALIBS = -lXinerama
  10. XINERAMAFLAGS = -DXINERAMA
  11. # freetype
  12. FREETYPELIBS = -lfontconfig -lXft
  13. FREETYPEINC = /usr/include/freetype2
  14. # OpenBSD (uncomment)
  15. #FREETYPEINC = $(X11INC)/freetype2
  16. #MANPREFIX = ${PREFIX}/man
  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_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
  22. CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
  23. LDFLAGS = $(LIBS)
  24. # compiler and linker
  25. CC = cc