4 # Edit build/Makefile.win32.features to enable features to build
6 include $(top_srcdir)/build/Makefile.win32.features
8 ifeq ($(top_builddir),)
9 top_builddir = $(top_srcdir)
25 PIXMAN_CFLAGS := -I$(top_srcdir)/../pixman/pixman
26 PIXMAN_LIBS := $(top_builddir)/../pixman/pixman/$(CFG)/pixman-1.lib
28 CAIRO_LIBS = gdi32.lib msimg32.lib user32.lib
29 ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)
30 CAIRO_LIBS += libpng.lib
32 ifeq ($(CAIRO_HAS_PS_SURFACE)$(CAIRO_HAS_PDF_SURFACE),00)
34 CAIRO_LIBS += zdll.lib
37 DEFAULT_CFLAGS = -nologo $(MS_MDFLAGS) $(OPT)
38 DEFAULT_CFLAGS += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE
39 DEFAULT_CFLAGS += -I. -I$(top_srcdir)
40 DEFAULT_CFLAGS += $(PIXMAN_CFLAGS)
42 CAIRO_CFLAGS = $(DEFAULT_CFLAGS) $(CFLAGS)
46 ifneq ($(CFG),release)
48 @echo "Invalid configuration "$(CFG)" specified."
49 @echo -n "You must specify a configuration when "
50 @echo "running make, e.g. make CFG=debug"
52 @echo -n "Possible choices for configuration are "
53 @echo "'release' and 'debug'"
62 @$(CC) $(CAIRO_CFLAGS) -c -Fo"$@" $<
64 $(CFG)/%-static.obj: %.c
66 @$(CC) $(CAIRO_CFLAGS) -c -DCAIRO_WIN32_STATIC_BUILD=1 -Fo"$@" $<
69 @rm -f $(CFG)/*.obj $(CFG)/*.dll $(CFG)/*.lib $(CFG)/*.pdb $(CFG)/*.ilk || exit 0