1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate#pragma ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateDFILES = \ 31*7c478bd9Sstevel@tonic-gate applicat.d \ 32*7c478bd9Sstevel@tonic-gate badopen.d \ 33*7c478bd9Sstevel@tonic-gate begin.d \ 34*7c478bd9Sstevel@tonic-gate callout.d \ 35*7c478bd9Sstevel@tonic-gate clause.d \ 36*7c478bd9Sstevel@tonic-gate clear.d \ 37*7c478bd9Sstevel@tonic-gate countdown.d \ 38*7c478bd9Sstevel@tonic-gate counter.d \ 39*7c478bd9Sstevel@tonic-gate dateprof.d \ 40*7c478bd9Sstevel@tonic-gate delay.d \ 41*7c478bd9Sstevel@tonic-gate denorm.d \ 42*7c478bd9Sstevel@tonic-gate end.d \ 43*7c478bd9Sstevel@tonic-gate error.d \ 44*7c478bd9Sstevel@tonic-gate errorpath.d \ 45*7c478bd9Sstevel@tonic-gate find.d \ 46*7c478bd9Sstevel@tonic-gate firebird.d \ 47*7c478bd9Sstevel@tonic-gate hello.d \ 48*7c478bd9Sstevel@tonic-gate howlong.d \ 49*7c478bd9Sstevel@tonic-gate interp.d \ 50*7c478bd9Sstevel@tonic-gate interval.d \ 51*7c478bd9Sstevel@tonic-gate intr.d \ 52*7c478bd9Sstevel@tonic-gate iocpu.d \ 53*7c478bd9Sstevel@tonic-gate iosnoop.d \ 54*7c478bd9Sstevel@tonic-gate iothrough.d \ 55*7c478bd9Sstevel@tonic-gate iotime.d \ 56*7c478bd9Sstevel@tonic-gate iprb.d \ 57*7c478bd9Sstevel@tonic-gate kstat.d \ 58*7c478bd9Sstevel@tonic-gate ksyms.d \ 59*7c478bd9Sstevel@tonic-gate libc.d \ 60*7c478bd9Sstevel@tonic-gate lquantize.d \ 61*7c478bd9Sstevel@tonic-gate lwptime.d \ 62*7c478bd9Sstevel@tonic-gate normalize.d \ 63*7c478bd9Sstevel@tonic-gate nscd.d \ 64*7c478bd9Sstevel@tonic-gate pri.d \ 65*7c478bd9Sstevel@tonic-gate printa.d \ 66*7c478bd9Sstevel@tonic-gate pritime.d \ 67*7c478bd9Sstevel@tonic-gate prof.d \ 68*7c478bd9Sstevel@tonic-gate profpri.d \ 69*7c478bd9Sstevel@tonic-gate progtime.d \ 70*7c478bd9Sstevel@tonic-gate putnext.d \ 71*7c478bd9Sstevel@tonic-gate qlen.d \ 72*7c478bd9Sstevel@tonic-gate qtime.d \ 73*7c478bd9Sstevel@tonic-gate renormalize.d \ 74*7c478bd9Sstevel@tonic-gate restest.d \ 75*7c478bd9Sstevel@tonic-gate ring.d \ 76*7c478bd9Sstevel@tonic-gate rtime.d \ 77*7c478bd9Sstevel@tonic-gate rwinfo.d \ 78*7c478bd9Sstevel@tonic-gate rwtime.d \ 79*7c478bd9Sstevel@tonic-gate sig.d \ 80*7c478bd9Sstevel@tonic-gate soffice.d \ 81*7c478bd9Sstevel@tonic-gate spec.d \ 82*7c478bd9Sstevel@tonic-gate specopen.d \ 83*7c478bd9Sstevel@tonic-gate ssd.d \ 84*7c478bd9Sstevel@tonic-gate syscall.d \ 85*7c478bd9Sstevel@tonic-gate tick.d \ 86*7c478bd9Sstevel@tonic-gate ticktime.d \ 87*7c478bd9Sstevel@tonic-gate time.d \ 88*7c478bd9Sstevel@tonic-gate tracewrite.d \ 89*7c478bd9Sstevel@tonic-gate trunc.d \ 90*7c478bd9Sstevel@tonic-gate trussrw.d \ 91*7c478bd9Sstevel@tonic-gate userfunc.d \ 92*7c478bd9Sstevel@tonic-gate whatfor.d \ 93*7c478bd9Sstevel@tonic-gate whatlock.d \ 94*7c478bd9Sstevel@tonic-gate where.d \ 95*7c478bd9Sstevel@tonic-gate whererun.d \ 96*7c478bd9Sstevel@tonic-gate whoexec.d \ 97*7c478bd9Sstevel@tonic-gate whofor.d \ 98*7c478bd9Sstevel@tonic-gate whoio.d \ 99*7c478bd9Sstevel@tonic-gate whopreempt.d \ 100*7c478bd9Sstevel@tonic-gate whoqueue.d \ 101*7c478bd9Sstevel@tonic-gate whosteal.d \ 102*7c478bd9Sstevel@tonic-gate whowrite.d \ 103*7c478bd9Sstevel@tonic-gate writes.d \ 104*7c478bd9Sstevel@tonic-gate writesbycmd.d \ 105*7c478bd9Sstevel@tonic-gate writesbycmdfd.d \ 106*7c478bd9Sstevel@tonic-gate writetime.d \ 107*7c478bd9Sstevel@tonic-gate writetimeq.d \ 108*7c478bd9Sstevel@tonic-gate xioctl.d \ 109*7c478bd9Sstevel@tonic-gate xterm.d \ 110*7c478bd9Sstevel@tonic-gate xwork.d 111*7c478bd9Sstevel@tonic-gate 112*7c478bd9Sstevel@tonic-gateDEMOFILES = \ 113*7c478bd9Sstevel@tonic-gate $(DFILES) \ 114*7c478bd9Sstevel@tonic-gate index.html \ 115*7c478bd9Sstevel@tonic-gate sunlogo.gif 116*7c478bd9Sstevel@tonic-gate 117*7c478bd9Sstevel@tonic-gateMKDEMO = mkdemo 118*7c478bd9Sstevel@tonic-gateCLEANFILES += $(DFILES) $(MKDEMO) 119*7c478bd9Sstevel@tonic-gate 120*7c478bd9Sstevel@tonic-gateROOTDEMODIR = $(ROOT)/usr/demo/dtrace 121*7c478bd9Sstevel@tonic-gateROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%) 122*7c478bd9Sstevel@tonic-gate 123*7c478bd9Sstevel@tonic-gateall: $(DEMOFILES) 124*7c478bd9Sstevel@tonic-gate 125*7c478bd9Sstevel@tonic-gateclobber clean: 126*7c478bd9Sstevel@tonic-gate -$(RM) $(CLEANFILES) 127*7c478bd9Sstevel@tonic-gate 128*7c478bd9Sstevel@tonic-gateclean.lint install_h lint: 129*7c478bd9Sstevel@tonic-gate 130*7c478bd9Sstevel@tonic-gateinstall: $(ROOTDEMOFILES) 131*7c478bd9Sstevel@tonic-gate 132*7c478bd9Sstevel@tonic-gate$(ROOTDEMODIR): 133*7c478bd9Sstevel@tonic-gate $(INS.dir) 134*7c478bd9Sstevel@tonic-gate 135*7c478bd9Sstevel@tonic-gate$(ROOTDEMODIR)/%: % 136*7c478bd9Sstevel@tonic-gate $(INS.file) 137*7c478bd9Sstevel@tonic-gate 138*7c478bd9Sstevel@tonic-gate%.html: $(DFILES) $(MKDEMO) 139*7c478bd9Sstevel@tonic-gate ./$(MKDEMO) $@ 140*7c478bd9Sstevel@tonic-gate 141*7c478bd9Sstevel@tonic-gate%.d: $(MKDEMO) 142*7c478bd9Sstevel@tonic-gate ./$(MKDEMO) $@ 143*7c478bd9Sstevel@tonic-gate 144*7c478bd9Sstevel@tonic-gate%: %.pl 145*7c478bd9Sstevel@tonic-gate $(CP) $< $@ 146*7c478bd9Sstevel@tonic-gate $(CHMOD) 755 $@ 147*7c478bd9Sstevel@tonic-gate 148*7c478bd9Sstevel@tonic-gate$(ROOTDEMOFILES): $(ROOTDEMODIR) 149*7c478bd9Sstevel@tonic-gate 150*7c478bd9Sstevel@tonic-gate$(ROOTDEMODIR) := OWNER = root 151*7c478bd9Sstevel@tonic-gate$(ROOTDEMODIR) := GROUP = bin 152*7c478bd9Sstevel@tonic-gate$(ROOTDEMODIR) := DIRMODE = 755 153*7c478bd9Sstevel@tonic-gate 154*7c478bd9Sstevel@tonic-gate$(ROOTDEMOFILES) := OWNER = root 155*7c478bd9Sstevel@tonic-gate$(ROOTDEMOFILES) := GROUP = bin 156*7c478bd9Sstevel@tonic-gate$(ROOTDEMOFILES) := FILEMODE = 644 157