#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.  The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
#	@(#)Makefile	6.4 (Berkeley) 6/6/87
#

OBJS=	gethost.o sethostent.o

SRCS=	gethost.c sethostent.c

CFLAGS= -O ${DEFS} 
INCLUDE=../../include
TAGSFILE= tags
DESTDIR=

.c.o:
	${CC} -c -I${INCLUDE} ${CFLAGS} $*.c

hostlib hostlib_p: ${OBJS} 
	@echo "building normal hostlib"
	@ar cru hostlib ${OBJS}

tags:
	cwd=`pwd`; \
	for i in ${SRCS}; do \
		ctags -a -f ${TAGSFILE} $$cwd/$$i; \
	done

clean:
	rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o tags

