summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJakob P. Liljenberg <admin@qvantnet.com>2024-01-02 16:49:12 +0100
committerGitHub <noreply@github.com>2024-01-02 16:49:12 +0100
commite3dbab9b4b326d10347b1373e61bf4d00924d119 (patch)
treec5a1eb4a3b1ff33f70cfc457ca4b49aec8a15a57 /Makefile
parent285fb215d12a5e0c686b29e1039027cbb2b246da (diff)
parent6a271e5f359a2f1c495d8e844fa1c84572b2c603 (diff)
Merge pull request #607 from joske/openbsd
Adds support for OpenBSD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2b02f3d..9f4db2e 100644
--- a/Makefile
+++ b/Makefile
@@ -90,6 +90,8 @@ ifeq ($(CLANG_WORKS),false)
CXX := g++11
else ifeq ($(shell command -v g++ >/dev/null; echo $$?),0)
CXX := g++
+ else ifeq ($(shell command -v eg++ >/dev/null; echo $$?),0)
+ CXX := eg++
else
GCC_NOT_FOUND := true
endif
@@ -158,6 +160,12 @@ else ifeq ($(PLATFORM_LC),macos)
THREADS := $(shell sysctl -n hw.ncpu || echo 1)
override ADDFLAGS += -framework IOKit -framework CoreFoundation -Wno-format-truncation
SU_GROUP := wheel
+else ifeq ($(PLATFORM_LC),openbsd)
+ PLATFORM_DIR := openbsd
+ THREADS := $(shell sysctl -n hw.ncpu || echo 1)
+ override ADDFLAGS += -lkvm
+ export MAKE = gmake
+ SU_GROUP := wheel
else
$(error $(shell printf "\033[1;91mERROR: \033[97mUnsupported platform ($(PLATFORM))\033[0m"))
endif