cairo/test/Makefile.win32
Jeff Muizelaar f7b3c9df58 Add test/Makefile.sources
This lets test/Makefile.am and test/Makefile.win32 share a common list of sources.
It also makes test/Makefile.win32 useful again.
2009-02-16 22:28:32 -05:00

46 lines
1.1 KiB
Text

top_srcdir = ..
include $(top_srcdir)/build/Makefile.win32.common
include $(top_srcdir)/test/Makefile.sources
CFLAGS += -I../src -I../boilerplate -I./pdiff
LDFLAGS += ./pdiff/pdiff.lib ../src/$(CFG)/cairo-static.lib $(PIXMAN_LIBS) ../boilerplate/$(CFG)/boiler.lib $(EXE_LDFLAGS)
TESTCORE_SOURCES = \
cairo-test.c \
buffer-diff.c \
$(NULL)
all: cairo-test-suite.exe
cairo-test-constructors.c: $(test_sources)
./make-cairo-test-constructors.pl $(test_sources) > $@
SOURCES = $(cairo_test_suite_sources) $(test_sources) cairo-test-constructors.c
OBJECTS = $(patsubst %.c, $(CFG)/%.obj, $(SOURCES))
cairo-test-suite.exe: $(OBJECTS)
$(CC) $(OPT) $(MS_MDFLAGS) $(OBJECTS) -Fe"$@" -link $(LDFLAGS) /NODEFAULTLIB:library
./pdiff/pdiff.lib:
(cd pdiff ; $(MAKE) -f Makefile.win32)
.PHONY: check test html
check: cairo-test-suite.exe
./cairo-test-suite.exe
# define gen-html so that both 'test' and 'html' targets
# can generate html while having different dependencies
define gen-html
@echo Creating index.html...
@perl make-html.pl > index.html
endef
test: check
$(gen-html)
html:
$(gen-html)