]> git.saurik.com Git - apple/xnu.git/blob - tools/lldbmacros/Makefile
xnu-2782.40.9.tar.gz
[apple/xnu.git] / tools / lldbmacros / Makefile
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
5
6
7 include $(MakeInc_cmd)
8 include $(MakeInc_def)
9
10 .PHONY: lldbmacros_install
11
12 do_config_all:: lldbmacros_install
13
14 LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
15 LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
16 LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
17
18 LLDBMACROS_PYTHON_FILES = \
19 core/standard.py \
20 core/cvalue.py \
21 core/__init__.py \
22 core/configuration.py \
23 core/caching.py \
24 core/lazytarget.py \
25 core/kernelcore.py \
26 core/operating_system.py \
27 core/xnu_lldb_init.py \
28 plugins/__init__.py \
29 plugins/zprint_perf_log.py \
30 atm.py \
31 bank.py \
32 xnu.py \
33 xnudefines.py \
34 mbufdefines.py \
35 netdefines.py \
36 routedefines.py \
37 ipc.py \
38 ipcimportancedetail.py \
39 scheduler.py \
40 structanalyze.py \
41 pmap.py \
42 memory.py \
43 mbufs.py \
44 net.py \
45 ioreg.py \
46 utils.py \
47 kdp.py \
48 process.py \
49 userspace.py \
50 pci.py \
51 misc.py \
52 apic.py
53
54 ifneq ($(PLATFORM),MacOSX)
55 LLDBMACROS_PYTHON_FILES+= \
56 plugins/iosspeedtracer.py \
57 plugins/iosspeedtracer.sh
58 endif
59
60 INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
61
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)
67
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) $< $@
72
73 lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
74
75 include $(MakeInc_rule)
76 include $(MakeInc_dir)