6 top_srcdir
= @top_srcdir@
7 top_builddir
= @top_builddir@
9 TESTS_DIR
= $(srcdir)/tests
11 PORTS_DIR
= $(srcdir)/ports
13 ALL_PORTS
= mcs51 mcs51-large mcs51-stack-auto ds390 z80 z180 r2k sm83 tlcs90 hc08 s08 mos6502 stm8 pdk13 pdk14 pdk15
15 ALL_TESTS
= $(shell find
$(TESTS_DIR
) -name
"*.c")
17 PORT_RESULTS_DIR
= $(RESULTS_DIR
)/$(PORT
)
18 PORT_RESULTS
= $(ALL_TESTS
:$(TESTS_DIR
)/%.c
=$(PORT_RESULTS_DIR
)/%.out
)
19 PORT_BUILD_DIR
= $(BUILD_DIR
)/$(PORT
)
24 for i in
$(ALL_PORTS
); do
$(MAKE
) test-port PORT
=$$i; done
27 $(MAKE
) test-port PORT
=mcs51
29 test-port
: port-results
32 rm -rf
$(RESULTS_DIR
) *.pyc
39 for i in
$(ALL_PORTS
); do
$(MAKE
) clean-port PORT
=$$i; done
42 rm -rf
$(PORT_BUILD_DIR
)
44 $(PORT_RESULTS_DIR
)/%.out
: $(TESTS_DIR
)/%.c port-dirs
45 $(PYTHON
) $(srcdir)/valdiag.py
$(PORT
) $< $(PORT_BUILD_DIR
)/$* $(srcdir)/..
/..
/device
/include > $@
47 cat
$@ |
$(PYTHON
) $(srcdir)/..
/regression
/compact-results.py
$*.c
49 port-results
: port-dirs
$(PORT_RESULTS
)
50 cat
$(PORT_RESULTS
) |
$(PYTHON
) $(srcdir)/..
/regression
/collate-results.py
$(PORT
)
53 mkdir
-p
$(PORT_RESULTS_DIR
)
54 mkdir
-p
$(PORT_BUILD_DIR
)
56 Makefile
: $(srcdir)/Makefile.in
57 cd
$(top_builddir
); .
/config.status support
/valdiag
/Makefile