diff options
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 |
commit | 239c31b584f3d650f1e12322cbe154825539661c (patch) | |
tree | 042e486e5ad0c08d16ba8d3d53ded1dcaf64ebd4 /makefile | |
parent | 99056bc96dff78af6e1fc8b252fb0326936ec4b6 (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-- | makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |