8 ifeq ($(top_builddir),)
9 top_builddir = $(top_srcdir)
17 ifeq ($(CFG_VAR),debug)
18 CFG_CFLAGS = -MDd -Od -Zi
25 # Package definitions, to be used instead of those provided in config.h
26 PKG_CFLAGS = -DPACKAGE=$(LIBRARY) -DPACKAGE_VERSION="" -DPACKAGE_BUGREPORT=""
28 BASE_CFLAGS = -nologo -I. -I$(top_srcdir) -I$(top_srcdir)/pixman
30 PIXMAN_CFLAGS = $(BASE_CFLAGS) $(PKG_CFLAGS) $(CFG_CFLAGS) $(CFLAGS)
31 PIXMAN_LDFLAGS = -nologo $(CFG_LDFLAGS) $(LDFLAGS)
32 PIXMAN_ARFLAGS = -nologo $(LDFLAGS)
36 ifneq ($(CFG),release)
39 @echo "Invalid specified configuration option: "$(CFG)"."
41 @echo "Possible choices for configuration are 'release' and 'debug'"
44 @echo "Using default RELEASE configuration... (use CFG=release or CFG=debug)"
49 $(CFG_VAR)/%.obj: %.c $(BUILT_SOURCES)
51 @$(CC) -c $(PIXMAN_CFLAGS) -Fo"$@" $<
54 @$(RM) $(CFG_VAR)/*.{exe,ilk,lib,obj,pdb} $(BUILT_SOURCES) || exit 0