about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-09-16 16:48:55 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-09-16 16:48:55 +0200
commit3ebe373309215120a25df314b9d6e625070091cb (patch)
treef0b75d4080d91c5e24a6e1539ba6737417577dce
parenta674be611c1541a3028d823f92b97882b1ffdf82 (diff)
downloadmblaze-3ebe373309215120a25df314b9d6e625070091cb.tar.gz
mblaze-3ebe373309215120a25df314b9d6e625070091cb.tar.xz
mblaze-3ebe373309215120a25df314b9d6e625070091cb.zip
GNUmakefile: tweaks to make it easier for OpenBSD ports
-rw-r--r--GNUmakefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b8d70d4..6d96d60 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,11 +1,13 @@
-CFLAGS+=-g -O2 -Wall -Wno-switch -Wextra -fstack-protector-strong -D_FORTIFY_SOURCE=2
+CFLAGS=-g -O2
+override CFLAGS:=-Wall -Wno-switch -Wextra -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(CFLAGS)
 LDLIBS=-lrt
 
 OS := $(shell uname)
 
 ifeq ($(OS),OpenBSD)
-CFLAGS+=-I/usr/local/include -pthread
-LDLIBS=-L/usr/local/lib -liconv -pthread
+LOCALBASE=/usr/local
+CFLAGS+=-I$(LOCALBASE)/include -pthread
+LDLIBS=-L$(LOCALBASE)/lib -liconv -pthread
 endif
 
 ifeq ($(OS),Darwin)