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