xref: /xnu-11215.1.10/bsd/dev/dtrace/scripts/Makefile (revision 8d741a5de7ff4191bf97d57b9f54c2f6d4a15585)
1*8d741a5dSApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2*8d741a5dSApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3*8d741a5dSApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4*8d741a5dSApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5*8d741a5dSApple OSS Distributions
6*8d741a5dSApple OSS Distributionsinclude $(MakeInc_cmd)
7*8d741a5dSApple OSS Distributionsinclude $(MakeInc_def)
8*8d741a5dSApple OSS Distributions
9*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MI_SCRIPTS_LIST =	\
10*8d741a5dSApple OSS Distributions	darwin.d \
11*8d741a5dSApple OSS Distributions	errno.d \
12*8d741a5dSApple OSS Distributions	io.d \
13*8d741a5dSApple OSS Distributions	ip.d \
14*8d741a5dSApple OSS Distributions	sched.d \
15*8d741a5dSApple OSS Distributions	signal.d \
16*8d741a5dSApple OSS Distributions	socket.d \
17*8d741a5dSApple OSS Distributions	tcp.d \
18*8d741a5dSApple OSS Distributions	unistd.d
19*8d741a5dSApple OSS Distributions
20*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_LIBEXEC_LIST = \
21*8d741a5dSApple OSS Distributions	log_unnest_badness.d \
22*8d741a5dSApple OSS Distributions	suspicious_task_vm_info_count.d \
23*8d741a5dSApple OSS Distributions	vm_map_delete_permanent.d \
24*8d741a5dSApple OSS Distributions	vm_map_delete_permanent_deny.d \
25*8d741a5dSApple OSS Distributions	vm_map_delete_permanent_prot_none.d \
26*8d741a5dSApple OSS Distributions	vm_object_ownership.d
27*8d741a5dSApple OSS Distributions
28*8d741a5dSApple OSS Distributionsifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),)
29*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MI_SCRIPTS_LIST += mptcp.d
30*8d741a5dSApple OSS Distributionsendif
31*8d741a5dSApple OSS Distributions
32*8d741a5dSApple OSS Distributions
33*8d741a5dSApple OSS Distributionsifeq ($(CURRENT_ARCH_CONFIG),ARM64)
34*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MD_SCRIPTS_LIST = regs_arm64.d ptrauth_arm64.d
35*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MD_DIR = arm64
36*8d741a5dSApple OSS Distributionselse ifeq ($(CURRENT_ARCH_CONFIG),ARM)
37*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MD_SCRIPTS_LIST = regs_arm.d
38*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MD_DIR = arm
39*8d741a5dSApple OSS Distributionselse
40*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MD_SCRIPTS_LIST = regs_x86_64.d vmx_compat.d
41*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MD_DIR = x86_64
42*8d741a5dSApple OSS Distributionsendif
43*8d741a5dSApple OSS Distributions
44*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MI_SCRIPTS_FILES = \
45*8d741a5dSApple OSS Distributions	$(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/, $(INSTALL_DTRACE_MI_SCRIPTS_LIST))
46*8d741a5dSApple OSS Distributions
47*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_MD_SCRIPTS_FILES = \
48*8d741a5dSApple OSS Distributions	$(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)/, $(INSTALL_DTRACE_MD_SCRIPTS_LIST))
49*8d741a5dSApple OSS Distributions
50*8d741a5dSApple OSS Distributions$(INSTALL_DTRACE_MD_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)/% : %
51*8d741a5dSApple OSS Distributions	$(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)
52*8d741a5dSApple OSS Distributions	@$(LOG_INSTALL) $(@F)
53*8d741a5dSApple OSS Distributions	$(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
54*8d741a5dSApple OSS Distributions
55*8d741a5dSApple OSS Distributions$(INSTALL_DTRACE_MI_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/% : %
56*8d741a5dSApple OSS Distributions	$(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)
57*8d741a5dSApple OSS Distributions	@$(LOG_INSTALL) $(@F)
58*8d741a5dSApple OSS Distributions	$(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
59*8d741a5dSApple OSS Distributions
60*8d741a5dSApple OSS DistributionsINSTALL_DTRACE_LIBEXEC_FILES = \
61*8d741a5dSApple OSS Distributions	$(addprefix $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/, $(INSTALL_DTRACE_LIBEXEC_LIST))
62*8d741a5dSApple OSS Distributions
63*8d741a5dSApple OSS Distributions$(INSTALL_DTRACE_LIBEXEC_FILES): $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/% : %
64*8d741a5dSApple OSS Distributions	$(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)
65*8d741a5dSApple OSS Distributions	@$(LOG_INSTALL) $(@F)
66*8d741a5dSApple OSS Distributions	$(_v)$(INSTALL) $(EXEC_INSTALL_FLAGS) $< $@
67*8d741a5dSApple OSS Distributions
68*8d741a5dSApple OSS Distributionsdo_textfiles_install_mi:: $(INSTALL_DTRACE_MI_SCRIPTS_FILES) $(INSTALL_DTRACE_LIBEXEC_FILES)
69*8d741a5dSApple OSS Distributions
70*8d741a5dSApple OSS Distributionsdo_textfiles_install_md:: $(INSTALL_DTRACE_MD_SCRIPTS_FILES)
71*8d741a5dSApple OSS Distributions
72*8d741a5dSApple OSS Distributionsinclude $(MakeInc_rule)
73*8d741a5dSApple OSS Distributionsinclude $(MakeInc_dir)
74