]> git.saurik.com Git - apple/xnu.git/blob - bsd/dev/dtrace/scripts/Makefile
xnu-4570.1.46.tar.gz
[apple/xnu.git] / bsd / dev / dtrace / scripts / Makefile
1 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6 include $(MakeInc_cmd)
7 include $(MakeInc_def)
8
9 INSTALL_DTRACE_SCRIPTS_LIST = \
10 darwin.d \
11 errno.d \
12 io.d \
13 ip.d \
14 sched.d \
15 signal.d \
16 socket.d \
17 tcp.d \
18 unistd.d
19
20 INSTALL_DTRACE_LIBEXEC_LIST = \
21 log_unnest_badness.d \
22 vm_map_delete_permanent.d
23
24 ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),)
25 INSTALL_DTRACE_SCRIPTS_LIST += mptcp.d
26 endif
27
28
29 ifeq ($(CURRENT_ARCH_CONFIG),ARM64)
30 INSTALL_DTRACE_SCRIPTS_LIST += regs_arm64.d
31 else ifeq ($(CURRENT_ARCH_CONFIG),ARM)
32 INSTALL_DTRACE_SCRIPTS_LIST += regs_arm.d
33 else
34 INSTALL_DTRACE_SCRIPTS_LIST += regs_x86_64.d
35 endif
36
37 INSTALL_DTRACE_SCRIPTS_FILES = \
38 $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/, $(INSTALL_DTRACE_SCRIPTS_LIST))
39
40 $(INSTALL_DTRACE_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/% : %
41 $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)
42 @echo INSTALL $(@F)
43 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
44
45 INSTALL_DTRACE_LIBEXEC_FILES = \
46 $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/, $(INSTALL_DTRACE_LIBEXEC_LIST))
47
48 $(INSTALL_DTRACE_LIBEXEC_FILES): $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/% : %
49 $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)
50 @echo INSTALL $(@F)
51 $(_v)$(INSTALL) $(EXEC_INSTALL_FLAGS) $< $@
52
53 do_textfiles_install:: $(INSTALL_DTRACE_SCRIPTS_FILES) $(INSTALL_DTRACE_LIBEXEC_FILES)
54
55 include $(MakeInc_rule)
56 include $(MakeInc_dir)