config.mk 589 B

1234567891011121314151617181920212223242526272829
  1. # st version
  2. VERSION = 0.8.1
  3. # Customize below to fit your system
  4. # paths
  5. PREFIX = /usr
  6. MANPREFIX = $(PREFIX)/share/man
  7. X11INC = /usr/include/X11
  8. X11LIB = /usr/lib/X11
  9. # includes and libs
  10. INCS = -I$(X11INC) \
  11. `pkg-config --cflags fontconfig` \
  12. `pkg-config --cflags freetype2`
  13. LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
  14. `pkg-config --libs fontconfig` \
  15. `pkg-config --libs freetype2`
  16. # flags
  17. CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
  18. STCFLAGS = $(INCS) $(CPPFLAGS) $(CFLAGS)
  19. STLDFLAGS = $(LIBS) $(LDFLAGS)
  20. # compiler and linker
  21. CC = cc