aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSébastien Marie <semarie@online.fr>2022-02-25 08:49:25 +0000
committerSébastien Marie <semarie@online.fr>2022-02-25 08:49:25 +0000
commit5676c9e7ebcec9af526c59ece1faf2e8b15e457c (patch)
treee55736f4c0d291caac7c90d6184baf7cdadf1fcd /Makefile
parent3a469dc13ec27fc77a408d823d501c7ad1da1811 (diff)
initial OpenBSD support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d3d3c6a2d..99c71ccd9 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,12 @@ ifeq ($(OS), Linux)
CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
LDFLAGS:=$(LDFLAGS) $(shell $(LLVM_CONFIG) --libs core native --system-libs)
endif
+ifeq ($(OS), OpenBSD)
+ LLVM_CONFIG=/usr/local/bin/llvm-config
+
+ CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)
+ LDFLAGS:=$(LDFLAGS) -liconv $(shell $(LLVM_CONFIG) --libs core native --system-libs)
+endif
all: debug demo