Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
86N/A#
86N/A# CDDL HEADER START
86N/A#
86N/A# The contents of this file are subject to the terms of the
86N/A# Common Development and Distribution License (the "License").
86N/A# You may not use this file except in compliance with the License.
86N/A#
86N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
86N/A# or http://www.opensolaris.org/os/licensing.
86N/A# See the License for the specific language governing permissions
86N/A# and limitations under the License.
86N/A#
86N/A# When distributing Covered Code, include this CDDL HEADER in each
86N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
86N/A# If applicable, add the following below this CDDL HEADER, with the
86N/A# fields enclosed by brackets "[]" replaced with your own identifying
86N/A# information: Portions Copyright [yyyy] [name of copyright owner]
86N/A#
86N/A# CDDL HEADER END
86N/A#
86N/A
844N/A#
86N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
86N/A# Use is subject to license terms.
86N/A#
86N/A
86N/APROG= getent
618N/A
86N/Ainclude ../Makefile.cmd
86N/A
844N/ACERRWARN += -_gcc=-Wno-unused-variable
844N/ACERRWARN += -_gcc=-Wno-implicit-function-declaration
86N/A
86N/AOBJECTS= \
86N/A dogetethers.o \
86N/A dogetgr.o \
86N/A dogethost.o \
86N/A dogetipnodes.o \
86N/A dogetnet.o \
86N/A dogetnetmask.o \
86N/A dogetproject.o \
86N/A dogetproto.o \
86N/A dogetpw.o \
86N/A dogetserv.o \
86N/A getent.o
86N/A
86N/ASRCS= $(OBJECTS:.o=.c)
86N/A
86N/ALDLIBS += -lsocket -lnsl -lproject
86N/A
181N/A#
86N/A# for message catalog
88N/A#
88N/APOFILE= gettent.po
88N/APOFILES= $(SRCS:%.c=%.po)
86N/A
.KEEP_STATE:
all: $(PROG)
$(POFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
$(PROG): $(OBJECTS)
$(LINK.c) -o $@ $(OBJECTS) $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTPROG)
clean:
$(RM) $(OBJECTS)
lint: lint_SRCS
include ../Makefile.targ