config.mk 730 B

1234567891011121314151617181920212223242526272829
  1. # st version
  2. VERSION = 0.6
  3. # Customize below to fit your system
  4. # paths
  5. PREFIX = ${HOME}
  6. MANPREFIX = ${PREFIX}/share/man
  7. X11INC = /usr/X11R6/include
  8. X11LIB = /usr/X11R6/lib
  9. # includes and libs
  10. INCS = -I. -I/usr/include -I${X11INC} \
  11. `pkg-config --cflags fontconfig` \
  12. `pkg-config --cflags freetype2`
  13. LIBS = -L/usr/lib -lc -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 -D_FORTIY_SOURCE=2
  18. CFLAGS += -std=c99 -pedantic -Wall -Wvariadic-macros -O2 -march=native -flto -pipe ${INCS} ${CPPFLAGS}
  19. LDFLAGS += ${LIBS} -Wl,-z,now -Wl,-z,relro -flto
  20. # compiler and linker
  21. # CC = cc