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
|
2014-03-21 20:53:28 +08:00
|
|
|
include $(LLDB_LEVEL)/../../Makefile.config
|
2010-07-10 04:39:50 +08:00
|
|
|
|
2014-03-21 20:53:28 +08:00
|
|
|
ifneq ($(HOST_OS),MingW)
|
2010-07-10 04:39:50 +08:00
|
|
|
BUILT_SOURCES := LLDBWrapPython.cpp
|
2013-08-23 20:44:05 +08:00
|
|
|
endif
|
2010-07-10 04:39:50 +08:00
|
|
|
|
|
|
|
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-12-08 06:21:08 +08:00
|
|
|
# Drop -Wfour-char-constants, which we are not currently clean with.
|
|
|
|
EXTRA_OPTIONS += -Wno-four-char-constants
|
|
|
|
|
2014-08-16 06:23:40 +08:00
|
|
|
# Drop -Wself-assign, -Wmissing-field-initializers, -Wsometimes-uninitialized,
|
|
|
|
# -Wcast-qual, and -Wdeprecated-register which we are not clean with due to SWIG
|
|
|
|
# generated cpp source.
|
|
|
|
EXTRA_OPTIONS += -Wno-missing-field-initializers -Wno-self-assign -Wno-sometimes-uninitialized -Wno-cast-qual -Wno-deprecated-register
|
2012-12-08 06:21:08 +08:00
|
|
|
|
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 \
|
|
|
|
$(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
|
2013-12-07 07:16:23 +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)" "$(DESTDIR)$(prefix)" -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
|