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