diff options
author | Jakob P. Liljenberg <admin@qvantnet.com> | 2024-01-02 16:49:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 16:49:12 +0100 |
commit | e3dbab9b4b326d10347b1373e61bf4d00924d119 (patch) | |
tree | c5a1eb4a3b1ff33f70cfc457ca4b49aec8a15a57 /Makefile | |
parent | 285fb215d12a5e0c686b29e1039027cbb2b246da (diff) | |
parent | 6a271e5f359a2f1c495d8e844fa1c84572b2c603 (diff) |
Merge pull request #607 from joske/openbsd
Adds support for OpenBSD
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |