]> git.saurik.com Git - apple/xnu.git/blame - bsd/dev/dtrace/scripts/Makefile
xnu-7195.101.1.tar.gz
[apple/xnu.git] / bsd / dev / dtrace / scripts / 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
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
f427ee49 9INSTALL_DTRACE_MI_SCRIPTS_LIST = \
39236c6e
A
10 darwin.d \
11 errno.d \
12 io.d \
13 ip.d \
39236c6e
A
14 sched.d \
15 signal.d \
16 socket.d \
17 tcp.d \
18 unistd.d
19
39037602 20INSTALL_DTRACE_LIBEXEC_LIST = \
5ba3f43e 21 log_unnest_badness.d \
f427ee49
A
22 vm_map_delete_permanent.d \
23 vm_object_ownership.d
39037602 24
3e170ce0 25ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),)
f427ee49 26INSTALL_DTRACE_MI_SCRIPTS_LIST += mptcp.d
39236c6e
A
27endif
28
39037602
A
29
30ifeq ($(CURRENT_ARCH_CONFIG),ARM64)
f427ee49
A
31INSTALL_DTRACE_MD_SCRIPTS_LIST = regs_arm64.d ptrauth_arm64.d
32INSTALL_DTRACE_MD_DIR = arm64
39037602 33else ifeq ($(CURRENT_ARCH_CONFIG),ARM)
f427ee49
A
34INSTALL_DTRACE_MD_SCRIPTS_LIST = regs_arm.d
35INSTALL_DTRACE_MD_DIR = arm
39037602 36else
f427ee49
A
37INSTALL_DTRACE_MD_SCRIPTS_LIST = regs_x86_64.d vmx_compat.d
38INSTALL_DTRACE_MD_DIR = x86_64
39037602
A
39endif
40
f427ee49
A
41INSTALL_DTRACE_MI_SCRIPTS_FILES = \
42 $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/, $(INSTALL_DTRACE_MI_SCRIPTS_LIST))
39236c6e 43
f427ee49
A
44INSTALL_DTRACE_MD_SCRIPTS_FILES = \
45 $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)/, $(INSTALL_DTRACE_MD_SCRIPTS_LIST))
46
47$(INSTALL_DTRACE_MD_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)/% : %
48 $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)
49 @$(LOG) INSTALL $(@F)
50 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
51
52$(INSTALL_DTRACE_MI_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/% : %
39236c6e 53 $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)
f427ee49 54 @$(LOG) INSTALL $(@F)
39236c6e
A
55 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
56
39037602
A
57INSTALL_DTRACE_LIBEXEC_FILES = \
58 $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/, $(INSTALL_DTRACE_LIBEXEC_LIST))
39236c6e 59
39037602
A
60$(INSTALL_DTRACE_LIBEXEC_FILES): $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/% : %
61 $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)
f427ee49 62 @$(LOG) INSTALL $(@F)
39037602 63 $(_v)$(INSTALL) $(EXEC_INSTALL_FLAGS) $< $@
39236c6e 64
f427ee49
A
65do_textfiles_install_mi:: $(INSTALL_DTRACE_MI_SCRIPTS_FILES) $(INSTALL_DTRACE_LIBEXEC_FILES)
66
67do_textfiles_install_md:: $(INSTALL_DTRACE_MD_SCRIPTS_FILES)
39236c6e 68
39037602
A
69include $(MakeInc_rule)
70include $(MakeInc_dir)