]> git.saurik.com Git - apple/xnu.git/blame - tools/lldbmacros/Makefile
xnu-6153.81.5.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=
d9a64523 17ifeq ($(BUILD_STATIC_LINK),1)
0a7de745 18KERNEL_STATIC_DSYM_LLDBMACROS := $(OBJPATH)/$(KERNEL_FILE_NAME).link/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)/lldbmacros/
d9a64523 19endif
39236c6e 20
39037602
A
21LLDBMACROS_USERDEBUG_FILES:= \
22 usertaskdebugging/__init__.py \
23 usertaskdebugging/gdbserver.py \
24 usertaskdebugging/interface.py \
25 usertaskdebugging/rsprotocol.py \
26 usertaskdebugging/target.py \
27 usertaskdebugging/userprocess.py
3e170ce0
A
28
29LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
39236c6e
A
30 core/standard.py \
31 core/cvalue.py \
32 core/__init__.py \
33 core/configuration.py \
34 core/caching.py \
35 core/lazytarget.py \
36 core/kernelcore.py \
37 core/operating_system.py \
38 core/xnu_lldb_init.py \
39 plugins/__init__.py \
40 plugins/zprint_perf_log.py \
cb323159 41 sysregdoc/AArch64-esr_el1.xml \
fe8ab488
A
42 atm.py \
43 bank.py \
d9a64523 44 turnstile.py \
5ba3f43e 45 kevent.py \
d9a64523 46 workqueue.py \
cb323159 47 ulock.py \
39236c6e
A
48 xnu.py \
49 xnudefines.py \
39037602
A
50 ktrace.py \
51 macho.py \
39236c6e
A
52 mbufdefines.py \
53 netdefines.py \
5ba3f43e 54 ntstat.py \
39236c6e
A
55 routedefines.py \
56 ipc.py \
fe8ab488 57 ipcimportancedetail.py \
3e170ce0 58 kcdata.py \
39236c6e 59 scheduler.py \
fe8ab488 60 structanalyze.py \
39236c6e
A
61 pmap.py \
62 memory.py \
63 mbufs.py \
64 net.py \
d9a64523 65 skywalk.py \
39236c6e
A
66 ioreg.py \
67 utils.py \
68 kdp.py \
69 process.py \
70 userspace.py \
71 pci.py \
72 misc.py \
3e170ce0 73 apic.py \
5ba3f43e 74 kasan.py \
3e170ce0
A
75 kauth.py \
76 usertaskgdbserver.py \
39037602
A
77 waitq.py \
78 pgtrace.py \
a39ff7e2 79 xnutriage.py \
cb323159
A
80 zonetriage.py \
81 sysreg.py
39236c6e 82
fe8ab488
A
83ifneq ($(PLATFORM),MacOSX)
84 LLDBMACROS_PYTHON_FILES+= \
85 plugins/iosspeedtracer.py \
86 plugins/iosspeedtracer.sh
87endif
88
d9a64523
A
89include $(MakeInc_rule)
90include $(MakeInc_dir)
5ba3f43e 91
39236c6e 92INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
d9a64523
A
93$(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,pydir,$(DATA_UNIFDEF),$(LLDBMACROS_DEST)))
94$(eval $(call INSTALLPYTHON_RULE_template,$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbpydir,$(DATA_UNIFDEF),$(LLDBMACROS_BOOTSTRAP_DEST)/))
39236c6e 95
d9a64523
A
96ifeq ($(BUILD_STATIC_LINK),1)
97INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES=$(addprefix $(KERNEL_STATIC_DSYM_LLDBMACROS), $(LLDBMACROS_PYTHON_FILES))
98$(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,sdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS)))
99$(eval $(call INSTALLPYTHON_RULE_template,$(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbsdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS)/../))
100endif
39236c6e 101
0a7de745
A
102ifeq ($(BUILD_STATIC_LINK),1)
103STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS := \
104 $(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES) \
105 $(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME)
106endif
107
108lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) $(STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS)
d9a64523
A
109 $(_v)$(MKDIR) $(LLDBMACROS_DEST)/builtinkexts
110ifeq ($(BUILD_STATIC_LINK),1)
111 $(_v)$(MKDIR) $(KERNEL_STATIC_DSYM_LLDBMACROS)/builtinkexts
112endif