
# SCCS_ID - "@(#)Makefile (TWG)       1.5     89/09/08 "
#
#   @(#) Copyright (c) 1985  The Wollongong Group, Inc.  All Rights Reserved
#
LIB = ../libnet.a
SOURCES = bcmp.c bcopy.c bzero.c ffs.c htonl.c htons.c index.c insque.c \
	ntohl.c ntohs.c remque.c rindex.c WIN_error.c

OBJECTS = $(LIB)(bcmp.o) $(LIB)(bcopy.o) $(LIB)(bzero.o) $(LIB)(ffs.o) \
	$(LIB)(htonl.o) $(LIB)(htons.o) $(LIB)(index.o) $(LIB)(insque.o) \
	$(LIB)(ntohl.o) $(LIB)(ntohs.o) $(LIB)(remque.o) $(LIB)(rindex.o) \
	$(LIB)(WIN_error.o)

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

OPTS = -O
DEFINES =

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

DEFS = $(DEFINES) -DNO_SCCS_ID $(PLAT)
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/gen

bindist :

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

clobber	: clean
