blob: 4d08ef39d4db9b9f9a22abcc5172b29466e309b6 [file] [log] [blame]
Vince Harrone72b71f2015-03-13 22:33:42 +00001LLDB_LEVEL := ..
2include $(LLDB_LEVEL)/Makefile
Peter Collingbourneb0589f12011-06-20 19:06:51 +00003
Vince Harrone72b71f2015-03-13 22:33:42 +00004.PHONY: programs
Peter Collingbourneb0589f12011-06-20 19:06:51 +00005
Vince Harrone72b71f2015-03-13 22:33:42 +00006all:: check-local
Chris Lattner30fdc8d2010-06-08 16:52:24 +00007
Vince Harrone72b71f2015-03-13 22:33:42 +00008#----------------------------------------------------------------------
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 \;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000017
Vince Harrone72b71f2015-03-13 22:33:42 +000018#----------------------------------------------------------------------
19# Clean all of the test programs
20#----------------------------------------------------------------------
Peter Collingbourneb0589f12011-06-20 19:06:51 +000021clean::
Vince Harrone72b71f2015-03-13 22:33:42 +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 Collingbourneb0589f12011-06-20 19:06:51 +000027
Vince Harrone72b71f2015-03-13 22:33:42 +000028#----------------------------------------------------------------------
29# Run the tests
30#----------------------------------------------------------------------
31check-local::
32 rm -rf lldb-test-traces
Todd Fialafed95662015-09-03 18:58:44 +000033 python $(PROJ_SRC_DIR)/dotest.py --executable $(ToolDir)/lldb -q -s lldb-test-traces -u CXXFLAGS -u CFLAGS -C $(subst ccache,,$(CC))