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 "$(VS71COMNTOOLS)../../VC7/bin"):$(PATH)
27 PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../IDE")
28 INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../../VC7/include")
29 LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS71COMNTOOLS)../../VC7/lib")
30 BIN := $(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../../Vc7/bin")
32 WindowsSdkDir := $(INETSDK)
34 export INCLUDE := $(INCLUDE);$(WindowsSdkDir)/Include;libretro/msvc/msvc-2005
35 export LIB := $(LIB);$(WindowsSdkDir);$(INETSDK)/Lib
49 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)\"
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