summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-12-08 11:46:15 +0100
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-12-08 11:46:15 +0100
commit124f30dbbc30b0153e1070a5db09e577b4af1919 (patch)
tree3f6c0a86c6e63ac971cb3436b2911a5099be687b /makefile
parent3408ed0ae5525882f35e0f796e6d6c17e12fe849 (diff)
Enable building projects that are separate of MAME but use same core and lives in separate git tree (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/makefile b/makefile
index f342c481ac5..1b3e5851e5b 100644
--- a/makefile
+++ b/makefile
@@ -217,6 +217,10 @@ endif
# build scripts will be run from
# scripts/target/$(TARGET)/$(SUBTARGET).lua
#-------------------------------------------------
+ifdef PROJECT
+PARAMS += --PROJECT='$(PROJECT)'
+TARGET := $(PROJECT)
+endif
ifndef TARGET
TARGET := mame
@@ -800,8 +804,12 @@ SCRIPTS += scripts/target/$(TARGET)/mess.lua
endif
ifndef SOURCES
+ifdef PROJECT
+SCRIPTS += projects/$(PROJECT)/scripts/target/$(TARGET)/$(SUBTARGET_FULL).lua
+else
SCRIPTS += scripts/target/$(TARGET)/$(SUBTARGET_FULL).lua
endif
+endif
ifdef REGENIE
SCRIPTS+= regenie