2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A
2N/A
2N/Ainclude ../Makefile.cmd
2N/A
2N/A#
2N/A# Don't add new ptools here; these are legacy ptools which must be symlinked
2N/A# into /usr/proc/bin
2N/A#
2N/ALEGACY_SUBDIRS =\
2N/A pcred \
2N/A pfiles \
2N/A pflags \
2N/A pldd \
2N/A pmap \
2N/A prun \
2N/A psig \
2N/A pstack \
2N/A pstop \
2N/A ptime \
2N/A ptree \
2N/A pwait \
2N/A pwdx
2N/A
2N/A#
2N/A# 'new' ptools are not symlinked into /usr/proc/bin
2N/A#
2N/ANEW_SUBDIRS = \
2N/A pargs \
2N/A plgrp \
2N/A pmadvise \
2N/A ppriv \
2N/A preap \
2N/A psecflags
2N/A
2N/ASUBDIRS = $(LEGACY_SUBDIRS) $(NEW_SUBDIRS)
2N/A
2N/Aall := TARGET = all
2N/Ainstall := TARGET = install
2N/Aclean := TARGET = clean
2N/Aclobber := TARGET = clobber
2N/Alint := TARGET = lint
2N/A_msg := TARGET = _msg
2N/A
2N/A
2N/A# pmadvise depends on pmap components
2N/APMAP = $(SRC)/cmd/ptools/pmap
2N/Apmadvise/pmadvise.po := CPPFLAGS += -I$(PMAP)
2N/A
2N/A#
2N/A# Commands with messages support
2N/A#
2N/APOFILES = plgrp/plgrp.po pmadvise/pmadvise.po psecflags/psecflags.po
2N/APOFILE = ptools.po
2N/A
2N/A.KEEP_STATE:
2N/A
2N/A.PARALLEL: $(SUBDIRS)
2N/A
2N/Aall install clean lint: $(SUBDIRS)
2N/Aclobber: $(SUBDIRS) clobber_local
2N/Aclobber_local:
2N/A $(RM) $(CLOBBERFILES)
2N/A
2N/A$(NEW_SUBDIRS): FRC
2N/A @cd $@; pwd; $(MAKE) PTOOL_TYPE=NEW -f ../Makefile.ptool $(TARGET)
2N/A
2N/A$(LEGACY_SUBDIRS): FRC
2N/A @cd $@; pwd; $(MAKE) PTOOL_TYPE=LEGACY -f ../Makefile.ptool $(TARGET)
2N/A
2N/A#
2N/A# Combine all messages files into a single file and copy it to
2N/A# MSGDOMAIN directory
2N/A#
2N/A_msg: ${POFILES}
2N/A $(RM) $(POFILE)
2N/A $(CAT) $(POFILES) > $(POFILE)
2N/A $(RM) $(MSGDOMAIN)/$(POFILE)
2N/A $(CP) $(POFILE) $(MSGDOMAIN)
2N/A
2N/AFRC:
2N/A