Previous 199869 Revisions Next

r36679 Thursday 26th March, 2015 at 13:43:39 UTC by Miodrag Milanović
Made CC and LD override possible (nw)
[/trunk]makefile
[scripts]genie.lua toolchain.lua

trunk/makefile
r245190r245191
1515#################   BEGIN USER-CONFIGURABLE OPTIONS   #####################
1616###########################################################################
1717
18PARAMS=--distro=$(DISTRO)
19ifdef TOOLS
20PARAMS+= --with-tools
21endif
22ifdef CC
23PARAMS+= --CC=$(CC)
24endif
25ifdef LD
26PARAMS+= --LD=$(LD)
27endif
1828
1929#-------------------------------------------------
2030# specify core target: mame, mess, etc.
r245190r245191
232242
233243SILENT?=@
234244
235PARAMS=--distro=$(DISTRO)
236ifdef TOOLS
237PARAMS+= --with-tools
238endif
239
240245all: $(GENIE) $(TARGETOS)_$(ARCHITECTURE)
241246
242247windows_x64: generate
trunk/scripts/genie.lua
r245190r245191
104104   value = "",
105105}
106106
107newoption {
108   trigger = "CC",
109   description = "CC replacement",
110}
111
112newoption {
113   trigger = "LD",
114   description = "LD replacement",
115}
116
107117local os_version = str_to_version(_OPTIONS["os_version"])
108118USE_BGFX = 1
109119if (_OPTIONS["targetos"]=="macosx" and  os_version < 100700) then
trunk/scripts/toolchain.lua
r245190r245191
330330      end
331331   end
332332
333   if (_OPTIONS["CC"] ~= nil) then
334      premake.gcc.cc  = _OPTIONS["CC"]
335   end
336   if (_OPTIONS["LD"] ~= nil) then
337      premake.gcc.cxx  = _OPTIONS["LD"]
338   end   
339   
333340   configuration {} -- reset configuration
334341
335342


Previous 199869 Revisions Next


© 1997-2024 The MAME Team