| 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 |
| r245190 | r245191 | |
|---|---|---|
| 15 | 15 | ################# BEGIN USER-CONFIGURABLE OPTIONS ##################### |
| 16 | 16 | ########################################################################### |
| 17 | 17 | |
| 18 | PARAMS=--distro=$(DISTRO) | |
| 19 | ifdef TOOLS | |
| 20 | PARAMS+= --with-tools | |
| 21 | endif | |
| 22 | ifdef CC | |
| 23 | PARAMS+= --CC=$(CC) | |
| 24 | endif | |
| 25 | ifdef LD | |
| 26 | PARAMS+= --LD=$(LD) | |
| 27 | endif | |
| 18 | 28 | |
| 19 | 29 | #------------------------------------------------- |
| 20 | 30 | # specify core target: mame, mess, etc. |
| r245190 | r245191 | |
| 232 | 242 | |
| 233 | 243 | SILENT?=@ |
| 234 | 244 | |
| 235 | PARAMS=--distro=$(DISTRO) | |
| 236 | ifdef TOOLS | |
| 237 | PARAMS+= --with-tools | |
| 238 | endif | |
| 239 | ||
| 240 | 245 | all: $(GENIE) $(TARGETOS)_$(ARCHITECTURE) |
| 241 | 246 | |
| 242 | 247 | windows_x64: generate |
| r245190 | r245191 | |
|---|---|---|
| 104 | 104 | value = "", |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | newoption { | |
| 108 | trigger = "CC", | |
| 109 | description = "CC replacement", | |
| 110 | } | |
| 111 | ||
| 112 | newoption { | |
| 113 | trigger = "LD", | |
| 114 | description = "LD replacement", | |
| 115 | } | |
| 116 | ||
| 107 | 117 | local os_version = str_to_version(_OPTIONS["os_version"]) |
| 108 | 118 | USE_BGFX = 1 |
| 109 | 119 | if (_OPTIONS["targetos"]=="macosx" and os_version < 100700) then |
| r245190 | r245191 | |
|---|---|---|
| 330 | 330 | end |
| 331 | 331 | end |
| 332 | 332 | |
| 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 | ||
| 333 | 340 | configuration {} -- reset configuration |
| 334 | 341 | |
| 335 | 342 |
| https://github.com/mamedev/mame/commit/726de20508b01f83219580d7902854e72ec293fd |
| Previous | 199869 Revisions | Next |