mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-14 19:08:05 +02:00
As reported by Damian Frank: "I ran into a hitch with the Makefile.win32 infrastructure. It uses -MD and -LD when linking regardless of the config, but it should be using -MDd and -LDd for the debug config. I believe both the Makefile.win32.common and src/Makefile.win32 files include erroneous declarations. This produces warnings at link time about a mismatch when linking against properly created debug libs (for instance, I had a zlib built as "LIB ASM Debug" that linked properly against the debug runtime). This problem applies to pixman too; can you pass this along to the maintainer?" Would be delighted to if someone commits a fix to pixman reading this commit message.
29 lines
993 B
Text
29 lines
993 B
Text
top_srcdir = ..
|
|
include $(top_srcdir)/build/Makefile.win32.common
|
|
include Makefile.win32.features
|
|
|
|
SOURCES = $(enabled_cairo_sources)
|
|
|
|
STATIC_SOURCES = cairo-system.c
|
|
|
|
OBJECTS = $(patsubst %.c, $(CFG)/%.obj, $(SOURCES))
|
|
OBJECTS_STATIC = $(patsubst %cairo-system.obj, %cairo-system-static.obj, $(OBJECTS))
|
|
|
|
static: inform $(CFG)/cairo-static.lib
|
|
dynamic: inform $(CFG)/cairo.dll
|
|
|
|
$(CFG)/cairo.dll: $(OBJECTS)
|
|
$(CC) $(MS_MDFLAGS) $(MS_LDFLAGS) -Fe$@ $(PIXMAN_LIBS) $(OBJECTS) -link $(CAIRO_LIBS)
|
|
|
|
$(CFG)/cairo-static.lib: $(OBJECTS_STATIC)
|
|
lib -NOLOGO -OUT:$@ $(PIXMAN_LIBS) $(OBJECTS_STATIC)
|
|
|
|
all: inform $(CFG)/cairo.dll $(CFG)/cairo-static.lib
|
|
@echo "Built successfully!"
|
|
@echo "You should copy the following files to a proper place now:"
|
|
@echo ""
|
|
@echo " cairo-version.h (NOTE: toplevel, not the src/cairo-version.h one!)"
|
|
@echo " src/cairo-features.h"
|
|
@for x in $(enabled_cairo_headers); do echo " src/$$x"; done
|
|
@echo " src/$(CFG)/cairo.dll"
|
|
@echo " src/$(CFG)/cairo-static.lib"
|