summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/Makefile')
-rw-r--r--lldb/source/Interpreter/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/Makefile b/lldb/source/Interpreter/Makefile
new file mode 100644
index 00000000000..f6d7afe39ba
--- /dev/null
+++ b/lldb/source/Interpreter/Makefile
@@ -0,0 +1,24 @@
+##===- source/Interpreter/Makefile ------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LLDB_LEVEL := ../..
+LIBRARYNAME := lldbInterpreter
+BUILD_ARCHIVE = 1
+
+BUILT_SOURCES := LLDBWrapPython.cpp
+
+include $(LLDB_LEVEL)/Makefile
+
+LLDB_PYTHON_SWIG_CPP = $(PROJ_OBJ_ROOT)/$(BuildMode)/LLDBWrapPython.cpp
+LLDB_BIN_DIR := $(PROJ_OBJ_ROOT)/$(BuildMode)/bin
+PYTHON_DIR := $(LLDB_BIN_DIR)
+
+LLDBWrapPython.cpp:
+ swig -c++ -shadow -python -I"$(LLDB_LEVEL)/include" -I./. -outdir "$(LLDB_BIN_DIR)" -o LLDBWrapPython.cpp "$(LLDB_LEVEL)/scripts/lldb.swig"
+ cp embedded_interpreter.py "$(PYTHON_DIR)"
OpenPOWER on IntegriCloud