summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/clang/Makefile')
-rw-r--r--contrib/llvm/tools/clang/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/Makefile b/contrib/llvm/tools/clang/Makefile
new file mode 100644
index 0000000..39cf9c6
--- /dev/null
+++ b/contrib/llvm/tools/clang/Makefile
@@ -0,0 +1,39 @@
+LEVEL = ../..
+DIRS := include lib tools docs
+
+PARALLEL_DIRS :=
+
+ifeq ($(BUILD_EXAMPLES),1)
+ PARALLEL_DIRS += examples
+endif
+
+include $(LEVEL)/Makefile.common
+
+ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
+$(RecursiveTargets)::
+ $(Verb) if [ ! -f test/Makefile ]; then \
+ $(MKDIR) test; \
+ $(CP) $(PROJ_SRC_DIR)/test/Makefile test/Makefile; \
+ fi
+endif
+
+test::
+ @ $(MAKE) -C test
+
+report::
+ @ $(MAKE) -C test report
+
+clean::
+ @ $(MAKE) -C test clean
+
+tags::
+ $(Verb) etags `find . -type f -name '*.h' -or -name '*.cpp' | \
+ grep -v /lib/Headers | grep -v /test/`
+
+cscope.files:
+ find tools lib include -name '*.cpp' \
+ -or -name '*.def' \
+ -or -name '*.td' \
+ -or -name '*.h' > cscope.files
+
+.PHONY: test report clean cscope.files
OpenPOWER on IntegriCloud