st/options.mk

43 lines
1.2 KiB
Makefile
Raw Normal View History

2022-08-12 21:41:04 +02:00
# st version
VERSION = 0.1
2022-08-12 21:41:04 +02:00
# Customize below to fit your system
# paths
PREFIX = /usr/local
APPPREFIX = $(PREFIX)/share/applications
2022-08-12 21:41:04 +02:00
MANPREFIX = $(PREFIX)/share/man
ICONPREFIX = $(PREFIX)/share/pixmaps
ICONNAME = st.png
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
PKG_CONFIG = pkg-config
# includes and libs
INCS = -I$(X11INC) \
`$(PKG_CONFIG) --cflags fontconfig` \
`$(PKG_CONFIG) --cflags harfbuzz` \
`$(PKG_CONFIG) --cflags freetype2`
LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft -lXrender -lgd \
2022-08-12 21:41:04 +02:00
`$(PKG_CONFIG) --libs fontconfig` \
`$(PKG_CONFIG) --libs harfbuzz` \
`$(PKG_CONFIG) --libs freetype2`
2022-08-12 21:41:04 +02:00
# flags
STCPPFLAGS = -DVERSION=\"$(VERSION)\" -DICON=\"$(ICONPREFIX)/$(ICONNAME)\" -D_XOPEN_SOURCE=600
2022-10-07 15:07:15 +02:00
STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=native -Ofast
2022-08-12 21:41:04 +02:00
STLDFLAGS = $(LIBS) $(LDFLAGS)
# OpenBSD:
#CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
2022-10-07 15:07:15 +02:00
#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft -lXrender -lgd \
2022-08-12 21:41:04 +02:00
# `$(PKG_CONFIG) --libs fontconfig` \
# `$(PKG_CONFIG) --libs harfbuzz` \
2022-08-12 21:41:04 +02:00
# `$(PKG_CONFIG) --libs freetype2`
#MANPREFIX = ${PREFIX}/man
2022-08-12 21:41:04 +02:00
# compiler and linker
# CC = c99