head	1.25;
access;
symbols
	RELENG_6_4_0_RELEASE:1.24.26.1
	RELENG_6_4:1.24.0.26
	RELENG_6_4_BP:1.24
	RELENG_6_3_0_RELEASE:1.24
	RELENG_6_3:1.24.0.24
	RELENG_6_3_BP:1.24
	RELENG_6_2_0_RELEASE:1.24
	RELENG_6_2:1.24.0.22
	RELENG_6_2_BP:1.24
	RELENG_5_5_0_RELEASE:1.24
	RELENG_5_5:1.24.0.20
	RELENG_5_5_BP:1.24
	RELENG_6_1_0_RELEASE:1.24
	RELENG_6_1:1.24.0.18
	RELENG_6_1_BP:1.24
	RELENG_6_0_0_RELEASE:1.24
	RELENG_6_0:1.24.0.16
	RELENG_6_0_BP:1.24
	RELENG_6:1.24.0.14
	RELENG_6_BP:1.24
	RELENG_5_4_0_RELEASE:1.24
	RELENG_5_4:1.24.0.12
	RELENG_5_4_BP:1.24
	RELENG_4_11_0_RELEASE:1.11.2.4
	RELENG_4_11:1.11.2.4.0.10
	RELENG_4_11_BP:1.11.2.4
	RELENG_5_3_0_RELEASE:1.24
	RELENG_5_3:1.24.0.10
	RELENG_5_3_BP:1.24
	RELENG_5:1.24.0.8
	RELENG_5_BP:1.24
	RELENG_4_10_0_RELEASE:1.11.2.4
	RELENG_4_10:1.11.2.4.0.8
	RELENG_4_10_BP:1.11.2.4
	RELENG_5_2_1_RELEASE:1.24
	RELENG_5_2_0_RELEASE:1.24
	RELENG_5_2:1.24.0.6
	RELENG_5_2_BP:1.24
	RELENG_4_9_0_RELEASE:1.11.2.4
	RELENG_4_9:1.11.2.4.0.6
	RELENG_4_9_BP:1.11.2.4
	RELENG_5_1_0_RELEASE:1.24
	RELENG_5_1:1.24.0.4
	RELENG_5_1_BP:1.24
	RELENG_4_8_0_RELEASE:1.11.2.4
	RELENG_4_8:1.11.2.4.0.4
	RELENG_4_8_BP:1.11.2.4
	RELENG_5_0_0_RELEASE:1.24
	RELENG_5_0:1.24.0.2
	RELENG_5_0_BP:1.24
	RELENG_4_7_0_RELEASE:1.11.2.4
	RELENG_4_7:1.11.2.4.0.2
	RELENG_4_7_BP:1.11.2.4
	RELENG_4_6_2_RELEASE:1.11.2.2
	RELENG_4_6_1_RELEASE:1.11.2.2
	RELENG_4_6_0_RELEASE:1.11.2.2
	RELENG_4_6:1.11.2.2.0.8
	RELENG_4_6_BP:1.11.2.2
	RELENG_4_5_0_RELEASE:1.11.2.2
	RELENG_4_5:1.11.2.2.0.6
	RELENG_4_5_BP:1.11.2.2
	RELENG_4_4_0_RELEASE:1.11.2.2
	RELENG_4_4:1.11.2.2.0.4
	RELENG_4_4_BP:1.11.2.2
	RELENG_4_3_0_RELEASE:1.11.2.2
	RELENG_4_3:1.11.2.2.0.2
	RELENG_4_3_BP:1.11.2.2
	RELENG_4_2_0_RELEASE:1.11.2.2
	RELENG_4_1_1_RELEASE:1.11.2.1
	PRE_SMPNG:1.13
	RELENG_4_1_0_RELEASE:1.11.2.1
	RELENG_3_5_0_RELEASE:1.7.2.2
	RELENG_4_0_0_RELEASE:1.11
	RELENG_4:1.11.0.2
	RELENG_4_BP:1.11
	RELENG_3_4_0_RELEASE:1.7.2.2
	RELENG_3_3_0_RELEASE:1.7.2.2
	RELENG_3_2_PAO:1.7.2.1.0.2
	RELENG_3_2_PAO_BP:1.7.2.1
	RELENG_3_2_0_RELEASE:1.7.2.1
	RELENG_3_1_0_RELEASE:1.7
	RELENG_3:1.7.0.2
	RELENG_3_BP:1.7
	RELENG_3_0_0_RELEASE:1.6;
locks; strict;
comment	@# @;


1.25
date	2006.08.22.07.57.10;	author ru;	state dead;
branches;
next	1.24;

1.24
date	2002.07.29.09.40.10;	author ru;	state Exp;
branches
	1.24.14.1
	1.24.26.1;
next	1.23;

1.23
date	2002.06.25.18.05.16;	author obrien;	state Exp;
branches;
next	1.22;

1.22
date	2002.05.13.15.27.58;	author ru;	state Exp;
branches;
next	1.21;

1.21
date	2002.05.13.11.51.10;	author ru;	state Exp;
branches;
next	1.20;

1.20
date	2002.05.13.10.53.23;	author ru;	state Exp;
branches;
next	1.19;

1.19
date	2002.05.12.16.21.21;	author ru;	state Exp;
branches;
next	1.18;

1.18
date	2002.05.11.17.45.02;	author obrien;	state Exp;
branches;
next	1.17;

1.17
date	2002.03.29.22.43.40;	author markm;	state Exp;
branches;
next	1.16;

1.16
date	2001.10.27.08.29.51;	author obrien;	state Exp;
branches;
next	1.15;

1.15
date	2000.10.30.05.21.08;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	2000.10.28.21.26.47;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	2000.05.23.04.53.24;	author jdp;	state Exp;
branches;
next	1.12;

1.12
date	2000.04.19.23.44.48;	author obrien;	state Exp;
branches;
next	1.11;

1.11
date	99.08.27.23.57.52;	author peter;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	99.07.16.06.59.27;	author simokawa;	state Exp;
branches;
next	1.9;

1.9
date	99.04.24.02.07.17;	author jdp;	state Exp;
branches;
next	1.8;

1.8
date	99.04.09.05.56.23;	author jdp;	state Exp;
branches;
next	1.7;

1.7
date	99.01.09.21.50.56;	author jdp;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	98.08.20.21.37.22;	author jb;	state Exp;
branches;
next	1.5;

1.5
date	98.05.04.02.06.09;	author jb;	state Exp;
branches;
next	1.4;

1.4
date	98.04.01.03.24.19;	author jb;	state Exp;
branches;
next	1.3;

1.3
date	98.03.11.20.41.55;	author jb;	state Exp;
branches;
next	1.2;

1.2
date	98.03.10.07.04.05;	author jb;	state Exp;
branches;
next	1.1;

1.1
date	98.01.11.03.30.38;	author jb;	state Exp;
branches;
next	;

1.24.14.1
date	2012.11.17.07.39.31;	author svnexp;	state Exp;
branches;
next	;

1.24.26.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.11.2.1
date	2000.07.10.09.15.24;	author obrien;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2000.10.30.20.32.23;	author obrien;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	2002.07.19.18.46.25;	author ru;	state Exp;
branches;
next	1.11.2.4;

1.11.2.4
date	2002.08.07.16.31.47;	author ru;	state Exp;
branches;
next	1.11.2.5;

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

1.7.2.1
date	99.04.28.00.08.13;	author jdp;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	99.08.29.14.55.10;	author peter;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Remove alpha left-overs.
@
text
@# $FreeBSD: src/lib/csu/alpha/Makefile,v 1.24 2002/07/29 09:40:10 ru Exp $

.PATH: ${.CURDIR}/../common
SRCS=	crt1.c crti.S crtn.S
OBJS=	${SRCS:N*.h:R:S/$/.o/g}
OBJS+=	gcrt1.o
WARNS?=	6
CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../../libc/include

all: ${OBJS}

CLEANFILES=	${OBJS}

gcrt1.o: crt1.c
	${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}

realinstall:
	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	    ${OBJS} ${DESTDIR}${LIBDIR}

.include <bsd.lib.mk>
@


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

Approved by:	bde
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.24.14.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/lib/csu/alpha/Makefile 100872 2002-07-29 09:40:17Z ru $
@


1.24.26.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.23
log
@WARNS=6'ify.
Style nits.
@
text
@d18 1
a18 1
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
@


1.22
log
@Fixed CLEANFILES after bsd.lib.mk sweep.
@
text
@d4 5
a8 7

SRCS=		crt1.c crti.S crtn.S
OBJS=		${SRCS:N*.h:R:S/$/.o/g}
OBJS+=		gcrt1.o
CFLAGS+=	-Wall -Wno-unused \
		-I${.CURDIR}/../common \
		-I${.CURDIR}/../../libc/include
@


1.21
log
@SOBJS are not used here for a long time, and were just
pessimising the `install'.
@
text
@d14 2
@


1.20
log
@Major cleanup of bsd.lib.mk.

Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB.
INTERNALLIB now means to build static library only and don't install
anything.  Added a NOINSTALLLIB knob for libpam/modules.  To not
build any library at all, just do not set LIB.
@
text
@d12 1
a12 1
all: ${OBJS} ${SOBJS}
a17 1
.for file in ${OBJS} ${SOBJS}
d19 1
a19 2
	    ${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/}
.endfor
@


1.19
log
@Revert the last change.  The corresponding bsd.lib.mk changes were
already backed out.
@
text
@a10 4
NOMAN=		true
NOPIC=		true
NOPROFILE=	true
INTERNALLIB=	true
@


1.18
log
@Use the simpler NOMAN rather than NOMAN, NOPIC, NOPROFILE, INTERNALLIB.
@
text
@d11 4
a14 1
NOLIB=		true
@


1.17
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
@d11 1
a11 4
NOMAN=		true
NOPIC=		true
NOPROFILE=	true
INTERNALLIB=	true
@


1.16
log
@minor style updating
@
text
@d9 2
a10 1
		-I${.CURDIR}/../common
@


1.15
log
@Alpha verions of the crt initialization and finalization files required
by the ELF ABI.
@
text
@d1 3
a3 3
#
# $FreeBSD: src/lib/csu/alpha/Makefile,v 1.14 2000/10/28 21:26:47 obrien Exp $
#
a14 2
.PATH:		${.CURDIR}/../common

d17 1
a17 1
gcrt1.o:	crt1.c
@


1.14
log
@* Bring back the guts of crt{i,n}.S.  This allows C++ exceptions to work
when using the egcs and gcc-devel ports, along with GCC built from stock
public FSF sources.  With out this change, FreeBSD will be removed from
the list of systems GCC 3.0 must be evaluated on before release.  With
the effort some of us put into getting FreeBSD on this list, we should
not turn this effort into a waste, else we might not be worth fighting
for in the future.  (note that Alpha and IA-64 versions of crt{i,n}.S
are needed)

* Switch from our own crt{begin,in} to those created from GCC's crtstuff.c.
This will allow us to switch to DWARF2 exceptions in the future, along with
staying in sync with any future GCC requirements.

* Break out our ELF branding bits into a seperate file.  Currently this
is now included by our crt1.c files (since this functionality was part of
our native crtbegin.c).  Later crtbrand.o will be merged in the creation
of crti.o.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/csu/alpha/Makefile,v 1.13 2000/05/23 04:53:24 jdp Exp $
d5 2
a6 2
SRCS=		crt1.c
OBJS=		crt1.o
@


1.13
log
@Use the new machine-independent versions of crtbegin and crtend
from the "common" directory.

As a side-effect, this also fixes a bug in the ordering of global
constructors and destructors on the Alpha.  See revision 1.3 of
"../common/crtbegin.c" for details.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/csu/alpha/Makefile,v 1.12 2000/04/19 23:44:48 obrien Exp $
d5 2
a6 2
SRCS=		crt1.c crtbegin.c crtend.c
OBJS=		crt1.o crtbegin.o crtend.o
d8 2
a9 2
SOBJS=		crtbegin.So crtend.So
CFLAGS+=	-Wall -Wno-unused
@


1.12
log
@Use ${.ALLSRC} in Makefile so that it is a better candidate for copying.
Also allows the soruce to live somewhere else.
@
text
@d2 1
a2 1
# $FreeBSD: src/lib/csu/alpha/Makefile,v 1.11 1999/08/27 23:57:52 peter Exp $
d14 2
@


1.11
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d18 1
a18 1
	${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
@


1.11.2.1
log
@MFC: use the MI versions of crtbegin and crtend from the "common" directory.

* This fixes the ordering of global constructors and destructors on the
  Alpha.
* This makes crt{i,n}.S empty shells (for link command line compatibility).
@
text
@a14 2
.PATH:		${.CURDIR}/../common

d18 1
a18 1
	${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
@


1.11.2.2
log
@MFC.

* Bring back the guts of crt{i,n}.S.  This allows C++ exceptions to work
when using the egcs and gcc-devel ports, along with GCC built from stock
public FSF sources.  With out this change, FreeBSD will be removed from
the list of systems GCC 3.0 must be evaluated on before release.

* Switch from our own crt{begin,in} to those created from GCC's crtstuff.c.

* Break out our ELF branding bits into a seperate file.  Currently this
is now included by our crt1.c files (since this functionality was part of
our native crtbegin.c).  Later crtbrand.o will be merged in the creation
of crti.o.
@
text
@d5 2
a6 2
SRCS=		crt1.c crti.S crtn.S
OBJS=		${SRCS:N*.h:R:S/$/.o/g}
d8 2
a9 2
CFLAGS+=	-Wall -Wno-unused \
		-I${.CURDIR}/../common
@


1.11.2.3
log
@MFC: new bsd.lib.mk API.
@
text
@d10 4
d17 1
a17 3
all: ${OBJS}

CLEANFILES=	${OBJS}
d23 1
d25 2
a26 1
	    ${OBJS} ${DESTDIR}${LIBDIR}
@


1.11.2.4
log
@MFC: Drop support for COPY.
@
text
@d21 1
a21 1
	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
@


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


1.10
log
@Enable gcrt1.o.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.9 1999/04/24 02:07:17 jdp Exp $
@


1.9
log
@Remove some left-over stuff from NetBSD that we don't need.  This
eliminates the need to include the dynamic linker's private header
file, as well as two other headers from <sys>.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.8 1999/04/09 05:56:23 jdp Exp $
d7 1
d16 3
@


1.8
log
@Ugh.  I didn't know this Makefile was reaching over into the dynamic
linker sources for some of its header files.  Add a -I flag to pick
up a new directory over there.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.7 1999/01/09 21:50:56 jdp Exp $
a4 2
RTLDDIR=	${.CURDIR}/../../../libexec/rtld-elf

d8 1
a8 1
CFLAGS+=	-Wall -Wno-unused -I${RTLDDIR}/${MACHINE_ARCH} -I${RTLDDIR}
@


1.7
log
@Switch to using ".So" as the extension for PIC object files rather
than ".so".  The old extension conflicted with well-established
naming conventions for dynamically loadable modules.

The "clean" targets continue to remove ".so" files too, to deal with
old systems.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1998/08/20 21:37:22 jb Exp $
d5 2
d10 1
a10 1
CFLAGS+=	-Wall -Wno-unused -I${.CURDIR}/../../../libexec/rtld-elf
@


1.7.2.1
log
@MFC: Remove unused cruft and eliminate dependency on dynamic
linker's header file.

Makefile	1.7 -> 1.9
crt1.c		1.4 -> 1.5
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.9 1999/04/24 02:07:17 jdp Exp $
d8 1
a8 1
CFLAGS+=	-Wall -Wno-unused
@


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


1.6
log
@Remove the bootstrap hack that prevented the use of the rtld.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1998/05/04 02:06:09 jb Exp $
d7 1
a7 1
SOBJS=		crtbegin.so crtend.so
d19 1
a19 1
	    ${file} ${DESTDIR}${LIBDIR}/${file:S/.so$/S.o/}
@


1.5
log
@Force BOOTSTRAP mode all the time while the headers are broken on alpha
as the result of i386 changes.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.4 1998/04/01 03:24:19 jb Exp $
d8 1
a8 1
CFLAGS+=	-Wall -Wno-unused
a12 9
CFLAGS=

# Force bootstrap mode until rtld is ported. The headers are broken
# on alpha as the result of i386 changes.
BOOTSTRAP=	true

.ifndef	BOOTSTRAP
CFLAGS+=	-DHAVE_RTLD -I${.CURDIR}/../../../libexec/rtld-elf
.endif
@


1.4
log
@Temporary fix for problems that occur if CFLAGS=-g is added to
/etc/make.conf. The tools can't handle generating debug code where
we fiddle with the ELF segments.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.3 1998/03/11 20:41:55 jb Exp $
d14 4
@


1.3
log
@Don't share sources with i386-elf. That was too difficult. 8-(

Add a bootstrap mode so that non-rtld versions of these objects can
be built when bootstrapping the system with NetBSD tools, headers
and libraries. Once the FreeBSD tools are built, the FreeBSD headers
are installed and *then* these objects can be recompiled with the
rtld references. Phew.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.2 1998/03/10 07:04:05 jb Exp $
d13 1
@


1.2
log
@Trash startup sources from NetBSD in favour of jdp's FreeBSD source
now that has been committed.

The makefile is derived from the i386-elf version, modified to pick
up most of the source (except crt1.c) from i386-elf. With minor changes
to i386-elf/crt1.c, this directory can be combined with i386-elf to
be a single csu/elf directory for all seasons.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.1.1.1 1998/03/07 20:27:10 jdp Exp $
d5 2
a6 3
.PATH:		${.CURDIR}/../i386-elf
SRCS=		crt1.c crtbegin.c crtend.c crti.S crtn.S
OBJS=		${SRCS:N*.h:R:S/$/.o/g}
d13 4
@


1.1
log
@CSU source for Alpha obtained from NetBSD. The makefile will require
more work when we get a half-way usable libc (which is next).
@
text
@d1 21
a21 2
# $Id$
#	From: NetBSD: Makefile,v 1.15 1997/10/24 21:18:25 thorpej Exp
d23 1
a23 38
CPPFLAGS+=	-DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=64
CPPFLAGS+=	-I${.CURDIR}/../../../libexec/ld.elf_so
COPT+=		-fPIC

OBJS=		crt0.o gcrt0.o crtbegin.o crtend.o

CLEANFILES+=	core a.out

all: ${OBJS}

crt0.o: crt0.c
	${CC} -DCRT0 -c ${.CURDIR}/crt0.c -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o

gcrt0.o: crt0.c
	${CC} -DMCRT0 -c ${.CURDIR}/crt0.c -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o

crtbegin.o: crtbegin.c
	${CC} -c ${.CURDIR}/crtbegin.c -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o

crtend.o: crtend.c
	${CC} -c ${.CURDIR}/crtend.c -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o

install:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
	    ${DESTDIR}/usr/lib
	rm -f ${DESTDIR}/usr/lib/crtbeginS.o ${DESTDIR}/usr/lib/crtendS.o
	ln ${DESTDIR}/usr/lib/crtbegin.o ${DESTDIR}/usr/lib/crtbeginS.o
	ln ${DESTDIR}/usr/lib/crtend.o ${DESTDIR}/usr/lib/crtendS.o

.include <bsd.prog.mk>
@
