]> git.saurik.com Git - apple/xnu.git/blob - tools/lldbmacros/Makefile
xnu-3247.1.106.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 LLDBMACROS_USERDEBUG_FILES=
18
19
20 LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
21 core/standard.py \
22 core/cvalue.py \
23 core/__init__.py \
24 core/configuration.py \
25 core/caching.py \
26 core/lazytarget.py \
27 core/kernelcore.py \
28 core/operating_system.py \
29 core/xnu_lldb_init.py \
30 plugins/__init__.py \
31 plugins/zprint_perf_log.py \
32 atm.py \
33 bank.py \
34 xnu.py \
35 xnudefines.py \
36 mbufdefines.py \
37 netdefines.py \
38 routedefines.py \
39 ipc.py \
40 ipcimportancedetail.py \
41 kcdata.py \
42 scheduler.py \
43 structanalyze.py \
44 pmap.py \
45 memory.py \
46 mbufs.py \
47 net.py \
48 ioreg.py \
49 utils.py \
50 kdp.py \
51 process.py \
52 userspace.py \
53 pci.py \
54 misc.py \
55 apic.py \
56 kauth.py \
57 usertaskgdbserver.py \
58 waitq.py
59
60 ifneq ($(PLATFORM),MacOSX)
61 LLDBMACROS_PYTHON_FILES+= \
62 plugins/iosspeedtracer.py \
63 plugins/iosspeedtracer.sh
64 endif
65
66 INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
67
68 $(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
69 $(_v)$(MKDIR) $(dir $@)
70 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
71 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
72 $(_v)$(TOUCH) $(LLDBMACROS_DEST)
73
74 $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
75 $(_v)$(MKDIR) $(dir $@)
76 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
77 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
78
79 lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
80
81 include $(MakeInc_rule)
82 include $(MakeInc_dir)