From: Atari Ace [mailto:atari_ace@verizon.net]

Subject: [patch] make MSVC_BUILD=1 -j<n> build fix

Hi mamedev,

The following build tweak fixes make MSVC_BUILD=1 -j2.  It also fixes
an oversight in the cross-build support.

~aa
This commit is contained in:
Aaron Giles 2008-06-26 15:27:12 +00:00
parent 661cf76098
commit ba2fb8554b
3 changed files with 3 additions and 5 deletions

View File

@ -22,8 +22,6 @@ FILE2STR = $(BUILDOUT)/file2str$(BUILD_EXE)
PNG2BDC = $(BUILDOUT)/png2bdc$(BUILD_EXE)
VERINFO = $(BUILDOUT)/verinfo$(BUILD_EXE)
VERINFO = $(BUILDOUT)/verinfo$(EXE)
ifneq ($(CROSS_BUILD),1)
BUILD += \
$(FILE2STR) \

View File

@ -1066,12 +1066,12 @@ M68KMAKE = $(BUILDOUT)/m68kmake$(BUILD_EXE)
endif
# when we compile source files we need to include generated files from the OBJ directory
$(CPUOBJ)/m68000/%.o: $(CPUSRC)/m68000/%.c
$(CPUOBJ)/m68000/%.o: $(CPUSRC)/m68000/%.c | $(OSPREBUILD)
@echo Compiling $<...
$(CC) $(CDEFS) $(CFLAGS) -I$(CPUOBJ)/m68000 -c $< -o $@
# when we compile generated files we need to include stuff from the src directory
$(CPUOBJ)/m68000/%.o: $(CPUOBJ)/m68000/%.c
$(CPUOBJ)/m68000/%.o: $(CPUOBJ)/m68000/%.c | $(OSPREBUILD)
@echo Compiling $<...
$(CC) $(CDEFS) $(CFLAGS) -I$(CPUSRC)/m68000 -c $< -o $@

View File

@ -133,7 +133,7 @@ endif
DEFS += -D_CRT_SECURE_NO_DEPRECATE -DXML_STATIC -D__inline__=__inline -Dsnprintf=_snprintf
# make msvcprep into a pre-build step
# OSPREBUILD = $(VCONV)
OSPREBUILD = $(VCONV)
ifneq ($(CROSS_BUILD),1)
# add VCONV to the build tools