2021-10-11 18:37:13 -03:00

28 lines
794 B
Makefile

#
# 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 1.1 94/10/31 SMI from UCB 5.7 9/14/85
#
OBJS= gethostnamadr.o sethostent.o res_comp.o res_debug.o \
res_init.o res_mkquery.o res_query.o res_send.o strcasecmp.o
SRCS= gethostnamadr.c sethostent.c res_comp.c res_debug.c \
res_init.c res_mkquery.c res_query.c res_send.c strcasecmp.c
CFLAGS = -DDEBUG -DBSD=43 -O -pic
DESTDIR=
libresolv.a: ${OBJS}
-rm -f libresolv.a
ar cru libresolv.a `lorder ${OBJS} | tsort`
ranlib libresolv.a
clean:
rm -f *.o errs libresolv.a
install: libresolv.a
install -m 644 libresolv.a ${DESTDIR}/usr/lib/libresolv.a
ranlib ${DESTDIR}/usr/lib/libresolv.a