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

LIB = ../libnet.a

SOURCES = inet_addr.c inetnetwrk.c inet_netof.c inet_ntoa.c \
	inet_lnaof.c inetmkaddr.c tcp_rdwr.c
OBJECTS = $(LIB)(inet_addr.o) $(LIB)(inetnetwrk.o) $(LIB)(inet_netof.o) \
	$(LIB)(inet_ntoa.o) $(LIB)(inet_lnaof.o) $(LIB)(inetmkaddr.o) \
	$(LIB)(tcp_rdwr.o)

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

SHELL = /bin/sh
OPTS = -O
DEFINES =

include	../../../make.pre

DEFS = -DNO_SCCS_ID $(DEFINES)
INCLUDE = -I../../../include
CFLAGS= $(DEFS) $(OPTS) $(INCLUDE) 

$(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/inet

bindist :

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

clobber : clean
