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