head	1.25;
access;
symbols
	perseant-exfatfs-base-20250801:1.25
	perseant-exfatfs-base-20240630:1.25
	perseant-exfatfs:1.25.0.18
	perseant-exfatfs-base:1.25
	cjep_sun2x:1.25.0.16
	cjep_sun2x-base:1.25
	cjep_staticlib_x-base1:1.25
	cjep_staticlib_x:1.25.0.14
	cjep_staticlib_x-base:1.25
	phil-wifi-20200421:1.25
	phil-wifi-20200411:1.25
	phil-wifi-20200406:1.25
	pgoyette-compat-merge-20190127:1.25
	pgoyette-compat-20190127:1.25
	pgoyette-compat-20190118:1.25
	pgoyette-compat-1226:1.25
	pgoyette-compat-1126:1.25
	pgoyette-compat-1020:1.25
	pgoyette-compat-0930:1.25
	pgoyette-compat-0906:1.25
	pgoyette-compat-0728:1.25
	pgoyette-compat-0625:1.25
	pgoyette-compat-0521:1.25
	pgoyette-compat-0502:1.25
	pgoyette-compat-0422:1.25
	pgoyette-compat-0415:1.25
	pgoyette-compat-0407:1.25
	pgoyette-compat-0330:1.25
	pgoyette-compat-0322:1.25
	pgoyette-compat-0315:1.25
	pgoyette-compat:1.25.0.12
	pgoyette-compat-base:1.25
	perseant-stdc-iso10646:1.25.0.10
	perseant-stdc-iso10646-base:1.25
	prg-localcount2-base3:1.25
	prg-localcount2-base2:1.25
	prg-localcount2-base1:1.25
	prg-localcount2:1.25.0.8
	prg-localcount2-base:1.25
	pgoyette-localcount-20170426:1.25
	bouyer-socketcan-base1:1.25
	pgoyette-localcount-20170320:1.25
	bouyer-socketcan:1.25.0.6
	bouyer-socketcan-base:1.25
	pgoyette-localcount-20170107:1.25
	pgoyette-localcount-20161104:1.25
	localcount-20160914:1.25
	pgoyette-localcount-20160806:1.25
	pgoyette-localcount-20160726:1.25
	pgoyette-localcount:1.25.0.4
	pgoyette-localcount-base:1.25
	netbsd-5-2-3-RELEASE:1.24
	netbsd-5-1-5-RELEASE:1.24
	netbsd-6-0-6-RELEASE:1.24
	netbsd-6-1-5-RELEASE:1.24
	yamt-pagecache-base9:1.25
	yamt-pagecache-tag8:1.24
	netbsd-6-1-4-RELEASE:1.24
	netbsd-6-0-5-RELEASE:1.24
	tls-earlyentropy:1.25.0.2
	tls-earlyentropy-base:1.25
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.25
	riastradh-drm2-base3:1.25
	netbsd-6-1-3-RELEASE:1.24
	netbsd-6-0-4-RELEASE:1.24
	netbsd-5-2-2-RELEASE:1.24
	netbsd-5-1-4-RELEASE:1.24
	netbsd-6-1-2-RELEASE:1.24
	netbsd-6-0-3-RELEASE:1.24
	netbsd-5-2-1-RELEASE:1.24
	netbsd-5-1-3-RELEASE:1.24
	netbsd-6-1-1-RELEASE:1.24
	riastradh-drm2-base2:1.24
	riastradh-drm2-base1:1.24
	riastradh-drm2:1.24.0.30
	riastradh-drm2-base:1.24
	netbsd-6-1:1.24.0.34
	netbsd-6-0-2-RELEASE:1.24
	netbsd-6-1-RELEASE:1.24
	netbsd-6-1-RC4:1.24
	netbsd-6-1-RC3:1.24
	agc-symver:1.24.0.32
	agc-symver-base:1.24
	netbsd-6-1-RC2:1.24
	netbsd-6-1-RC1:1.24
	yamt-pagecache-base8:1.24
	netbsd-5-2:1.24.0.28
	netbsd-6-0-1-RELEASE:1.24
	yamt-pagecache-base7:1.24
	netbsd-5-2-RELEASE:1.24
	netbsd-5-2-RC1:1.24
	matt-nb6-plus-nbase:1.24
	yamt-pagecache-base6:1.24
	netbsd-6-0:1.24.0.26
	netbsd-6-0-RELEASE:1.24
	netbsd-6-0-RC2:1.24
	tls-maxphys:1.24.0.24
	tls-maxphys-base:1.25
	matt-nb6-plus:1.24.0.22
	matt-nb6-plus-base:1.24
	netbsd-6-0-RC1:1.24
	yamt-pagecache-base5:1.24
	yamt-pagecache-base4:1.24
	netbsd-6:1.24.0.20
	netbsd-6-base:1.24
	netbsd-5-1-2-RELEASE:1.24
	netbsd-5-1-1-RELEASE:1.24
	yamt-pagecache-base3:1.24
	yamt-pagecache-base2:1.24
	yamt-pagecache:1.24.0.2
	yamt-pagecache-base:1.24
	cherry-xenmp:1.24.0.18
	cherry-xenmp-base:1.24
	bouyer-quota2-nbase:1.24
	bouyer-quota2:1.24.0.16
	bouyer-quota2-base:1.24
	matt-mips64-premerge-20101231:1.24
	matt-nb5-mips64-premerge-20101231:1.24
	matt-nb5-pq3:1.24.0.14
	matt-nb5-pq3-base:1.24
	netbsd-5-1:1.24.0.12
	netbsd-5-1-RELEASE:1.24
	netbsd-5-1-RC4:1.24
	matt-nb5-mips64-k15:1.24
	netbsd-5-1-RC3:1.24
	netbsd-5-1-RC2:1.24
	netbsd-5-1-RC1:1.24
	netbsd-5-0-2-RELEASE:1.24
	matt-nb5-mips64-premerge-20091211:1.24
	matt-premerge-20091211:1.24
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.24
	matt-nb4-mips64-k7-u2a-k9b:1.24
	matt-nb5-mips64-u1-k1-k5:1.24
	matt-nb5-mips64:1.24.0.10
	netbsd-5-0-1-RELEASE:1.24
	jym-xensuspend-nbase:1.24
	netbsd-5-0:1.24.0.8
	netbsd-5-0-RELEASE:1.24
	netbsd-5-0-RC4:1.24
	netbsd-5-0-RC3:1.24
	netbsd-5-0-RC2:1.24
	jym-xensuspend:1.24.0.6
	jym-xensuspend-base:1.24
	netbsd-5-0-RC1:1.24
	netbsd-5:1.24.0.4
	netbsd-5-base:1.24
	matt-mips64-base2:1.24
	matt-mips64:1.23.0.22
	netbsd-4-0-1-RELEASE:1.23
	wrstuden-revivesa-base-3:1.24
	wrstuden-revivesa-base-2:1.24
	wrstuden-fixsa-newbase:1.23
	wrstuden-revivesa-base-1:1.23
	yamt-pf42-base4:1.23
	yamt-pf42-base3:1.23
	hpcarm-cleanup-nbase:1.23
	yamt-pf42-baseX:1.23
	yamt-pf42-base2:1.23
	wrstuden-revivesa:1.23.0.20
	wrstuden-revivesa-base:1.23
	yamt-pf42:1.23.0.18
	yamt-pf42-base:1.23
	keiichi-mipv6:1.23.0.16
	keiichi-mipv6-base:1.23
	matt-armv6-nbase:1.23
	matt-armv6-prevmlocking:1.23
	wrstuden-fixsa-base-1:1.23
	netbsd-4-0:1.23.0.14
	netbsd-4-0-RELEASE:1.23
	cube-autoconf:1.23.0.12
	cube-autoconf-base:1.23
	netbsd-4-0-RC5:1.23
	netbsd-4-0-RC4:1.23
	netbsd-4-0-RC3:1.23
	netbsd-4-0-RC2:1.23
	netbsd-4-0-RC1:1.23
	matt-armv6:1.23.0.10
	matt-armv6-base:1.23
	matt-mips64-base:1.23
	hpcarm-cleanup:1.23.0.8
	hpcarm-cleanup-base:1.23
	netbsd-3-1-1-RELEASE:1.22
	netbsd-3-0-3-RELEASE:1.22
	wrstuden-fixsa:1.23.0.6
	wrstuden-fixsa-base:1.23
	abandoned-netbsd-4-base:1.23
	abandoned-netbsd-4:1.23.0.2
	netbsd-3-1:1.22.0.14
	netbsd-3-1-RELEASE:1.22
	netbsd-3-0-2-RELEASE:1.22
	netbsd-3-1-RC4:1.22
	netbsd-3-1-RC3:1.22
	netbsd-3-1-RC2:1.22
	netbsd-3-1-RC1:1.22
	netbsd-4:1.23.0.4
	netbsd-4-base:1.23
	netbsd-3-0-1-RELEASE:1.22
	netbsd-3-0:1.22.0.12
	netbsd-3-0-RELEASE:1.22
	netbsd-3-0-RC6:1.22
	netbsd-3-0-RC5:1.22
	netbsd-3-0-RC4:1.22
	netbsd-3-0-RC3:1.22
	netbsd-3-0-RC2:1.22
	netbsd-3-0-RC1:1.22
	netbsd-2-0-3-RELEASE:1.22
	netbsd-2-1:1.22.0.10
	netbsd-2-1-RELEASE:1.22
	netbsd-2-1-RC6:1.22
	netbsd-2-1-RC5:1.22
	netbsd-2-1-RC4:1.22
	netbsd-2-1-RC3:1.22
	netbsd-2-1-RC2:1.22
	netbsd-2-1-RC1:1.22
	netbsd-2-0-2-RELEASE:1.22
	netbsd-3:1.22.0.8
	netbsd-3-base:1.22
	netbsd-2-0-1-RELEASE:1.22
	netbsd-2:1.22.0.6
	netbsd-2-base:1.22
	netbsd-2-0-RELEASE:1.22
	netbsd-2-0-RC5:1.22
	netbsd-2-0-RC4:1.22
	netbsd-2-0-RC3:1.22
	netbsd-2-0-RC2:1.22
	netbsd-2-0-RC1:1.22
	netbsd-2-0:1.22.0.4
	netbsd-2-0-base:1.22
	netbsd-1-6-PATCH002-RELEASE:1.22
	netbsd-1-6-PATCH002:1.22
	netbsd-1-6-PATCH002-RC4:1.22
	netbsd-1-6-PATCH002-RC3:1.22
	netbsd-1-6-PATCH002-RC2:1.22
	netbsd-1-6-PATCH002-RC1:1.22
	netbsd-1-6-PATCH001:1.22
	netbsd-1-6-PATCH001-RELEASE:1.22
	netbsd-1-6-PATCH001-RC3:1.22
	netbsd-1-6-PATCH001-RC2:1.22
	netbsd-1-6-PATCH001-RC1:1.22
	fvdl_fs64_base:1.22
	netbsd-1-6-RELEASE:1.22
	netbsd-1-6-RC3:1.22
	netbsd-1-6-RC2:1.22
	netbsd-1-6-RC1:1.22
	netbsd-1-6:1.22.0.2
	netbsd-1-6-base:1.22
	netbsd-1-5-PATCH003:1.19.10.1
	netbsd-1-5-PATCH002:1.19
	netbsd-1-5-PATCH001:1.19
	netbsd-1-5-RELEASE:1.19
	netbsd-1-5-BETA2:1.19
	netbsd-1-5-BETA:1.19
	netbsd-1-4-PATCH003:1.19
	netbsd-1-5-ALPHA2:1.19
	netbsd-1-5:1.19.0.10
	netbsd-1-5-base:1.19
	minoura-xpg4dl:1.19.0.8
	minoura-xpg4dl-base:1.19
	netbsd-1-4-PATCH002:1.19
	wrstuden-devbsize-19991221:1.19
	wrstuden-devbsize:1.19.0.6
	wrstuden-devbsize-base:1.19
	comdex-fall-1999:1.19.0.4
	comdex-fall-1999-base:1.19
	netbsd-1-4-PATCH001:1.19
	netbsd-1-4-RELEASE:1.19
	netbsd-1-4:1.19.0.2
	netbsd-1-4-base:1.19
	netbsd-1-3-PATCH003:1.13.2.2
	netbsd-1-3-PATCH003-CANDIDATE2:1.13.2.2
	netbsd-1-3-PATCH003-CANDIDATE1:1.13.2.2
	netbsd-1-3-PATCH003-CANDIDATE0:1.13.2.2
	netbsd-1-3-PATCH002:1.13.2.2
	netbsd-1-3-PATCH001:1.13.2.1
	netbsd-1-3-RELEASE:1.13.2.1
	netbsd-1-3-BETA:1.13.2.1
	netbsd-1-3:1.13.0.2
	netbsd-1-3-base:1.13
	cjs-build-against-obj-dir:1.12.0.2
	netbsd-1-2-PATCH001:1.3
	netbsd-1-2-RELEASE:1.3
	netbsd-1-2-BETA:1.3
	netbsd-1-2-base:1.3
	netbsd-1-2:1.3.0.4
	netbsd-1-1-PATCH001:1.1
	netbsd-1-1-RELEASE:1.1
	netbsd-1-1:1.1.0.2
	netbsd-1-1-base:1.1;
locks; strict;
comment	@# @;


1.25
date	2014.01.31.11.58.33;	author matt;	state dead;
branches;
next	1.24;
commitid	8fCJGN23yUodqgnx;

1.24
date	2008.07.21.15.34.58;	author lukem;	state Exp;
branches
	1.24.2.1
	1.24.24.1;
next	1.23;

1.23
date	2006.05.19.19.11.12;	author christos;	state Exp;
branches
	1.23.20.1;
next	1.22;

1.22
date	2002.01.14.01.31.58;	author thorpej;	state Exp;
branches;
next	1.21;

1.21
date	2001.07.17.03.56.48;	author thorpej;	state Exp;
branches;
next	1.20;

1.20
date	2001.05.11.22.44.14;	author ross;	state Exp;
branches;
next	1.19;

1.19
date	99.03.20.00.32.40;	author thorpej;	state Exp;
branches
	1.19.10.1;
next	1.18;

1.18
date	99.03.19.23.34.49;	author thorpej;	state Exp;
branches;
next	1.17;

1.17
date	99.03.19.23.16.15;	author thorpej;	state Exp;
branches;
next	1.16;

1.16
date	98.03.28.00.52.06;	author cgd;	state Exp;
branches;
next	1.15;

1.15
date	97.10.24.21.18.25;	author thorpej;	state Exp;
branches;
next	1.14;

1.14
date	97.10.22.16.00.39;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	97.05.31.21.21.39;	author cjs;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	97.05.26.03.56.18;	author cjs;	state Exp;
branches;
next	1.11;

1.11
date	97.03.09.04.49.06;	author cgd;	state Exp;
branches;
next	1.10;

1.10
date	97.02.23.20.42.24;	author cgd;	state Exp;
branches;
next	1.9;

1.9
date	97.02.17.19.22.32;	author cgd;	state Exp;
branches;
next	1.8;

1.8
date	97.02.17.19.17.18;	author cgd;	state Exp;
branches;
next	1.7;

1.7
date	96.12.14.06.03.14;	author cgd;	state Exp;
branches;
next	1.6;

1.6
date	96.10.18.05.27.38;	author thorpej;	state Exp;
branches;
next	1.5;

1.5
date	96.10.08.00.29.48;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	96.09.12.16.59.01;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	95.12.20.12.36.56;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	95.12.12.01.53.50;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	95.02.10.17.53.00;	author cgd;	state Exp;
branches;
next	;

1.24.2.1
date	2014.05.22.11.36.43;	author yamt;	state dead;
branches;
next	;
commitid	HJV5p3BoaVY5KwBx;

1.24.24.1
date	2014.08.20.00.02.05;	author tls;	state dead;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.23.20.1
date	2008.09.18.04.39.18;	author wrstuden;	state Exp;
branches;
next	;

1.19.10.1
date	2001.12.09.17.17.28;	author he;	state Exp;
branches;
next	;

1.13.2.1
date	97.11.09.00.59.12;	author lukem;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	98.05.08.05.42.46;	author mycroft;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Remove old compiler based crt stuff for alpha mips powerpc and vax
@
text
@#	$NetBSD: Makefile,v 1.24 2008/07/21 15:34:58 lukem Exp $

.include <bsd.own.mk>

ELFSIZE=	64

#Uncomment the next line to enable the new .init fallthru
CPPFLAGS+=	-I${.CURDIR}

OBJS+=	crtfm.o

.include "${.CURDIR}/../common_elf/Makefile.inc"

crtfm.o: crtfm.c
	${_MKTARGET_COMPILE}
	${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
	${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	rm -f ${.TARGET}.o
@


1.24
log
@Enable MAKEVERBOSE support.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2006/05/19 19:11:12 christos Exp $
@


1.24.24.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2008/07/21 15:34:58 lukem Exp $
@


1.24.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2008/07/21 15:34:58 lukem Exp $
@


1.23
log
@Instead of using -I- -I${.CURDIR} and #include "dot_init.h", use:
-I${.CURDIR} and #include <dot_init.h>, since -I- is obsoleted in gcc-4,
and it is too confusing anyway.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.22 2002/01/14 01:31:58 thorpej Exp $
d15 4
a18 4
	@@echo "${COMPILE.c} ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o
@


1.23.20.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.23 2006/05/19 19:11:12 christos Exp $

.include <bsd.own.mk>
d13 4
a16 4
	${_MKTARGET_COMPILE}
	${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
	${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	rm -f ${.TARGET}.o
@


1.22
log
@Build and install crtfm.o (sets the Alpha FP_C in a way that GCC's
-ffast-math on Alpha expects).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2001/07/17 03:56:48 thorpej Exp $
d6 1
a6 1
CPPFLAGS+=	-I- -I${.CURDIR}
@


1.21
log
@Enable the new (working) .init/.fini magic.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2001/05/11 22:44:14 ross Exp $
d8 2
d11 6
@


1.20
log
@Reorganization of crtbegin/crtend.
o  Primary mod: alpha and i386 code for .init and .fini section fallthroughs
o  Actual fallthru is not yet enabled, see csu/{alpha,i386_elf}/Makefile
o  When enabled, should fix bin/12865 & should fix at least one WINE bug,
   see http://www.winehq.com/hypermail/wine-devel/2001/05/0021.html
o  Also, removed the function pointer hack put in to prevent gcc from
   incorrectly attempting to do short calls over section boundaries,
   on some architectures, rather, simply simply move ctors() and dtors()
   into .init and .fini.
Other notes.
o  Our crtbegin.c and crtend.c were completely in C, despite
   the fact that .init and .fini section fallthroughs require machine code.
   These modules implement the gnu ctors/dtors mechanism directly, eliminating
   in part the need for the elf .init/.fini section fallthrough. However,
   if we ever want to use the gnu-provided constructor support, we need to
   do the fallthrough, at least one program (WINE) apparently uses the
   feature independently, and other compilers may depend on the mechanism.
o  It is amusing that the previous NetBSD _init() and _fini() were put
   into the .init and .fini sections, because nothing is gained over
   plain .text if they don't fall through. Cargo cult!
o  Other elf ports will need to copy the alpha and i386 example mods.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1999/03/20 00:32:40 thorpej Exp $
d6 1
a6 1
#CPPFLAGS+=	-I- -I${.CURDIR}
@


1.19
log
@Pull together common Makefile fragments for ELF crt0 files, and use it
across the board.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1999/03/19 23:34:49 thorpej Exp $
d3 4
a6 1
ELFSIZE=64
@


1.19.10.1
log
@Pull up revisions 1.20-1.21 (requested by skrll):
  Add init/fini section support in crtbegin and crtend, and introduce
  support for DWARF2 exception handling.  Fixes PR#12865, PR#13488,
  PR#13489, and PR#13491.  Also fix ld.elf_so to deal appropriately.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1999/03/20 00:32:40 thorpej Exp $
d3 1
a3 4
ELFSIZE=	64

#Uncomment the next line to enable the new .init fallthru
CPPFLAGS+=	-I- -I${.CURDIR}
@


1.18
log
@Put a good chunk of code common to all ELF crt0.c files into a common
location, and use it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1999/03/19 23:16:15 thorpej Exp $
d3 1
a3 4
CPPFLAGS+=	-DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=64
CPPFLAGS+=	-I${.CURDIR}/../../../libexec/ld.elf_so
CPPFLAGS+=	-I${.CURDIR}/../common_elf
COPT+=		-fPIC
d5 1
a5 40
.PATH:		${.CURDIR}/../common_elf

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

CLEANFILES+=	core a.out

all: ${OBJS}

crt0.o: crt0.c
	@@echo "${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o

gcrt0.o: crt0.c
	@@echo "${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o

crtbegin.o: crtbegin.c
	@@echo "${COMPILE.c} ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
	@@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
	@@rm -f ${.TARGET}.o

crtend.o: crtend.c
	@@echo "${COMPILE.c} ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} ${.ALLSRC} -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>
@


1.17
log
@Move crtbegin.c and crtend.c from alpha subdir to common_elf subdir via
repository copy, remove all redundant copies of these files, and make all
ELF platforms use the common versions.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1998/03/28 00:52:06 cgd Exp $
d5 1
@


1.16
log
@GC alpha's ECOFF_TOOLCHAIN make variable, and related bits.  Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1997/10/24 21:18:25 thorpej Exp $
d6 2
@


1.15
log
@Fix think'o in previous.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.14 1997/10/22 16:00:39 lukem Exp $

.include <bsd.own.mk>			# for ECOFF_TOOLCHAIN definition
a5 4

.if defined(ECOFF_TOOLCHAIN)
CPPFLAGS+=	-DECOFF_COMPAT
.endif
@


1.14
log
@* use CPPFLAGS instead of CFLAGS for -D and -I options
* use COPTS instead of CFLAGS for -fPIC et al
* use ${COMPILE.c} instead of ${CC} ${CFLAGS} -c
* use FILES and FILESDIR to install pc532 objects (instead of install: rule) -
  this makes it consistent with the other a.out ports (arm32, i386, m68k, sparc)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/05/31 21:21:39 cjs Exp $
d33 1
a33 1
	@@${COMPILE.c} ${.ALLSRC} -o ${.TARGET}
d39 1
a39 1
	@@${COMPILE.c} ${.ALLSRC} -o ${.TARGET}
@


1.13
log
@Back out BUILDDIR and NOINSTALL changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/03/09 04:49:06 cgd Exp $
d5 3
a7 2
CFLAGS+=	-DLIBC_SCCS -fPIC -DPIC -DDYNAMIC -DELFSIZE=64
CFLAGS+=	-I${.CURDIR}/../../../libexec/ld.elf_so
d10 1
a10 1
CFLAGS+=	-DECOFF_COMPAT
d20 2
a21 2
	@@echo ${CC} ${CFLAGS} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}
	@@${CC} ${CFLAGS} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
d26 2
a27 2
	@@echo ${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}
	@@${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
d32 2
a33 2
	@@echo ${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
	@@${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}.o
d38 2
a39 2
	@@echo ${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
	@@${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}.o
@


1.13.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1997/10/24 21:18:25 thorpej Exp $
d5 2
a6 3
CPPFLAGS+=	-DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=64
CPPFLAGS+=	-I${.CURDIR}/../../../libexec/ld.elf_so
COPT+=		-fPIC
d9 1
a9 1
CPPFLAGS+=	-DECOFF_COMPAT
d19 2
a20 2
	@@echo "${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}.o
d25 2
a26 2
	@@echo "${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}.o
d31 2
a32 2
	@@echo "${COMPILE.c} ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
d37 2
a38 2
	@@echo "${COMPILE.c} ${.ALLSRC} -o ${.TARGET}"
	@@${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
@


1.13.2.2
log
@Sync with trunk, per request of cgd and ross.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.16 1998/03/28 00:52:06 cgd Exp $
d8 4
@


1.12
log
@These updates to the build allow building against include files
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
@
text
@a15 2
.include	<bsd.own.mk>	# for BUILDDIR

a22 7
.if defined(OBJDIR)
	@@echo install -d ${BUILDDIR}${LIBDIR}
	@@install -d ${BUILDDIR}${LIBDIR}
	@@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
	@@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
	@@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
a28 7
.if defined(OBJDIR)
	@@echo install -d ${BUILDDIR}${LIBDIR}
	@@install -d ${BUILDDIR}${LIBDIR}
	@@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
	@@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
	@@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
a34 10
.if defined(OBJDIR)
	@@echo install -d ${BUILDDIR}${LIBDIR}
	@@install -d ${BUILDDIR}${LIBDIR}
	@@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
	@@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
	@@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
	@@echo ${BUILDDIR}${LIBDIR}/crtbeginS.o '->' `pwd`/${.TARGET};
	@@rm -f ${BUILDDIR}${LIBDIR}/crtbeginS.o
	@@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/crtbeginS.o;
.endif
a40 10
.if defined(OBJDIR)
	@@echo install -d ${BUILDDIR}${LIBDIR}
	@@install -d ${BUILDDIR}${LIBDIR}
	@@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
	@@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
	@@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
	@@echo ${BUILDDIR}${LIBDIR}/crtendS.o '->' `pwd`/${.TARGET};
	@@rm -f ${BUILDDIR}${LIBDIR}/crtendS.o
	@@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/crtendS.o;
.endif
@


1.11
log
@fix include path bogosity pointed out by Greg Oster
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1997/02/23 20:42:24 cgd Exp $
d16 2
d25 7
d38 7
d51 10
d67 10
@


1.10
log
@turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1997/02/17 19:22:32 cgd Exp $
d6 1
a6 1
CFLAGS+=	-I/usr/src/libexec/ld.elf_so
@


1.9
log
@build with -fPIC
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1997/02/17 19:17:18 cgd Exp $
d3 1
a3 1
.include <bsd.own.mk>			# for ELF_TOOLCHAIN definition
d8 1
a8 1
.if !defined(ELF_TOOLCHAIN)
@


1.8
log
@make hard links from crt{begin,end}.o to crd{begin,end}S.o
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1996/12/14 06:03:14 cgd Exp $
d5 1
a5 1
CFLAGS+=	-DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=64
@


1.7
log
@-I expected location of ELF shared loader
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1996/10/18 05:27:38 thorpej Exp $
d45 3
@


1.6
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1996/10/08 00:29:48 cgd Exp $
d6 1
a6 1
CFLAGS+=	-I${.CURDIR}/../../../libexec/elf_rtld/include
@


1.5
log
@update so this compiles with the latest ELF ld.so.  Include bsd.own.mk
at the top, for ELF_TOOLCHAIN definition, so this can be better
conditionalized for new/old toolchains.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1996/09/12 16:59:01 cgd Exp $
d43 1
a43 1
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
@


1.4
log
@Reimplement in C, adding ELF support.  if compiled with -DECOFF_COMPAT
(currently the default), then it compiles on both an ECOFF toolchain
and on an ELF toolchain (but w/o support for dynamic linking or C++
constructors & destructors).  If compiled without -DECOFF_COMPAT, it
supports statically- or dynamically-linked ELF binaries (and shared
libraries).
@
text
@d1 1
a1 1
#	$NetBSD$
d3 1
a3 1
ECOFF_COMPAT= yes
d5 2
a6 2
CFLAGS+=	-DLIBC_SCCS -DPIC -DDYNAMIC
CFLAGS+=	-I${.CURDIR}/../../libexec/rtld/include
d8 1
a8 1
.if defined(ECOFF_COMPAT)
@


1.3
log
@limit the flags that get passed to cpp
@
text
@d1 12
a12 1
#	$NetBSD: Makefile,v 1.2 1995/12/12 01:53:50 cgd Exp $
a13 2
CFLAGS+=	-DLIBC_SCCS
OBJS=		crt0.o gcrt0.o
d18 23
a40 9
crt0.o: crt0.s
	${CPP} -DCRT0 ${CFLAGS:M-[ID]*} ${.ALLSRC} | ${AS} -o $@@
	@@${LD} -x -r ${.TARGET}
	@@mv a.out ${.TARGET}

gcrt0.o: crt0.s
	${CPP} -DMCRT0 ${CFLAGS:M-[ID]*} ${.ALLSRC} | ${AS} -o $@@
	@@${LD} -x -r ${.TARGET}
	@@mv a.out ${.TARGET}
d44 1
a44 3
		${DESTDIR}/usr/lib

depend lint tags:
@


1.2
log
@CFLAGS+=, not CFLAGS=
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1995/02/10 17:53:00 cgd Exp $
d10 1
a10 1
	${CPP} -DCRT0 ${CFLAGS} ${.ALLSRC} | ${AS} -o $@@
d15 1
a15 1
	${CPP} -DMCRT0 ${CFLAGS} ${.ALLSRC} | ${AS} -o $@@
@


1.1
log
@initial alpha support.  no profiling support.
@
text
@d1 1
a1 1
#	$NetBSD$
d3 1
a3 1
CFLAGS=		-DLIBC_SCCS
@
