1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A#
1N/A# The DTrace Toolkit is third-party open source licensed using the
1N/A# CDDL. As such, the license should be passed through as-is.
1N/A#
1N/AINS_STRIP_CDDL_OVR= $(POUND_SIGN)
1N/A
1N/Ainclude ../Makefile.cmd
1N/A
1N/ADTTDIRS:sh = (cd DTT; find . -type d)
1N/ADTTEXECS:sh = (cd DTT; find . -type f -perm -a+x)
1N/ADTTFILES:sh = (cd DTT; find . -type f ! -perm -a+x)
1N/A
1N/ALICENSEFILES = license.copyright DTT/Docs/cddl1.txt
1N/AEXECATTRDFILES = exec_attr.developer-dtrace-toolkit
1N/APROFATTRDFILES = prof_attr.developer-dtrace-toolkit
1N/ADOCLINKS = Docs/Examples Docs/Notes
1N/A
1N/AROOTDTTDIR = $(ROOT)/usr/dtrace/DTT
1N/AROOTDTTDIRS = $(DTTDIRS:%=$(ROOTDTTDIR)/%)
1N/AROOTDTTEXECS = $(DTTEXECS:%=$(ROOTDTTDIR)/%)
1N/AROOTDTTFILES = $(DTTFILES:%=$(ROOTDTTDIR)/%)
1N/AROOTDTTDOCLINKS = $(DOCLINKS:%=$(ROOTDTTDIR)/%)
1N/A
1N/Aall: THIRDPARTYLICENSE
1N/A
1N/Ainstall: all THIRDPARTYLICENSE $(ROOTDTTDIR) $(ROOTDTTDIRS) $(ROOTDTTEXECS) \
1N/A $(ROOTDTTFILES) dttlinks $(ROOTDTTDOCLINKS) $(ROOTEXECATTRDFILES) \
1N/A $(ROOTPROFATTRDFILES)
1N/A
1N/Aclobber clean:
1N/A $(RM) THIRDPARTYLICENSE
1N/A
1N/Aclean.lint install_h lint:
1N/A
1N/ATHIRDPARTYLICENSE: $(LICENSEFILES)
1N/A $(CAT) $(LICENSEFILES) > $@
1N/A
1N/Adttlinks:
1N/A cd DTT; find . -type l | /usr/bin/cpio -pmu $(ROOTDTTDIR)
1N/A
1N/A$(ROOTDTTDOCLINKS):
1N/A $(LN) -s ../$(@F) $@
1N/A
1N/A$(ROOTLICENSE): THIRDPARTYLICENSE
1N/A
1N/A$(ROOTDTTEXECS) $(ROOTDTTFILES):
1N/A $(INS.file)
1N/A
1N/A$(ROOTDTTDIRS):
1N/A $(INS.dir)
1N/A
1N/A$(ROOTEXECATTRDFILES) $(ROOTPROFATTRDFILES) := FILEMODE = 0444
1N/A
1N/A$(ROOTDTTEXECS) := FILEMODE = 0755
1N/A
1N/A$(ROOTDTTFILES) := FILEMODE = 0644
1N/A
1N/A$(ROOTDTTEXECS) $(ROOTDTTFILES) := INS.file = $(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(@:$(ROOTDTTDIR)/%=DTT/%)
1N/A