2010-07-10 04:39:50 +08:00
|
|
|
##===- 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
|
2011-06-21 03:07:07 +08:00
|
|
|
-include $(PROJ_OBJ_DIR)/LLDBWrapPython.cpp.d
|
2010-07-10 04:39:50 +08:00
|
|
|
|
2012-09-15 01:09:15 +08:00
|
|
|
# edit-swig-python-wrapper-file.py needs $(SRCROOT)
|
|
|
|
export SRCROOT := $(PROJ_SRC_DIR)/$(LLDB_LEVEL)
|
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
PYTHON_DIR := $(PROJ_OBJ_ROOT)/$(BuildMode)
|
2010-12-16 10:03:06 +08:00
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
LLDBWrapPython.cpp lldb.py: $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/modify-python-lldb.py \
|
|
|
|
$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/edit-swig-python-wrapper-file.py \
|
|
|
|
$(wildcard $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/interface/*.i)
|
2011-05-20 12:09:55 +08:00
|
|
|
$(Echo) Generating LLDBWrapPython.cpp
|
2012-11-02 02:55:16 +08:00
|
|
|
$(Verb) "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/build-swig-wrapper-classes.sh" "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)" "$(PROJ_OBJ_DIR)" "$(PROJ_OBJ_DIR)" "$(PYTHON_DIR)" -m $(if $(DISABLE_AUTO_DEPENDENCIES),,-M)
|
|
|
|
$(Verb) "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/finish-swig-wrapper-classes.sh" "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)" "$(PROJ_OBJ_DIR)" "$(PROJ_OBJ_DIR)" "$(PYTHON_DIR)" -m
|
2011-05-20 12:09:55 +08:00
|
|
|
|
2012-11-02 02:55:16 +08:00
|
|
|
install-local:: lldb.py
|
2011-05-20 12:09:55 +08:00
|
|
|
$(Echo) Installing $(BuildMode) LLDB python modules
|
2012-11-02 02:55:16 +08:00
|
|
|
$(Verb) "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/finish-swig-wrapper-classes.sh" "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)" "$(PROJ_OBJ_DIR)" "$(PROJ_OBJ_DIR)" "" -m
|
2011-06-21 03:07:07 +08:00
|
|
|
|
|
|
|
clean-local::
|
2012-11-02 02:55:16 +08:00
|
|
|
$(Verb) $(RM) -f LLDBWrapPython.cpp lldb.py
|