diff options
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/Makefile | 35 | ||||
-rw-r--r-- | clang/tools/arcmt-test/Makefile | 26 | ||||
-rw-r--r-- | clang/tools/c-arcmt-test/Makefile | 50 | ||||
-rw-r--r-- | clang/tools/c-index-test/Makefile | 58 | ||||
-rw-r--r-- | clang/tools/clang-check/Makefile | 28 | ||||
-rw-r--r-- | clang/tools/clang-format/Makefile | 22 | ||||
-rw-r--r-- | clang/tools/diagtool/Makefile | 26 | ||||
-rw-r--r-- | clang/tools/driver/Makefile | 75 | ||||
-rw-r--r-- | clang/tools/libclang/Makefile | 64 | ||||
-rw-r--r-- | clang/tools/scan-build-py/tests/functional/src/build/Makefile | 42 | ||||
-rw-r--r-- | clang/tools/scan-build/Makefile | 53 | ||||
-rw-r--r-- | clang/tools/scan-view/Makefile | 37 |
12 files changed, 0 insertions, 516 deletions
diff --git a/clang/tools/Makefile b/clang/tools/Makefile deleted file mode 100644 index 5c362bfc9aa..00000000000 --- a/clang/tools/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -##===- tools/Makefile --------------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -CLANG_LEVEL := .. - -include $(CLANG_LEVEL)/../../Makefile.config - -DIRS := -PARALLEL_DIRS := clang-format driver diagtool - -ifeq ($(ENABLE_CLANG_STATIC_ANALYZER), 1) - PARALLEL_DIRS += clang-check scan-build scan-view -endif - -ifeq ($(ENABLE_CLANG_ARCMT), 1) - DIRS += libclang c-index-test c-arcmt-test - PARALLEL_DIRS += arcmt-test -endif - -# Recurse into the extra repository of tools if present. -OPTIONAL_PARALLEL_DIRS := extra - -ifeq ($(BUILD_CLANG_ONLY),YES) - DIRS := libclang c-index-test - PARALLEL_DIRS := driver - OPTIONAL_PARALLEL_DIRS := -endif - -include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/arcmt-test/Makefile b/clang/tools/arcmt-test/Makefile deleted file mode 100644 index d9d44bb05bd..00000000000 --- a/clang/tools/arcmt-test/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -##===- tools/arcmt-test/Makefile ---------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## -CLANG_LEVEL := ../.. - -TOOLNAME = arcmt-test - -# No plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -# Don't install this. It is used for tests. -NO_INSTALL = 1 - -include $(CLANG_LEVEL)/../../Makefile.config -LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option -USEDLIBS = clangARCMigrate.a clangRewrite.a \ - clangFrontend.a clangDriver.a clangSerialization.a clangParse.a \ - clangSema.a clangEdit.a clangAnalysis.a clangAST.a clangLex.a \ - clangBasic.a - -include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/c-arcmt-test/Makefile b/clang/tools/c-arcmt-test/Makefile deleted file mode 100644 index 03e0c9e58c4..00000000000 --- a/clang/tools/c-arcmt-test/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -##===- tools/c-arcmt-test/Makefile -------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## -CLANG_LEVEL := ../.. - -TOOLNAME = c-arcmt-test - -# No plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -# Don't install this. It is used for tests. -NO_INSTALL = 1 - -# Include this here so we can get the configuration of the targets that have -# been configured for construction. We have to do this early so we can set up -# LINK_COMPONENTS before including Makefile.rules -include $(CLANG_LEVEL)/../../Makefile.config - -LINK_COMPONENTS := $(TARGETS_TO_BUILD) \ - AsmParser \ - BitReader \ - BitWriter \ - IPO \ - MC \ - ObjCARCOpts \ - Option \ - Support - -# Note that 'USEDLIBS' must include all of the core clang libraries -# when -static is given to linker on cygming. -USEDLIBS = clang.a \ - clangCodeGen.a \ - clangARCMigrate.a \ - clangIndex.a \ - clangFormat.a \ - clangTooling.a \ - clangToolingCore.a \ - clangRewriteFrontend.a \ - clangRewrite.a \ - clangFrontend.a clangDriver.a \ - clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \ - clangSerialization.a clangParse.a clangSema.a \ - clangAnalysis.a clangEdit.a clangAST.a clangLex.a clangBasic.a - -include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/c-index-test/Makefile b/clang/tools/c-index-test/Makefile deleted file mode 100644 index b757b477958..00000000000 --- a/clang/tools/c-index-test/Makefile +++ /dev/null @@ -1,58 +0,0 @@ -##===- tools/index-test/Makefile ---------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## -CLANG_LEVEL := ../.. - -TOOLNAME = c-index-test - -# If a separate install prefix was specified for internal tools, use it -# when installing c-index-test. -INTERNAL_TOOL = 1 - -# No plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -# Include this here so we can get the configuration of the targets that have -# been configured for construction. We have to do this early so we can set up -# LINK_COMPONENTS before including Makefile.rules -include $(CLANG_LEVEL)/../../Makefile.config - -LINK_COMPONENTS := $(TARGETS_TO_BUILD) \ - AsmParser \ - BitReader \ - BitWriter \ - IPO \ - MC \ - ObjCARCOpts \ - Option \ - Support - -# Note that 'USEDLIBS' must include all of the core clang libraries -# when -static is given to linker on cygming. -USEDLIBS = clang.a \ - clangCodeGen.a \ - clangIndex.a clangFormat.a clangRewrite.a \ - clangFrontend.a clangDriver.a \ - clangTooling.a \ - clangToolingCore.a \ - clangSerialization.a clangParse.a clangSema.a \ - clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ - clangBasic.a - -include $(CLANG_LEVEL)/Makefile - -LIBS += $(LIBXML2_LIBS) - -# Headers in $(LIBXML2_INC) should not be checked with clang's -Wdocumentation. -# Use -isystem instead of -I then. -# FIXME: Could autoconf detect clang or availability of -isystem? -ifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),) -CPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC)) -else -CPPFLAGS += $(LIBXML2_INC) -endif diff --git a/clang/tools/clang-check/Makefile b/clang/tools/clang-check/Makefile deleted file mode 100644 index da010ab1f32..00000000000 --- a/clang/tools/clang-check/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -##===- tools/clang-check/Makefile --------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -CLANG_LEVEL := ../.. - -TOOLNAME = clang-check - -# No plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -include $(CLANG_LEVEL)/../../Makefile.config -LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader ipo objcarcopts \ - instrumentation bitwriter support mc option -USEDLIBS = clangFrontend.a clangCodeGen.a clangIndex.a \ - clangSerialization.a clangDriver.a \ - clangTooling.a clangParse.a clangSema.a \ - clangStaticAnalyzerFrontend.a clangStaticAnalyzerCheckers.a \ - clangStaticAnalyzerCore.a clangAnalysis.a clangRewriteFrontend.a \ - clangRewrite.a clangEdit.a clangAST.a clangLex.a \ - clangBasic.a - -include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/clang-format/Makefile b/clang/tools/clang-format/Makefile deleted file mode 100644 index 76e31cc1a07..00000000000 --- a/clang/tools/clang-format/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -##===- clang-format/Makefile -------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -CLANG_LEVEL := ../.. - -TOOLNAME = clang-format - -# No plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -include $(CLANG_LEVEL)/../../Makefile.config -LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option -USEDLIBS = clangFormat.a clangToolingCore.a clangDriver.a clangRewrite.a \ - clangLex.a clangBasic.a - -include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/diagtool/Makefile b/clang/tools/diagtool/Makefile deleted file mode 100644 index d49e976e642..00000000000 --- a/clang/tools/diagtool/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -##===- tools/diagtool/Makefile -----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## -CLANG_LEVEL := ../.. - -TOOLNAME = diagtool - -# No plugins, optimize startup time. -TOOL_NO_EXPORTS := 1 - -# Don't install this. -NO_INSTALL = 1 - -include $(CLANG_LEVEL)/../../Makefile.config -LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option -USEDLIBS = clangFrontend.a clangDriver.a clangSerialization.a clangParse.a \ - clangSema.a clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ - clangBasic.a - -include $(CLANG_LEVEL)/Makefile - diff --git a/clang/tools/driver/Makefile b/clang/tools/driver/Makefile deleted file mode 100644 index 347702eb961..00000000000 --- a/clang/tools/driver/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -##===- tools/driver/Makefile -------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## -CLANG_LEVEL := ../.. - -TOOLNAME = clang -TOOLALIAS = clang++ - -ifdef CLANG_ORDER_FILE -TOOL_ORDER_FILE := $(CLANG_ORDER_FILE) -endif - -# Include tool version information on OS X. -TOOL_INFO_PLIST := Info.plist - -# Include this here so we can get the configuration of the targets that have -# been configured for construction. We have to do this early so we can set up -# LINK_COMPONENTS before including Makefile.rules -include $(CLANG_LEVEL)/../../Makefile.config - -# Have the option of not supporting plugins. This is important for startup -# performance. -ifeq ($(CLANG_PLUGIN_SUPPORT), 1) -NO_DEAD_STRIP := 1 -else -TOOL_NO_EXPORTS := 1 -endif - -LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \ - instrumentation ipo irreader linker objcarcopts option \ - profiledata selectiondag -USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ - clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \ - clangRewriteFrontend.a clangRewrite.a - -ifeq ($(ENABLE_CLANG_STATIC_ANALYZER),1) -USEDLIBS += clangStaticAnalyzerFrontend.a clangStaticAnalyzerCheckers.a \ - clangStaticAnalyzerCore.a -endif - -ifeq ($(ENABLE_CLANG_ARCMT),1) -USEDLIBS += clangARCMigrate.a -endif - -USEDLIBS += clangAnalysis.a clangEdit.a clangAST.a clangLex.a clangBasic.a - -include $(CLANG_LEVEL)/Makefile - -# Set the tool version information values. -ifeq ($(HOST_OS),Darwin) -ifdef CLANG_VENDOR -TOOL_INFO_NAME := $(CLANG_VENDOR) clang -else -TOOL_INFO_NAME := clang -endif - -ifdef CLANG_VENDOR_UTI -TOOL_INFO_UTI := $(CLANG_VENDOR_UTI) -else -TOOL_INFO_UTI := org.llvm.clang -endif - -TOOL_INFO_VERSION := $(word 3,$(shell grep "CLANG_VERSION " \ - $(PROJ_OBJ_DIR)/$(CLANG_LEVEL)/include/clang/Basic/Version.inc)) -ifdef LLVM_SUBMIT_VERSION -TOOL_INFO_BUILD_VERSION := $(LLVM_SUBMIT_VERSION).$(LLVM_SUBMIT_SUBVERSION) -else -TOOL_INFO_BUILD_VERSION := -endif -endif diff --git a/clang/tools/libclang/Makefile b/clang/tools/libclang/Makefile deleted file mode 100644 index 84914e0f460..00000000000 --- a/clang/tools/libclang/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -##===- tools/libclang/Makefile -----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -CLANG_LEVEL := ../.. -LIBRARYNAME = clang - -EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libclang.exports - -LINK_LIBS_IN_SHARED = 1 -SHARED_LIBRARY = 1 - -include $(CLANG_LEVEL)/../../Makefile.config -LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter core \ - instrumentation ipo mc mcparser objcarcopts option support \ - object -USEDLIBS = clangIndex.a clangARCMigrate.a \ - clangRewriteFrontend.a \ - clangFormat.a \ - clangTooling.a clangToolingCore.a \ - clangFrontend.a clangCodeGen.a clangDriver.a \ - clangSerialization.a \ - clangParse.a clangSema.a \ - clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \ - clangRewrite.a \ - clangAnalysis.a clangEdit.a \ - clangASTMatchers.a \ - clangAST.a clangLex.a clangBasic.a - -include $(CLANG_LEVEL)/Makefile - -# Add soname to the library. -ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD)) - LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT) -endif - -ifeq ($(ENABLE_CLANG_ARCMT),1) - CXX.Flags += -DCLANG_ENABLE_ARCMT -endif - -##===----------------------------------------------------------------------===## -# FIXME: This is copied from the 'lto' makefile. Should we share this? -##===----------------------------------------------------------------------===## - -ifeq ($(HOST_OS),Darwin) - LLVMLibsOptions += -Wl,-compatibility_version,1 - - # Set dylib internal version number to submission number. - ifdef LLVM_SUBMIT_VERSION - LLVMLibsOptions += -Wl,-current_version \ - -Wl,$(LLVM_SUBMIT_VERSION).$(LLVM_SUBMIT_SUBVERSION) - endif - - # If we're doing an Apple-style build, add the LTO object path. - ifeq ($(RC_XBS),YES) - TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/clang-lto.XXXXXX) - LLVMLibsOptions += -Wl,-object_path_lto -Wl,$(TempFile) - endif -endif diff --git a/clang/tools/scan-build-py/tests/functional/src/build/Makefile b/clang/tools/scan-build-py/tests/functional/src/build/Makefile deleted file mode 100644 index a8c0aafd0e5..00000000000 --- a/clang/tools/scan-build-py/tests/functional/src/build/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -SRCDIR := .. -OBJDIR := . - -CFLAGS = -Wall -DDEBUG -Dvariable="value with space" -I $(SRCDIR)/include -LDFLAGS = -PROGRAM = $(OBJDIR)/prg - -$(OBJDIR)/main.o: $(SRCDIR)/main.c - $(CC) $(CFLAGS) -c -o $@ $(SRCDIR)/main.c - -$(OBJDIR)/clean-one.o: $(SRCDIR)/clean-one.c - $(CC) $(CFLAGS) -c -o $@ $(SRCDIR)/clean-one.c - -$(OBJDIR)/clean-two.o: $(SRCDIR)/clean-two.c - $(CC) $(CFLAGS) -c -o $@ $(SRCDIR)/clean-two.c - -$(OBJDIR)/emit-one.o: $(SRCDIR)/emit-one.c - $(CC) $(CFLAGS) -c -o $@ $(SRCDIR)/emit-one.c - -$(OBJDIR)/emit-two.o: $(SRCDIR)/emit-two.c - $(CC) $(CFLAGS) -c -o $@ $(SRCDIR)/emit-two.c - -$(OBJDIR)/broken-one.o: $(SRCDIR)/broken-one.c - $(CC) $(CFLAGS) -c -o $@ $(SRCDIR)/broken-one.c - -$(OBJDIR)/broken-two.o: $(SRCDIR)/broken-two.c - $(CC) $(CFLAGS) -c -o $@ $(SRCDIR)/broken-two.c - -$(PROGRAM): $(OBJDIR)/main.o $(OBJDIR)/clean-one.o $(OBJDIR)/clean-two.o $(OBJDIR)/emit-one.o $(OBJDIR)/emit-two.o - $(CC) $(LDFLAGS) -o $@ $(OBJDIR)/main.o $(OBJDIR)/clean-one.o $(OBJDIR)/clean-two.o $(OBJDIR)/emit-one.o $(OBJDIR)/emit-two.o - -build_regular: $(PROGRAM) - -build_clean: $(OBJDIR)/main.o $(OBJDIR)/clean-one.o $(OBJDIR)/clean-two.o - -build_broken: $(OBJDIR)/main.o $(OBJDIR)/broken-one.o $(OBJDIR)/broken-two.o - -build_all_in_one: $(SRCDIR)/main.c $(SRCDIR)/clean-one.c $(SRCDIR)/clean-two.c $(SRCDIR)/emit-one.c $(SRCDIR)/emit-two.c - $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROGRAM) $(SRCDIR)/main.c $(SRCDIR)/clean-one.c $(SRCDIR)/clean-two.c $(SRCDIR)/emit-one.c $(SRCDIR)/emit-two.c - -clean: - rm -f $(PROGRAM) $(OBJDIR)/*.o diff --git a/clang/tools/scan-build/Makefile b/clang/tools/scan-build/Makefile deleted file mode 100644 index 23aa19882a5..00000000000 --- a/clang/tools/scan-build/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -##===- tools/scan-build/Makefile ---------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -CLANG_LEVEL := ../.. - -include $(CLANG_LEVEL)/../../Makefile.config -include $(CLANG_LEVEL)/Makefile - -ifeq ($(HOST_OS),MingW) - Suffix := .bat -endif - -CLANG_INSTALL_SCANBUILD ?= 1 - -ifeq ($(CLANG_INSTALL_SCANBUILD), 1) - InstallTargets := $(ToolDir)/scan-build$(Suffix) \ - $(LibexecDir)/c++-analyzer$(Suffix) \ - $(LibexecDir)/ccc-analyzer$(Suffix) \ - $(ShareDir)/scan-build/scanview.css \ - $(ShareDir)/scan-build/sorttable.js \ - $(ShareDir)/man/man1/scan-build.1 - - ifeq ($(HOST_OS),Darwin) - InstallTargets := $(InstallTargets) $(ToolDir)/set-xcode-analyzer - endif -endif - -all:: $(InstallTargets) - -$(ToolDir)/%: bin/% Makefile $(ToolDir)/.dir - $(Echo) "Copying $(notdir $<) to the 'bin' directory..." - $(Verb)cp $< $@ - $(Verb)chmod +x $@ - -$(LibexecDir)/%: libexec/% Makefile $(LibexecDir)/.dir - $(Echo) "Copying $(notdir $<) to the 'libexec' directory..." - $(Verb)cp $< $@ - $(Verb)chmod +x $@ - -$(ShareDir)/man/man1/%: man/% Makefile $(ShareDir)/man/man1/.dir - $(Echo) "Copying $(notdir $<) to the 'man' directory..." - $(Verb)cp $< $@ - -$(ShareDir)/scan-build/%: share/scan-build/% Makefile $(ShareDir)/scan-build/.dir - $(Echo) "Copying $(notdir $<) to the 'share' directory..." - $(Verb)cp $< $@ - diff --git a/clang/tools/scan-view/Makefile b/clang/tools/scan-view/Makefile deleted file mode 100644 index 37e4404d6f8..00000000000 --- a/clang/tools/scan-view/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -##===- tools/scan-view/Makefile ----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -CLANG_LEVEL := ../.. - -include $(CLANG_LEVEL)/../../Makefile.config -include $(CLANG_LEVEL)/Makefile - -CLANG_INSTALL_SCANVIEW ?= 1 - -ifeq ($(CLANG_INSTALL_SCANVIEW), 1) - InstallTargets := $(ToolDir)/scan-view \ - $(ShareDir)/scan-view/Reporter.py \ - $(ShareDir)/scan-view/ScanView.py \ - $(ShareDir)/scan-view/startfile.py \ - $(ShareDir)/scan-view/FileRadar.scpt \ - $(ShareDir)/scan-view/GetRadarVersion.scpt \ - $(ShareDir)/scan-view/bugcatcher.ico -endif - -all:: $(InstallTargets) - -$(ToolDir)/%: bin/% Makefile $(ToolDir)/.dir - $(Echo) "Copying $(notdir $<) to the 'bin' directory..." - $(Verb)cp $< $@ - $(Verb)chmod +x $@ - -$(ShareDir)/scan-view/%: share/% Makefile $(ShareDir)/scan-view/.dir - $(Echo) "Copying $(notdir $<) to the 'share' directory..." - $(Verb)cp $< $@ - |