2008-09-22 19:43:08 -04:00
|
|
|
top_srcdir = ..
|
|
|
|
|
include $(top_srcdir)/build/Makefile.win32.common
|
2009-02-16 22:28:32 -05:00
|
|
|
include $(top_srcdir)/test/Makefile.sources
|
2007-08-27 15:29:24 -07:00
|
|
|
|
|
|
|
|
CFLAGS += -I../src -I../boilerplate -I./pdiff
|
|
|
|
|
|
2008-02-01 18:45:59 -08:00
|
|
|
LDFLAGS += ./pdiff/pdiff.lib ../src/$(CFG)/cairo-static.lib $(PIXMAN_LIBS) ../boilerplate/$(CFG)/boiler.lib $(EXE_LDFLAGS)
|
2006-09-09 17:08:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
TESTCORE_SOURCES = \
|
|
|
|
|
cairo-test.c \
|
|
|
|
|
buffer-diff.c \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
2009-02-16 22:28:32 -05:00
|
|
|
all: cairo-test-suite.exe
|
2006-09-09 17:08:18 -07:00
|
|
|
|
2009-05-24 16:14:33 +03:00
|
|
|
make-cairo-test-constructors.exe: $(CFG)/make-cairo-test-constructors.obj
|
|
|
|
|
$(CC) $(OPT) $(MS_MDFLAGS) $(CFG)/make-cairo-test-constructors.obj -Fe"$@" -link $(LDFLAGS) user32.lib /NODEFAULTLIB:library
|
|
|
|
|
|
|
|
|
|
cairo-test-constructors.c: $(test_sources) make-cairo-test-constructors.exe
|
|
|
|
|
./make-cairo-test-constructors.exe $(test_sources) > $@
|
2006-09-09 17:08:18 -07:00
|
|
|
|
2009-02-16 22:28:32 -05:00
|
|
|
SOURCES = $(cairo_test_suite_sources) $(test_sources) cairo-test-constructors.c
|
|
|
|
|
|
2009-04-01 11:32:58 -04:00
|
|
|
OBJECTS = $(patsubst %.c, $(CFG)/%-static.obj, $(SOURCES))
|
2009-02-16 22:28:32 -05:00
|
|
|
|
2009-04-01 11:32:58 -04:00
|
|
|
cairo-test-suite.exe: $(OBJECTS) ./pdiff/pdiff.lib ../boilerplate/$(CFG)/boiler.lib
|
|
|
|
|
$(CC) $(OPT) $(MS_MDFLAGS) $(OBJECTS) -Fe"$@" -link $(LDFLAGS) $(CAIRO_LIBS) /NODEFAULTLIB:library
|
2007-08-27 15:29:24 -07:00
|
|
|
|
|
|
|
|
./pdiff/pdiff.lib:
|
|
|
|
|
(cd pdiff ; $(MAKE) -f Makefile.win32)
|
2006-09-09 22:18:47 -07:00
|
|
|
|
2009-04-01 11:32:58 -04:00
|
|
|
../boilerplate/$(CFG)/boiler.lib:
|
|
|
|
|
(cd ../boilerplate ; $(MAKE) -f Makefile.win32)
|
|
|
|
|
|
2009-02-16 22:28:32 -05:00
|
|
|
.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)
|
2006-09-09 22:18:47 -07:00
|
|
|
|
|
|
|
|
html:
|
2009-02-16 22:28:32 -05:00
|
|
|
$(gen-html)
|