]> git.saurik.com Git - apple/xnu.git/blame_incremental - tools/lldbmacros/Makefile
xnu-4570.71.2.tar.gz
[apple/xnu.git] / tools / lldbmacros / Makefile
... / ...
CommitLineData
1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
9.PHONY: lldbmacros_install
10
11do_config_all:: lldbmacros_install
12
13LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
14LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
15LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
16LLDBMACROS_USERDEBUG_FILES=
17
18LLDBMACROS_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
25
26LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
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 \
38 atm.py \
39 bank.py \
40 kevent.py \
41 xnu.py \
42 xnudefines.py \
43 ktrace.py \
44 macho.py \
45 mbufdefines.py \
46 netdefines.py \
47 ntstat.py \
48 routedefines.py \
49 ipc.py \
50 ipcimportancedetail.py \
51 kcdata.py \
52 scheduler.py \
53 structanalyze.py \
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 \
65 apic.py \
66 kasan.py \
67 kauth.py \
68 usertaskgdbserver.py \
69 waitq.py \
70 pgtrace.py \
71 xnutriage.py \
72 zonetriage.py
73
74ifneq ($(PLATFORM),MacOSX)
75 LLDBMACROS_PYTHON_FILES+= \
76 plugins/iosspeedtracer.py \
77 plugins/iosspeedtracer.sh
78endif
79
80
81INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
82
83$(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
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
89$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
90 $(_v)$(MKDIR) $(dir $@)
91 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
92 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
93
94lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
95
96include $(MakeInc_rule)
97include $(MakeInc_dir)