head	1.16;
access;
symbols
	RELENG_4_11_0_RELEASE:1.14.2.1
	RELENG_4_11:1.14.2.1.0.10
	RELENG_4_11_BP:1.14.2.1
	RELENG_4_10_0_RELEASE:1.14.2.1
	RELENG_4_10:1.14.2.1.0.8
	RELENG_4_10_BP:1.14.2.1
	RELENG_4_9_0_RELEASE:1.14.2.1
	RELENG_4_9:1.14.2.1.0.6
	RELENG_4_9_BP:1.14.2.1
	RELENG_4_8_0_RELEASE:1.14.2.1
	RELENG_4_8:1.14.2.1.0.4
	RELENG_4_8_BP:1.14.2.1
	RELENG_4_7_0_RELEASE:1.14.2.1
	RELENG_4_7:1.14.2.1.0.2
	RELENG_4_7_BP:1.14.2.1
	RELENG_4_6_2_RELEASE:1.14
	RELENG_4_6_1_RELEASE:1.14
	RELENG_4_6_0_RELEASE:1.14
	RELENG_4_6:1.14.0.10
	RELENG_4_6_BP:1.14
	RELENG_4_5_0_RELEASE:1.14
	RELENG_4_5:1.14.0.8
	RELENG_4_5_BP:1.14
	RELENG_4_4_0_RELEASE:1.14
	RELENG_4_4:1.14.0.6
	RELENG_4_4_BP:1.14
	RELENG_4_3_0_RELEASE:1.14
	RELENG_4_3:1.14.0.4
	RELENG_4_3_BP:1.14
	RELENG_4_2_0_RELEASE:1.14
	RELENG_4_1_1_RELEASE:1.14
	PRE_SMPNG:1.14
	RELENG_4_1_0_RELEASE:1.14
	RELENG_3_5_0_RELEASE:1.13.2.1
	RELENG_4_0_0_RELEASE:1.14
	RELENG_4:1.14.0.2
	RELENG_4_BP:1.14
	RELENG_3_4_0_RELEASE:1.13.2.1
	RELENG_3_3_0_RELEASE:1.13.2.1
	RELENG_3_2_PAO:1.13.0.4
	RELENG_3_2_PAO_BP:1.13
	RELENG_3_2_0_RELEASE:1.13
	RELENG_3_1_0_RELEASE:1.13
	RELENG_3:1.13.0.2
	RELENG_3_BP:1.13
	RELENG_2_2_8_RELEASE:1.10
	RELENG_3_0_0_RELEASE:1.13
	RELENG_2_2_7_RELEASE:1.10
	RELENG_2_2_6_RELEASE:1.10
	RELENG_2_2_5_RELEASE:1.10
	RELENG_2_2_2_RELEASE:1.10
	RELENG_2_2_1_RELEASE:1.10
	RELENG_2_2_0_RELEASE:1.10
	RELENG_2_2:1.10.0.2
	RELENG_2_2_BP:1.10;
locks; strict;
comment	@# @;


1.16
date	2002.05.13.09.01.18;	author ru;	state dead;
branches;
next	1.15;

1.15
date	2001.11.03.06.33.08;	author peter;	state Exp;
branches;
next	1.14;

1.14
date	99.08.28.00.04.41;	author peter;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	98.10.11.04.18.30;	author peter;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	97.02.22.15.06.55;	author peter;	state Exp;
branches;
next	1.11;

1.11
date	97.01.14.06.09.31;	author jkh;	state Exp;
branches;
next	1.10;

1.10
date	96.10.08.20.06.22;	author bde;	state Exp;
branches
	1.10.2.1;
next	1.9;

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

1.8
date	96.09.27.12.10.08;	author peter;	state Exp;
branches;
next	1.7;

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

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

1.5
date	96.09.19.09.36.43;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	96.09.02.13.15.00;	author phk;	state Exp;
branches;
next	1.3;

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

1.2
date	96.02.12.12.40.04;	author phk;	state Exp;
branches;
next	1.1;

1.1
date	96.02.11.18.12.41;	author phk;	state Exp;
branches;
next	;

1.10.2.1
date	99.09.05.11.17.00;	author peter;	state Exp;
branches;
next	;

1.13.2.1
date	99.08.29.14.56.59;	author peter;	state Exp;
branches;
next	;

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


desc
@@


1.16
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
@# $FreeBSD: src/lib/libgnumalloc/Makefile,v 1.15 2001/11/03 06:33:08 peter Exp $

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

SRCS=	cfree.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" -lgnumalloc
# and continue to propagate the bogosity.  The ldconfig path fix will enable
# you to run programs that were linked with -lgnumalloc (such as XFree86).
#
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.15
log
@Do not fail doing rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a if the
intermediate directories dont exist.  (eg: when building standalone
includes, using the beforeinstall target in src/lib)
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.14
log
@$Id$ -> $FreeBSD$
@
text
@d23 1
a23 1
	rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a \
@


1.14.2.1
log
@MFC: removed a.out libs.
@
text
@d1 1
a1 1
# $FreeBSD: src/lib/libgnumalloc/Makefile,v 1.14 1999/08/28 00:04:41 peter Exp $
@


1.13
log
@Don't install an elf libgnumalloc.so* in /usr/lib/compat.. No elf binaries
have been linked against it.  Try and clean up the leftovers.  Also, put
the a.out libs in /usr/lib/compat/aout since that's where the default
a.out ldconfig compat path points to.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.12 1997/02/22 15:06:55 peter Exp $
@


1.13.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.12
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 1
a1 1
#	$Id$
d10 4
d24 5
a28 2
	  ${DESTDIR}${LIBDIR}/lib${LIB}_p.a \
	  ${DESTDIR}${ORIG_SHLIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
d37 1
a37 1
SHLIBDIR=	/usr/lib/compat
@


1.11
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d1 1
a1 1
#	$FreeBSD$
@


1.10
log
@Yet another attempt to remove the old libraries correctly.  libfoo.*
was misnamed foo.*.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1996/09/27 16:22:37 bde Exp $
@


1.10.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.9
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
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1996/09/27 12:10:08 peter Exp $
d19 3
a21 2
	rm -f ${DESTDIR}${LIBDIR}/${LIB}.a ${DESTDIR}${LIBDIR}/${LIB}_p.a \
	    ${DESTDIR}${ORIG_SHLIBDIR}/${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
@


1.8
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
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1996/09/27 06:58:03 peter Exp $
d4 1
a4 1
INTERNALLIB=	yes		# Do not build or install lib*.a
d19 2
a20 2
	rm -f ${DESTDIR}${ORIG_SHLIBDIR}/libgnumalloc.a
	rm -f ${DESTDIR}${ORIG_SHLIBDIR}/libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
d23 7
a29 2
ORIG_SHLIBDIR:= ${SHLIBDIR}
SHLIBDIR=	${ORIG_SHLIBDIR}/compat
@


1.7
log
@Repository copy libfakegnumalloc to libgnumalloc and remove the symlink
stuff and detection for the "gnumalloc" port which doesn't exist and
nobody has cared enough about for the past 6 months or so to implement.

As has been pointed out to me (quite a few times) in email, the people
that had been bitten by the changes had failed to follow the instructions
about updating /etc/rc.

Bruce also pointed out that after my last commit, it was no longer
removing /usr/lib/libgnumalloc.so.2.0 as it should have been.

Hopefully this (and the comments in the Makefile) should defuse the problem
a bit.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1996/09/26 14:22:32 peter Exp $
a3 1
SHLIBDIR=	${LIBDIR}/compat
d19 2
a20 2
	rm -f ${DESTDIR}${LIBDIR}/libgnumalloc.a
	rm -f ${DESTDIR}${LIBDIR}/libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
d23 2
@


1.6
log
@Remove the nuke of /usr/lib/libgnumalloc*, this is closer to "How It Was
Before", hopefully it won't cause as much hassle.  This now entirely
confines it's activities to /usr/lib/compat/lib{fake,}gnumalloc.so.2.0
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.5 1996/09/19 09:36:43 peter Exp $
d3 1
a3 1
LIB=		fakegnumalloc
d9 1
a9 1
SRCS=	fakegnumalloc.c
d11 11
a21 8
afterinstall:
	for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; do \
		if [ -d $$i ] ; then exit 0 ; fi ; \
	done && \
	( cd ${DESTDIR}${SHLIBDIR} && \
	  rm -f libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} && \
	  ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
		 libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} )
@


1.5
log
@Minor tweaks for the fake libgnumalloc stuff.  No longer build, install and
then rm the *.a version
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.4 1996/09/02 13:15:00 phk Exp $
a11 2
	rm -f ${DESTDIR}${LIBDIR}/libgnumalloc*
	rm -f ${DESTDIR}${SHLIBDIR}/libgnumalloc*
d16 1
@


1.4
log
@Add cfree,
Move to usr/lib/compat
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1996/08/30 01:08:03 peter Exp $
d3 3
a5 2
LIB=	fakegnumalloc
LIBDIR=	/usr/lib/compat
d8 1
a9 1
NOMAN=	1
d12 2
a13 1
	rm -f ${DESTDIR}${LIBDIR}/libfakegnumalloc*.a
a17 1
	  rm -f libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} && \
@


1.3
log
@Add a missing ${ on a make variable..
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1996/02/12 12:40:04 phk Exp $
d4 1
@


1.2
log
@Some fixes:
- shared libraries are in ${SHLIBDIR}, not necessarily in ${LIBDIR}.
- don't remove or create any shared library versions except 2.0.

and improvements:
- don't use rm -r.
- indent the long shell command.

Submitted by:	bde
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1996/02/11 18:12:41 phk Exp $
d15 1
a15 1
	  rm -f libgnumalloc.so.SHLIB_MAJOR}.${SHLIB_MINOR} && \
@


1.1
log
@Make a scaffold libgnumalloc.so.#.# unless there is a packeage called
"gnumalloc*"
@
text
@d1 1
a1 1
#	$Id$
d4 2
d11 7
a17 6
	for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; \
	do if [ -d $$i ] ; then exit 0 ; fi ; done && \
	( cd ${DESTDIR}${LIBDIR} && \
	rm -rf libgnumalloc* && \
	ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
	libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} )
@
