From 910f0215e82c19cbd0c007f77ec007528e3eb3d0 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Tue, 14 Jul 2015 21:52:52 +0200 Subject: Add NetBSD support. Signed-off-by: Thomas Klausner --- makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'makefile') diff --git a/makefile b/makefile index 04d0a748baf..499d4ace282 100644 --- a/makefile +++ b/makefile @@ -296,6 +296,10 @@ ifeq ($(TARGETOS),freebsd) OSD := sdl endif +ifeq ($(TARGETOS),netbsd) +OSD := sdl +endif + ifeq ($(TARGETOS),solaris) OSD := sdl endif @@ -1004,6 +1008,26 @@ freebsd_x86: generate $(PROJECTDIR)/gmake-freebsd/Makefile $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-freebsd config=$(CONFIG)32 +#------------------------------------------------- +# gmake-netbsd +#------------------------------------------------- + + +$(PROJECTDIR)/gmake-netbsd/Makefile: makefile $(SCRIPTS) $(GENIE) + $(SILENT) $(GENIE) $(PARAMS) --gcc=netbsd --gcc_version=$(GCC_VERSION) gmake + +.PHONY: netbsd_x64 +netbsd_x64: generate $(PROJECTDIR)/gmake-netbsd/Makefile + $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-netbsd config=$(CONFIG)64 + +.PHONY: netbsd +netbsd: netbsd_x86 + +.PHONY: netbsd_x86 +netbsd_x86: generate $(PROJECTDIR)/gmake-netbsd/Makefile + $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-netbsd config=$(CONFIG)32 + + #------------------------------------------------- # Clean/bootstrap #------------------------------------------------- -- cgit v1.2.3