]> git.saurik.com Git - apple/xnu.git/blame - tools/lldbmacros/Makefile
xnu-3247.1.106.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/
3e170ce0 17LLDBMACROS_USERDEBUG_FILES=
39236c6e 18
3e170ce0
A
19
20LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
39236c6e
A
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 \
fe8ab488
A
32 atm.py \
33 bank.py \
39236c6e
A
34 xnu.py \
35 xnudefines.py \
36 mbufdefines.py \
37 netdefines.py \
38 routedefines.py \
39 ipc.py \
fe8ab488 40 ipcimportancedetail.py \
3e170ce0 41 kcdata.py \
39236c6e 42 scheduler.py \
fe8ab488 43 structanalyze.py \
39236c6e
A
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 \
3e170ce0
A
55 apic.py \
56 kauth.py \
57 usertaskgdbserver.py \
58 waitq.py
39236c6e 59
fe8ab488
A
60ifneq ($(PLATFORM),MacOSX)
61 LLDBMACROS_PYTHON_FILES+= \
62 plugins/iosspeedtracer.py \
63 plugins/iosspeedtracer.sh
64endif
65
39236c6e
A
66INSTALL_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
fe8ab488 74$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
39236c6e
A
75 $(_v)$(MKDIR) $(dir $@)
76 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
77 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
78
fe8ab488 79lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
39236c6e
A
80
81include $(MakeInc_rule)
82include $(MakeInc_dir)