base64_digits: reduce scope, implicit zero, +1 size
[st.git] / config.mk
blob4c4c5d5f298d435b8a9447b73a3b02e7ccf333ef
1 # st version
2 VERSION = 0.8.5
4 # Customize below to fit your system
6 # paths
7 PREFIX = /usr/local
8 MANPREFIX = $(PREFIX)/share/man
10 X11INC = /usr/X11R6/include
11 X11LIB = /usr/X11R6/lib
13 PKG_CONFIG = pkg-config
15 # includes and libs
16 INCS = -I$(X11INC) \
17 `$(PKG_CONFIG) --cflags fontconfig` \
18 `$(PKG_CONFIG) --cflags freetype2`
19 LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
20 `$(PKG_CONFIG) --libs fontconfig` \
21 `$(PKG_CONFIG) --libs freetype2`
23 # flags
24 STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
25 STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
26 STLDFLAGS = $(LIBS) $(LDFLAGS)
28 # OpenBSD:
29 #CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
30 #LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
31 # `$(PKG_CONFIG) --libs fontconfig` \
32 # `$(PKG_CONFIG) --libs freetype2`
34 # compiler and linker
35 # CC = c99