head	1.12;
access;
symbols
	RELENG_4_11_0_RELEASE:1.10.6.1
	RELENG_4_11:1.10.6.1.0.10
	RELENG_4_11_BP:1.10.6.1
	RELENG_4_10_0_RELEASE:1.10.6.1
	RELENG_4_10:1.10.6.1.0.8
	RELENG_4_10_BP:1.10.6.1
	RELENG_4_9_0_RELEASE:1.10.6.1
	RELENG_4_9:1.10.6.1.0.6
	RELENG_4_9_BP:1.10.6.1
	RELENG_4_8_0_RELEASE:1.10.6.1
	RELENG_4_8:1.10.6.1.0.4
	RELENG_4_8_BP:1.10.6.1
	RELENG_4_7_0_RELEASE:1.10.6.1
	RELENG_4_7:1.10.6.1.0.2
	RELENG_4_7_BP:1.10.6.1
	RELENG_4_6_2_RELEASE:1.10
	RELENG_4_6_1_RELEASE:1.10
	RELENG_4_6_0_RELEASE:1.10
	RELENG_4_6:1.10.0.14
	RELENG_4_6_BP:1.10
	RELENG_4_5_0_RELEASE:1.10
	RELENG_4_5:1.10.0.12
	RELENG_4_5_BP:1.10
	RELENG_4_4_0_RELEASE:1.10
	RELENG_4_4:1.10.0.10
	RELENG_4_4_BP:1.10
	RELENG_4_3_0_RELEASE:1.10
	RELENG_4_3:1.10.0.8
	RELENG_4_3_BP:1.10
	RELENG_4_2_0_RELEASE:1.10
	RELENG_4_1_1_RELEASE:1.10
	PRE_SMPNG:1.10
	RELENG_4_1_0_RELEASE:1.10
	RELENG_3_5_0_RELEASE:1.10
	RELENG_4_0_0_RELEASE:1.10
	RELENG_4:1.10.0.6
	RELENG_4_BP:1.10
	RELENG_3_4_0_RELEASE:1.10
	RELENG_3_3_0_RELEASE:1.10
	RELENG_3_2_PAO:1.10.0.4
	RELENG_3_2_PAO_BP:1.10
	RELENG_3_2_0_RELEASE:1.10
	RELENG_3_1_0_RELEASE:1.10
	RELENG_3:1.10.0.2
	RELENG_3_BP:1.10
	RELENG_2_2_8_RELEASE:1.9
	RELENG_3_0_0_RELEASE:1.10
	RELENG_2_2_7_RELEASE:1.9
	RELENG_2_2_6_RELEASE:1.9
	RELENG_2_2_5_RELEASE:1.9
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.9
	RELENG_2_2_1_RELEASE:1.9
	RELENG_2_2_0_RELEASE:1.9
	RELENG_2_1_7_RELEASE:1.1.1.1
	RELENG_2_1_6_1_RELEASE:1.1.1.1
	RELENG_2_1_6_RELEASE:1.1.1.1
	RELENG_2_2:1.9.0.2
	RELENG_2_2_BP:1.9
	RELENG_2_1_5_RELEASE:1.1.1.1
	RELENG_2_1_0_RELEASE:1.1.1.1
	RELENG_2_1_0:1.1.1.1.0.6
	RELENG_2_1_0_BP:1.1.1.1
	RELENG_2_0_5_RELEASE:1.1.1.1
	RELENG_2_0_5:1.1.1.1.0.4
	RELENG_2_0_5_BP:1.1.1.1
	RELENG_2_0_5_ALPHA:1.1.1.1
	RELEASE_2_0:1.1.1.1
	BETA_2_0:1.1.1.1
	ALPHA_2_0:1.1.1.1.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.12
date	2002.05.13.09.01.18;	author ru;	state dead;
branches;
next	1.11;

1.11
date	2001.11.03.06.26.15;	author peter;	state Exp;
branches;
next	1.10;

1.10
date	98.10.11.04.21.56;	author peter;	state Exp;
branches
	1.10.6.1;
next	1.9;

1.9
date	96.10.08.20.06.41;	author bde;	state Exp;
branches;
next	1.8;

1.8
date	96.09.27.16.22.49;	author bde;	state Exp;
branches;
next	1.7;

1.7
date	96.09.27.12.10.14;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	96.09.27.07.02.21;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	96.09.11.01.23.11;	author bde;	state Exp;
branches;
next	1.4;

1.4
date	96.09.07.17.58.36;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	96.09.03.13.22.58;	author peter;	state Exp;
branches;
next	1.2;

1.2
date	96.08.30.01.14.40;	author peter;	state Exp;
branches;
next	1.1;

1.1
date	94.05.27.04.59.14;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.05.27.04.59.15;	author rgrimes;	state Exp;
branches;
next	;

1.10.6.1
date	2002.07.19.18.45.29;	author ru;	state dead;
branches;
next	;


desc
@@


1.12
log
@Removed the a.out compatibility cruft.

libgnumalloc.so.2 and libresolv.so.2 should be put under
lib/compat/compat2?/ but I don't have the 2.x releases.
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 6/4/93
# $FreeBSD: src/lib/libresolv/Makefile,v 1.11 2001/11/03 06:26:15 peter Exp $

LIB=		resolv
INTERNALLIB=	yes		# Do not build or install ${LIB}*.a
SHLIB_MAJOR=	2
SHLIB_MINOR=	0

SRCS=	fakelib.c

.if ${OBJFORMAT} != aout
NOPIC=		true
.endif

#
# Before complaining about this, please *double-check* that you have
# updated the ldconfig path in /etc/rc to include /usr/lib/compat that
# was added in src/etc/rc rev 1.98.
# This is so that programs that use autoconf will not "detect" -lresolv
# and continue to propagate the bogosity.  The ldconfig path fix will
# enable you to run programs that were linked with -lresolv.
#
# libresolv on FreeBSD-2.x **never did anything**!!
#
beforeinstall:
	-rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a \
	 ${DESTDIR}${LIBDIR}/lib${LIB}_p.a \
	 ${DESTDIR}${ORIG_SHLIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
	 ${DESTDIR}/usr/lib/compat/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
	 ${DESTDIR}/usr/lib/compat/lib${LIB}.so.${SHLIB_MAJOR} \
	 ${DESTDIR}/usr/lib/compat/lib${LIB}.so

.include <bsd.lib.mk>

# This must follow the .include in case SHLIBDIR is defined there.
ORIG_SHLIBDIR:=	${SHLIBDIR}

# The ldconfig line in/etc/rc doesn't depend on ${LIBDIR} or ${SHLIBDIR},
# so neither does this.
SHLIBDIR=	/usr/lib/compat/aout
@


1.11
log
@Dont fail if ${DESTDIR}${LIBDIR}/ or any of its components dont
exist for the rm -f of libresolv.a
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.10
log
@Don't build elf libresolv.so*, no elf freebsd binaries have used it ever.
Also, the a.out compat version is supposed to go into /usr/lib/compat/aout.
Try and clean up the mess left behind in /usr/lib/compat.
@
text
@d2 1
d26 1
a26 1
	rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a \
@


1.10.6.1
log
@MFC: removed a.out libs.
@
text
@@


1.9
log
@Yet another attempt to remove the old libraries correctly.  libfoo.*
was misnamed foo.*.
@
text
@d10 4
d26 5
a30 2
	  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a \
	  ${DESTDIR}${ORIG_SHLIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
d39 1
a39 1
SHLIBDIR=	/usr/lib/compat
@


1.8
log
@Peter must be sick of this, so I changed it directly.  Fixed:
- old static non-profiled libraries were removed in the wrong directory
  if ${ORIG_SHLIBDIR} != ${LIBDIR}.
- old profiled libraries weren't removed.
- new shared compat libraries were installed in the wrong directory if
  ${ORIG_SHLIBDIR} != /usr/lib.
- some lines were too long.
Added some comments about cases that have caused problems.  Changed
libfoo to ${LIB} so that libresolv/Makefile and libgnumalloc/Makefile
are almost identical.
@
text
@d21 3
a23 2
	rm -f ${DESTDIR}${LIBDIR}/${LIB}.a ${DESTDIR}${LIBDIR}/${LIB}_p.a \
	    ${DESTDIR}${ORIG_SHLIBDIR}/${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
@


1.7
log
@Don't rely on LIBDIR having been equal to SHLIBDIR on Bruce's suggestion.

Set ORIG_SHLIBDIR to the expanded value of ${SHLIBDIR}, and use that
as a base to modify the new SHLIBDIR without getting infinite recursion.
@
text
@d4 1
a4 1
INTERNALLIB=	yes		# Do not build or install libresolv*.a
d21 2
a22 2
	rm -f ${DESTDIR}${ORIG_SHLIBDIR}/libresolv.a
	rm -f ${DESTDIR}${ORIG_SHLIBDIR}/libresolv.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
d25 2
d28 4
a31 1
SHLIBDIR=	${ORIG_SHLIBDIR}/compat
@


1.6
log
@Attempt to clean some bogons.  I've had so much email with comments,
complaints and suggestions about this over the last few days that I
cannot remember who has said what anymore. :-(

There is also a comment here about the intent of the process and another
explicit pointer to the etc/etc/rc change to that has been ignored by
quite a few people it seems.
@
text
@a3 1
SHLIBDIR=	${LIBDIR}/compat
d21 2
a22 2
	rm -f ${DESTDIR}${LIBDIR}/libresolv.a
	rm -f ${DESTDIR}${LIBDIR}/libresolv.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
d25 2
@


1.5
log
@Fixed non-removal of old libresolv_p.a.

Cleaned up formatting.
@
text
@d6 2
d11 13
a23 2
afterinstall:
	rm -f ${DESTDIR}${LIBDIR}/libresolv*
@


1.4
log
@clean up some warts Bruce pointed out.
 - no longer build or install libresolv.a, since we were immediately
   deleting it in afterinstall.
 - untangle $LIBDIR and $SHLIBDIR
@
text
@d3 3
a5 4
LIB=resolv
SHLIBDIR=${LIBDIR}/compat

INTERNALLIB=	yes	#do not build or install libresolv.a
d10 1
a10 1
	rm -f ${DESTDIR}${LIBDIR}/libresolv.*
@


1.3
log
@Install in /usr/lib/compat where ld.so can find it for older binaries,
but autoconf/ld/etc won't find it for new builds..
@
text
@d4 3
a6 1
LIBDIR=/usr/lib/compat
d11 1
a11 2
	rm -f ${DESTDIR}${LIBDIR}/libresolv.a
	rm -f ${DESTDIR}/usr/lib/libresolv.*
@


1.2
log
@Quick hack to replace a destructive libresolv.so.2.0 with something
that transparently resolves references to libc.
@
text
@d4 1
d10 1
@


1.1
log
@Initial revision
@
text
@a3 1
CFLAGS+=-DDEBUG -DLIBC_SCCS
d5 1
a5 1
.PATH:	${.CURDIR}/../libc/net
d7 2
a8 1
SRCS=gethostnamadr.c res_mkquery.c res_query.c res_send.c
@


1.1.1.1
log
@BSD 4.4 Lite Lib Sources
@
text
@@
