1*03100a63Svk199839# 2*03100a63Svk199839# CDDL HEADER START 3*03100a63Svk199839# 4*03100a63Svk199839# The contents of this file are subject to the terms of the 5*03100a63Svk199839# Common Development and Distribution License (the "License"). 6*03100a63Svk199839# You may not use this file except in compliance with the License. 7*03100a63Svk199839# 8*03100a63Svk199839# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*03100a63Svk199839# or http://www.opensolaris.org/os/licensing. 10*03100a63Svk199839# See the License for the specific language governing permissions 11*03100a63Svk199839# and limitations under the License. 12*03100a63Svk199839# 13*03100a63Svk199839# When distributing Covered Code, include this CDDL HEADER in each 14*03100a63Svk199839# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*03100a63Svk199839# If applicable, add the following below this CDDL HEADER, with the 16*03100a63Svk199839# fields enclosed by brackets "[]" replaced with your own identifying 17*03100a63Svk199839# information: Portions Copyright [yyyy] [name of copyright owner] 18*03100a63Svk199839# 19*03100a63Svk199839# CDDL HEADER END 20*03100a63Svk199839# 21*03100a63Svk199839# 22*03100a63Svk199839# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*03100a63Svk199839# Use is subject to license terms. 24*03100a63Svk199839# 25*03100a63Svk199839# ident "%Z%%M% %I% %E% SMI" 26*03100a63Svk199839# 27*03100a63Svk199839 28*03100a63Svk199839PROG= nc 29*03100a63Svk199839OBJS= atomicio.o netcat.o socks.o strtonum.o 30*03100a63Svk199839 31*03100a63Svk199839SRCS= $(OBJS:%.o=%.c) 32*03100a63Svk199839 33*03100a63Svk199839include ../../../Makefile.cmd 34*03100a63Svk199839 35*03100a63Svk199839LDLIBS= -lresolv -lsocket 36*03100a63Svk199839 37*03100a63Svk199839.KEEP_STATE: 38*03100a63Svk199839 39*03100a63Svk199839all: $(PROG) 40*03100a63Svk199839 41*03100a63Svk199839$(PROG): $(OBJS) 42*03100a63Svk199839 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 43*03100a63Svk199839 $(POST_PROCESS) 44*03100a63Svk199839 45*03100a63Svk199839install: all $(ROOTPROG) 46*03100a63Svk199839 47*03100a63Svk199839clean: 48*03100a63Svk199839 $(RM) $(PROG) $(OBJS) 49*03100a63Svk199839 50*03100a63Svk199839lint: lint_SRCS 51*03100a63Svk199839 52*03100a63Svk199839include ../../../Makefile.targ 53