st

git clone git://mattcarlson.org/repos/st.git
Log | Files | Refs

config.mk (948B)


      1 # st version
      2 VERSION = 0.8.4
      3 
      4 # Customize below to fit your system
      5 
      6 # paths
      7 PREFIX = /usr/local
      8 MANPREFIX = $(PREFIX)/share/man
      9 
     10 X11INC = /usr/X11R6/include
     11 X11LIB = /usr/X11R6/lib
     12 
     13 PKG_CONFIG = pkg-config
     14 
     15 # includes and libs
     16 INCS = -I$(X11INC) \
     17        `$(PKG_CONFIG) --cflags fontconfig` \
     18 	   `$(PKG_CONFIG) --cflags freetype2` \
     19 	   `$(PKG_CONFIG) --cflags harfbuzz`
     20 LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft -lXrender\
     21        `$(PKG_CONFIG) --libs fontconfig` \
     22 	   `$(PKG_CONFIG) --libs freetype2` \
     23 	   `$(PKG_CONFIG) --libs harfbuzz`
     24 
     25 # flags
     26 STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
     27 STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
     28 STLDFLAGS = $(LIBS) $(LDFLAGS)
     29 
     30 # OpenBSD:
     31 #CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
     32 #LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
     33 #       `$(PKG_CONFIG) --libs fontconfig` \
     34 #       `$(PKG_CONFIG) --libs freetype2`
     35 
     36 # compiler and linker
     37 # CC = c99