]> git.saurik.com Git - apple/xnu.git/blame_incremental - tools/lldbmacros/Makefile
xnu-2422.115.4.tar.gz
[apple/xnu.git] / tools / lldbmacros / Makefile
... / ...
CommitLineData
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/
15LLDBMACROS_DEST:=$(OBJPATH)/$(DSYMKERNELSYSDIR)/$(DSYMLLDBMACROSDIR)/lldbmacros/
16
17LLDBMACROS_PYTHON_FILES = \
18 core/standard.py \
19 core/cvalue.py \
20 core/__init__.py \
21 core/configuration.py \
22 core/caching.py \
23 core/lazytarget.py \
24 core/kernelcore.py \
25 core/operating_system.py \
26 core/xnu_lldb_init.py \
27 plugins/__init__.py \
28 plugins/zprint_perf_log.py \
29 xnu.py \
30 xnudefines.py \
31 mbufdefines.py \
32 netdefines.py \
33 routedefines.py \
34 ipc.py \
35 scheduler.py \
36 pmap.py \
37 memory.py \
38 mbufs.py \
39 net.py \
40 ioreg.py \
41 utils.py \
42 kdp.py \
43 process.py \
44 userspace.py \
45 pci.py \
46 misc.py \
47 apic.py
48
49INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
50
51$(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
52 $(_v)$(MKDIR) $(dir $@)
53 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
54 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
55 $(_v)$(TOUCH) $(LLDBMACROS_DEST)
56
57$(LLDBMACROS_DEST)/../mach_kernel.py: $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
58 $(_v)$(MKDIR) $(dir $@)
59 $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
60 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
61
62lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_DEST)/../mach_kernel.py
63
64include $(MakeInc_rule)
65include $(MakeInc_dir)