mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Added platform parameter and some ARM fixes (nw)
This commit is contained in:
parent
a6fc794c3a
commit
9c2669081c
2 changed files with 24 additions and 3 deletions
13
makefile
13
makefile
|
@ -115,9 +115,18 @@ MAKEPARAMS := -R
|
|||
ifeq ($(OS),Windows_NT)
|
||||
OS := windows
|
||||
GENIEOS := windows
|
||||
PLATFORM := x86
|
||||
else
|
||||
UNAME := $(shell uname -mps)
|
||||
GENIEOS := linux
|
||||
PLATFORM := unknown
|
||||
ifeq ($(firstword $(filter x86,$(UNAME))),x86)
|
||||
PLATFORM := x86
|
||||
endif
|
||||
ifeq ($(firstword $(filter arm,$(UNAME))),arm)
|
||||
PLATFORM := arm
|
||||
endif
|
||||
|
||||
ifeq ($(firstword $(filter Linux,$(UNAME))),Linux)
|
||||
OS := linux
|
||||
endif
|
||||
|
@ -650,6 +659,10 @@ ifdef FORCE_VERSION_COMPILE
|
|||
PARAMS += --FORCE_VERSION_COMPILE='$(FORCE_VERSION_COMPILE)'
|
||||
endif
|
||||
|
||||
ifdef PLATFORM
|
||||
PARAMS += --PLATFORM='$(PLATFORM)'
|
||||
endif
|
||||
|
||||
#-------------------------------------------------
|
||||
# All scripts
|
||||
#-------------------------------------------------
|
||||
|
|
|
@ -388,6 +388,11 @@ newoption {
|
|||
}
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "PLATFORM",
|
||||
description = "Target machine platform (x86,arm,...)",
|
||||
}
|
||||
|
||||
if _OPTIONS["SHLIB"]=="1" then
|
||||
LIBTYPE = "SharedLib"
|
||||
else
|
||||
|
@ -1012,9 +1017,12 @@ end
|
|||
}
|
||||
end
|
||||
end
|
||||
--ifeq ($(findstring arm,$(UNAME)),arm)
|
||||
-- CCOMFLAGS += -Wno-cast-align
|
||||
--endif
|
||||
|
||||
if (_OPTIONS["PLATFORM"]=="arm") then
|
||||
buildoptions {
|
||||
"-Wno-cast-align",
|
||||
}
|
||||
end
|
||||
|
||||
local subdir
|
||||
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
|
||||
|
|
Loading…
Reference in a new issue