makefile.mingw, parallelizer fix for fresh builds

This commit is contained in:
dinkc64 2019-05-19 00:09:26 -04:00
parent 64bace459a
commit 109d29b9a8
2 changed files with 8 additions and 5 deletions

View File

@ -19,10 +19,10 @@ export
UNICODE = 1
# Use Segoe Fonts (installed by default on Windows Vista and newer)
USE_SEGOE = 1
#USE_SEGOE = 1
# Build A68K ASM 68000 core
#BUILD_A68K = 1
BUILD_A68K = 1
# Include x86 Assembly routines
BUILD_X86_ASM = 1
@ -40,7 +40,7 @@ INCLUDE_7Z_SUPPORT = 1
INCLUDE_AVI_RECORDING = 1
# Include symbols and other debug information in the executable
#SYMBOL = 1
SYMBOL = 1
# Include features for debugging drivers
DEBUG = 1

View File

@ -711,6 +711,9 @@ endif
#
# Generic rules for C/C++ files
#
# Note: require init to complete before assembling anything (see "| init" below)
# to avoid parallization issues on fresh builds.
#
ifeq ($(MAKELEVEL),1)
@ -722,7 +725,7 @@ ifeq ($(MAKELEVEL),1)
@echo Compiling $<...
@$(CC) $(CFLAGS) -c $< -o $(subst $(srcdir),$(objdir),$(<D))/$(@F)
%.o: %.asm
%.o: %.asm | init
@echo Assembling $<...
@$(AS) $(ASFLAGS) $< -o $(subst $(srcdir),$(objdir),$(<D))/$(@F)
@ -732,7 +735,7 @@ else
@echo Compiling $<...
@$(CC) $(CFLAGS) -c $< -o $@
%.o: %.asm
%.o: %.asm | init
@echo Assembling $<...
@$(AS) $(ASFLAGS) $< -o $@