Fix UME build, allow custom target to inject stuff in main makefile

This commit is contained in:
Vas Crabb 2015-03-30 18:29:59 +11:00
parent 7ae85d216b
commit 73deef44fa
2 changed files with 20 additions and 4 deletions

View File

@ -351,10 +351,9 @@ SCRIPTS = scripts/genie.lua \
scripts/src/bus.lua \
scripts/src/netlist.lua \
scripts/toolchain.lua \
scripts/target/$(TARGET)/$(SUBTARGET).lua
ifneq (,$(wildcard src/osd/$(OSD)/$(OSD).mak))
SCRIPTS+= src/osd/$(OSD)/$(OSD).mak
endif
scripts/target/$(TARGET)/$(SUBTARGET).lua \
$(wildcard src/osd/$(OSD)/$(OSD).mak) \
$(wildcard src/$(TARGET)/$(SUBTARGET).mak)
ifdef REGENIE
SCRIPTS+= regenie
endif
@ -721,6 +720,10 @@ ifneq (,$(wildcard src/osd/$(OSD)/$(OSD).mak))
include src/osd/$(OSD)/$(OSD).mak
endif
ifneq (,$(wildcard src/$(TARGET)/$(SUBTARGET).mak))
include src/$(TARGET)/$(SUBTARGET).mak
endif
$(GEN_FOLDERS):
-$(call MKDIR,$@)

13
src/ume/ume.mak Normal file
View File

@ -0,0 +1,13 @@
###########################################################################
#
# makefile
#
# Additional makefile for building UME
#
# Copyright (c) Nicola Salmoria and the MAME Team.
# Visit http://mamedev.org for licensing and usage restrictions.
#
###########################################################################
GEN_FOLDERS += $(GENDIR)/mame/layout/ $(GENDIR)/mess/layout/
LAYOUTS += $(wildcard $(SRC)/mame/layout/*.lay) $(wildcard $(SRC)/mess/layout/*.lay)