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 "$(VS90COMNTOOLS)../../VC/bin"):$(PATH)
27 PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS90COMNTOOLS)../IDE")
28 INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS90COMNTOOLS)../../VC/include")
29 LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS90COMNTOOLS)../../VC/lib")
31 WindowsSdkDir := $(INETSDK)
33 export INCLUDE := $(INCLUDE);$(WindowsSdkDir)/Include
34 export LIB := $(LIB);$(WindowsSdkDir);$(INETSDK)/Lib
48 PLATCFLAGS = -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DWIN32 -DCORRECT_VRAM_READS -D_WINDOWS -D_USRDLL -D_CRT_SECURE_NO_WARNINGS -DMSVC2010_EXPORTS -DFRONTEND_SUPPORTS_RGB565 -DGIT_VERSION=\"$(GIT_VERSION)\"
49 PLATCXXFLAGS = $(PLATCFLAGS)
50 #PLATLDFLAGS = -shared -lm
51 #PLATLDXFLAGS = -shared -lm
56 RETRODEFS = -D__LIBRETRO__ -wd4710 -wd4711 -wd4127 -wd4204 -wd4242 -wd4244 -wd4820 -wd4214 -wd4100 -wd4738 -wd4706 -wd4668 -wd4245 -wd4255 -wd4389 -wd4305 -wd4113
65 DEFINES = $(PLATDEFS) $(COREDEFINES) $(RETRODEFS)
66 CFLAGS = $(PLATCFLAGS) $(RETROCFLAGS) $(DEFINES) $(INCLUDES)
67 CXXFLAGS = $(PLATCXXFLAGS) $(RETROCXXFLAGS) $(DEFINES) $(INCLUDES)
68 LDFLAGS = $(PLATLDFLAGS) $(RETROLDFLAGS)
69 LDXFLAGS = $(PLATLDXFLAGS) $(RETROLDXFLAGS)
75 CFLAGS += -Od -Zi -D_DEBUG
76 CXXFLAGS += -Od -Zi -D_DEBUG
77 LDFLAGS += -DEBUG -DLL
79 CFLAGS += -O2 -DNDEBUG
80 CXXFLAGS += -O2 -DNDEBUG
84 ifneq ($(LOG_PERFORMANCE),)
85 CFLAGS += -DLOG_PERFORMANCE
86 CXXFLAGS += -DLOG_PERFORMANCE
92 include $(BUILD_DIR)/Makefile.rules