aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <commit@rgoncalves.se>2021-11-20 17:58:19 +0100
committerRomain Gonçalves <commit@rgoncalves.se>2021-11-20 18:02:52 +0100
commit31e43f38d651eb9b6cca907ce853ba09b0d9cd3c (patch)
tree420bdc7917bf7e369f7f27a9e0345d05bcb706d3
parenta786211d6cb794fba0ea406d86002c7618998afc (diff)
downloaddwm-31e43f38d651eb9b6cca907ce853ba09b0d9cd3c.tar.gz
Makefile: Override freetype path for OpenBSD
The freetype path is not hardcoded and automatically changed depending on the current platform (Linux, BSD, .*)
-rw-r--r--Makefile3
-rw-r--r--config.openbsd.mk1
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 77bcbc0..6380836 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
# dwm - dynamic window manager
# See LICENSE file for copyright and license details.
+UNAME != uname | tr '[:upper:]' '[:lower:]'
+
include config.mk
+sinclude config.${UNAME}.mk
SRC = drw.c dwm.c util.c
OBJ = ${SRC:.c=.o}
diff --git a/config.openbsd.mk b/config.openbsd.mk
new file mode 100644
index 0000000..53c757e
--- /dev/null
+++ b/config.openbsd.mk
@@ -0,0 +1 @@
+FREETYPEINC = ${X11INC}/freetype2
remember that computers suck.