1LLDB_LEVEL := ..
2include $(LLDB_LEVEL)/Makefile
3
4.PHONY: programs
5
6all:: check-local
7
8#----------------------------------------------------------------------
9# Make all of the test programs
10#----------------------------------------------------------------------
11programs:
12	find . -type d -depth 1 | xargs -J % find % \
13		-name Makefile \
14		-exec echo \; \
15		-exec echo make -f '{}' \; \
16		-execdir make \;
17
18#----------------------------------------------------------------------
19# Clean all of the test programs
20#----------------------------------------------------------------------
21clean::
22	find . -type d -depth 1 | xargs -J % find % \
23		-name Makefile \
24		-exec echo \; \
25		-exec echo make -f '{}' clean \; \
26		-execdir make clean \;
27
28#----------------------------------------------------------------------
29# Run the tests
30#----------------------------------------------------------------------
31check-local::
32	rm -rf lldb-test-traces
33	python $(PROJ_SRC_DIR)/dosep.ty -o "--executable $(ToolDir)/lldb -q -s lldb-test-traces -u CXXFLAGS -u CFLAGS -C $(subst ccache,,$(CC))"
34