From 5567cf1befbda64f2dc6fae1d337567cd984b46e Mon Sep 17 00:00:00 2001
From: marha <marha@users.sourceforge.net>
Date: Sat, 21 Dec 2013 15:01:56 +0100
Subject: Use forward slashes to solve problem when using cygwin python

---
 libxcb/src/makefile.srcs          | 8 ++++----
 mesalib/windows/VC8/mesa/makefile | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/libxcb/src/makefile.srcs b/libxcb/src/makefile.srcs
index d91835aeb..0dc043ece 100644
--- a/libxcb/src/makefile.srcs
+++ b/libxcb/src/makefile.srcs
@@ -2,14 +2,14 @@ ifneq ($(NORELDBG),1)
 $(error NORELDBG should have been set to 1)
 endif
 
-XCBPROTO_XCBPYTHONDIR = ..\xcb-proto
-XCBPROTO_XCBINCLUDEDIR = ..\xcb-proto\src
+XCBPROTO_XCBPYTHONDIR = ../xcb-proto
+XCBPROTO_XCBINCLUDEDIR = ../xcb-proto/src
 
 %.h: $(XCBPROTO_XCBINCLUDEDIR)\%.xml
-	python c_client.py -p $(XCBPROTO_XCBPYTHONDIR) $<
+	python c_client.py -p $(XCBPROTO_XCBPYTHONDIR) $(subst $/,/,$<)
 
 %.c: $(XCBPROTO_XCBINCLUDEDIR)\%.xml
-	python c_client.py -p $(XCBPROTO_XCBPYTHONDIR) $<
+	python c_client.py -p $(XCBPROTO_XCBPYTHONDIR) $(subst $/,/,$<)
 
 CLEANRULEPOSTFIX=noobjs
 
diff --git a/mesalib/windows/VC8/mesa/makefile b/mesalib/windows/VC8/mesa/makefile
index c5896231d..63f4b101b 100644
--- a/mesalib/windows/VC8/mesa/makefile
+++ b/mesalib/windows/VC8/mesa/makefile
@@ -71,13 +71,13 @@ all: $(TARGETDIR)\Release\swrast_dri.dll $(TARGETDIR)\Debug\swrast_dri.dll
 ..\..\..\src\mesa\main\api_exec.c: $(wildcard ..\..\..\src\mapi\glapi\gen\*.xml) ..\..\..\src\mapi\glapi\gen\gl_genexec.py
 	cd ..\..\..\src\mapi\glapi\gen & python gl_genexec.py -f gl_and_es_API.xml > ..\..\..\mesa\main\api_exec.c
 
-GET_HASH_GEN = ..\..\..\src\mesa\main\get_hash_generator.py
+GET_HASH_GEN = ../../../src/mesa/main/get_hash_generator.py
 ..\..\..\src\mesa\main\get_hash.h: ..\..\..\src\mapi\glapi\gen\gl_and_es_API.xml ..\..\..\src\mesa\main\get_hash_params.py $(GET_HASH_GEN)
-	python $(GET_HASH_GEN) -f $< > $@
+	python $(GET_HASH_GEN) -f $(subst $/,/,$<) > $@
 
-REMAP_HELPER = ..\..\..\src\mapi\glapi\gen\remap_helper.py
+REMAP_HELPER = ../../../src/mapi/glapi/gen/remap_helper.py
 ..\..\..\src\mesa\main\remap_helper.h: ..\..\..\src\mapi\glapi\gen\gl_and_es_API.xml $(REMAP_HELPER)
-	python $(REMAP_HELPER) -f $< > $@
+	python $(REMAP_HELPER) -f $(subst $/,/,$<) > $@
 
 $(TARGETDIR)\Debug\swrast_dri.dll: $(DEPS)
 	$(DBGBUILDCMD)
-- 
cgit v1.2.3