1 LIBRARY = pixman-1 2 3 CC = cl 4 LD = link 5 AR = lib 6 PERL = perl 7 8 ifeq ($(top_builddir),) 9 top_builddir = $(top_srcdir) 10 endif 11 12 CFG_VAR = $(CFG) 13 ifeq ($(CFG_VAR),) 14 CFG_VAR = release 15 endif 16 17 ifeq ($(CFG_VAR),debug) 18 CFG_CFLAGS = -MDd -Od -Zi 19 CFG_LDFLAGS = -DEBUG 20 else 21 CFG_CFLAGS = -MD -O2 22 CFG_LDFLAGS = 23 endif 24 25 # Package definitions, to be used instead of those provided in config.h 26 PKG_CFLAGS = -DPACKAGE=$(LIBRARY) -DPACKAGE_VERSION="" -DPACKAGE_BUGREPORT="" 27 28 BASE_CFLAGS = -nologo -I. -I$(top_srcdir) -I$(top_srcdir)/pixman 29 30 PIXMAN_CFLAGS = $(BASE_CFLAGS) $(PKG_CFLAGS) $(CFG_CFLAGS) $(CFLAGS) 31 PIXMAN_LDFLAGS = -nologo $(CFG_LDFLAGS) $(LDFLAGS) 32 PIXMAN_ARFLAGS = -nologo $(LDFLAGS) 33 34 35 inform: 36 ifneq ($(CFG),release) 37 ifneq ($(CFG),debug) 38 ifneq ($(CFG),) 39 @echo "Invalid specified configuration option: "$(CFG)"." 40 @echo 41 @echo "Possible choices for configuration are 'release' and 'debug'" 42 @exit 1 43 endif 44 @echo "Using default RELEASE configuration... (use CFG=release or CFG=debug)" 45 endif 46 endif 47 48 49 $(CFG_VAR)/%.obj: %.c $(libpixman_headers) 50 @mkdir -p $(CFG_VAR) 51 @$(CC) -c $(PIXMAN_CFLAGS) -Fo"$@" $< 52 53 clean: inform 54 @$(RM) $(CFG_VAR)/*.{exe,ilk,lib,obj,pdb} $(BUILT_SOURCES) || exit 0 55 56 .PHONY: inform clean 57