diff --git a/makefile b/makefile index 0f0cca80955..09ae6636549 100644 --- a/makefile +++ b/makefile @@ -140,6 +140,12 @@ endif ifneq ($(filter %86,$(UNAME_P)),) PLATFORM := x86 endif +ifneq ($(filter alpha,$(UNAME_M)),) +PLATFORM := alpha +endif +ifneq ($(filter alpha,$(UNAME_P)),) +PLATFORM := alpha +endif ifneq ($(filter arm%,$(UNAME_M)),) PLATFORM := arm endif @@ -155,6 +161,11 @@ endif ifneq ($(filter powerpc,$(UNAME_P)),) PLATFORM := powerpc endif +ifneq ($(filter mips64%,$(UNAME_M)),) +ifeq ($(shell getconf LONG_BIT),64) +PLATFORM := mips64 +endif +endif ifeq ($(firstword $(filter Linux,$(UNAME))),Linux) OS := linux endif diff --git a/scripts/genie.lua b/scripts/genie.lua index 903d77ce3ed..d07ff394ce2 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -982,6 +982,12 @@ end end end +if (_OPTIONS["PLATFORM"]=="alpha") then + defines { + "PTR64=1", + } +end + if (_OPTIONS["PLATFORM"]=="arm") then buildoptions { "-Wno-cast-align", @@ -997,6 +1003,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then } end +if (_OPTIONS["PLATFORM"]=="mips64") then + defines { + "PTR64=1", + } +end + local subdir if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"]