mirror of
https://github.com/holub/mame
synced 2025-04-27 10:43:07 +03:00
Merge pull request #1098 from jmallach/master
Add arch defines for Linux alpha and mips64el.
This commit is contained in:
commit
7e817e399a
11
makefile
11
makefile
@ -140,6 +140,12 @@ endif
|
|||||||
ifneq ($(filter %86,$(UNAME_P)),)
|
ifneq ($(filter %86,$(UNAME_P)),)
|
||||||
PLATFORM := x86
|
PLATFORM := x86
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(filter alpha,$(UNAME_M)),)
|
||||||
|
PLATFORM := alpha
|
||||||
|
endif
|
||||||
|
ifneq ($(filter alpha,$(UNAME_P)),)
|
||||||
|
PLATFORM := alpha
|
||||||
|
endif
|
||||||
ifneq ($(filter arm%,$(UNAME_M)),)
|
ifneq ($(filter arm%,$(UNAME_M)),)
|
||||||
PLATFORM := arm
|
PLATFORM := arm
|
||||||
endif
|
endif
|
||||||
@ -155,6 +161,11 @@ endif
|
|||||||
ifneq ($(filter powerpc,$(UNAME_P)),)
|
ifneq ($(filter powerpc,$(UNAME_P)),)
|
||||||
PLATFORM := powerpc
|
PLATFORM := powerpc
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(filter mips64%,$(UNAME_M)),)
|
||||||
|
ifeq ($(shell getconf LONG_BIT),64)
|
||||||
|
PLATFORM := mips64
|
||||||
|
endif
|
||||||
|
endif
|
||||||
ifeq ($(firstword $(filter Linux,$(UNAME))),Linux)
|
ifeq ($(firstword $(filter Linux,$(UNAME))),Linux)
|
||||||
OS := linux
|
OS := linux
|
||||||
endif
|
endif
|
||||||
|
@ -982,6 +982,12 @@ end
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (_OPTIONS["PLATFORM"]=="alpha") then
|
||||||
|
defines {
|
||||||
|
"PTR64=1",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
if (_OPTIONS["PLATFORM"]=="arm") then
|
if (_OPTIONS["PLATFORM"]=="arm") then
|
||||||
buildoptions {
|
buildoptions {
|
||||||
"-Wno-cast-align",
|
"-Wno-cast-align",
|
||||||
@ -997,6 +1003,12 @@ if (_OPTIONS["PLATFORM"]=="arm64") then
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (_OPTIONS["PLATFORM"]=="mips64") then
|
||||||
|
defines {
|
||||||
|
"PTR64=1",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
local subdir
|
local subdir
|
||||||
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
|
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
|
||||||
subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"]
|
subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"]
|
||||||
|
Loading…
Reference in New Issue
Block a user