summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/mame.mak
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/mame.mak')
-rw-r--r--src/mame/mame.mak7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mame/mame.mak b/src/mame/mame.mak
index 759b8e9308d..abe07121f2c 100644
--- a/src/mame/mame.mak
+++ b/src/mame/mame.mak
@@ -9,6 +9,13 @@
#
###########################################################################
+ifeq ($(TARGET),mame)
+# In order to keep dependencies reasonable, we exclude objects in the base of
+# $(SRC)/emu, as well as all the OSD objects and anything in the $(OBJ) tree
+depend: maketree $(MAKEDEP_TARGET)
+ @echo Rebuilding depend_$(TARGET).mak...
+ $(MAKEDEP) -I. $(INCPATH) -X$(SRC)/emu -X$(SRC)/osd/... -X$(OBJ)/... src/$(TARGET) > depend_$(TARGET).mak
+endif
MAMESRC = $(SRC)/mame
MAMEOBJ = $(OBJ)/mame