Skip to content

Commit

Permalink
win32: Fix Makefile.win32 build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Andrea Canciani committed Feb 15, 2012
1 parent ae33198 commit dfb8b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/Makefile.win32.common
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dfb8b13

Please sign in to comment.