mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
Made CC and LD override possible (nw)
This commit is contained in:
parent
323d87af33
commit
726de20508
15
makefile
15
makefile
@ -15,6 +15,16 @@
|
|||||||
################# BEGIN USER-CONFIGURABLE OPTIONS #####################
|
################# BEGIN USER-CONFIGURABLE OPTIONS #####################
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
|
PARAMS=--distro=$(DISTRO)
|
||||||
|
ifdef TOOLS
|
||||||
|
PARAMS+= --with-tools
|
||||||
|
endif
|
||||||
|
ifdef CC
|
||||||
|
PARAMS+= --CC=$(CC)
|
||||||
|
endif
|
||||||
|
ifdef LD
|
||||||
|
PARAMS+= --LD=$(LD)
|
||||||
|
endif
|
||||||
|
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
# specify core target: mame, mess, etc.
|
# specify core target: mame, mess, etc.
|
||||||
@ -232,11 +242,6 @@ GENIE=3rdparty/genie/bin/$(OS)/genie
|
|||||||
|
|
||||||
SILENT?=@
|
SILENT?=@
|
||||||
|
|
||||||
PARAMS=--distro=$(DISTRO)
|
|
||||||
ifdef TOOLS
|
|
||||||
PARAMS+= --with-tools
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: $(GENIE) $(TARGETOS)_$(ARCHITECTURE)
|
all: $(GENIE) $(TARGETOS)_$(ARCHITECTURE)
|
||||||
|
|
||||||
windows_x64: generate
|
windows_x64: generate
|
||||||
|
@ -104,6 +104,16 @@ newoption {
|
|||||||
value = "",
|
value = "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "CC",
|
||||||
|
description = "CC replacement",
|
||||||
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "LD",
|
||||||
|
description = "LD replacement",
|
||||||
|
}
|
||||||
|
|
||||||
local os_version = str_to_version(_OPTIONS["os_version"])
|
local os_version = str_to_version(_OPTIONS["os_version"])
|
||||||
USE_BGFX = 1
|
USE_BGFX = 1
|
||||||
if (_OPTIONS["targetos"]=="macosx" and os_version < 100700) then
|
if (_OPTIONS["targetos"]=="macosx" and os_version < 100700) then
|
||||||
|
@ -330,6 +330,13 @@ function toolchain(_buildDir)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (_OPTIONS["CC"] ~= nil) then
|
||||||
|
premake.gcc.cc = _OPTIONS["CC"]
|
||||||
|
end
|
||||||
|
if (_OPTIONS["LD"] ~= nil) then
|
||||||
|
premake.gcc.cxx = _OPTIONS["LD"]
|
||||||
|
end
|
||||||
|
|
||||||
configuration {} -- reset configuration
|
configuration {} -- reset configuration
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user