aboutsummaryrefslogtreecommitdiff
path: root/pixman/test/Makefile.win32
blob: 307ba0c23ef06681805963f2935316902fde958b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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) $(BENCHMARKS))
OBJECTS = $(patsubst %.c, $(CFG_VAR)/%.obj, $(SOURCES))
TESTS   = $(patsubst %,   $(CFG_VAR)/%.exe, $(TESTPROGRAMS))
BENCHS  = $(patsubst %,   $(CFG_VAR)/%.exe, $(BENCHMARKS))

all: inform $(TESTS) $(BENCHS)

check: inform $(TESTS)
	@for test in $(TESTS) ; do ./$$test && echo "PASS: $$test" || echo "FAIL: $$test" ; done

$(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:
	@$(MAKE) -C $(top_builddir)/pixman -f Makefile.win32