1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# CDDL HEADER START
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# The contents of this file are subject to the terms of the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Common Development and Distribution License (the "License").
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You may not use this file except in compliance with the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# or http://www.opensolaris.org/os/licensing.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# See the License for the specific language governing permissions
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# and limitations under the License.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# If applicable, add the following below this CDDL HEADER, with the
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# fields enclosed by brackets "[]" replaced with your own identifying
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley# CDDL HEADER END
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley# Use is subject to license terms.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyPROG = servinfo
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyOBJS = servinfo.o
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleySRCS = $(OBJS:%.o=%.c)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob HalleyPOFILES = $(OBJS:.o=.po)
a75f433c831be334df8f1eafa9f77e940b5ae58cBob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyinclude ../../Makefile.cmd
a75f433c831be334df8f1eafa9f77e940b5ae58cBob Halleyinclude ../../Makefile.ctf
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
918bae0f4bf1dc9e66a6667b25978451b50c35b1Bob HalleyLDLIBS += -lnsl -lsocket
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
918bae0f4bf1dc9e66a6667b25978451b50c35b1Bob Halleylint := LINTFLAGS = -ux
918bae0f4bf1dc9e66a6667b25978451b50c35b1Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley.KEEP_STATE:
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyall: $(PROG)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley$(PROG): $(OBJS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(POST_PROCESS)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyinstall: all $(ROOTLIBPROG)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyclean:
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley $(RM) $(OBJS) $(POFILES) $(PROG)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halleylint: lint_SRCS
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleyinclude ../../Makefile.targ
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley