]> git.saurik.com Git - apple/xnu.git/blame - tools/lldbmacros/Makefile
xnu-2782.40.9.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
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
10.PHONY: lldbmacros_install
11
12do_config_all:: lldbmacros_install
13
14LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
fe8ab488
A
15LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
16LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
39236c6e
A
17
18LLDBMACROS_PYTHON_FILES = \
19 core/standard.py \
20 core/cvalue.py \
21 core/__init__.py \
22 core/configuration.py \
23 core/caching.py \
24 core/lazytarget.py \
25 core/kernelcore.py \
26 core/operating_system.py \
27 core/xnu_lldb_init.py \
28 plugins/__init__.py \
29 plugins/zprint_perf_log.py \
fe8ab488
A
30 atm.py \
31 bank.py \
39236c6e
A
32 xnu.py \
33 xnudefines.py \
34 mbufdefines.py \
35 netdefines.py \
36 routedefines.py \
37 ipc.py \
fe8ab488 38 ipcimportancedetail.py \
39236c6e 39 scheduler.py \
fe8ab488 40 structanalyze.py \
39236c6e
A
41 pmap.py \
42 memory.py \
43 mbufs.py \
44 net.py \
45 ioreg.py \
46 utils.py \
47 kdp.py \
48 process.py \
49 userspace.py \
50 pci.py \
51 misc.py \
52 apic.py
53
fe8ab488
A
54ifneq ($(PLATFORM),MacOSX)
55 LLDBMACROS_PYTHON_FILES+= \
56 plugins/iosspeedtracer.py \
57 plugins/iosspeedtracer.sh
58endif
59
39236c6e
A
60INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
61
62$(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
63 $(_v)$(MKDIR) $(dir $@)
64 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
65 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
66 $(_v)$(TOUCH) $(LLDBMACROS_DEST)
67
fe8ab488 68$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
39236c6e
A
69 $(_v)$(MKDIR) $(dir $@)
70 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
71 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
72
fe8ab488 73lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
39236c6e
A
74
75include $(MakeInc_rule)
76include $(MakeInc_dir)