summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2011-11-22 09:10:58 +0000
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2011-11-22 09:10:58 +0000
commitc9891545fd87ae37b8234c9bf6dff3ae6b334b22 (patch)
tree4d87305fe3b3538180021ac5ad48545dc9ebad8e /makefile
parent6aadd7d7871609e318629f970cd1b041f32c5c77 (diff)
Changed makefile in order to make sequential compilation of MAME and MESS and their sub targets less resource demanding [Miodrag Milanovic]
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/makefile b/makefile
index ee4110ab427..bbe417cb716 100644
--- a/makefile
+++ b/makefile
@@ -362,7 +362,7 @@ EMULATOR = $(FULLNAME)$(EXE)
SRC = src
# build the targets in different object dirs, so they can co-exist
-OBJ = obj/$(OSD)/$(FULLNAME)
+OBJ = obj/$(PREFIX)$(OSD)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
@@ -565,8 +565,7 @@ endif
# this variable
#-------------------------------------------------
-OBJDIRS = $(OBJ)
-
+OBJDIRS = $(OBJ) $(OBJ)/$(TARGET)/$(SUBTARGET)
#-------------------------------------------------
@@ -574,19 +573,19 @@ OBJDIRS = $(OBJ)
#-------------------------------------------------
LIBEMU = $(OBJ)/libemu.a
-LIBCPU = $(OBJ)/libcpu.a
-LIBDASM = $(OBJ)/libdasm.a
-LIBSOUND = $(OBJ)/libsound.a
+LIBCPU = $(OBJ)/$(TARGET)/$(SUBTARGET)/libcpu.a
+LIBDASM = $(OBJ)/$(TARGET)/$(SUBTARGET)/libdasm.a
+LIBSOUND = $(OBJ)/$(TARGET)/$(SUBTARGET)/libsound.a
LIBUTIL = $(OBJ)/libutil.a
LIBOCORE = $(OBJ)/libocore.a
LIBOSD = $(OBJ)/libosd.a
VERSIONOBJ = $(OBJ)/version.o
EMUINFOOBJ = $(OBJ)/$(TARGET)/$(TARGET).o
-DRIVLISTSRC = $(OBJ)/drivlist.c
-DRIVLISTOBJ = $(OBJ)/drivlist.o
-DEVLISTSRC = $(OBJ)/devlist.c
-DEVLISTOBJ = $(OBJ)/devlist.o
+DRIVLISTSRC = $(OBJ)/$(TARGET)/$(SUBTARGET)/drivlist.c
+DRIVLISTOBJ = $(OBJ)/$(TARGET)/$(SUBTARGET)/drivlist.o
+DEVLISTSRC = $(OBJ)/$(TARGET)/$(SUBTARGET)/devlist.c
+DEVLISTOBJ = $(OBJ)/$(TARGET)/$(SUBTARGET)/devlist.o
@@ -657,6 +656,7 @@ include $(SRC)/osd/$(OSD)/$(OSD).mak
# then the various core pieces
include $(SRC)/$(TARGET)/$(SUBTARGET).mak
+-include $(SRC)/$(TARGET)/osd/$(OSD)/$(OSD).mak
include $(SRC)/emu/emu.mak
include $(SRC)/lib/lib.mak
include $(SRC)/build/build.mak