You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
869 B
Makefile

8 years ago
# st version
VERSION = 0.8.4
8 years ago
# Customize below to fit your system
# paths
PREFIX = ${HOME}/.local
7 years ago
MANPREFIX = $(PREFIX)/share/man
8 years ago
X11INC = /usr/include/xorg
X11LIB = /usr/lib/xorg
PKG_CONFIG = pkg-config
8 years ago
# includes and libs
7 years ago
INCS = -I$(X11INC) \
`$(PKG_CONFIG) --cflags fontconfig` \
`$(PKG_CONFIG) --cflags freetype2`
7 years ago
LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
`$(PKG_CONFIG) --libs fontconfig` \
`$(PKG_CONFIG) --libs freetype2`
8 years ago
# flags
STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
7 years ago
STLDFLAGS = $(LIBS) $(LDFLAGS)
8 years ago
# OpenBSD:
#CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
# `$(PKG_CONFIG) --libs fontconfig` \
# `$(PKG_CONFIG) --libs freetype2`
8 years ago
# compiler and linker
7 years ago
# CC = c99