1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
9 .PHONY: lldbmacros_install
11 do_config_all:: lldbmacros_install
13 LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
14 LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
15 LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
16 LLDBMACROS_USERDEBUG_FILES=
18 LLDBMACROS_USERDEBUG_FILES:= \
19 usertaskdebugging/__init__.py \
20 usertaskdebugging/gdbserver.py \
21 usertaskdebugging/interface.py \
22 usertaskdebugging/rsprotocol.py \
23 usertaskdebugging/target.py \
24 usertaskdebugging/userprocess.py
26 LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
30 core/configuration.py \
34 core/operating_system.py \
35 core/xnu_lldb_init.py \
37 plugins/zprint_perf_log.py \
48 ipcimportancedetail.py \
65 usertaskgdbserver.py \
70 ifneq ($(PLATFORM),MacOSX)
71 LLDBMACROS_PYTHON_FILES+= \
72 plugins/iosspeedtracer.py \
73 plugins/iosspeedtracer.sh
76 INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
78 $(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
79 $(_v)$(MKDIR) $(dir $@)
80 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
81 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
82 $(_v)$(TOUCH) $(LLDBMACROS_DEST)
84 $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
85 $(_v)$(MKDIR) $(dir $@)
86 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
87 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
89 lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
91 include $(MakeInc_rule)
92 include $(MakeInc_dir)