summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-03-26 14:43:39 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-03-26 14:43:39 +0100
commit726de20508b01f83219580d7902854e72ec293fd (patch)
tree4c045d22b1feefa0bee0d842a3800a34f0ad7a95 /makefile
parent323d87af33e89be3b2a33168aead228e37d71a55 (diff)
Made CC and LD override possible (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/makefile b/makefile
index ff174b0a703..58d6e1dd453 100644
--- a/makefile
+++ b/makefile
@@ -15,6 +15,16 @@
################# 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.
@@ -232,11 +242,6 @@ GENIE=3rdparty/genie/bin/$(OS)/genie
SILENT?=@
-PARAMS=--distro=$(DISTRO)
-ifdef TOOLS
-PARAMS+= --with-tools
-endif
-
all: $(GENIE) $(TARGETOS)_$(ARCHITECTURE)
windows_x64: generate