summaryrefslogtreecommitdiffstats
path: root/qemu/pixman/test/Makefile.win32
diff options
context:
space:
mode:
authorYang Zhang <yang.z.zhang@intel.com>2015-08-28 09:58:54 +0800
committerYang Zhang <yang.z.zhang@intel.com>2015-09-01 12:44:00 +0800
commite44e3482bdb4d0ebde2d8b41830ac2cdb07948fb (patch)
tree66b09f592c55df2878107a468a91d21506104d3f /qemu/pixman/test/Makefile.win32
parent9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00 (diff)
Add qemu 2.4.0
Change-Id: Ic99cbad4b61f8b127b7dc74d04576c0bcbaaf4f5 Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Diffstat (limited to 'qemu/pixman/test/Makefile.win32')
-rw-r--r--qemu/pixman/test/Makefile.win3254
1 files changed, 54 insertions, 0 deletions
diff --git a/qemu/pixman/test/Makefile.win32 b/qemu/pixman/test/Makefile.win32
new file mode 100644
index 000000000..6cfb4a780
--- /dev/null
+++ b/qemu/pixman/test/Makefile.win32
@@ -0,0 +1,54 @@
+default: all
+
+top_srcdir = ..
+include $(top_srcdir)/test/Makefile.sources
+include $(top_srcdir)/Makefile.win32.common
+
+TEST_LDADD = \
+ $(top_builddir)/pixman/$(CFG_VAR)/$(LIBRARY).lib \
+ $(CFG_VAR)/libutils.lib \
+ $(NULL)
+
+libutils_OBJECTS = $(patsubst %.c, $(CFG_VAR)/%.obj, $(libutils_sources))
+
+SOURCES = $(patsubst %, %.c, $(TESTPROGRAMS) $(OTHERPROGRAMS))
+OBJECTS = $(patsubst %.c, $(CFG_VAR)/%.obj, $(SOURCES))
+TESTS = $(patsubst %, $(CFG_VAR)/%.exe, $(TESTPROGRAMS))
+OTHERS = $(patsubst %, $(CFG_VAR)/%.exe, $(OTHERPROGRAMS))
+
+all: pixman inform $(TESTS) $(OTHERS)
+
+check: pixman inform $(TESTS)
+ @failures=0 ; \
+ total=0 ; \
+ for test in $(TESTS) ; \
+ do \
+ total=`expr $$total + 1` ; \
+ if ./$$test ; \
+ then echo "PASS: $$test" ; \
+ else echo "FAIL: $$test" ; \
+ failures=`expr $$failures + 1` ; \
+ fi ; \
+ done ; \
+ if test $$failures -eq 0 ; \
+ then banner="All $$total tests passed" ; \
+ else banner="$$failures of $$total tests failed" ; \
+ fi ; \
+ dashes=`echo "$$banner" | sed s/./=/g`; \
+ echo "$$dashes" ; \
+ echo "$$banner" ; \
+ echo "$$dashes" ; \
+ test $$failures -eq 0
+
+$(CFG_VAR)/libutils.lib: $(libutils_OBJECTS)
+ @$(AR) $(PIXMAN_ARFLAGS) -OUT:$@ $^
+
+$(CFG_VAR)/%.exe: $(CFG_VAR)/%.obj $(TEST_LDADD)
+ @$(LD) $(PIXMAN_LDFLAGS) -OUT:$@ $^
+
+$(top_builddir)/pixman/$(CFG_VAR)/$(LIBRARY).lib: pixman
+
+pixman:
+ @$(MAKE) -C $(top_builddir)/pixman -f Makefile.win32
+
+.PHONY: all check pixman