Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# CDDL HEADER START
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# The contents of this file are subject to the terms of the
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Common Development and Distribution License, Version 1.0 only
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# (the "License"). You may not use this file except in compliance
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# with the License.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# or http://www.opensolaris.org/os/licensing.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# See the License for the specific language governing permissions
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# and limitations under the License.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# When distributing Covered Code, include this CDDL HEADER in each
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# If applicable, add the following below this CDDL HEADER, with the
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# fields enclosed by brackets "[]" replaced with your own identifying
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# information: Portions Copyright [yyyy] [name of copyright owner]
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# CDDL HEADER END
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
d444b03e85973a0566ba10d94e6f65ca1a6b21faAli Bahrami#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#ident "%Z%%M% %I% %E% SMI"
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# Use is subject to license terms.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcPROG= getent
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcinclude ../Makefile.cmd
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcOBJECTS= \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetethers.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetgr.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogethost.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetipnodes.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetnet.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetnetmask.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetproject.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetproto.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetpw.o \
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc dogetserv.o \
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc getent.o
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcSRCS= $(OBJECTS:.o=.c)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcLAZYLIBS = -z lazyload -lproject
7a1306a70fee0e017a445bde1dcfd1997f691cf4xclint := LAZYLIBS = -lproject
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcLDLIBS += -lsocket -lnsl $(LAZYLIBS)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc# for message catalog
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcPOFILE= gettent.po
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcPOFILES= $(SRCS:%.c=%.po)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc.KEEP_STATE:
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcall: $(PROG)
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc$(POFILE): $(POFILES)
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc $(RM) $@
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc cat $(POFILES) > $@
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe$(PROG): $(OBJECTS)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc $(POST_PROCESS)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcinstall: all $(ROOTPROG)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcclean:
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc $(RM) $(OBJECTS)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xclint: lint_SRCS
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcinclude ../Makefile.targ
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc