]> git.saurik.com Git - apple/xnu.git/blame - tools/lldbmacros/Makefile
xnu-3789.1.32.tar.gz
[apple/xnu.git] / tools / lldbmacros / Makefile
CommitLineData
39236c6e
A
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
39236c6e
A
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
9.PHONY: lldbmacros_install
10
11do_config_all:: lldbmacros_install
12
13LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
fe8ab488
A
14LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
15LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
3e170ce0 16LLDBMACROS_USERDEBUG_FILES=
39236c6e 17
39037602
A
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
3e170ce0
A
25
26LLDBMACROS_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 \
39236c6e
A
40 xnu.py \
41 xnudefines.py \
39037602
A
42 ktrace.py \
43 macho.py \
39236c6e
A
44 mbufdefines.py \
45 netdefines.py \
46 routedefines.py \
47 ipc.py \
fe8ab488 48 ipcimportancedetail.py \
3e170ce0 49 kcdata.py \
39236c6e 50 scheduler.py \
fe8ab488 51 structanalyze.py \
39236c6e
A
52 pmap.py \
53 memory.py \
54 mbufs.py \
55 net.py \
56 ioreg.py \
57 utils.py \
58 kdp.py \
59 process.py \
60 userspace.py \
61 pci.py \
62 misc.py \
3e170ce0
A
63 apic.py \
64 kauth.py \
65 usertaskgdbserver.py \
39037602
A
66 waitq.py \
67 pgtrace.py \
68 xnutriage.py
39236c6e 69
fe8ab488
A
70ifneq ($(PLATFORM),MacOSX)
71 LLDBMACROS_PYTHON_FILES+= \
72 plugins/iosspeedtracer.py \
73 plugins/iosspeedtracer.sh
74endif
75
39236c6e
A
76INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
77
39037602 78$(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
39236c6e
A
79 $(_v)$(MKDIR) $(dir $@)
80 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
81 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
82 $(_v)$(TOUCH) $(LLDBMACROS_DEST)
83
fe8ab488 84$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
39236c6e
A
85 $(_v)$(MKDIR) $(dir $@)
86 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
87 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
88
fe8ab488 89lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
39236c6e
A
90
91include $(MakeInc_rule)
92include $(MakeInc_dir)