config.def.mk 748 B

1234567891011121314151617181920212223242526272829303132
  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. # includes and libs
  17. INCS = -I$(X11INC) -I$(FREETYPEINC)
  18. LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS) -lm
  19. # flags
  20. CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
  21. CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
  22. LDFLAGS = $(LIBS)
  23. # compiler and linker
  24. CC = cc