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