From 8adfc56fcb3f0bea3390648e0f128a597c723d40 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 5 Aug 2017 13:58:04 +0200 Subject: [PATCH] Add msvc 2005 core --- Makefile.libretro | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index 4cfbb03..5ed3119 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -283,6 +283,26 @@ TARGET := $(TARGET_NAME)_libretro.dll PSS_STYLE :=2 LDFLAGS += -DLL LIBS = +# Windows MSVC 2005 x86 +else ifeq ($(platform), windows_msvc2005_x86) + CC = cl.exe + CXX = cl.exe + +PATH := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin"):$(PATH) +PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../IDE") +INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/include") +LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS80COMNTOOLS)../../VC/lib") +BIN := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin") + +WindowsSdkDir := $(INETSDK) + +export INCLUDE := $(INCLUDE);$(INETSDK)/Include;libretro/libretro-common/include/compat/msvc +export LIB := $(LIB);$(WindowsSdkDir);$(INETSDK)/Lib +TARGET := $(TARGET_NAME)_libretro.dll +PSS_STYLE :=2 +LDFLAGS += -DLL +CFLAGS += -D_CRT_SECURE_NO_DEPRECATE +LIBS = # Windows else TARGET := $(TARGET_NAME)_libretro.dll