summaryrefslogtreecommitdiff
path: root/tools/lld/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lld/Makefile')
-rw-r--r--tools/lld/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/lld/Makefile b/tools/lld/Makefile
new file mode 100644
index 0000000000000..77b0abbef9d0a
--- /dev/null
+++ b/tools/lld/Makefile
@@ -0,0 +1,30 @@
+##===------- lld/Makefile --------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===--------------------------------------------------------------------===##
+
+LLD_LEVEL := ../..
+
+TOOLNAME = lld
+
+# No plugins, optimize startup time.
+TOOL_NO_EXPORTS = 1
+
+#include /Makefile.config
+LEVEL := $(LLD_LEVEL)/../..
+include $(LEVEL)/Makefile.config
+
+LINK_COMPONENTS := $(TARGETS_TO_BUILD)
+USEDLIBS = lldDriver.a lldConfig.a \
+ lldELF.a lldMachO.a lldPECOFF.a lldYAML.a \
+ lldReaderWriter.a lldCore.a lldNative.a \
+ lldHexagonELFTarget.a lldMipsELFTarget.a \
+ lldX86ELFTarget.a lldExampleSubTarget.a lldX86_64ELFTarget.a \
+ lldAArch64ELFTarget.a lldARMELFTarget.a \
+ LLVMOption.a
+
+include $(LLD_LEVEL)/Makefile