aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-rtdyld/Makefile
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-03-18 17:11:39 +0000
committerJim Grosbach <grosbach@apple.com>2011-03-18 17:11:39 +0000
commit1cb19a4470533be84eb61e8f5fc40aa9d45f86f9 (patch)
tree247a074ed1ba65138f012a7c59a804a00da3c648 /tools/llvm-rtdyld/Makefile
parent5fd5b125ff41088c005b7107e8cf92f281313040 (diff)
downloadexternal_llvm-1cb19a4470533be84eb61e8f5fc40aa9d45f86f9.zip
external_llvm-1cb19a4470533be84eb61e8f5fc40aa9d45f86f9.tar.gz
external_llvm-1cb19a4470533be84eb61e8f5fc40aa9d45f86f9.tar.bz2
MachO file loader and execution utility.
Add a bone-simple utility to load a MachO object into memory, look for a function (main) in it, and run that function directly. This will be used as a test and development platform for MC-JIT work regarding symbol resolution, dynamic lookup, etc.. Code by Daniel Dunbar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-rtdyld/Makefile')
-rw-r--r--tools/llvm-rtdyld/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/llvm-rtdyld/Makefile b/tools/llvm-rtdyld/Makefile
new file mode 100644
index 0000000..a30a85c
--- /dev/null
+++ b/tools/llvm-rtdyld/Makefile
@@ -0,0 +1,23 @@
+##===- tools/llvm-rtdyld/Makefile --------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL = ../..
+TOOLNAME = llvm-rtdyld
+
+# This tool has 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 $(LEVEL)/Makefile.config
+
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) support MC object
+
+include $(LLVM_SRC_ROOT)/Makefile.rules