#
# Copyright (c) 1988 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#	from @(#)Makefile	5.16 (Berkeley) 3/14/88
#
SRCS=	herror.c res_comp.c res_debug.c res_init.c res_mkquery.c res_query.c \
	res_send.c named/gethostnamadr.c named/sethostent.c \
	mktemp.c strcasecmp.c strpbrk.c strerror.c
OBJS=	herror.o res_comp.o res_debug.o res_init.o res_mkquery.o res_query.o \
	res_send.o gethostnamadr.o sethostent.o \
	mktemp.o strcasecmp.o strpbrk.o strerror.o
DEFS=	-DDEBUG -DALLOW_LARGE_QUERIES
CFLAGS=	-O ${DEFS} -pic -I../include

libresolv.a: ${OBJS}
	ar cru libresolv.a ${OBJS}
	ranlib libresolv.a

install: libresolv.a
	install -o bin -g bin -m 644 libresolv.a ${DESTDIR}/usr/lib
	ranlib ${DESTDIR}/usr/lib/libresolv.a

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

gethostnamadr.o: named/gethostnamadr.c
	${CC} -c ${CFLAGS} named/gethostnamadr.c

sethostent.o: named/sethostent.c
	${CC} -c ${CFLAGS} named/sethostent.c

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

depend: FRC
	mkdep ${CFLAGS} ${SRCS}

FRC:

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
