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/
18 LLDBMACROS_PYTHON_FILES = \
22 core/configuration.py \
26 core/operating_system.py \
27 core/xnu_lldb_init.py \
29 plugins/zprint_perf_log.py \
38 ipcimportancedetail.py \
54 ifneq ($(PLATFORM),MacOSX)
55 LLDBMACROS_PYTHON_FILES+= \
56 plugins/iosspeedtracer.py \
57 plugins/iosspeedtracer.sh
60 INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
62 $(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
63 $(_v)$(MKDIR) $(dir $@)
64 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
65 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
66 $(_v)$(TOUCH) $(LLDBMACROS_DEST)
68 $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
69 $(_v)$(MKDIR) $(dir $@)
70 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
71 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
73 lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
75 include $(MakeInc_rule)
76 include $(MakeInc_dir)