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