config.mk 894 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # st version
  2. VERSION = 0.9.2
  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. PKG_CONFIG = pkg-config
  10. # includes and libs
  11. INCS = -I$(X11INC) \
  12. `$(PKG_CONFIG) --cflags fontconfig` \
  13. `$(PKG_CONFIG) --cflags freetype2`
  14. LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
  15. `$(PKG_CONFIG) --libs fontconfig` \
  16. `$(PKG_CONFIG) --libs freetype2`
  17. # flags
  18. STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
  19. STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
  20. STLDFLAGS = $(LIBS) $(LDFLAGS)
  21. # OpenBSD:
  22. #CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
  23. #LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
  24. # `$(PKG_CONFIG) --libs fontconfig` \
  25. # `$(PKG_CONFIG) --libs freetype2`
  26. #MANPREFIX = ${PREFIX}/man
  27. # compiler and linker
  28. # CC = c99