xref: /onnv-gate/usr/src/cmd/dtrace/demo/Makefile (revision 12998:c0270875939a)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
56350Scarlsonj# Common Development and Distribution License (the "License").
66350Scarlsonj# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
2212507SAlan.Maguire@Sun.COM# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
250Sstevel@tonic-gateinclude ../../Makefile.cmd
260Sstevel@tonic-gate
27*12998SMark.J.Nelson@Oracle.COMi386_DFILES = \
28*12998SMark.J.Nelson@Oracle.COM	iprb.d
29*12998SMark.J.Nelson@Oracle.COM
300Sstevel@tonic-gateDFILES = \
310Sstevel@tonic-gate	applicat.d \
320Sstevel@tonic-gate	badopen.d \
330Sstevel@tonic-gate	begin.d \
340Sstevel@tonic-gate	callout.d \
350Sstevel@tonic-gate	clause.d \
360Sstevel@tonic-gate	clear.d \
370Sstevel@tonic-gate	countdown.d \
380Sstevel@tonic-gate	counter.d \
390Sstevel@tonic-gate	dateprof.d \
400Sstevel@tonic-gate	delay.d \
410Sstevel@tonic-gate	denorm.d \
420Sstevel@tonic-gate	end.d \
430Sstevel@tonic-gate	error.d \
440Sstevel@tonic-gate	errorpath.d \
450Sstevel@tonic-gate	find.d \
460Sstevel@tonic-gate	firebird.d \
470Sstevel@tonic-gate	hello.d \
480Sstevel@tonic-gate	howlong.d \
490Sstevel@tonic-gate	interp.d \
500Sstevel@tonic-gate	interval.d \
510Sstevel@tonic-gate	intr.d \
520Sstevel@tonic-gate	iocpu.d \
530Sstevel@tonic-gate	iosnoop.d \
540Sstevel@tonic-gate	iothrough.d \
550Sstevel@tonic-gate	iotime.d \
566878Sbrendan	ipio.d \
576878Sbrendan	ipproto.d \
587502Saruna@cs.umn.edu	tcprst.d \
590Sstevel@tonic-gate	kstat.d \
600Sstevel@tonic-gate	ksyms.d \
610Sstevel@tonic-gate	libc.d \
620Sstevel@tonic-gate	lquantize.d \
630Sstevel@tonic-gate	lwptime.d \
640Sstevel@tonic-gate	normalize.d \
650Sstevel@tonic-gate	nscd.d \
660Sstevel@tonic-gate	pri.d \
670Sstevel@tonic-gate	printa.d \
680Sstevel@tonic-gate	pritime.d \
690Sstevel@tonic-gate	prof.d \
700Sstevel@tonic-gate	profpri.d \
710Sstevel@tonic-gate	progtime.d \
720Sstevel@tonic-gate	putnext.d \
730Sstevel@tonic-gate	qlen.d \
740Sstevel@tonic-gate	qtime.d \
750Sstevel@tonic-gate	renormalize.d \
760Sstevel@tonic-gate	restest.d \
770Sstevel@tonic-gate	ring.d \
780Sstevel@tonic-gate	rtime.d \
790Sstevel@tonic-gate	rwinfo.d \
800Sstevel@tonic-gate	rwtime.d \
810Sstevel@tonic-gate	sig.d \
820Sstevel@tonic-gate	soffice.d \
830Sstevel@tonic-gate	spec.d \
840Sstevel@tonic-gate	specopen.d \
850Sstevel@tonic-gate	ssd.d \
860Sstevel@tonic-gate	syscall.d \
8712507SAlan.Maguire@Sun.COM	tcp1stbyte.d \
8812507SAlan.Maguire@Sun.COM	tcpbytes.d \
8912507SAlan.Maguire@Sun.COM	tcpbytesstat.d \
9012507SAlan.Maguire@Sun.COM	tcpconnlat.d \
9112507SAlan.Maguire@Sun.COM	tcpio.d \
9212507SAlan.Maguire@Sun.COM	tcpioflags.d \
9312507SAlan.Maguire@Sun.COM	tcpsnoop.d \
9412507SAlan.Maguire@Sun.COM	tcpstate.d \
9512507SAlan.Maguire@Sun.COM	tcptop.d \
960Sstevel@tonic-gate	tick.d \
970Sstevel@tonic-gate	ticktime.d \
980Sstevel@tonic-gate	time.d \
990Sstevel@tonic-gate	tracewrite.d \
1000Sstevel@tonic-gate	trunc.d \
1010Sstevel@tonic-gate	trussrw.d \
10212507SAlan.Maguire@Sun.COM	udpbytes.d \
10312507SAlan.Maguire@Sun.COM	udpbytesstat.d \
10412507SAlan.Maguire@Sun.COM	udpio.d \
10512507SAlan.Maguire@Sun.COM	udpsnoop.d \
10612507SAlan.Maguire@Sun.COM	udptop.d \
1070Sstevel@tonic-gate	userfunc.d \
1080Sstevel@tonic-gate	whatfor.d \
1090Sstevel@tonic-gate	whatlock.d \
1100Sstevel@tonic-gate	where.d \
1110Sstevel@tonic-gate	whererun.d \
1120Sstevel@tonic-gate	whoexec.d \
1130Sstevel@tonic-gate	whofor.d \
1140Sstevel@tonic-gate	whoio.d \
1150Sstevel@tonic-gate	whopreempt.d \
1160Sstevel@tonic-gate	whoqueue.d \
1170Sstevel@tonic-gate	whosteal.d \
1180Sstevel@tonic-gate	whowrite.d \
1190Sstevel@tonic-gate	writes.d \
1200Sstevel@tonic-gate	writesbycmd.d \
1210Sstevel@tonic-gate	writesbycmdfd.d \
1220Sstevel@tonic-gate	writetime.d \
1230Sstevel@tonic-gate	writetimeq.d \
1240Sstevel@tonic-gate	xioctl.d \
1250Sstevel@tonic-gate	xterm.d \
126*12998SMark.J.Nelson@Oracle.COM	xwork.d \
127*12998SMark.J.Nelson@Oracle.COM	$($(MACH)_DFILES)
1280Sstevel@tonic-gate
1296350ScarlsonjHTMLFILES = index.html
1306350Scarlsonj
1310Sstevel@tonic-gateDEMOFILES = \
1320Sstevel@tonic-gate	$(DFILES) \
1336350Scarlsonj	$(HTMLFILES) \
1340Sstevel@tonic-gate	sunlogo.gif
1350Sstevel@tonic-gate
1360Sstevel@tonic-gateMKDEMO	= mkdemo
1370Sstevel@tonic-gateCLEANFILES += $(DFILES) $(MKDEMO)
1380Sstevel@tonic-gate
1390Sstevel@tonic-gateROOTDEMODIR = $(ROOT)/usr/demo/dtrace
1400Sstevel@tonic-gateROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%)
1410Sstevel@tonic-gate
1420Sstevel@tonic-gateall:	$(DEMOFILES)
1430Sstevel@tonic-gate
1440Sstevel@tonic-gateclobber clean:
1450Sstevel@tonic-gate	-$(RM) $(CLEANFILES)
1460Sstevel@tonic-gate
1470Sstevel@tonic-gateclean.lint install_h lint:
1480Sstevel@tonic-gate
1490Sstevel@tonic-gateinstall: $(ROOTDEMOFILES)
1500Sstevel@tonic-gate
1510Sstevel@tonic-gate$(ROOTDEMODIR):
1520Sstevel@tonic-gate	$(INS.dir)
1530Sstevel@tonic-gate
1540Sstevel@tonic-gate$(ROOTDEMODIR)/%: %
1550Sstevel@tonic-gate	$(INS.file)
1560Sstevel@tonic-gate
1576350Scarlsonj$(HTMLFILES):	$(DFILES) $(MKDEMO)
1580Sstevel@tonic-gate	./$(MKDEMO) $@
1590Sstevel@tonic-gate
1606350Scarlsonj$(DFILES):	$(MKDEMO)
1610Sstevel@tonic-gate	./$(MKDEMO) $@
1620Sstevel@tonic-gate
1630Sstevel@tonic-gate$(ROOTDEMOFILES): $(ROOTDEMODIR)
1640Sstevel@tonic-gate
1650Sstevel@tonic-gate$(ROOTDEMODIR) := DIRMODE = 755
1660Sstevel@tonic-gate
1670Sstevel@tonic-gate$(ROOTDEMOFILES) := FILEMODE = 644
168