Go Back

0 # st version

1 VERSION = 0.8.4

2

3 # Customize below to fit your system

4

5 # paths

6 PREFIX = /usr/local

7 MANPREFIX = $(PREFIX)/share/man

8

9 X11INC = /usr/X11R6/include

10 X11LIB = /usr/X11R6/lib

11

12 PKG_CONFIG = pkg-config

13

14 # includes and libs

15 INCS = -I$(X11INC) \

16 `$(PKG_CONFIG) --cflags fontconfig` \

17 `$(PKG_CONFIG) --cflags freetype2`

18 LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \

19 `$(PKG_CONFIG) --libs fontconfig` \

20 `$(PKG_CONFIG) --libs freetype2`

21

22 # flags

23 STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600

24 STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)

25 STLDFLAGS = $(LIBS) $(LDFLAGS)

26

27 # OpenBSD:

28 #CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE

29 #LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \

30 # `$(PKG_CONFIG) --libs fontconfig` \

31 # `$(PKG_CONFIG) --libs freetype2`

32

33 # compiler and linker

34 # CC = c99

35