Updated makefile to support more building environments and to prevent crashing if folders are missing (nw)

This commit is contained in:
Miodrag Milanovic 2016-03-23 09:11:38 +01:00
parent 1054cfe7fd
commit 6e5dc72080

View File

@ -185,6 +185,13 @@ $(error Unable to detect OS from uname -a: $(UNAME))
endif
endif
MINGW:=
ifdef MINGW64
MINGW := $(MINGW64)
else
MINGW := $(MINGW32)
endif
#-------------------------------------------------
# specify core target: mame, ldplayer
# specify subtarget: mame, arcade, mess, tiny, etc.
@ -1514,9 +1521,14 @@ cppcheck:
.PHONY: shaders bgfx-tools
bgfx-tools:
$(SILENT) $(MAKE) $(MAKEPARAMS) -C 3rdparty/bgfx -f makefile dist-$(GENIEOS)
$(SILENT) $(MAKE) -C 3rdparty/bgfx -f makefile dist-$(GENIEOS) CC="$(CC)" CXX="$(CXX)" MINGW="$(MINGW)"
shaders: bgfx-tools
-$(call MKDIR,build/bgfx/shaders/dx11)
-$(call MKDIR,build/bgfx/shaders/dx9)
-$(call MKDIR,build/bgfx/shaders/gles)
-$(call MKDIR,build/bgfx/shaders/glsl)
-$(call MKDIR,build/bgfx/shaders/metal)
$(SILENT) $(MAKE) -C $(SRC)/osd/modules/render/bgfx rebuild
#-------------------------------------------------