10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 54271Srie# Common Development and Distribution License (the "License"). 64271Srie# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 214271Srie 220Sstevel@tonic-gate# 23*6543Srie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate# Use is subject to license terms. 250Sstevel@tonic-gate# 264271Srie# ident "%Z%%M% %I% %E% SMI" 274271Srie# 280Sstevel@tonic-gate 290Sstevel@tonic-gatePROG= getent 300Sstevel@tonic-gate 310Sstevel@tonic-gateinclude ../Makefile.cmd 320Sstevel@tonic-gate 330Sstevel@tonic-gateOBJECTS= \ 340Sstevel@tonic-gate dogetethers.o \ 350Sstevel@tonic-gate dogetgr.o \ 360Sstevel@tonic-gate dogethost.o \ 370Sstevel@tonic-gate dogetipnodes.o \ 380Sstevel@tonic-gate dogetnet.o \ 390Sstevel@tonic-gate dogetnetmask.o \ 400Sstevel@tonic-gate dogetproject.o \ 410Sstevel@tonic-gate dogetproto.o \ 420Sstevel@tonic-gate dogetpw.o \ 430Sstevel@tonic-gate dogetserv.o \ 440Sstevel@tonic-gate getent.o 450Sstevel@tonic-gate 460Sstevel@tonic-gateSRCS= $(OBJECTS:.o=.c) 470Sstevel@tonic-gate 48*6543SrieLDLIBS += -lsocket -lnsl -lproject 490Sstevel@tonic-gate 500Sstevel@tonic-gate# 510Sstevel@tonic-gate# for message catalog 520Sstevel@tonic-gate# 530Sstevel@tonic-gatePOFILE= gettent.po 540Sstevel@tonic-gatePOFILES= $(SRCS:%.c=%.po) 550Sstevel@tonic-gate 560Sstevel@tonic-gate.KEEP_STATE: 570Sstevel@tonic-gate 580Sstevel@tonic-gateall: $(PROG) 590Sstevel@tonic-gate 600Sstevel@tonic-gate$(POFILE): $(POFILES) 610Sstevel@tonic-gate $(RM) $@ 620Sstevel@tonic-gate cat $(POFILES) > $@ 630Sstevel@tonic-gate 640Sstevel@tonic-gate 650Sstevel@tonic-gate$(PROG): $(OBJECTS) 660Sstevel@tonic-gate $(LINK.c) -o $@ $(OBJECTS) $(LDLIBS) 670Sstevel@tonic-gate $(POST_PROCESS) 680Sstevel@tonic-gate 690Sstevel@tonic-gateinstall: all $(ROOTPROG) 700Sstevel@tonic-gate 710Sstevel@tonic-gateclean: 720Sstevel@tonic-gate $(RM) $(OBJECTS) 730Sstevel@tonic-gate 740Sstevel@tonic-gatelint: lint_SRCS 750Sstevel@tonic-gate 760Sstevel@tonic-gateinclude ../Makefile.targ 77