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