struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / valdiag / Makefile.in
bloba72655aa73a8653d2bbf6a0a842c0ff88dbd6776
1 .SILENT:
3 PYTHON = @PYTHON@
4 VPATH = @srcdir@
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7 top_builddir = @top_builddir@
9 TESTS_DIR = $(srcdir)/tests
10 RESULTS_DIR = results
11 PORTS_DIR = $(srcdir)/ports
12 BUILD_DIR = gen
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)
21 all: test-ports
23 test-ports:
24 for i in $(ALL_PORTS); do $(MAKE) test-port PORT=$$i; done
26 test-mcs51:
27 $(MAKE) test-port PORT=mcs51
29 test-port: port-results
31 clean: clean-gen
32 rm -rf $(RESULTS_DIR) *.pyc
33 rm -rf $(BUILD_DIR)
35 distclean: clean
36 rm -r Makefile
38 clean-gen:
39 for i in $(ALL_PORTS); do $(MAKE) clean-port PORT=$$i; done
41 clean-port:
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 > $@
46 grep FAIL $@ ; true
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)
52 port-dirs:
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