#
# Copyright (c) 1980 Regents of the University of California.
# All rights reserved.  The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
#	@(#)Makefile	5.3 (Berkeley) 4/30/86
#
CFLAGS=-O -I/bsd
TAGSFILE=tags
LIBNAME = libetchosts.a

all: libetchosts.a

libetchosts.a: gethostent.c gthostnamadr.c
	${CC} -c ${CFLAGS} gethostent.c
	${CC} -c ${CFLAGS} gthostnamadr.c
	rm -f ${LIBNAME}
	${AR} rv ${LIBNAME} *.o

install: $(LIBNAME)
	cp $(LIBNAME) $(ROOT)/usr/lib/$(LIBNAME)
	chown bin $(ROOT)/usr/lib/$(LIBNAME)
	chgrp bin $(ROOT)/usr/lib/$(LIBNAME)
	chmod 664 $(ROOT)/usr/lib/$(LIBNAME)


clean:
	rm -f *.o ${LIBNAME} errs a.out core

clobber: clean
	rm -f ${LIBNAME}
