mirror of
https://github.com/holub/mame
synced 2025-05-30 09:33:05 +03:00

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
71 lines
1.4 KiB
Makefile
71 lines
1.4 KiB
Makefile
###########################################################################
|
|
#
|
|
# build.mak
|
|
#
|
|
# MAME build tools makefile
|
|
#
|
|
# Copyright Nicola Salmoria and the MAME Team.
|
|
# Visit http://mamedev.org for licensing and usage restrictions.
|
|
#
|
|
###########################################################################
|
|
|
|
OBJDIRS += \
|
|
$(BUILDOBJ) \
|
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
# set of build targets
|
|
#-------------------------------------------------
|
|
|
|
FILE2STR = $(BUILDOUT)/file2str$(BUILD_EXE)
|
|
PNG2BDC = $(BUILDOUT)/png2bdc$(BUILD_EXE)
|
|
VERINFO = $(BUILDOUT)/verinfo$(BUILD_EXE)
|
|
|
|
ifneq ($(CROSS_BUILD),1)
|
|
BUILD += \
|
|
$(FILE2STR) \
|
|
$(PNG2BDC) \
|
|
$(VERINFO) \
|
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
# file2str
|
|
#-------------------------------------------------
|
|
|
|
FILE2STROBJS = \
|
|
$(BUILDOBJ)/file2str.o \
|
|
|
|
$(FILE2STR): $(FILE2STROBJS) $(LIBOCORE)
|
|
@echo Linking $@...
|
|
$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
|
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
# png2bdc
|
|
#-------------------------------------------------
|
|
|
|
PNG2BDCOBJS = \
|
|
$(BUILDOBJ)/png2bdc.o \
|
|
|
|
$(PNG2BDC): $(PNG2BDCOBJS) $(LIBUTIL) $(LIBOCORE) $(ZLIB)
|
|
@echo Linking $@...
|
|
$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
|
|
|
|
|
|
|
|
#-------------------------------------------------
|
|
# verinfo
|
|
#-------------------------------------------------
|
|
|
|
VERINFOOBJS = \
|
|
$(BUILDOBJ)/verinfo.o
|
|
|
|
$(VERINFO): $(VERINFOOBJS) $(LIBOCORE)
|
|
@echo Linking $@...
|
|
$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
|
|
|
|
endif
|