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