aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-04 11:58:40 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-04 11:58:40 +0100
commitd05f931ff8dad9080642a06314d938943837ff4c (patch)
tree6dc10e19a0ce7e7d74fecca08c2c669e7dd4ad85 /config.mk
downloadst-d05f931ff8dad9080642a06314d938943837ff4c.tar.gz
st-d05f931ff8dad9080642a06314d938943837ff4c.tar.bz2
st-d05f931ff8dad9080642a06314d938943837ff4c.tar.xz
st-d05f931ff8dad9080642a06314d938943837ff4c.tar.zst
st-d05f931ff8dad9080642a06314d938943837ff4c.zip
First commit
Diffstat (limited to '')
-rw-r--r--config.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..1975ba6
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,36 @@
+# st version
+VERSION = 0.8.4
+
+# Customize below to fit your system
+
+# paths
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
+
+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 freetype2`
+LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
+ `$(PKG_CONFIG) --libs fontconfig` \
+ `$(PKG_CONFIG) --libs freetype2`
+
+# flags
+CFLAGS = -std=c99 -Wall -Wextra -Werror -pedantic -march=ivybridge -O3 -pipe
+STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
+STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
+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 = cc