]> git.saurik.com Git - apple/xnu.git/blob - bsd/dev/dtrace/scripts/Makefile
xnu-2422.1.72.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 regs_x86_64.d \
15 sched.d \
16 signal.d \
17 socket.d \
18 tcp.d \
19 unistd.d
20
21 ifeq ($(PLATFORM),iPhoneOS)
22 INSTALL_DTRACE_SCRIPTS_LIST += mptcp.d
23 endif
24
25 INSTALL_DTRACE_SCRIPTS_FILES = \
26 $(addprefix $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/, $(INSTALL_DTRACE_SCRIPTS_LIST))
27
28 $(INSTALL_DTRACE_SCRIPTS_FILES): $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)/% : %
29 $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_DTRACE_SCRIPTS_DIR)
30 @echo INSTALL $(@F)
31 $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
32
33 do_build_install_primary:: $(INSTALL_DTRACE_SCRIPTS_FILES)
34
35 include $(MakeInc_rule)
36 include $(MakeInc_dir)
37
38