]>
Commit | Line | Data |
---|---|---|
39236c6e A |
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_DEST:=$(OBJPATH)/$(DSYMKERNELSYSDIR)/$(DSYMLLDBMACROSDIR)/lldbmacros/ | |
16 | ||
17 | LLDBMACROS_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 | ||
49 | INSTALL_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 | ||
62 | lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_DEST)/../mach_kernel.py | |
63 | ||
64 | include $(MakeInc_rule) | |
65 | include $(MakeInc_dir) |