summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorMineralwaterXu <[email protected]>2020-07-09 10:43:13 +0800
committerMineralwaterXu <[email protected]>2020-07-09 10:43:13 +0800
commitd9c0a1912f54b13226ef37b7efd74790f2b286e9 (patch)
tree58cb8395e6807a12b996dca0367df6e7a08771a1 /config.mk
first build
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..d6e8916
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,35 @@
+# st version
+VERSION = 0.8.4
+
+# Customize below to fit your system
+
+# paths
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
+
+X11INC = /usr/include/X11
+X11LIB = /usr/include/X11
+
+PKG_CONFIG = pkg-config
+
+# includes and libs
+INCS = -I$(X11INC) \
+ `$(PKG_CONFIG) --cflags fontconfig` \
+ `$(PKG_CONFIG) --cflags freetype2`
+LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft -lXrender\
+ `$(PKG_CONFIG) --libs fontconfig` \
+ `$(PKG_CONFIG) --libs freetype2`
+
+# flags
+STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
+STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) -O2 -fomit-frame-pointer
+STLDFLAGS = $(LIBS) $(LDFLAGS)
+
+# 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`
+
+# compiler and linker
+# CC = c99