3 # apt-get install mingw-w64
5 ##########################
6 # Checks the host platform
8 include $(BUILD_DIR)/Makefile.common.hostcheck
11 ####################################
12 # Variable setup for Makefile.common
18 include $(BUILD_DIR)/Makefile.common
26 PATH := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/bin"):$(PATH)
27 PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../IDE")
28 INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/include")
29 LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS100COMNTOOLS)../../VC/lib")
31 WindowsSdkDir := $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')
32 WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')
34 export INCLUDE := $(INCLUDE);$(WindowsSdkDir)Include
35 export LIB := $(LIB);$(WindowsSdkDir)Lib
49 PLATCFLAGS = -DWIN32 -DCORRECT_VRAM_READS -D_WINDOWS -D_USRDLL -D_CRT_SECURE_NO_WARNINGS -DMSVC2010_EXPORTS -DFRONTEND_SUPPORTS_RGB565 -DGIT_VERSION=\"$(GIT_VERSION)\"
50 PLATCXXFLAGS = $(PLATCFLAGS)
51 #PLATLDFLAGS = -shared -lm
52 #PLATLDXFLAGS = -shared -lm
57 RETRODEFS = -D__LIBRETRO__ -wd4710 -wd4711 -wd4127 -wd4204 -wd4242 -wd4244 -wd4820 -wd4214 -wd4100 -wd4738 -wd4706 -wd4668 -wd4245 -wd4255 -wd4389 -wd4305 -wd4113
66 DEFINES = $(PLATDEFS) $(COREDEFINES) $(RETRODEFS)
67 CFLAGS = $(PLATCFLAGS) $(RETROCFLAGS) $(DEFINES) $(INCLUDES)
68 CXXFLAGS = $(PLATCXXFLAGS) $(RETROCXXFLAGS) $(DEFINES) $(INCLUDES)
69 LDFLAGS = $(PLATLDFLAGS) $(RETROLDFLAGS)
70 LDXFLAGS = $(PLATLDXFLAGS) $(RETROLDXFLAGS)
76 CFLAGS += -Od -Zi -D_DEBUG
77 CXXFLAGS += -Od -Zi -D_DEBUG
78 LDFLAGS += -DEBUG -DLL
80 CFLAGS += -O2 -DNDEBUG
81 CXXFLAGS += -O2 -DNDEBUG
85 ifneq ($(LOG_PERFORMANCE),)
86 CFLAGS += -DLOG_PERFORMANCE
87 CXXFLAGS += -DLOG_PERFORMANCE
93 include $(BUILD_DIR)/Makefile.rules