xref: /titanic_41/usr/src/cmd/dtrace/demo/Makefile (revision c138f478d2bc94e73ab8f6a084e323bec25e62f5)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27
28include ../../Makefile.cmd
29
30DFILES = \
31	applicat.d \
32	badopen.d \
33	begin.d \
34	callout.d \
35	clause.d \
36	clear.d \
37	countdown.d \
38	counter.d \
39	dateprof.d \
40	delay.d \
41	denorm.d \
42	end.d \
43	error.d \
44	errorpath.d \
45	find.d \
46	firebird.d \
47	hello.d \
48	howlong.d \
49	interp.d \
50	interval.d \
51	intr.d \
52	iocpu.d \
53	iosnoop.d \
54	iothrough.d \
55	iotime.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	tick.d \
86	ticktime.d \
87	time.d \
88	tracewrite.d \
89	trunc.d \
90	trussrw.d \
91	userfunc.d \
92	whatfor.d \
93	whatlock.d \
94	where.d \
95	whererun.d \
96	whoexec.d \
97	whofor.d \
98	whoio.d \
99	whopreempt.d \
100	whoqueue.d \
101	whosteal.d \
102	whowrite.d \
103	writes.d \
104	writesbycmd.d \
105	writesbycmdfd.d \
106	writetime.d \
107	writetimeq.d \
108	xioctl.d \
109	xterm.d \
110	xwork.d
111
112DEMOFILES = \
113	$(DFILES) \
114	index.html \
115	sunlogo.gif
116
117MKDEMO	= mkdemo
118CLEANFILES += $(DFILES) $(MKDEMO)
119
120ROOTDEMODIR = $(ROOT)/usr/demo/dtrace
121ROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%)
122
123all:	$(DEMOFILES)
124
125clobber clean:
126	-$(RM) $(CLEANFILES)
127
128clean.lint install_h lint:
129
130install: $(ROOTDEMOFILES)
131
132$(ROOTDEMODIR):
133	$(INS.dir)
134
135$(ROOTDEMODIR)/%: %
136	$(INS.file)
137
138%.html:	$(DFILES) $(MKDEMO)
139	./$(MKDEMO) $@
140
141%.d:	$(MKDEMO)
142	./$(MKDEMO) $@
143
144%:	%.pl
145	$(CP) $< $@
146	$(CHMOD) 755 $@
147
148$(ROOTDEMOFILES): $(ROOTDEMODIR)
149
150$(ROOTDEMODIR) := OWNER = root
151$(ROOTDEMODIR) := GROUP = bin
152$(ROOTDEMODIR) := DIRMODE = 755
153
154$(ROOTDEMOFILES) := OWNER = root
155$(ROOTDEMOFILES) := GROUP = bin
156$(ROOTDEMOFILES) := FILEMODE = 644
157