blob: d298131d54c1460a0d9c451c0a1437cf69d09d84 [file] [log] [blame]
Peter Collingbourneac720152011-06-20 19:06:51 +00001LLDB_LEVEL := ..
2include $(LLDB_LEVEL)/Makefile
3
4.PHONY: programs
5
6all:: check-local
Chris Lattner24943d22010-06-08 16:52:24 +00007
8#----------------------------------------------------------------------
9# Make all of the test programs
10#----------------------------------------------------------------------
Peter Collingbourneac720152011-06-20 19:06:51 +000011programs:
Chris Lattner24943d22010-06-08 16:52:24 +000012 find . -type d -depth 1 | xargs -J % find % \
13 -name Makefile \
14 -exec echo \; \
15 -exec echo make -f '{}' \; \
16 -execdir make \;
17
18#----------------------------------------------------------------------
Peter Collingbourneac720152011-06-20 19:06:51 +000019# Clean all of the test programs
Chris Lattner24943d22010-06-08 16:52:24 +000020#----------------------------------------------------------------------
Peter Collingbourneac720152011-06-20 19:06:51 +000021clean::
Chris Lattner24943d22010-06-08 16:52:24 +000022 find . -type d -depth 1 | xargs -J % find % \
23 -name Makefile \
24 -exec echo \; \
25 -exec echo make -f '{}' clean \; \
26 -execdir make clean \;
Peter Collingbourneac720152011-06-20 19:06:51 +000027
28#----------------------------------------------------------------------
29# Run the tests
30#----------------------------------------------------------------------
31check-local::
Daniel Malea361eb432013-02-15 21:31:37 +000032 rm -rf lldb-test-traces
Daniel Maleaf1bc35d2013-05-13 21:41:35 +000033 python $(PROJ_SRC_DIR)/dosep.ty -o "--executable $(ToolDir)/lldb -q -s lldb-test-traces -u CXXFLAGS -u CFLAGS -C $(subst ccache,,$(CC))"