xref: /titanic_41/usr/src/cmd/dtrace/demo/Makefile (revision 35a5a3587fd94b666239c157d3722745250ccbd7)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include ../../Makefile.cmd
27
28DFILES = \
29	applicat.d \
30	badopen.d \
31	begin.d \
32	callout.d \
33	clause.d \
34	clear.d \
35	countdown.d \
36	counter.d \
37	dateprof.d \
38	delay.d \
39	denorm.d \
40	end.d \
41	error.d \
42	errorpath.d \
43	find.d \
44	firebird.d \
45	hello.d \
46	howlong.d \
47	interp.d \
48	interval.d \
49	intr.d \
50	iocpu.d \
51	iosnoop.d \
52	iothrough.d \
53	iotime.d \
54	ipio.d \
55	ipproto.d \
56	tcprst.d \
57	iprb.d \
58	kstat.d \
59	ksyms.d \
60	libc.d \
61	lquantize.d \
62	lwptime.d \
63	normalize.d \
64	nscd.d \
65	pri.d \
66	printa.d \
67	pritime.d \
68	prof.d \
69	profpri.d \
70	progtime.d \
71	putnext.d \
72	qlen.d \
73	qtime.d \
74	renormalize.d \
75	restest.d \
76	ring.d \
77	rtime.d \
78	rwinfo.d \
79	rwtime.d \
80	sig.d \
81	soffice.d \
82	spec.d \
83	specopen.d \
84	ssd.d \
85	syscall.d \
86	tick.d \
87	ticktime.d \
88	time.d \
89	tracewrite.d \
90	trunc.d \
91	trussrw.d \
92	userfunc.d \
93	whatfor.d \
94	whatlock.d \
95	where.d \
96	whererun.d \
97	whoexec.d \
98	whofor.d \
99	whoio.d \
100	whopreempt.d \
101	whoqueue.d \
102	whosteal.d \
103	whowrite.d \
104	writes.d \
105	writesbycmd.d \
106	writesbycmdfd.d \
107	writetime.d \
108	writetimeq.d \
109	xioctl.d \
110	xterm.d \
111	xwork.d
112
113HTMLFILES = index.html
114
115DEMOFILES = \
116	$(DFILES) \
117	$(HTMLFILES) \
118	sunlogo.gif
119
120MKDEMO	= mkdemo
121CLEANFILES += $(DFILES) $(MKDEMO)
122
123ROOTDEMODIR = $(ROOT)/usr/demo/dtrace
124ROOTDEMOFILES = $(DEMOFILES:%=$(ROOTDEMODIR)/%)
125
126all:	$(DEMOFILES)
127
128clobber clean:
129	-$(RM) $(CLEANFILES)
130
131clean.lint install_h lint:
132
133install: $(ROOTDEMOFILES)
134
135$(ROOTDEMODIR):
136	$(INS.dir)
137
138$(ROOTDEMODIR)/%: %
139	$(INS.file)
140
141$(HTMLFILES):	$(DFILES) $(MKDEMO)
142	./$(MKDEMO) $@
143
144$(DFILES):	$(MKDEMO)
145	./$(MKDEMO) $@
146
147$(ROOTDEMOFILES): $(ROOTDEMODIR)
148
149$(ROOTDEMODIR) := DIRMODE = 755
150
151$(ROOTDEMOFILES) := FILEMODE = 644
152