summaryrefslogtreecommitdiff
path: root/lld/utils
diff options
context:
space:
mode:
authorIain Sandoe <iain@codesourcery.com>2014-06-04 09:54:07 +0000
committerIain Sandoe <iain@codesourcery.com>2014-06-04 09:54:07 +0000
commitc4d9bedcfcba1e2f80ead1947abfc216305bfd34 (patch)
tree307f097ca8e3d00a92d446dfeb13f65270f69f99 /lld/utils
parentd2851616750afe6dc37835bcf00ddc53b5b9a3b6 (diff)
downloadllvm-c4d9bedcfcba1e2f80ead1947abfc216305bfd34.tar.gz
Initial set of Makefiles
This provides support for the autoconfing & make build style. The format, style and implementation follows that used within the llvm and clang projects. TODO: implement out-of-source documentation builds. llvm-svn: 210177
Diffstat (limited to 'lld/utils')
-rw-r--r--lld/utils/Makefile17
-rw-r--r--lld/utils/linker-script-test/Makefile24
2 files changed, 41 insertions, 0 deletions
diff --git a/lld/utils/Makefile b/lld/utils/Makefile
new file mode 100644
index 000000000000..f81a4b5778cd
--- /dev/null
+++ b/lld/utils/Makefile
@@ -0,0 +1,17 @@
+##===- tools/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 := ..
+LEVEL := $(LLD_LEVEL)/../..
+
+include $(LLD_LEVEL)/../../Makefile.config
+
+DIRS := linker-script-test
+
+include $(LLD_LEVEL)/Makefile
diff --git a/lld/utils/linker-script-test/Makefile b/lld/utils/linker-script-test/Makefile
new file mode 100644
index 000000000000..de40ca54d250
--- /dev/null
+++ b/lld/utils/linker-script-test/Makefile
@@ -0,0 +1,24 @@
+##===-------------- linker-script-test/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 = linker-script-test
+
+# 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 = lldReaderWriter.a LLVMSupport.a
+
+include $(LLD_LEVEL)/Makefile