[cairo-commit] build/Makefile.win32.common

Andrea Canciani ranma42 at kemper.freedesktop.org
Wed Feb 15 10:13:07 PST 2012


 build/Makefile.win32.common |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dfb8b131f54752462b7888fe6401b239aab89ff8
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Wed Feb 15 19:05:09 2012 +0100

    win32: Fix Makefile.win32 build
    
    The Makefile.win32 build system assumes that the files are in the same
    directory level. If this is not the case, the compiler fails when it
    tries to write the object files to a non-existing directory.
    
    This can be fixed simply by making sure that the destination directory
    always exists.
    
    Fixes:
    
    fatal error C1083: Cannot open compiler generated file:
    'release/win32/cairo-win32-debug.obj': No such file or directory

diff --git a/build/Makefile.win32.common b/build/Makefile.win32.common
index e422500..eb3fb6b 100644
--- a/build/Makefile.win32.common
+++ b/build/Makefile.win32.common
@@ -65,11 +65,11 @@ endif
 # Some generic rules
 
 $(CFG)/%.obj: %.c $(top_srcdir)/src/cairo-features.h
-	@mkdir -p $(CFG)
+	@mkdir -p $(CFG)/`dirname $<`
 	@$(CC) $(CAIRO_CFLAGS) -c -Fo"$@" $<
 
 $(CFG)/%-static.obj: %.c $(top_srcdir)/src/cairo-features.h
-	@mkdir -p $(CFG)
+	@mkdir -p $(CFG)/`dirname $<`
 	@$(CC) $(CAIRO_CFLAGS) -c -DCAIRO_WIN32_STATIC_BUILD=1 -Fo"$@" $<
 
 clean:


More information about the cairo-commit mailing list