]>
Commit | Line | Data |
---|---|---|
39236c6e A |
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 | ||
39236c6e A |
6 | include $(MakeInc_cmd) |
7 | include $(MakeInc_def) | |
8 | ||
9 | .PHONY: lldbmacros_install | |
10 | ||
11 | do_config_all:: lldbmacros_install | |
12 | ||
13 | LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/ | |
fe8ab488 A |
14 | LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR) |
15 | LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/ | |
3e170ce0 | 16 | LLDBMACROS_USERDEBUG_FILES= |
39236c6e | 17 | |
39037602 A |
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 | |
3e170ce0 A |
25 | |
26 | LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \ | |
39236c6e A |
27 | core/standard.py \ |
28 | core/cvalue.py \ | |
29 | core/__init__.py \ | |
30 | core/configuration.py \ | |
31 | core/caching.py \ | |
32 | core/lazytarget.py \ | |
33 | core/kernelcore.py \ | |
34 | core/operating_system.py \ | |
35 | core/xnu_lldb_init.py \ | |
36 | plugins/__init__.py \ | |
37 | plugins/zprint_perf_log.py \ | |
fe8ab488 A |
38 | atm.py \ |
39 | bank.py \ | |
5ba3f43e | 40 | kevent.py \ |
39236c6e A |
41 | xnu.py \ |
42 | xnudefines.py \ | |
39037602 A |
43 | ktrace.py \ |
44 | macho.py \ | |
39236c6e A |
45 | mbufdefines.py \ |
46 | netdefines.py \ | |
5ba3f43e | 47 | ntstat.py \ |
39236c6e A |
48 | routedefines.py \ |
49 | ipc.py \ | |
fe8ab488 | 50 | ipcimportancedetail.py \ |
3e170ce0 | 51 | kcdata.py \ |
39236c6e | 52 | scheduler.py \ |
fe8ab488 | 53 | structanalyze.py \ |
39236c6e A |
54 | pmap.py \ |
55 | memory.py \ | |
56 | mbufs.py \ | |
57 | net.py \ | |
58 | ioreg.py \ | |
59 | utils.py \ | |
60 | kdp.py \ | |
61 | process.py \ | |
62 | userspace.py \ | |
63 | pci.py \ | |
64 | misc.py \ | |
3e170ce0 | 65 | apic.py \ |
5ba3f43e | 66 | kasan.py \ |
3e170ce0 A |
67 | kauth.py \ |
68 | usertaskgdbserver.py \ | |
39037602 A |
69 | waitq.py \ |
70 | pgtrace.py \ | |
a39ff7e2 A |
71 | xnutriage.py \ |
72 | zonetriage.py | |
39236c6e | 73 | |
fe8ab488 A |
74 | ifneq ($(PLATFORM),MacOSX) |
75 | LLDBMACROS_PYTHON_FILES+= \ | |
76 | plugins/iosspeedtracer.py \ | |
77 | plugins/iosspeedtracer.sh | |
78 | endif | |
79 | ||
5ba3f43e | 80 | |
39236c6e A |
81 | INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES)) |
82 | ||
39037602 | 83 | $(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)% |
39236c6e A |
84 | $(_v)$(MKDIR) $(dir $@) |
85 | $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout) | |
86 | $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@ | |
87 | $(_v)$(TOUCH) $(LLDBMACROS_DEST) | |
88 | ||
fe8ab488 | 89 | $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py |
39236c6e A |
90 | $(_v)$(MKDIR) $(dir $@) |
91 | $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout) | |
92 | $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@ | |
93 | ||
fe8ab488 | 94 | lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) |
39236c6e A |
95 | |
96 | include $(MakeInc_rule) | |
97 | include $(MakeInc_dir) |