]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/dev/dtrace/scripts/Makefile
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / bsd / dev / dtrace / scripts / Makefile
index 58fc8b3046eae407520226c835b9a8d74a2d233d..4927b28b8942589ec86b445c750439f83e0c5f0e 100644 (file)
@@ -6,7 +6,7 @@ export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
 include $(MakeInc_cmd)
 include $(MakeInc_def)
 
 include $(MakeInc_cmd)
 include $(MakeInc_def)
 
-INSTALL_DTRACE_SCRIPTS_LIST =  \
+INSTALL_DTRACE_MI_SCRIPTS_LIST =       \
        darwin.d \
        errno.d \
        io.d \
        darwin.d \
        errno.d \
        io.d \
@@ -19,27 +19,39 @@ INSTALL_DTRACE_SCRIPTS_LIST =       \
 
 INSTALL_DTRACE_LIBEXEC_LIST = \
        log_unnest_badness.d \
 
 INSTALL_DTRACE_LIBEXEC_LIST = \
        log_unnest_badness.d \
-       vm_map_delete_permanent.d
+       vm_map_delete_permanent.d \
+       vm_object_ownership.d
 
 ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),)
 
 ifneq ($(filter $(SUPPORTED_EMBEDDED_PLATFORMS),$(PLATFORM)),)
-INSTALL_DTRACE_SCRIPTS_LIST += mptcp.d
+INSTALL_DTRACE_MI_SCRIPTS_LIST += mptcp.d
 endif
 
 
 ifeq ($(CURRENT_ARCH_CONFIG),ARM64)
 endif
 
 
 ifeq ($(CURRENT_ARCH_CONFIG),ARM64)
-INSTALL_DTRACE_SCRIPTS_LIST += regs_arm64.d ptrauth_arm64.d
+INSTALL_DTRACE_MD_SCRIPTS_LIST = regs_arm64.d ptrauth_arm64.d
+INSTALL_DTRACE_MD_DIR = arm64
 else ifeq ($(CURRENT_ARCH_CONFIG),ARM)
 else ifeq ($(CURRENT_ARCH_CONFIG),ARM)
-INSTALL_DTRACE_SCRIPTS_LIST += regs_arm.d
+INSTALL_DTRACE_MD_SCRIPTS_LIST = regs_arm.d
+INSTALL_DTRACE_MD_DIR = arm
 else
 else
-INSTALL_DTRACE_SCRIPTS_LIST += regs_x86_64.d
+INSTALL_DTRACE_MD_SCRIPTS_LIST = regs_x86_64.d vmx_compat.d
+INSTALL_DTRACE_MD_DIR = x86_64
 endif
 
 endif
 
-INSTALL_DTRACE_SCRIPTS_FILES = \
-       $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/, $(INSTALL_DTRACE_SCRIPTS_LIST))
+INSTALL_DTRACE_MI_SCRIPTS_FILES = \
+       $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/, $(INSTALL_DTRACE_MI_SCRIPTS_LIST))
 
 
-$(INSTALL_DTRACE_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/% : %
+INSTALL_DTRACE_MD_SCRIPTS_FILES = \
+       $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)/, $(INSTALL_DTRACE_MD_SCRIPTS_LIST))
+
+$(INSTALL_DTRACE_MD_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)/% : %
+       $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/$(INSTALL_DTRACE_MD_DIR)
+       @$(LOG) INSTALL $(@F)
+       $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
+
+$(INSTALL_DTRACE_MI_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/% : %
        $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)
        $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)
-       $(call makelog,INSTALL $(@F))
+       @$(LOG) INSTALL $(@F)
        $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
 
 INSTALL_DTRACE_LIBEXEC_FILES = \
        $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
 
 INSTALL_DTRACE_LIBEXEC_FILES = \
@@ -47,10 +59,12 @@ INSTALL_DTRACE_LIBEXEC_FILES = \
 
 $(INSTALL_DTRACE_LIBEXEC_FILES): $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/% : %
        $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)
 
 $(INSTALL_DTRACE_LIBEXEC_FILES): $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)/% : %
        $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_LIBEXEC_DIR)
-       $(call makelog,INSTALL $(@F))
+       @$(LOG) INSTALL $(@F)
        $(_v)$(INSTALL) $(EXEC_INSTALL_FLAGS) $< $@
 
        $(_v)$(INSTALL) $(EXEC_INSTALL_FLAGS) $< $@
 
-do_textfiles_install:: $(INSTALL_DTRACE_SCRIPTS_FILES) $(INSTALL_DTRACE_LIBEXEC_FILES)
+do_textfiles_install_mi:: $(INSTALL_DTRACE_MI_SCRIPTS_FILES) $(INSTALL_DTRACE_LIBEXEC_FILES)
+
+do_textfiles_install_md:: $(INSTALL_DTRACE_MD_SCRIPTS_FILES)
 
 include $(MakeInc_rule)
 include $(MakeInc_dir)
 
 include $(MakeInc_rule)
 include $(MakeInc_dir)