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
10 .PHONY: lldbmacros_install
12 do_config_all:: lldbmacros_install
14 LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
15 LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
16 LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
17 LLDBMACROS_USERDEBUG_FILES=
20 LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
24 core/configuration.py \
28 core/operating_system.py \
29 core/xnu_lldb_init.py \
31 plugins/zprint_perf_log.py \
40 ipcimportancedetail.py \
57 usertaskgdbserver.py \
60 ifneq ($(PLATFORM),MacOSX)
61 LLDBMACROS_PYTHON_FILES+= \
62 plugins/iosspeedtracer.py \
63 plugins/iosspeedtracer.sh
66 INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
68 $(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
69 $(_v)$(MKDIR) $(dir $@)
70 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
71 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
72 $(_v)$(TOUCH) $(LLDBMACROS_DEST)
74 $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
75 $(_v)$(MKDIR) $(dir $@)
76 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
77 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
79 lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
81 include $(MakeInc_rule)
82 include $(MakeInc_dir)