From aaddc416a1249fdf65b7ad0ffb02b5c05d4d84e3 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sun, 10 Sep 2017 15:32:16 +0000 Subject: [PATCH] vc6: allow specifying custom toolchain --- Makefile.griffin | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile.griffin b/Makefile.griffin index b35db93964..537e99d062 100644 --- a/Makefile.griffin +++ b/Makefile.griffin @@ -327,17 +327,16 @@ else ifeq ($(platform), windows_msvc6_x86) PLATCFLAGS += -D_WIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -D__STDC_CONSTANT_MACROS -D_MBCS LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib - VCDIR := $(shell reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\DevStudio\6.0\Products\Microsoft Visual C++" -v "ProductDir" | grep -o '[A-Z]:\\.*') + VCDIR ?= $(shell reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\DevStudio\6.0\Products\Microsoft Visual C++" -v "ProductDir" | grep -o '[A-Z]:\\.*') PATH := $(shell IFS=$$'\n'; cygpath "$(VCDIR)/bin"):$(PATH) PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VCDIR)/../Common/MSDev98/Bin") - INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VCDIR)/Include") + INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VCDIR)/Include") LIB := $(shell IFS=$$'\n'; cygpath -w "$(VCDIR)/Lib") - WindowsSdkDir := $(INETSDK) - - export INCLUDE := $(INCLUDE);$(INETSDK)/Include;libretro-common/include;libretro-common/include/compat/msvc - export LIB := $(LIB);$(WindowsSdkDir);$(INETSDK)/Lib + export INCLUDE := $(INCLUDE);$(INETSDK)\Include;libretro-common\include;libretro-common\include\compat\msvc + export LIB := $(LIB);$(INETSDK)/Lib + export INETSDK := $(INETSDK) else ifeq ($(platform), windows_msvc2003_x86) HAVE_RPNG := 1 HAVE_RJPEG := 1