head	1.43;
access;
symbols
	RELENG_5_5_0_RELEASE:1.42.8.1
	RELENG_5_5:1.42.8.1.0.4
	RELENG_5_5_BP:1.42.8.1
	RELENG_5_4_0_RELEASE:1.42.8.1
	RELENG_5_4:1.42.8.1.0.2
	RELENG_5_4_BP:1.42.8.1
	RELENG_4_11_0_RELEASE:1.40.2.1
	RELENG_4_11:1.40.2.1.0.10
	RELENG_4_11_BP:1.40.2.1
	RELENG_5_3_0_RELEASE:1.42
	RELENG_5_3:1.42.0.10
	RELENG_5_3_BP:1.42
	RELENG_5:1.42.0.8
	RELENG_5_BP:1.42
	RELENG_4_10_0_RELEASE:1.40.2.1
	RELENG_4_10:1.40.2.1.0.8
	RELENG_4_10_BP:1.40.2.1
	RELENG_5_2_1_RELEASE:1.42
	RELENG_5_2_0_RELEASE:1.42
	RELENG_5_2:1.42.0.6
	RELENG_5_2_BP:1.42
	RELENG_4_9_0_RELEASE:1.40.2.1
	RELENG_4_9:1.40.2.1.0.6
	RELENG_4_9_BP:1.40.2.1
	RELENG_5_1_0_RELEASE:1.42
	RELENG_5_1:1.42.0.4
	RELENG_5_1_BP:1.42
	RELENG_4_8_0_RELEASE:1.40.2.1
	RELENG_4_8:1.40.2.1.0.4
	RELENG_4_8_BP:1.40.2.1
	RELENG_5_0_0_RELEASE:1.42
	RELENG_5_0:1.42.0.2
	RELENG_5_0_BP:1.42
	RELENG_4_7_0_RELEASE:1.40.2.1
	RELENG_4_7:1.40.2.1.0.2
	RELENG_4_7_BP:1.40.2.1
	RELENG_4_6_2_RELEASE:1.40
	RELENG_4_6_1_RELEASE:1.40
	RELENG_4_6_0_RELEASE:1.40
	RELENG_4_6:1.40.0.10
	RELENG_4_6_BP:1.40
	RELENG_4_5_0_RELEASE:1.40
	RELENG_4_5:1.40.0.8
	RELENG_4_5_BP:1.40
	RELENG_4_4_0_RELEASE:1.40
	RELENG_4_4:1.40.0.6
	RELENG_4_4_BP:1.40
	RELENG_4_3_0_RELEASE:1.40
	RELENG_4_3:1.40.0.4
	RELENG_4_3_BP:1.40
	RELENG_4_2_0_RELEASE:1.40
	RELENG_4_1_1_RELEASE:1.40
	PRE_SMPNG:1.40
	RELENG_4_1_0_RELEASE:1.40
	RELENG_3_5_0_RELEASE:1.39.2.1
	RELENG_4_0_0_RELEASE:1.40
	RELENG_4:1.40.0.2
	RELENG_4_BP:1.40
	RELENG_3_4_0_RELEASE:1.39.2.1
	RELENG_3_3_0_RELEASE:1.39.2.1
	RELENG_3_2_PAO:1.39.0.4
	RELENG_3_2_PAO_BP:1.39
	RELENG_3_2_0_RELEASE:1.39
	RELENG_3_1_0_RELEASE:1.39
	RELENG_3:1.39.0.2
	RELENG_3_BP:1.39
	RELENG_2_2_8_RELEASE:1.25.2.5
	RELENG_3_0_0_RELEASE:1.38
	RELENG_2_2_7_RELEASE:1.25.2.5
	RELENG_2_2_6_RELEASE:1.25.2.4
	RELENG_2_2_5_RELEASE:1.25.2.3
	bsd_44_lite_2:1.1.1.2
	CSRG:1.1.1
	RELENG_2_2_2_RELEASE:1.25.2.2
	RELENG_2_2_1_RELEASE:1.25.2.1
	RELENG_2_2_0_RELEASE:1.25.2.1
	RELENG_2_1_7_RELEASE:1.15.4.3
	RELENG_2_1_6_1_RELEASE:1.15.4.3
	RELENG_2_1_6_RELEASE:1.15.4.3
	RELENG_2_2:1.25.0.2
	RELENG_2_2_BP:1.25
	RELENG_2_1_5_RELEASE:1.15.4.3
	RELENG_2_1_0_RELEASE:1.15.4.1
	RELENG_2_1_0:1.15.0.4
	RELENG_2_1_0_BP:1.15
	RELENG_2_0_5_RELEASE:1.15
	RELENG_2_0_5:1.15.0.2
	RELENG_2_0_5_BP:1.15
	RELENG_2_0_5_ALPHA:1.15
	RELEASE_2_0:1.12
	BETA_2_0:1.12
	ALPHA_2_0:1.12.0.2
	MOVED_NEWCVS:1.9
	FINAL_1_1:1.8
	GAMMA_1_1:1.8
	BETA_1_1:1.8.0.2
	BP_BETA_1_1:1.8
	FINAL_1_0:1.2
	EPSILON_1_0:1.2
	GAMMA_1_0:1.2
	BETA_1_0:1.2
	ALPHA_1_0:1.2
	V_0_1_2_4:1.1.1.1;
locks; strict;
comment	@# @;


1.43
date	2005.01.11.18.35.40;	author trhodes;	state dead;
branches;
next	1.42;

1.42
date	2002.07.29.09.40.10;	author ru;	state Exp;
branches
	1.42.8.1;
next	1.41;

1.41
date	2002.03.29.22.43.40;	author markm;	state Exp;
branches;
next	1.40;

1.40
date	99.08.27.23.57.54;	author peter;	state Exp;
branches
	1.40.2.1;
next	1.39;

1.39
date	98.12.27.15.24.21;	author bde;	state Exp;
branches
	1.39.2.1;
next	1.38;

1.38
date	98.05.31.11.32.37;	author bde;	state Exp;
branches;
next	1.37;

1.37
date	98.05.26.20.12.52;	author sos;	state Exp;
branches;
next	1.36;

1.36
date	98.02.11.04.57.10;	author jdp;	state Exp;
branches;
next	1.35;

1.35
date	98.02.09.06.05.07;	author jdp;	state Exp;
branches;
next	1.34;

1.34
date	98.02.06.16.46.31;	author jdp;	state Exp;
branches;
next	1.33;

1.33
date	98.01.12.18.29.02;	author eivind;	state Exp;
branches;
next	1.32;

1.32
date	97.10.11.02.37.42;	author asami;	state Exp;
branches;
next	1.31;

1.31
date	97.04.30.03.12.09;	author msmith;	state Exp;
branches;
next	1.30;

1.30
date	97.04.02.16.49.18;	author jdp;	state Exp;
branches;
next	1.29;

1.29
date	97.04.01.13.53.16;	author bde;	state Exp;
branches;
next	1.28;

1.28
date	97.02.22.14.57.41;	author peter;	state Exp;
branches;
next	1.27;

1.27
date	97.01.14.06.00.30;	author jkh;	state Exp;
branches;
next	1.26;

1.26
date	97.01.01.04.52.55;	author bde;	state Exp;
branches;
next	1.25;

1.25
date	96.08.30.01.41.52;	author peter;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	96.05.07.23.16.08;	author wosch;	state Exp;
branches;
next	1.23;

1.23
date	95.11.02.12.42.41;	author ache;	state Exp;
branches;
next	1.22;

1.22
date	95.10.29.09.49.18;	author phk;	state Exp;
branches;
next	1.21;

1.21
date	95.10.22.18.36.47;	author bde;	state Exp;
branches;
next	1.20;

1.20
date	95.10.20.20.05.15;	author phk;	state Exp;
branches;
next	1.19;

1.19
date	95.10.18.04.19.00;	author davidg;	state Exp;
branches;
next	1.18;

1.18
date	95.08.06.12.37.20;	author bde;	state Exp;
branches;
next	1.17;

1.17
date	95.08.06.12.23.18;	author bde;	state Exp;
branches;
next	1.16;

1.16
date	95.06.30.15.30.35;	author wollman;	state Exp;
branches;
next	1.15;

1.15
date	95.03.30.06.40.31;	author phk;	state Exp;
branches
	1.15.2.1
	1.15.4.1;
next	1.14;

1.14
date	95.02.09.08.00.20;	author jkh;	state Exp;
branches;
next	1.13;

1.13
date	95.02.07.13.27.28;	author jkh;	state Exp;
branches;
next	1.12;

1.12
date	94.09.19.02.00.18;	author ache;	state Exp;
branches;
next	1.11;

1.11
date	94.09.18.22.21.01;	author ache;	state Exp;
branches;
next	1.10;

1.10
date	94.08.22.15.13.41;	author bde;	state Exp;
branches;
next	1.9;

1.9
date	94.03.09.17.12.57;	author nate;	state Exp;
branches;
next	1.8;

1.8
date	93.12.24.02.11.37;	author jkh;	state Exp;
branches;
next	1.7;

1.7
date	93.11.18.00.08.03;	author ache;	state Exp;
branches;
next	1.6;

1.6
date	93.11.16.02.22.16;	author paul;	state Exp;
branches;
next	1.5;

1.5
date	93.11.09.04.26.10;	author paul;	state Exp;
branches;
next	1.4;

1.4
date	93.11.07.03.05.40;	author paul;	state Exp;
branches;
next	1.3;

1.3
date	93.11.04.01.09.08;	author paul;	state Exp;
branches;
next	1.2;

1.2
date	93.07.03.00.21.21;	author root;	state Exp;
branches;
next	1.1;

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

1.42.8.1
date	2005.01.18.04.44.08;	author trhodes;	state dead;
branches;
next	;

1.40.2.1
date	2002.08.07.16.31.47;	author ru;	state Exp;
branches;
next	1.40.2.2;

1.40.2.2
date	2012.11.17.07.23.18;	author svnexp;	state Exp;
branches;
next	;

1.39.2.1
date	99.08.29.14.55.13;	author peter;	state Exp;
branches;
next	;

1.25.2.1
date	97.03.03.14.57.06;	author bde;	state Exp;
branches;
next	1.25.2.2;

1.25.2.2
date	97.04.30.03.13.33;	author msmith;	state Exp;
branches;
next	1.25.2.3;

1.25.2.3
date	97.06.06.02.18.41;	author brian;	state Exp;
branches;
next	1.25.2.4;

1.25.2.4
date	97.10.29.01.23.14;	author asami;	state Exp;
branches;
next	1.25.2.5;

1.25.2.5
date	98.07.19.06.51.23;	author jkh;	state Exp;
branches;
next	1.25.2.6;

1.25.2.6
date	99.09.05.11.16.23;	author peter;	state Exp;
branches;
next	;

1.15.2.1
date	95.07.11.02.52.06;	author jkh;	state Exp;
branches;
next	;

1.15.4.1
date	95.08.30.07.31.12;	author davidg;	state Exp;
branches;
next	1.15.4.2;

1.15.4.2
date	96.05.29.22.37.44;	author jkh;	state Exp;
branches;
next	1.15.4.3;

1.15.4.3
date	96.06.05.02.44.59;	author jkh;	state Exp;
branches;
next	1.15.4.4;

1.15.4.4
date	99.09.05.11.18.12;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	93.06.12.14.56.44;	author rgrimes;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.07.03.03.25.30;	author bde;	state Exp;
branches;
next	;


desc
@@


1.43
log
@Remnant code (broken, unhooked) from a.out which I missed.

Noticed by:	ru
@
text
@#	from: @@(#)Makefile	5.6 (Berkeley) 5/22/91
# $FreeBSD: src/lib/csu/i386/Makefile,v 1.42 2002/07/29 09:40:10 ru Exp $

CFLAGS+=        -DLIBC_SCCS -fno-omit-frame-pointer \
		-I${.CURDIR}/../../libc/include
OBJS=		crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o
CLEANFILES=	a.out crt0.o.tmp c++rt0.o.tmp gcrt0.o.tmp scrt0.o.tmp \
		sgcrt0.o.tmp

all: ${OBJS}

crt0.o: crt0.c
	${CC} ${CFLAGS} -c -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET}
	${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
	@@mv ${.TARGET}.tmp ${.TARGET}

c++rt0.o: c++rt0.c
	${CC} ${CFLAGS} -fpic -c ${.CURDIR}/c++rt0.c
	@@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
	@@mv ${.TARGET}.tmp ${.TARGET}

#
# gcrt0.o doesn't really depend on crt0.o, but this is the easiest way
# to get the dependencies mostly correct.
#
gcrt0.o: crt0.o
	${CC} ${CFLAGS} -c -DMCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET}
	@@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
	@@mv ${.TARGET}.tmp ${.TARGET}

# dependencies fudged as for gcrt0.o
scrt0.o: crt0.o
	${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
	@@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
	@@mv ${.TARGET}.tmp ${.TARGET}

# dependencies fudged as for gcrt0.o
sgcrt0.o: scrt0.o
	${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
	@@${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
	@@mv ${.TARGET}.tmp ${.TARGET}

realinstall:
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
		${DESTDIR}${LIBDIR}

depend:	.depend

.depend:	crt0.c c++rt0.c
	rm -f .depend
	mkdep ${CFLAGS} -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c
	mkdep -a ${CFLAGS} ${.CURDIR}/c++rt0.c

cleandepend:
	rm -f .depend

lint tags:

.include <bsd.prog.mk>
@


1.42
log
@Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.42.8.1
log
@MFC:

Remnant code (broken, unhooked) from a.out which I missed.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/csu/i386/Makefile,v 1.42 2002/07/29 09:40:10 ru Exp $
@


1.41
log
@Do not use __progname directly (except in [gs]etprogname(3)).
Also, make an internal _getprogname() that is used only inside
libc. For libc, getprogname(3) is a weak symbol in case a
function of the same name is defined in userland.
@
text
@d44 1
a44 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
@


1.40
log
@$Id$ -> $FreeBSD$
@
text
@d4 2
a5 1
CFLAGS+=        -DLIBC_SCCS -fno-omit-frame-pointer
@


1.40.2.1
log
@MFC: Drop support for COPY.
@
text
@d43 1
a43 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
@


1.40.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/lib/csu/i386/Makefile 101469 2002-08-07 16:32:02Z ru $
@


1.39
log
@Avoid using ld -O (as in bsd.lib.mk).

Fixed `make cleandepend'.  The default is null because SRCS is null.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.38 1998/05/31 11:32:37 bde Exp $
@


1.39.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.38
log
@Fixed double slashes in pathnames.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.37 1998/05/26 20:12:52 sos Exp $
d6 2
a7 1
CLEANFILES+=	a.out
d13 2
a14 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
d18 2
a19 1
	@@${LD} -O ${.TARGET} -x -r ${.TARGET}
d27 2
a28 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
d33 2
a34 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
d39 2
a40 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
d52 3
@


1.37
log
@ELF preparation step 2:

Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.36 1998/02/11 04:57:10 jdp Exp $
d38 1
a38 1
		${DESTDIR}/${LIBDIR}
@


1.36
log
@Remove the include of <dlfcn.h> from crt0.c; it is not needed now
that the dl* trampolines have been moved into libc.

Move dlfcn.h from src/lib/csu/i386 into src/include.  Nothing in
src/lib/csu/i386 uses it any more.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.35 1998/02/09 06:05:07 jdp Exp $
d38 1
a38 1
		${DESTDIR}/usr/lib
@


1.35
log
@Move the trampolines for dlopen and related functions from crt0.o
into libc.  This reduces the size of every dynamically linked
executable by 248 bytes, and it reduces the size of static executables
by a lesser amount.  It also eliminates some global namespace
pollution.

With this change in place, the source for dlfcn.h should probably
be moved to "/usr/src/include".  I'll save that for another day.

Compatibility note:  Programs which use dlopen, if compiled on
systems with this change, will not run on systems with a libc from
prior to this change.  Very few programs use dlopen, so I think
that is OK.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.34 1998/02/06 16:46:31 jdp Exp $
d4 1
a4 1
CFLAGS+=        -DLIBC_SCCS -fno-omit-frame-pointer -I${.CURDIR}
a34 4

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/dlfcn.h \
		${DESTDIR}/usr/include
@


1.34
log
@Implement dladdr.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.33 1998/01/12 18:29:02 eivind Exp $
a6 4
MAN3+=		dladdr.3 dlopen.3
MLINKS+=	dlopen.3 dlsym.3 \
		dlopen.3 dlerror.3 \
		dlopen.3 dlclose.3
@


1.33
log
@${TARGET} -> ${.TARGET}

Tiny pointed hat goes to:	Our Makefile-meister.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.32 1997/10/11 02:37:42 asami Exp $
d7 1
a7 1
MAN3+=		dlopen.3
@


1.32
log
@Make this file p-make clean.  (Use "ld -O foo" instead of "ld; mv
a.out foo".)

Reviewed by:	bde (actually more like "Suggested by")
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.31 1997/04/30 03:12:09 msmith Exp $
d33 1
a33 1
	${LD} -O ${TARGET} -x -r ${.TARGET}
@


1.31
log
@Use our copy of dlfcn.h, not the version in /usr/include, which may not
be up-to-date when we are building.
Submitted by:	Terry Lambert <terry@@lambert.org>
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.30 1997/04/02 16:49:18 jdp Exp $
d16 1
a16 2
	${LD} -x -r ${.TARGET}
	mv -f a.out ${.TARGET}
d20 1
a20 2
	@@${LD} -x -r ${.TARGET}
	@@mv -f a.out ${.TARGET}
d28 1
a28 2
	${LD} -x -r ${.TARGET}
	mv -f a.out ${.TARGET}
d33 1
a33 2
	${LD} -x -r ${.TARGET}
	mv -f a.out ${.TARGET}
d38 1
a38 2
	${LD} -x -r ${.TARGET}
	mv -f a.out ${.TARGET}
@


1.30
log
@Fix an error in the previous revision that caused make world breakage.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.29 1997/04/01 13:53:16 bde Exp $
d4 1
a4 1
CFLAGS+=        -DLIBC_SCCS -fno-omit-frame-pointer
@


1.29
log
@Simplified install rule.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.28 1997/02/22 14:57:41 peter Exp $
d48 2
@


1.28
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
#	$Id$
d48 1
a48 4

realinstall:
.for i in ${OBJS}
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $i \
a49 1
.endfor
@


1.27
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
@d2 1
a2 1
#	$FreeBSD$
@


1.26
log
@Use ${COPY} instead of -C for installing non-source files.  crt*.o
should be installed using the same flag as libraries, but ${COPY}
is currently used for libraries.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.25 1996/08/30 01:41:52 peter Exp $
@


1.25
log
@cmp -s || install -c --> install -C
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.24 1996/05/07 23:16:08 wosch Exp $
d51 1
a51 1
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i \
@


1.25.2.1
log
@YAMFC (use install flags ${COPY} instead of -C).
@
text
@d2 1
a2 1
#	$Id$
d51 1
a51 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $i \
@


1.25.2.2
log
@YAMFC - use local copy of dlfcn.h
Submitted by:	Terry Lambert <terry@@lambert.org>
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.25.2.1 1997/03/03 14:57:06 bde Exp $
d4 1
a4 1
CFLAGS+=        -DLIBC_SCCS -fno-omit-frame-pointer -I${.CURDIR}
@


1.25.2.3
log
@Bring in the dl*() stubs to crt0.o from current
so that the likes of boot_crunch can be built
again.  This fixes "make release".
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.25.2.2 1997/04/30 03:13:33 msmith Exp $
d50 2
a51 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
d53 1
@


1.25.2.4
log
@Merge 1.32 (pmake cleanness).
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.25.2.3 1997/06/06 02:18:41 brian Exp $
d16 2
a17 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
d21 2
a22 1
	@@${LD} -O ${.TARGET} -x -r ${.TARGET}
d30 2
a31 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
d36 2
a37 1
	${LD} -O ${TARGET} -x -r ${.TARGET}
d42 2
a43 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
@


1.25.2.5
log
@MFC: doc fixes, casts, cosmetic.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.25.2.4 1997/10/29 01:23:14 asami Exp $
d33 1
a33 1
	${LD} -O ${.TARGET} -x -r ${.TARGET}
d42 1
a42 1
		${DESTDIR}${INCLUDEDIR}
d46 1
a46 1
		${DESTDIR}${LIBDIR}
@


1.25.2.6
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.24
log
@``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.23 1995/11/02 12:42:41 ache Exp $
d46 2
a47 3
	cmp -s ${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include/dlfcn.h || \
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include
d51 2
a52 3
	cmp -s $i ${DESTDIR}/usr/lib/$i || \
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
		$i ${DESTDIR}/usr/lib
@


1.23
log
@Remove my locale hack. Sigh.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.22 1995/10/29 09:49:18 phk Exp $
d17 1
a17 1
	mv a.out ${.TARGET}
d22 1
a22 1
	@@mv a.out ${.TARGET}
d31 1
a31 1
	mv a.out ${.TARGET}
d37 1
a37 1
	mv a.out ${.TARGET}
d43 1
a43 1
	mv a.out ${.TARGET}
@


1.22
log
@Clean up and make code (more) readable.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.21 1995/10/22 18:36:47 bde Exp $
d4 1
a4 1
CFLAGS+=	-DUGLY_LOCALE_HACK -DLIBC_SCCS -fno-omit-frame-pointer
@


1.21
log
@Fixed dependencies for scrt0.o.
Build a static gcrt0.o (sgcrt0.o) too.  Currently only the dynamic gcrt0.o
is used, although -pg forces -static.
Sorted the .o targets.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.20 1995/10/20 20:05:15 phk Exp $
d4 1
a4 1
CFLAGS+=	-DLIBC_SCCS -fno-omit-frame-pointer
@


1.20
log
@-fomit-frame-pointer is becomming an increasingly popular optimization,
so before somebody screws up royally, make sure this always works by
adding a -fno-omit-frame-pointer here.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.19 1995/10/18 04:19:00 davidg Exp $
d5 1
a5 1
OBJS=		scrt0.o crt0.o gcrt0.o c++rt0.o
a13 5
scrt0.o: crt0.c
	${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
	${LD} -x -r ${.TARGET}
	mv a.out ${.TARGET}

d30 12
@


1.19
log
@Create a scrt0.o file that specifically excludes the shared-lib support.
This will be used for -static programs.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.18 1995/08/06 12:37:20 bde Exp $
d4 1
a4 1
CFLAGS+=	-DLIBC_SCCS
@


1.18
log
@Install source files with the -c flag, not with the optional flag ${COPY}.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.17 1995/08/06 12:23:18 bde Exp $
d4 2
a5 2
CFLAGS+=	-DLIBC_SCCS -DDYNAMIC
OBJS=		crt0.o gcrt0.o c++rt0.o
d14 5
d20 1
a20 1
	${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
d34 1
a34 1
	${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
d54 1
a54 1
	mkdep ${CFLAGS} -DCRT0 ${.CURDIR}/crt0.c
@


1.17
log
@Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.

Previously I missed dozens of Makefiles that skip the install after
using `cmp -s' to decide that the install isn't necessary.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.16 1995/06/30 15:30:35 wollman Exp $
d35 1
a35 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
@


1.16
log
@Numerous Makefile fixes:

1) Do dependencies.
2) Install all appropriate links to manual pages.
3) Install header file in `beforeinstall' like all the rest.
4) Install header file only if changed.
5) Install object files only if changed.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.15 1995/03/30 06:40:31 phk Exp $
d35 1
a35 1
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
d41 2
a42 1
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $i ${DESTDIR}/usr/lib
@


1.15
log
@Install the dlopen.3 manpage.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.14 1995/02/09 08:00:20 jkh Exp $
d8 3
d15 1
a15 1
	${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC} -o ${.TARGET}
d20 1
a20 1
	${CC} ${CFLAGS} -fpic -c ${.ALLSRC}
d24 6
a29 2
gcrt0.o: crt0.c
	${CC} ${CFLAGS} -c -DMCRT0 ${.ALLSRC} -o ${.TARGET}
d33 17
a49 5
install: maninstall
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
	    ${DESTDIR}/usr/lib
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/dlfcn.h \
	    ${DESTDIR}/usr/include
d51 1
a51 1
depend lint tags:
@


1.15.4.1
log
@Brought in changes from main branch: various fixes.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.15 1995/03/30 06:40:31 phk Exp $
a7 3
MLINKS+=	dlopen.3 dlsym.3 \
		dlopen.3 dlerror.3 \
		dlopen.3 dlclose.3
d12 1
a12 1
	${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
d17 1
a17 1
	${CC} ${CFLAGS} -fpic -c ${.CURDIR}/c++rt0.c
d21 2
a22 6
#
# gcrt0.o doesn't really depend on crt0.o, but this is the easiest way
# to get the dependencies mostly correct.
#
gcrt0.o: crt0.o
	${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
d26 5
a30 18
beforeinstall:
	cmp -s ${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include/dlfcn.h || \
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include

realinstall:
.for i in ${OBJS}
	cmp -s $i ${DESTDIR}/usr/lib/$i || \
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
		$i ${DESTDIR}/usr/lib
.endfor

depend:	.depend

.depend:	crt0.c c++rt0.c
	rm -f .depend
	mkdep ${CFLAGS} -DCRT0 ${.CURDIR}/crt0.c
	mkdep -a ${CFLAGS} ${.CURDIR}/c++rt0.c
d32 1
a32 1
lint tags:
@


1.15.4.2
log
@Merge from HEAD, except:

	Clients that used gnumalloc still do, despite the merge.  We're not
	bringing phkmalloc over.

	Thread stuff left out.

	PCCARD support left out.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.24 1996/05/07 23:16:08 wosch Exp $
d4 2
a5 2
CFLAGS+=        -DLIBC_SCCS -fno-omit-frame-pointer
OBJS=		crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o
d15 1
a15 1
	${CC} ${CFLAGS} -c -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET}
d17 1
a17 1
	mv -f a.out ${.TARGET}
d22 1
a22 1
	@@mv -f a.out ${.TARGET}
a28 12
	${CC} ${CFLAGS} -c -DMCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET}
	${LD} -x -r ${.TARGET}
	mv -f a.out ${.TARGET}

# dependencies fudged as for gcrt0.o
scrt0.o: crt0.o
	${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
	${LD} -x -r ${.TARGET}
	mv -f a.out ${.TARGET}

# dependencies fudged as for gcrt0.o
sgcrt0.o: scrt0.o
d31 1
a31 1
	mv -f a.out ${.TARGET}
d49 1
a49 1
	mkdep ${CFLAGS} -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c
@


1.15.4.3
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.15.4.1 1995/08/30 07:31:12 davidg Exp $
d4 2
a5 2
CFLAGS+=	-DLIBC_SCCS -DDYNAMIC
OBJS=		crt0.o gcrt0.o c++rt0.o
d15 1
a15 1
	${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
d17 1
a17 1
	mv a.out ${.TARGET}
d22 1
a22 1
	@@mv a.out ${.TARGET}
d29 12
d43 1
a43 1
	mv a.out ${.TARGET}
d61 1
a61 1
	mkdep ${CFLAGS} -DCRT0 ${.CURDIR}/crt0.c
@


1.15.4.4
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.15.2.1
log
@Bring in Doug's changes from the head.
Submitted by:	dlr
BRANCH: RELENG_2_0_5
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.16 1995/06/30 15:30:35 wollman Exp $
a7 3
MLINKS+=	dlopen.3 dlsym.3 \
		dlopen.3 dlerror.3 \
		dlopen.3 dlclose.3
d12 1
a12 1
	${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
d17 1
a17 1
	${CC} ${CFLAGS} -fpic -c ${.CURDIR}/c++rt0.c
d21 2
a22 6
#
# gcrt0.o doesn't really depend on crt0.o, but this is the easiest way
# to get the dependencies mostly correct.
#
gcrt0.o: crt0.o
	${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
d26 5
a30 17
beforeinstall:
	cmp -s ${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include/dlfcn.h || \
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
		${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include

realinstall:
.for i in ${OBJS}
	cmp -s $i ${DESTDIR}/usr/lib/$i || \
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $i ${DESTDIR}/usr/lib
.endfor

depend:	.depend

.depend:	crt0.c c++rt0.c
	rm -f .depend
	mkdep ${CFLAGS} -DCRT0 ${.CURDIR}/crt0.c
	mkdep -a ${CFLAGS} ${.CURDIR}/c++rt0.c
d32 1
a32 1
lint tags:
@


1.14
log
@Install the header files.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.13 1995/02/07 13:27:28 jkh Exp $
d26 1
a26 1
install:
@


1.13
log
@Support for more Sun compatible dlopen() and friends.  Also added proper error
handling.
Reviewed by:    gj
Submitted by:   Mark Diekhans <markd@@grizzly.com>
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.12 1994/09/19 02:00:18 ache Exp $
d29 2
@


1.12
log
@Change level of setlocale hack enabling from compile option STARTUP_LOCALE
to check (via getenv) environment variable "ENABLE_STARTUP_LOCALE" at
runtime.
Submitted by: me per Bruce suggestion
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.10 1994/08/22 15:13:41 bde Exp $
d7 1
@


1.11
log
@Add (#ifdef'ed by STARTUP_LOCALE) following line to crt0.c

	(void) setlocale(LC_ALL, "");

It will be easiest way now to make national chars available
for all ctype-oriented programs at once by simple:

setenv LANG Your_National_Charset

Default case (without "LANG" environment
variable) will be fully ANSI compatible (got "C" locale).

If "LANG" variable present, extention becomes active.

Effect of this extention is great: in one time all ctype
oriented programs can accept/print national characters
without any touching source/binary code, it is big win, IMHO.

This method is fully compatible with ISO8859-* and russian koi8-r
too (in general -- with all 8-bit character sets). I think
it is very useful.
I got this idea from Xenix locale implementation.

This extention is even never compiled in, unless you set
	setenv STARTUP_LOCALE
before rebuilding crt0.c or corresponding variable in /etc/make.conf
@
text
@a4 3
.if defined(STARTUP_LOCALE)
CFLAGS+=	-DSTARTUP_LOCALE
.endif
@


1.10
log
@Remove dead code.  gmon stuff is now done better in libc/gmon an
<machine/profile.h>.  The old version was writing an incomplete
header without the profrate field that is necessary to handle the
current faster profiling clock.  The counters that are where the
the profrate should be are usually 0 and gprof converts a profrate
of 0 to hz so the old version gave times too large by a factor of
profhz/hz = 10.24.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.9 1994/03/09 17:12:57 nate Exp $
d5 3
@


1.9
log
@From Jordan via. Paul K.

This fixes the problems Warner's having with ctors not being called
again with the latest round of ld changes and updates the file-names to what
Paul is using now.

The name change will not affect anything as we are not (yet) using it.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.8 1993/12/24 02:11:37 jkh Exp $
d6 1
a6 1
CLEANFILES+=	gmon.o moncrt0.o core a.out
d20 1
a20 1
moncrt0.o: crt0.c
a21 8
	${LD} -x -r ${.TARGET}
	mv a.out ${.TARGET}

gcrt0.o: moncrt0.o gmon.o
	${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o

gmon.o: gmon.c gmon.h
	${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
@


1.8
log
@Adding embryonic C++ shared lib support (all tests positive so far).
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.7 1993/11/18 00:08:03 ache Exp $
d5 1
a5 1
OBJS=		crt0.o gcrt0.o crt1.so
d15 3
a17 3
crt1.so: crt1.c
	${CC} ${CFLAGS} -fpic -c ${.ALLSRC} -o ${.TARGET}
	${LD} -X -r ${.TARGET}
@


1.7
log
@-r option incorrectly removed:
it is impossible to make gcrt0.o from moncrt0.o and gmon.o without it.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1993/11/16 02:22:16 paul Exp $
d5 1
a5 1
OBJS=		crt0.o gcrt0.o
d11 8
a18 3
	${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC}
#	${LD} -x -r ${.TARGET}
#	mv a.out ${.TARGET}
d22 2
a23 2
#	${LD} -x -r ${.TARGET}
#	mv a.out ${.TARGET}
d26 1
a26 2
#	${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
	${LD} -r -o ${.TARGET} moncrt0.o gmon.o
d29 3
a31 3
	${CC} ${CFLAGS} -c ${.IMPSRC}
#	${LD} -x -r ${.TARGET}
#	mv a.out ${.TARGET}
@


1.6
log
@Removed all the ld -x -r stuff -- paranoia.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1993/11/09 04:26:10 paul Exp $
d22 1
a22 1
	${LD} -o ${.TARGET} moncrt0.o gmon.o
@


1.5
log
@shlib update:

Can get rid of local symbols with "ld -x -r" again.
Made LDSO #ifdef DEBUG.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.4 1993/11/07 03:05:40 paul Exp $
d12 2
a13 2
	${LD} -x -r ${.TARGET}
	mv a.out ${.TARGET}
d17 2
a18 2
	${LD} -x -r ${.TARGET}
	mv a.out ${.TARGET}
d21 2
a22 1
	${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
d26 2
a27 2
	${LD} -x -r ${.TARGET}
	mv a.out ${.TARGET}
@


1.4
log
@Removed install -d line since our install doesn't support the -d
option.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.3 1993/11/04 01:09:08 paul Exp $
d4 1
a4 1
CFLAGS+=	-DLIBC_SCCS #-DDYNAMIC
d12 2
a13 2
#	${LD} -x -r ${.TARGET}
#	mv a.out ${.TARGET}
@


1.3
log
@Added shared libs support from NetBSD.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.9 1993/10/24 01:34:24 pk Exp $
a28 1
	install -d -o ${BINOWN} -g ${BINGRP} -m 0755 ${DESTDIR}/usr/lib
@


1.2
log
@Added ${COPY} knob to the install commands
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.6 (Berkeley) 5/22/91
d4 2
a5 2
CFLAGS=	-O -DLIBC_SCCS
OBJS=	crt0.o gcrt0.o
d12 2
a13 2
	${LD} -x -r ${.TARGET}
	mv a.out ${.TARGET}
d24 1
a24 1
	${CC} -c ${DEFS} ${.IMPSRC}
d29 1
@


1.1
log
@Initial revision
@
text
@d28 1
a28 1
	install -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
@


1.1.1.1
log
@Initial import, 0.1 + pk 0.2.4-B1
@
text
@@


1.1.1.2
log
@Import Lite2's src/lib, except for non-i386 machine-dependent directories,
libc/db, libc/gen/crypt.* and libtelnet.  All affected files except 3
unimportant ones have already left the vendor branch.
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.1 (Berkeley) 6/1/93
d5 1
a5 1
CLEANFILES+=	core a.out
d14 1
a14 1
gcrt0.o: crt0.c
d16 8
@
