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