Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1029N/A#
1029N/A# CDDL HEADER START
1339N/A#
1029N/A# The contents of this file are subject to the terms of the
1339N/A# Common Development and Distribution License, Version 1.0 only
1029N/A# (the "License"). You may not use this file except in compliance
1029N/A# with the License.
1075N/A#
1075N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1075N/A# or http://www.opensolaris.org/os/licensing.
1075N/A# See the License for the specific language governing permissions
1075N/A# and limitations under the License.
1075N/A#
1075N/A# When distributing Covered Code, include this CDDL HEADER in each
1075N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1075N/A# If applicable, add the following below this CDDL HEADER, with the
1075N/A# fields enclosed by brackets "[]" replaced with your own identifying
1075N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1075N/A#
1075N/A# CDDL HEADER END
1075N/A#
1075N/A#
1075N/A#ident "%Z%%M% %I% %E% SMI"
1075N/A#
1029N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
1029N/A# Use is subject to license terms.
1029N/A#
1029N/A
1029N/APROG= who
1029N/AXPG4PROG= who
1370N/ADCFILE=$(PROG).dc
1029N/AUTMPS= utmpx
1029N/AROOTADM= $(ROOT)/var/adm
1370N/AROOTUTMPS= $(UTMPS:%=$(ROOTADM)/%)
1370N/ASYMSETC= $(UTMPS:%=$(ROOTETC)/%)
1370N/ACLOBBERFILES += $(UTMPS)
1029N/A
1029N/Ainclude ../Makefile.cmd
1029N/A
1029N/ASED= sed
1029N/A
1339N/A$(ROOTUTMPS):= FILEMODE= 644
1123N/A$(ROOTUTMPS):= OWNER= root
1123N/A$(ROOTUTMPS):= GROUP= bin
1029N/A
1029N/A$(ROOTADM)/%: %
1276N/A $(INS.file)
1351N/A
1029N/A.KEEP_STATE:
1132N/A
1132N/ACFLAGS += $(CCVERBOSE)
1132N/A$(XPG4):= CPPFLAGS += -DXPG4
1029N/A
1029N/Aall: $(PROG) $(UTMPS) $(XPG4)
1029N/A
1029N/A$(UTMPS):
1351N/A touch $@
1351N/A
1351N/Ainstall: all $(ROOTPROG) $(ROOTUTMPS) $(SYMSETC) $(ROOTXPG4PROG)
1029N/A
1075N/A$(SYMSETC):
1029N/A -$(RM) $@; $(SYMLINK) ../var/adm/$(@F) $@
1029N/A $(CH)@-$(CHOWN) root $@
1029N/A $(CH)@-$(CHGRP) bin $@
1029N/A
1029N/Aclean:
1029N/A
1029N/Alint: lint_PROG
1029N/A
1029N/A$(DCFILE): $(PROG).c
1029N/A $(RM) $(DCFILE)
1029N/A $(COMPILE.cpp) $(PROG).c | \
1029N/A $(XGETTEXT) $(XGETFLAGS) -t -
1029N/A $(SED) -e '/^domain/d' messages.po > $@
1029N/A $(RM) messages.po
1029N/A
1029N/Ainclude ../Makefile.targ
1029N/A