
# SCCS_ID - "@(#)Makefile (TWG)       1.4     89/09/08 "
#
#   @(#) Copyright (c) 1985  The Wollongong Group, Inc.  All Rights Reserved
#
LIB	= ../libnet.a

SOURCES	= LIBVRSN.c getprent.c gthstnmadr.c res_init.c sethostent.c \
	getprname.c herror.c res_mkqury.c strcasecmp.c getproto.c \
	res_query.c tcp_conn.c getnbyaddr.c getsbyname.c  rcmd.c \
	res_send.c getnbyname.c getsbyport.c res_comp.c rexec.c \
	getnetent.c getservent.c res_debug.c ruserpass.c ruserok.c

OBJECTS	= $(LIB)(gthstnmadr.o) $(LIB)(res_init.o) $(LIB)(res_comp.o) \
	$(LIB)(res_debug.o) $(LIB)(res_mkqury.o) $(LIB)(res_send.o) \
	$(LIB)(res_query.o) $(LIB)(herror.o) $(LIB)(strcasecmp.o) \
	$(LIB)(getnbyaddr.o) $(LIB)(getnetent.o) $(LIB)(getnbyname.o) \
	$(LIB)(getproto.o) $(LIB)(getprent.o) $(LIB)(getprname.o) \
	$(LIB)(getservent.o) $(LIB)(getsbyport.o) $(LIB)(getsbyname.o) \
	$(LIB)(rcmd.o) $(LIB)(rexec.o) $(LIB)(ruserpass.o) \
	$(LIB)(tcp_conn.o) $(LIB)(sethostent.o) $(LIB)(ruserok.o)

SHELL	= /bin/sh

BINDIST = ../../../bindist
SRCDIST = ../../../srcdist

OPTS	= -O
DEFINES	= -DEBUG
DEBUG = #-g
INCLUDE	= -I../../../include

include	../../../make.pre
DEFS	= -DNO_SCCS_ID -DSYSV $(DEFINES)
CFLAGS	= $(DEFS) $(OPTS) $(INCLUDE) $(DEBUG)

$(LIB) all: $(OBJECTS)
	@echo $(LIB) is up to date

.c.a: $*.c
	$(CC) $(CFLAGS) -c $*.c
	ar rv $(LIB) $*.o
	-rm -f $*.o

.PRECIOUS: $(LIB)

srcdist :
	cp $(SOURCES) Makefile $(SRCDIST)/user/usr/lib/net

bindist :

clean	:
	rm -f *.o  errs a.out core make.out

clobber	: clean
