103100a63Svk#
203100a63Svk# CDDL HEADER START
303100a63Svk#
403100a63Svk# The contents of this file are subject to the terms of the
503100a63Svk# Common Development and Distribution License (the "License").
603100a63Svk# You may not use this file except in compliance with the License.
703100a63Svk#
803100a63Svk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
903100a63Svk# or http://www.opensolaris.org/os/licensing.
1003100a63Svk# See the License for the specific language governing permissions
1103100a63Svk# and limitations under the License.
1203100a63Svk#
1303100a63Svk# When distributing Covered Code, include this CDDL HEADER in each
1403100a63Svk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1503100a63Svk# If applicable, add the following below this CDDL HEADER, with the
1603100a63Svk# fields enclosed by brackets "[]" replaced with your own identifying
1703100a63Svk# information: Portions Copyright [yyyy] [name of copyright owner]
1803100a63Svk#
1903100a63Svk# CDDL HEADER END
2003100a63Svk#
2103100a63Svk#
2203100a63Svk# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2303100a63Svk# Use is subject to license terms.
2403100a63Svk#
2503100a63Svk
2603100a63SvkPROG= nc
274585130bSYuri PankovOBJS= atomicio.o netcat.o socks.o
2803100a63Svk
2903100a63SvkSRCS= $(OBJS:%.o=%.c)
3003100a63Svk
3103100a63Svkinclude		../../../Makefile.cmd
3203100a63Svk
332175ea5bSvkLDLIBS +=	-lresolv -lsocket
34*d3b5f563SJohn LevonCERRWARN +=	$(CNOWARN_UNINIT)
3503100a63Svk
3603100a63Svk.KEEP_STATE:
3703100a63Svk
3803100a63Svkall: $(PROG)
3903100a63Svk
4003100a63Svk$(PROG): $(OBJS)
4103100a63Svk	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
4203100a63Svk	$(POST_PROCESS)
4303100a63Svk
4403100a63Svkinstall: all $(ROOTPROG)
4503100a63Svk
4603100a63Svkclean:
4703100a63Svk	$(RM) $(PROG) $(OBJS)
4803100a63Svk
4903100a63Svklint:   lint_SRCS
5003100a63Svk
5103100a63Svkinclude		../../../Makefile.targ
52