summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Frederic Cambus <fred@statdns.com>2016-05-19 23:11:43 +0200
committer Frederic Cambus <fred@statdns.com>2016-05-19 23:11:43 +0200
commit7541a888dc493d8e50e3b8a2856fe07f57d515a1 (patch)
treec24058fd12124a14daf157ed92feec0f1d3080eb /makefile
parent18c011160ae88efb18b0d865095059d0df577eaa (diff)
Allow building on OpenBSD
Diffstat (limited to 'makefile')
-rw-r--r--makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/makefile b/makefile
index 726d734285a..c5c83c41b86 100644
--- a/makefile
+++ b/makefile
@@ -366,6 +366,10 @@ ifeq ($(TARGETOS),netbsd)
OSD := sdl
endif
+ifeq ($(TARGETOS),openbsd)
+OSD := sdl
+endif
+
ifeq ($(TARGETOS),solaris)
OSD := sdl
endif
@@ -1330,6 +1334,26 @@ netbsd_x86: generate $(PROJECTDIR)/gmake-netbsd/Makefile
$(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-netbsd config=$(CONFIG)32
#-------------------------------------------------
+# gmake-openbsd
+#-------------------------------------------------
+
+$(PROJECTDIR)/gmake-openbsd/Makefile: makefile $(SCRIPTS) $(GENIE)
+ $(SILENT) $(GENIE) $(PARAMS) $(TARGET_PARAMS) --gcc=openbsd --gcc_version=$(GCC_VERSION) gmake
+
+.PHONY: openbsd_x64
+openbsd_x64: generate $(PROJECTDIR)/gmake-openbsd/Makefile
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-openbsd config=$(CONFIG)64 precompile
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-openbsd config=$(CONFIG)64
+
+.PHONY: openbsd
+openbsd: openbsd_x86
+
+.PHONY: openbsd_x86
+openbsd_x86: generate $(PROJECTDIR)/gmake-openbsd/Makefile
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-openbsd config=$(CONFIG)32 precompile
+ $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-openbsd config=$(CONFIG)32
+
+#-------------------------------------------------
# gmake-steamlink
#-------------------------------------------------