diff options
author | Vas Crabb <vas@vastheman.com> | 2015-08-25 13:01:38 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2015-08-25 13:02:01 +1000 |
commit | f500420346db73af33c5bb62f1875bb9ad501315 (patch) | |
tree | 5cde80ecd1b029d974ac37f73712095b4ef5f28c /makefile | |
parent | f91d3e8feae575546a976cb59a29fa651ec2ffea (diff) |
OS/2 patch for 0.164 [KO Myung-Hun]
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -144,6 +144,10 @@ endif ifeq ($(firstword $(filter Haiku,$(UNAME))),Haiku) OS := haiku endif +ifeq ($(firstword $(filter OS/2,$(UNAME))),OS/2) +OS := os2 +GENIEOS := os2 +endif ifndef OS $(error Unable to detect OS from uname -a: $(UNAME)) endif @@ -308,6 +312,10 @@ endif ifeq ($(TARGETOS),macosx) OSD := sdl endif + +ifeq ($(TARGETOS),os2) +OSD := sdl +endif endif #------------------------------------------------- @@ -676,6 +684,9 @@ endif ifeq (/bin,$(findstring /bin,$(SHELL))) SHELLTYPE := posix endif +ifeq (/bin,$(findstring /bin,$(MAKESHELL))) + SHELLTYPE := posix +endif ifeq (posix,$(SHELLTYPE)) MKDIR = $(SILENT) mkdir -p "$(1)" @@ -1031,6 +1042,22 @@ netbsd_x86: generate $(PROJECTDIR)/gmake-netbsd/Makefile #------------------------------------------------- +# gmake-os2 +#------------------------------------------------- + + +$(PROJECTDIR)/gmake-os2/Makefile: makefile $(SCRIPTS) $(GENIE) + $(SILENT) $(GENIE) $(PARAMS) --gcc=os2 --gcc_version=$(GCC_VERSION) gmake + +.PHONY: os2 +os2: os2_x86 + +.PHONY: os2_x86 +os2_x86: generate $(PROJECTDIR)/gmake-os2/Makefile + $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-os2 config=$(CONFIG)32 + + +#------------------------------------------------- # Clean/bootstrap #------------------------------------------------- |