summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-06-20 18:20:10 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-06-20 18:20:44 +0200
commit239c31b584f3d650f1e12322cbe154825539661c (patch)
tree042e486e5ad0c08d16ba8d3d53ded1dcaf64ebd4 /makefile
parent99056bc96dff78af6e1fc8b252fb0326936ec4b6 (diff)
Made possible creation of custom builds with given list of drivers included.
Note that game list is parsed so if macros are used they will not be found. example: make SUBTARGET=cops -j9 DRIVERS=src/mame/drivers/cops.c
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/makefile b/makefile
index c7141b872a2..d76debb1f1b 100644
--- a/makefile
+++ b/makefile
@@ -89,6 +89,8 @@
# QT_HOME = /usr/lib64/qt48/
+# DRIVERS = src/mame/drivers/1942.c,src/mame/drivers/cops.c
+
-include useroptions.mak
###########################################################################
@@ -597,6 +599,10 @@ ifdef QT_HOME
PARAMS += --QT_HOME='$(QT_HOME)'
endif
+ifdef DRIVERS
+PARAMS += --DRIVERS='$(DRIVERS)'
+endif
+
#-------------------------------------------------
# All scripts
#-------------------------------------------------
@@ -619,9 +625,13 @@ SCRIPTS = scripts/genie.lua \
scripts/src/netlist.lua \
scripts/toolchain.lua \
scripts/src/osd/modules.lua \
- scripts/target/$(TARGET)/$(SUBTARGET).lua \
$(wildcard src/osd/$(OSD)/$(OSD).mak) \
$(wildcard src/$(TARGET)/$(SUBTARGET).mak)
+
+ifndef DRIVERS
+SCRIPTS += scripts/target/$(TARGET)/$(SUBTARGET).lua
+endif
+
ifdef REGENIE
SCRIPTS+= regenie
endif