mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
made make depend to be defined per target to support special cases (no whatsnew)
This commit is contained in:
parent
e381dd8bc9
commit
1f77747f86
6
makefile
6
makefile
@ -710,12 +710,6 @@ emulator: maketree $(BUILD) $(EMULATOR)
|
||||
|
||||
buildtools: maketree $(BUILD)
|
||||
|
||||
# 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
|
||||
|
||||
tools: maketree $(TOOLS)
|
||||
|
||||
maketree: $(sort $(OBJDIRS))
|
||||
|
@ -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
|
||||
|
@ -6,6 +6,13 @@
|
||||
#
|
||||
###########################################################################
|
||||
|
||||
ifeq ($(TARGET),mess)
|
||||
# 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
|
||||
|
||||
# include MESS core defines
|
||||
include $(SRC)/mess/messcore.mak
|
||||
|
@ -21,7 +21,7 @@ $(DRIVLISTSRC): $(SRC)/mame/mame.lst $(SRC)/mess/mess.lst
|
||||
include $(SRC)/mame/mame.mak
|
||||
include $(SRC)/mess/mess.mak
|
||||
|
||||
depend_ume: maketree $(MAKEDEP_TARGET)
|
||||
depend: maketree $(MAKEDEP_TARGET)
|
||||
@echo Rebuilding depend_$(TARGET).mak...
|
||||
$(MAKEDEP) -I. $(INCPATH) -X$(SRC)/emu -X$(SRC)/osd/... -X$(OBJ)/... src/mame > depend_mame.mak
|
||||
$(MAKEDEP) -I. $(INCPATH) -X$(SRC)/emu -X$(SRC)/osd/... -X$(OBJ)/... src/mess > depend_mess.mak
|
||||
|
Loading…
Reference in New Issue
Block a user