xref: /titanic_41/usr/src/cmd/ptools/Makefile (revision 355b4669e025ff377602b6fc7caaf30dbc218371)
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#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 1994-2003 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28
29include ../Makefile.cmd
30
31#
32# Don't add new ptools here; these are legacy ptools which must be symlinked
33# into /usr/proc/bin
34#
35LEGACY_SUBDIRS =\
36	pcred	\
37	pfiles	\
38	pflags	\
39	pldd	\
40	pmap	\
41	prun	\
42	psig	\
43	pstack	\
44	pstop	\
45	ptime	\
46	ptree	\
47	pwait	\
48	pwdx
49
50#
51# 'new' ptools are not symlinked into /usr/proc/bin
52#
53NEW_SUBDIRS =	\
54	pargs	\
55	ppriv	\
56	preap
57
58SUBDIRS = $(LEGACY_SUBDIRS) $(NEW_SUBDIRS)
59
60all	:=	TARGET = all
61install	:=	TARGET = install
62clean	:=	TARGET = clean
63clobber	:=	TARGET = clobber
64lint	:=	TARGET = lint
65
66.KEEP_STATE:
67
68.PARALLEL: $(SUBDIRS)
69
70all install clean clobber lint: $(SUBDIRS)
71
72$(NEW_SUBDIRS): FRC
73	@cd $@; pwd; $(MAKE) PTOOL_TYPE=NEW -f ../Makefile.ptool $(TARGET)
74
75$(LEGACY_SUBDIRS): FRC
76	@cd $@; pwd; $(MAKE) PTOOL_TYPE=LEGACY -f ../Makefile.ptool $(TARGET)
77FRC:
78