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