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