head	1.51;
access;
symbols
	netbsd-11-0-RC3:1.51
	netbsd-11-0-RC2:1.51
	netbsd-11-0-RC1:1.51
	perseant-exfatfs-base-20250801:1.51
	netbsd-11:1.51.0.40
	netbsd-11-base:1.51
	netbsd-10-1-RELEASE:1.51
	perseant-exfatfs-base-20240630:1.51
	perseant-exfatfs:1.51.0.38
	perseant-exfatfs-base:1.51
	netbsd-8-3-RELEASE:1.51
	netbsd-9-4-RELEASE:1.51
	netbsd-10-0-RELEASE:1.51
	netbsd-10-0-RC6:1.51
	netbsd-10-0-RC5:1.51
	netbsd-10-0-RC4:1.51
	netbsd-10-0-RC3:1.51
	netbsd-10-0-RC2:1.51
	netbsd-10-0-RC1:1.51
	netbsd-10:1.51.0.36
	netbsd-10-base:1.51
	netbsd-9-3-RELEASE:1.51
	cjep_sun2x-base1:1.51
	cjep_sun2x:1.51.0.34
	cjep_sun2x-base:1.51
	cjep_staticlib_x-base1:1.51
	netbsd-9-2-RELEASE:1.51
	cjep_staticlib_x:1.51.0.32
	cjep_staticlib_x-base:1.51
	netbsd-9-1-RELEASE:1.51
	phil-wifi-20200421:1.51
	phil-wifi-20200411:1.51
	is-mlppp:1.51.0.30
	is-mlppp-base:1.51
	phil-wifi-20200406:1.51
	netbsd-8-2-RELEASE:1.51
	netbsd-9-0-RELEASE:1.51
	netbsd-9-0-RC2:1.51
	netbsd-9-0-RC1:1.51
	phil-wifi-20191119:1.51
	netbsd-9:1.51.0.28
	netbsd-9-base:1.51
	phil-wifi-20190609:1.51
	netbsd-8-1-RELEASE:1.51
	netbsd-8-1-RC1:1.51
	pgoyette-compat-merge-20190127:1.51
	pgoyette-compat-20190127:1.51
	pgoyette-compat-20190118:1.51
	pgoyette-compat-1226:1.51
	pgoyette-compat-1126:1.51
	pgoyette-compat-1020:1.51
	pgoyette-compat-0930:1.51
	pgoyette-compat-0906:1.51
	netbsd-7-2-RELEASE:1.51
	pgoyette-compat-0728:1.51
	netbsd-8-0-RELEASE:1.51
	phil-wifi:1.51.0.26
	phil-wifi-base:1.51
	pgoyette-compat-0625:1.51
	netbsd-8-0-RC2:1.51
	pgoyette-compat-0521:1.51
	pgoyette-compat-0502:1.51
	pgoyette-compat-0422:1.51
	netbsd-8-0-RC1:1.51
	pgoyette-compat-0415:1.51
	pgoyette-compat-0407:1.51
	pgoyette-compat-0330:1.51
	pgoyette-compat-0322:1.51
	pgoyette-compat-0315:1.51
	netbsd-7-1-2-RELEASE:1.51
	pgoyette-compat:1.51.0.24
	pgoyette-compat-base:1.51
	netbsd-7-1-1-RELEASE:1.51
	matt-nb8-mediatek:1.51.0.22
	matt-nb8-mediatek-base:1.51
	perseant-stdc-iso10646:1.51.0.20
	perseant-stdc-iso10646-base:1.51
	netbsd-8:1.51.0.18
	netbsd-8-base:1.51
	prg-localcount2-base3:1.51
	prg-localcount2-base2:1.51
	prg-localcount2-base1:1.51
	prg-localcount2:1.51.0.16
	prg-localcount2-base:1.51
	pgoyette-localcount-20170426:1.51
	bouyer-socketcan-base1:1.51
	pgoyette-localcount-20170320:1.51
	netbsd-7-1:1.51.0.14
	netbsd-7-1-RELEASE:1.51
	netbsd-7-1-RC2:1.51
	netbsd-7-nhusb-base-20170116:1.51
	bouyer-socketcan:1.51.0.12
	bouyer-socketcan-base:1.51
	pgoyette-localcount-20170107:1.51
	netbsd-7-1-RC1:1.51
	pgoyette-localcount-20161104:1.51
	netbsd-7-0-2-RELEASE:1.51
	localcount-20160914:1.51
	netbsd-7-nhusb:1.51.0.10
	netbsd-7-nhusb-base:1.51
	pgoyette-localcount-20160806:1.51
	pgoyette-localcount-20160726:1.51
	pgoyette-localcount:1.51.0.8
	pgoyette-localcount-base:1.51
	netbsd-7-0-1-RELEASE:1.51
	netbsd-7-0:1.51.0.6
	netbsd-7-0-RELEASE:1.51
	netbsd-7-0-RC3:1.51
	netbsd-7-0-RC2:1.51
	netbsd-7-0-RC1:1.51
	netbsd-5-2-3-RELEASE:1.45.38.1
	netbsd-5-1-5-RELEASE:1.45.38.1
	netbsd-6-0-6-RELEASE:1.47
	netbsd-6-1-5-RELEASE:1.47
	netbsd-7:1.51.0.4
	netbsd-7-base:1.51
	yamt-pagecache-base9:1.51
	yamt-pagecache-tag8:1.47
	netbsd-6-1-4-RELEASE:1.47
	netbsd-6-0-5-RELEASE:1.47
	tls-earlyentropy:1.51.0.2
	tls-earlyentropy-base:1.51
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.51
	riastradh-drm2-base3:1.50
	netbsd-6-1-3-RELEASE:1.47
	netbsd-6-0-4-RELEASE:1.47
	netbsd-5-2-2-RELEASE:1.45.38.1
	netbsd-5-1-4-RELEASE:1.45.38.1
	netbsd-6-1-2-RELEASE:1.47
	netbsd-6-0-3-RELEASE:1.47
	netbsd-5-2-1-RELEASE:1.45.38.1
	netbsd-5-1-3-RELEASE:1.45.38.1
	netbsd-6-1-1-RELEASE:1.47
	riastradh-drm2-base2:1.50
	riastradh-drm2-base1:1.50
	riastradh-drm2:1.49.0.2
	riastradh-drm2-base:1.49
	netbsd-6-1:1.47.0.16
	netbsd-6-0-2-RELEASE:1.47
	netbsd-6-1-RELEASE:1.47
	netbsd-6-1-RC4:1.47
	netbsd-6-1-RC3:1.47
	agc-symver:1.49.0.4
	agc-symver-base:1.49
	netbsd-6-1-RC2:1.47
	netbsd-6-1-RC1:1.47
	yamt-pagecache-base8:1.47
	netbsd-5-2:1.45.38.1.0.10
	netbsd-6-0-1-RELEASE:1.47
	yamt-pagecache-base7:1.47
	netbsd-5-2-RELEASE:1.45.38.1
	netbsd-5-2-RC1:1.45.38.1
	matt-nb6-plus-nbase:1.47
	yamt-pagecache-base6:1.47
	netbsd-6-0:1.47.0.14
	netbsd-6-0-RELEASE:1.47
	netbsd-6-0-RC2:1.47
	tls-maxphys:1.47.0.12
	tls-maxphys-base:1.51
	matt-nb6-plus:1.47.0.10
	matt-nb6-plus-base:1.47
	netbsd-6-0-RC1:1.47
	yamt-pagecache-base5:1.47
	yamt-pagecache-base4:1.47
	netbsd-6:1.47.0.8
	netbsd-6-base:1.47
	netbsd-5-1-2-RELEASE:1.45.38.1
	netbsd-5-1-1-RELEASE:1.45.38.1
	yamt-pagecache-base3:1.47
	yamt-pagecache-base2:1.47
	yamt-pagecache:1.47.0.6
	yamt-pagecache-base:1.47
	cherry-xenmp:1.47.0.4
	cherry-xenmp-base:1.47
	bouyer-quota2-nbase:1.47
	bouyer-quota2:1.47.0.2
	bouyer-quota2-base:1.47
	matt-mips64-premerge-20101231:1.47
	matt-nb5-mips64-premerge-20101231:1.45.38.1
	matt-nb5-pq3:1.45.38.1.0.8
	matt-nb5-pq3-base:1.45.38.1
	netbsd-5-1:1.45.38.1.0.6
	netbsd-5-1-RELEASE:1.45.38.1
	netbsd-5-1-RC4:1.45.38.1
	matt-nb5-mips64-k15:1.45.38.1
	netbsd-5-1-RC3:1.45.38.1
	netbsd-5-1-RC2:1.45.38.1
	netbsd-5-1-RC1:1.45.38.1
	netbsd-5-0-2-RELEASE:1.45.38.1
	matt-nb5-mips64-premerge-20091211:1.45.38.1
	matt-premerge-20091211:1.46
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.45.38.1
	matt-nb4-mips64-k7-u2a-k9b:1.45.38.1
	matt-nb5-mips64-u1-k1-k5:1.45.38.1
	matt-nb5-mips64:1.45.38.1.0.4
	netbsd-5-0-1-RELEASE:1.45.38.1
	jym-xensuspend-nbase:1.46
	netbsd-5-0:1.45.38.1.0.2
	netbsd-5-0-RELEASE:1.45.38.1
	netbsd-5-0-RC4:1.45.38.1
	netbsd-5-0-RC3:1.45.38.1
	netbsd-5-0-RC2:1.45.38.1
	jym-xensuspend:1.46.0.2
	jym-xensuspend-base:1.46
	netbsd-5-0-RC1:1.45.38.1
	netbsd-5:1.45.0.38
	netbsd-5-base:1.45
	matt-mips64-base2:1.45
	matt-mips64:1.45.0.36
	mjf-devfs2:1.45.0.34
	mjf-devfs2-base:1.45
	netbsd-4-0-1-RELEASE:1.45
	wrstuden-revivesa-base-3:1.45
	wrstuden-revivesa-base-2:1.45
	wrstuden-fixsa-newbase:1.45
	wrstuden-revivesa-base-1:1.45
	yamt-pf42-base4:1.45
	yamt-pf42-base3:1.45
	hpcarm-cleanup-nbase:1.45
	yamt-pf42-baseX:1.45
	yamt-pf42-base2:1.45
	wrstuden-revivesa:1.45.0.32
	wrstuden-revivesa-base:1.45
	yamt-pf42:1.45.0.30
	yamt-pf42-base:1.45
	keiichi-mipv6:1.45.0.28
	keiichi-mipv6-base:1.45
	matt-armv6-nbase:1.45
	matt-armv6-prevmlocking:1.45
	wrstuden-fixsa-base-1:1.45
	netbsd-4-0:1.45.0.26
	netbsd-4-0-RELEASE:1.45
	cube-autoconf:1.45.0.24
	cube-autoconf-base:1.45
	netbsd-4-0-RC5:1.45
	netbsd-4-0-RC4:1.45
	netbsd-4-0-RC3:1.45
	netbsd-4-0-RC2:1.45
	netbsd-4-0-RC1:1.45
	matt-armv6:1.45.0.22
	matt-armv6-base:1.45
	matt-mips64-base:1.45
	hpcarm-cleanup:1.45.0.20
	hpcarm-cleanup-base:1.45
	netbsd-3-1-1-RELEASE:1.45
	netbsd-3-0-3-RELEASE:1.45
	wrstuden-fixsa:1.45.0.18
	wrstuden-fixsa-base:1.45
	abandoned-netbsd-4-base:1.45
	abandoned-netbsd-4:1.45.0.12
	netbsd-3-1:1.45.0.14
	netbsd-3-1-RELEASE:1.45
	netbsd-3-0-2-RELEASE:1.45
	netbsd-3-1-RC4:1.45
	netbsd-3-1-RC3:1.45
	netbsd-3-1-RC2:1.45
	netbsd-3-1-RC1:1.45
	netbsd-4:1.45.0.16
	netbsd-4-base:1.45
	netbsd-3-0-1-RELEASE:1.45
	netbsd-3-0:1.45.0.10
	netbsd-3-0-RELEASE:1.45
	netbsd-3-0-RC6:1.45
	netbsd-3-0-RC5:1.45
	netbsd-3-0-RC4:1.45
	netbsd-3-0-RC3:1.45
	netbsd-3-0-RC2:1.45
	netbsd-3-0-RC1:1.45
	netbsd-2-0-3-RELEASE:1.45
	netbsd-2-1:1.45.0.8
	netbsd-2-1-RELEASE:1.45
	netbsd-2-1-RC6:1.45
	netbsd-2-1-RC5:1.45
	netbsd-2-1-RC4:1.45
	netbsd-2-1-RC3:1.45
	netbsd-2-1-RC2:1.45
	netbsd-2-1-RC1:1.45
	netbsd-2-0-2-RELEASE:1.45
	netbsd-3:1.45.0.6
	netbsd-3-base:1.45
	netbsd-2-0-1-RELEASE:1.45
	netbsd-2:1.45.0.4
	netbsd-2-base:1.45
	netbsd-2-0-RELEASE:1.45
	netbsd-2-0-RC5:1.45
	netbsd-2-0-RC4:1.45
	netbsd-2-0-RC3:1.45
	netbsd-2-0-RC2:1.45
	netbsd-2-0-RC1:1.45
	netbsd-2-0:1.45.0.2
	netbsd-2-0-base:1.45
	netbsd-1-6-PATCH002-RELEASE:1.38
	netbsd-1-6-PATCH002:1.38
	netbsd-1-6-PATCH002-RC4:1.38
	netbsd-1-6-PATCH002-RC3:1.38
	netbsd-1-6-PATCH002-RC2:1.38
	netbsd-1-6-PATCH002-RC1:1.38
	netbsd-1-6-PATCH001:1.38
	netbsd-1-6-PATCH001-RELEASE:1.38
	netbsd-1-6-PATCH001-RC3:1.38
	netbsd-1-6-PATCH001-RC2:1.38
	netbsd-1-6-PATCH001-RC1:1.38
	fvdl_fs64_base:1.40
	netbsd-1-6-RELEASE:1.38
	netbsd-1-6-RC3:1.38
	netbsd-1-6-RC2:1.38
	netbsd-1-6-RC1:1.38
	netbsd-1-6:1.38.0.2
	netbsd-1-6-base:1.38
	netbsd-1-5-PATCH003:1.28.10.2
	netbsd-1-5-PATCH002:1.28.10.2
	netbsd-1-5-PATCH001:1.28.10.2
	netbsd-1-5-RELEASE:1.28.10.2
	netbsd-1-5-BETA2:1.28.10.2
	netbsd-1-5-BETA:1.28.10.2
	netbsd-1-4-PATCH003:1.28
	netbsd-1-5-ALPHA2:1.28
	netbsd-1-5:1.28.0.10
	netbsd-1-5-base:1.28
	minoura-xpg4dl:1.28.0.8
	minoura-xpg4dl-base:1.28
	netbsd-1-4-PATCH002:1.28
	wrstuden-devbsize-19991221:1.28
	wrstuden-devbsize:1.28.0.6
	wrstuden-devbsize-base:1.28
	comdex-fall-1999:1.28.0.4
	comdex-fall-1999-base:1.28
	netbsd-1-4-PATCH001:1.28
	netbsd-1-4-RELEASE:1.28
	netbsd-1-4:1.28.0.2
	netbsd-1-4-base:1.28;
locks; strict;
comment	@# @;


1.51
date	2014.03.18.18.20.38;	author riastradh;	state Exp;
branches;
next	1.50;
commitid	YersUbOm2SKa4dtx;

1.50
date	2013.07.18.21.39.11;	author matt;	state Exp;
branches;
next	1.49;
commitid	APcGqMmdEH1yYZXw;

1.49
date	2013.02.05.15.19.18;	author martin;	state Exp;
branches
	1.49.2.1;
next	1.48;

1.48
date	2013.02.05.07.22.59;	author matt;	state Exp;
branches;
next	1.47;

1.47
date	2010.07.06.05.59.53;	author mrg;	state Exp;
branches
	1.47.6.1
	1.47.12.1;
next	1.46;

1.46
date	2008.10.31.20.24.52;	author mrg;	state Exp;
branches;
next	1.45;

1.45
date	2004.03.19.08.07.28;	author jmc;	state Exp;
branches
	1.45.38.1;
next	1.44;

1.44
date	2003.10.21.10.01.20;	author lukem;	state Exp;
branches;
next	1.43;

1.43
date	2003.10.19.04.45.01;	author lukem;	state Exp;
branches;
next	1.42;

1.42
date	2003.10.19.01.19.10;	author lukem;	state Exp;
branches;
next	1.41;

1.41
date	2003.07.10.10.34.25;	author lukem;	state Exp;
branches;
next	1.40;

1.40
date	2002.11.12.14.33.49;	author itohy;	state Exp;
branches;
next	1.39;

1.39
date	2002.08.19.13.54.36;	author lukem;	state Exp;
branches;
next	1.38;

1.38
date	2002.04.24.08.18.51;	author lukem;	state Exp;
branches;
next	1.37;

1.37
date	2002.03.29.09.48.49;	author matt;	state Exp;
branches;
next	1.36;

1.36
date	2002.03.05.21.53.56;	author thorpej;	state Exp;
branches;
next	1.35;

1.35
date	2002.02.06.20.36.18;	author thorpej;	state Exp;
branches;
next	1.34;

1.34
date	2002.01.31.19.15.23;	author tv;	state Exp;
branches;
next	1.33;

1.33
date	2002.01.22.16.27.51;	author skrll;	state Exp;
branches;
next	1.32;

1.32
date	2001.05.06.13.54.04;	author wiz;	state Exp;
branches;
next	1.31;

1.31
date	2001.04.18.11.48.21;	author tsutsui;	state Exp;
branches;
next	1.30;

1.30
date	2000.09.12.16.39.51;	author tron;	state Exp;
branches;
next	1.29;

1.29
date	2000.09.11.23.23.21;	author fvdl;	state Exp;
branches;
next	1.28;

1.28
date	99.03.19.22.06.37;	author thorpej;	state Exp;
branches
	1.28.10.1;
next	1.27;

1.27
date	99.02.09.20.27.04;	author christos;	state Exp;
branches;
next	1.26;

1.26
date	98.12.17.11.34.10;	author pk;	state Exp;
branches;
next	1.25;

1.25
date	98.08.13.07.34.06;	author mycroft;	state Exp;
branches;
next	1.24;

1.24
date	98.07.25.12.37.27;	author mycroft;	state Exp;
branches;
next	1.23;

1.23
date	98.05.21.00.31.05;	author tv;	state Exp;
branches;
next	1.22;

1.22
date	97.10.25.10.12.46;	author lukem;	state Exp;
branches;
next	1.21;

1.21
date	97.07.14.02.56.54;	author christos;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	97.06.23.13.25.58;	author mrg;	state Exp;
branches;
next	1.19;

1.19
date	97.05.31.21.21.37;	author cjs;	state Exp;
branches;
next	1.18;

1.18
date	97.05.30.14.06.34;	author cjs;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	97.05.30.11.39.01;	author veego;	state Exp;
branches;
next	1.16;

1.16
date	97.04.16.16.49.43;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	97.03.24.22.06.36;	author christos;	state Exp;
branches;
next	1.14;

1.14
date	96.12.23.22.13.03;	author pk;	state Exp;
branches;
next	1.13;

1.13
date	96.06.08.22.22.26;	author pk;	state Exp;
branches;
next	1.12;

1.12
date	96.01.02.08.54.28;	author thorpej;	state Exp;
branches;
next	1.11;

1.11
date	95.10.09.00.11.24;	author pk;	state Exp;
branches;
next	1.10;

1.10
date	95.08.25.10.08.45;	author pk;	state Exp;
branches;
next	1.9;

1.9
date	94.09.19.04.49.02;	author mycroft;	state Exp;
branches;
next	1.8;

1.8
date	94.01.28.21.01.20;	author pk;	state Exp;
branches;
next	1.7;

1.7
date	93.12.10.05.10.30;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	93.12.08.11.47.31;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	93.12.08.10.28.05;	author pk;	state Exp;
branches;
next	1.4;

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

1.3
date	93.11.08.13.20.39;	author pk;	state Exp;
branches;
next	1.2;

1.2
date	93.10.27.00.55.24;	author pk;	state Exp;
branches;
next	1.1;

1.1
date	93.10.16.21.54.08;	author pk;	state Exp;
branches;
next	;

1.49.2.1
date	2013.07.23.21.07.30;	author riastradh;	state Exp;
branches;
next	;
commitid	rochtllMBJfBDDYw;

1.47.6.1
date	2014.05.22.11.37.13;	author yamt;	state Exp;
branches;
next	;
commitid	VmckIax9CgOhKwBx;

1.47.12.1
date	2013.02.25.00.28.02;	author tls;	state Exp;
branches;
next	1.47.12.2;

1.47.12.2
date	2014.08.20.00.02.22;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.45.38.1
date	2008.11.06.23.51.27;	author snj;	state Exp;
branches
	1.45.38.1.4.1;
next	;

1.45.38.1.4.1
date	2014.03.24.18.58.00;	author matt;	state Exp;
branches;
next	;
commitid	ToQhYk0o09325Ztx;

1.28.10.1
date	2000.09.12.00.56.57;	author fvdl;	state Exp;
branches;
next	1.28.10.2;

1.28.10.2
date	2000.09.12.16.54.11;	author tron;	state Exp;
branches;
next	;

1.21.2.1
date	97.11.08.06.54.12;	author lukem;	state Exp;
branches;
next	;

1.18.2.1
date	97.08.02.00.03.13;	author cjs;	state Exp;
branches;
next	;


desc
@@


1.51
log
@Merge riastradh-drm2 to HEAD.
@
text
@#	$NetBSD: Makefile,v 1.49.2.1 2013/07/23 21:07:30 riastradh Exp $

.include <bsd.own.mk>			# for MKPIC definition
.include <bsd.endian.mk>		# for TARGET_ENDIANNESS

.if ${MKPIC} != "no"
.if (${TARGET_ENDIANNESS} == "1234" && ${MACHINE_CPU} == "arm") \
    || ${MACHINE_CPU} == "m68k"
UUDECODE_FILES=	ld.so.${MACHINE_CPU}
.else
UUDECODE_FILES=	ld.so.${MACHINE_ARCH}
.endif

.if exists(${UUDECODE_FILES}.uue)
FILES=		ld.so
FILESDIR=	/usr/libexec
FILESMODE=	${BINMODE}
UUDECODE_FILES_RENAME_${UUDECODE_FILES}= ld.so

all dependall: ${FILES}

ld.so:	${UUDECODE_FILES}

.else
UUDECODE_FILES=
.endif
.endif

MAN= ld.aout_so.1

.include <bsd.files.mk>
.include <bsd.prog.mk>
@


1.50
log
@Use ${MACHINE_CPU} for m68k
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2013/02/05 15:19:18 martin Exp $
@


1.49
log
@Make sure UUDECODE_FILES is empty if we do not have an old ld.so_aout
(on architectures that never used a.out)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2013/02/05 07:22:59 matt Exp $
d7 2
a8 1
.if ${TARGET_ENDIANNESS} == "1234" && ${MACHINE_CPU} == "arm"
@


1.49.2.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.50 2013/07/18 21:39:11 matt Exp $
d7 1
a7 2
.if (${TARGET_ENDIANNESS} == "1234" && ${MACHINE_CPU} == "arm") \
    || ${MACHINE_CPU} == "m68k"
@


1.48
log
@There are other little endian arm machine_arches other than "arm"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2010/07/06 05:59:53 mrg Exp $
d23 2
@


1.47
log
@remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2008/10/31 20:24:52 mrg Exp $
d4 1
d6 6
a11 1
.if ${MKPIC} != "no" && exists(ld.so.${MACHINE_ARCH}.uue)
d13 1
a16 1
UUDECODE_FILES=	ld.so.${MACHINE_ARCH}
d21 1
a21 1
ld.so:	ld.so.${MACHINE_ARCH}
d24 1
@


1.47.6.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.47 2010/07/06 05:59:53 mrg Exp $
a3 1
.include <bsd.endian.mk>		# for TARGET_ENDIANNESS
d5 1
a5 7
.if ${MKPIC} != "no"
.if (${TARGET_ENDIANNESS} == "1234" && ${MACHINE_CPU} == "arm") \
    || ${MACHINE_CPU} == "m68k"
UUDECODE_FILES=	ld.so.${MACHINE_CPU}
.else
UUDECODE_FILES=	ld.so.${MACHINE_ARCH}
.endif
a6 1
.if exists(${UUDECODE_FILES}.uue)
d10 1
d15 1
a15 1
ld.so:	${UUDECODE_FILES}
a16 3
.else
UUDECODE_FILES=
.endif
@


1.47.12.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2010/07/06 05:59:53 mrg Exp $
a3 1
.include <bsd.endian.mk>		# for TARGET_ENDIANNESS
d5 1
a5 6
.if ${MKPIC} != "no"
.if ${TARGET_ENDIANNESS} == "1234" && ${MACHINE_CPU} == "arm"
UUDECODE_FILES=	ld.so.${MACHINE_CPU}
.else
UUDECODE_FILES=	ld.so.${MACHINE_ARCH}
.endif
a6 1
.if exists(${UUDECODE_FILES}.uue)
d10 1
d15 1
a15 1
ld.so:	${UUDECODE_FILES}
a16 3
.else
UUDECODE_FILES=
.endif
@


1.47.12.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a7 2
.if (${TARGET_ENDIANNESS} == "1234" && ${MACHINE_CPU} == "arm") \
    || ${MACHINE_CPU} == "m68k"
@


1.46
log
@make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2004/03/19 08:07:28 jmc Exp $
d3 1
a3 31
.include <bsd.own.mk>			# for OBJECT_FMT definition
.include <bsd.shlib.mk>			# for SHLINKINSTALLDIR definition
.if ${MKPIC} != "no"
.if (${OBJECT_FMT} == "a.out")
PROG=	ld.so
SRCS=	mdprologue.S rtld.c malloc.c shlib.c md.c vfprintf.c
BINDIR=	${SHLINKINSTALLDIR}

CLIB=	${NETBSDSRCDIR}/lib/libc
CLIBOBJ!=cd ${CLIB} && ${PRINTOBJDIR}
PICFLAG=-fpic -fno-function-cse
CPPFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS \
	  -I${CLIB}/include -I$(.CURDIR)/arch/$(MACHINE_ARCH) -I$(.CURDIR)
.if defined(DEBUG)
CPPFLAGS+=-DDEBUG
.endif
.if ${SHLIBINSTALLDIR} != ${LIBDIR}
CPPFLAGS+=-DSTANDARD_SEARCH_DIRS=\"${SHLIBINSTALLDIR}\",\"${LIBDIR}\"
.endif
ASFLAGS+=-k
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic -L${CLIBOBJ}
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
.endif
LDADD+=	-lc_pic
DPADD+=	${LIBC_PIC}

.PATH: ${CLIB}/stdio $(.CURDIR)/arch/$(MACHINE_ARCH)

$(PROG):
	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
d5 1
a5 13
.S.o:
	${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -

.if ${SHLINKINSTALLDIR} != "/usr/libexec"
SYMLINKS+=	${SHLINKINSTALLDIR}/${PROG} /usr/libexec/${PROG}
.endif

.elif (${OBJECT_FMT} == "ELF" && \
       (${MACHINE_ARCH} == "arm" || \
        ${MACHINE_ARCH} == "i386" || \
        ${MACHINE_ARCH} == "m68k" || \
        ${MACHINE_ARCH} == "sparc" || \
        ${MACHINE_ARCH} == "vax"))
a17 1
.endif
@


1.45
log
@Convert to usage of UUDECODE_FILES and standardize on filename extension
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2003/10/21 10:01:20 lukem Exp $
d5 1
d60 1
@


1.45.38.1
log
@Pull up following revision(s) (requested by mrg in ticket #20):
	compat/libexec/ld.elf_so/Makefile: revision 1.2
	distrib/sets/lists/base/md.shark: revision 1.7
	distrib/sets/lists/base/md.vax: revision 1.26
	distrib/sets/lists/base/md.i386: revision 1.130
	distrib/sets/lists/base/ad.arm: revision 1.10
	distrib/sets/lists/comp/md.shark: revision 1.13
	distrib/sets/lists/comp/md.sparc: revision 1.68
	distrib/sets/lists/comp/ad.arm: revision 1.31
	distrib/sets/lists/comp/md.vax: revision 1.35
	distrib/sets/lists/comp/md.i386: revision 1.108
	distrib/sets/lists/base/md.sparc: revision 1.75
	distrib/sets/lists/comp/md.pmax: revision 1.59
	libexec/ld.aout_so/Makefile: revision 1.46
	sbin/ldconfig/Makefile: revision 1.22
make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
maybe all mips and all arm as well.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2004/03/19 08:07:28 jmc Exp $
a4 1
.if ${MKPIC} != "no"
a58 1
.endif
@


1.45.38.1.4.1
log
@Make these work with a machine_arch of armv7
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45.38.1 2008/11/06 23:51:27 snj Exp $
a43 1
        ${MACHINE_ARCH} == "armv7" || \
d52 1
a52 1
UUDECODE_FILES=	ld.so.${MACHINE_CPU}
d57 1
a57 1
ld.so:	ld.so.${MACHINE_CPU}
@


1.44
log
@Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2003/10/19 04:45:01 lukem Exp $
d51 2
a52 1
CLEANFILES+=	ld.so
d56 1
a56 3
ld.so:	${.CURDIR}/ld.so.${MACHINE_ARCH}.uue
	${_MKTARGET_CREATE}
	${TOOL_UUDECODE} ${.ALLSRC}
d62 1
@


1.43
log
@rework to use the newer _MKMSGCREATE (et al) macros
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2003/10/19 01:19:10 lukem Exp $
d56 1
a56 2
	${_MKMSGCREATE}
	${_MKCMD}\
@


1.42
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2003/07/10 10:34:25 lukem Exp $
d56 1
a56 1
	${_MKMSG} " create  ${.TARGET}"
@


1.41
log
@Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2002/11/12 14:33:49 itohy Exp $
d56 2
@


1.40
log
@MKDYNAMICROOT for a.out
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2002/08/19 13:54:36 lukem Exp $
a54 2
UUDECODE?=	uudecode

d56 1
a56 1
	${UUDECODE} ${.ALLSRC}
@


1.39
log
@Use  ${NETBSDSRCDIR}/some/path  instead of  ${.CURDIR}/../../some/path
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2002/04/24 08:18:51 lukem Exp $
d3 2
a4 1
.include <bsd.own.mk>
d8 2
d18 3
d36 5
@


1.38
log
@- in <bsd.files.mk>, don't clear FILES after using it, as that prevents
	make -V FILES
  from being useful (and given that every other variable can be
  extracted using make -V, the behaviour was unusually inconsistent
  given that the original reason for clearing it doesn't seem to be
  relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
  (and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2002/03/29 09:48:49 matt Exp $
d7 1
a7 1
CLIB=	${.CURDIR}/../../lib/libc
@


1.37
log
@Add support for a VAX ld.so when VAX is ELF
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2002/03/05 21:53:56 thorpej Exp $
a47 2

.include <bsd.files.mk>
@


1.36
log
@Use ${PRINTOBJDIR}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2002/02/06 20:36:18 thorpej Exp $
d34 2
a35 1
        ${MACHINE_ARCH} == "sparc"))
@


1.35
log
@MACHINE_ARCH for ELF ARM platforms is "arm", not "arm32".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2002/01/31 19:15:23 tv Exp $
d8 1
a8 2
CLIBOBJ!=cd ${CLIB}; \
	 printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
@


1.34
log
@Make it possible for uudecode to be a host tool.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2002/01/22 16:27:51 skrll Exp $
d32 1
a32 1
       (${MACHINE_ARCH} == "arm32" || \
@


1.33
log
@Add a uuencoded binary of a.out arm32 ld.so and update Makefile to extract
on ELF platforms.

This file was created using the following revisions:

	ld.h,v 1.2 1998/12/17 23:36:38 pk
	malloc.c,v 1.7 2000/11/28 06:01:34 mycroft
	rtld.c,v 1.82 2001/09/20 20:55:29 wiz
	shlib.c,v 1.18 2000/05/27 06:53:30 matt
	shlib.h,v 1.1 1998/12/15 23:16:14 pk

arm32 specific files:

	md-static-funcs.c,v 1.1 1997/10/17 21:25:42 mark
	md.c,v 1.11 1999/02/27 03:34:05 tv
	md.h,v 1.4 2000/05/28 01:53:05 matt
	mdprologue.S,v 1.1 1997/10/17 21:25:59 mark
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2001/05/06 13:54:04 wiz Exp $
d44 2
d47 1
a47 1
	uudecode ${.ALLSRC}
@


1.32
log
@Rename rtld.1 to ld.aout_so.1, since it only describes ld.so for a.out.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2001/04/18 11:48:21 tsutsui Exp $
d32 2
a33 1
       (${MACHINE_ARCH} == "i386" || \
@


1.31
log
@Add a uuencoded binary of a.out m68k ld.so.
Created using following revisions in 1.5.1_BETA source tree:
 ld.h,v 1.2 1998/12/17 23:36:38 pk
 malloc.c,v 1.6.8.1 2001/04/06 09:39:23 he
 rtld.c,v 1.76.4.2 2001/04/06 09:39:43 he
 shlib.c,v 1.18 2000/05/27 06:53:30 matt
 shlib.h,v 1.1 1998/12/15 23:16:14 pk
m68k specific files:
 md-static-funcs.c,v 1.4 1998/01/05 22:00:38 cgd
 md.c,v 1.16 1999/04/12 00:52:44 gwr
 md.h,v 1.9 2000/05/28 01:53:09 matt
 mdprologue.S,v 1.8 1998/01/05 22:00:40 cgd
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2000/09/12 16:39:51 tron Exp $
d50 1
a50 2
MAN= rtld.1
MLINKS=	rtld.1 ld.so.1
@


1.30
log
@- Add "dependall" target so that "make build" will really uudecode the
  "ld.so" binaries for i386 and sparc.
- Remove bogus "${DESTDIR}/" from "FILESDIR".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28.10.1 2000/09/12 00:56:57 fvdl Exp $
d31 4
a34 2
.elif (${OBJECT_FMT} == "ELF" && (${MACHINE_ARCH} == "i386" || \
       ${MACHINE_ARCH} == "sparc"))
@


1.29
log
@Add uuencoded binaries for a.out dynamic loaders on i386 and sparc,
who are ELF now. Needed because cross-building them is still a
problem. These loaders will try /emul/aout first, but do not
have the baggage that COMPAT_AOUT has.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 1999/03/19 22:06:37 thorpej Exp $
d35 1
a35 1
FILESDIR=	${DESTDIR}/usr/libexec
d39 1
a39 1
all: ${FILES}
@


1.28
log
@Move the link.h files for the different shlib formats via repository copy,
and rename them to match the executable format.  Introduce a new link.h
file which automatically picks the correct header based on the target of
the toolchain.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 1999/02/09 20:27:04 christos Exp $
d31 15
@


1.28.10.1
log
@Bring in uuencoded, 1.4.3-built a.out ld.so binaries for i386 and
sparc from the trunk. Pull up revision 1.29 of the Makefile
to build and install them.

Approved by thorpej
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2000/09/11 23:23:21 fvdl Exp $
a30 15
.elif (${OBJECT_FMT} == "ELF" && (${MACHINE_ARCH} == "i386" || \
       ${MACHINE_ARCH} == "sparc"))

FILES=		ld.so
FILESDIR=	${DESTDIR}/usr/libexec
FILESMODE=	${BINMODE}
CLEANFILES+=	ld.so

all: ${FILES}

ld.so:	${.CURDIR}/ld.so.${MACHINE_ARCH}.uue
	uudecode ${.ALLSRC}

.include <bsd.files.mk>

@


1.28.10.2
log
@Pull up from current (approved by thorpej):

- Add "dependall" target so that "make build" will really uudecode the
  "ld.so" binaries for i386 and sparc.
- Remove bogus "${DESTDIR}/" from "FILESDIR".

basesrc/libexec/ld.aout_so/Makefile	1.29 -> 1.30
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28.10.1 2000/09/12 00:56:57 fvdl Exp $
d35 1
a35 1
FILESDIR=	/usr/libexec
d39 1
a39 1
all dependall: ${FILES}
@


1.27
log
@Build depending on OBJECT_FMT not a list of MACHINE_ARCH's
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 1998/12/17 11:34:10 pk Exp $
a22 3
HDRS=	link.h
INCS=${HDRS}
INCSDIR=/usr/include
@


1.26
log
@* Add header file containing definitions shared among all a.out
  linker related utilities.
* Adjust makefile to new location in `src/libexec'
* Have rtld.c use the new shlib.h and ld.h headers.
@
text
@d1 1
a1 8
#	$NetBSD: Makefile,v 1.25 1998/08/13 07:34:06 mycroft Exp $

.if	(${MACHINE_ARCH} == "i386") || \
	(${MACHINE_ARCH} == "m68k") || \
	(${MACHINE_ARCH} == "ns32k") || \
	(${MACHINE_ARCH} == "sparc") || \
	(${MACHINE_ARCH} == "vax") || \
	(${MACHINE_ARCH} == "arm32")
d3 2
@


1.25
log
@Small changes to make debugging a little easier.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 1998/07/25 12:37:27 mycroft Exp $
d9 1
d11 2
a12 2
SRCS=	mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
CLIB=	${.CURDIR}/../../../../lib/libc
d16 2
a17 1
CPPFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
a27 1
BINDIR= /usr/libexec
d32 1
a32 1
.PATH: ${CLIB}/stdio
@


1.24
log
@Remove bogus change to use -O0.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 1998/05/21 00:31:05 tv Exp $
d16 3
@


1.23
log
@In case NOPICINSTALL is set, get -lc_pic from src/lib/libc/(objdirname).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1997/10/25 10:12:46 lukem Exp $
d14 1
a14 1
PICFLAG=-fpic -fno-function-cse -O0
@


1.22
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 1997/07/14 02:56:54 christos Exp $
d12 3
a14 1
PICFLAG=-fpic -fno-function-cse
d17 1
a17 1
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
@


1.21
log
@Add the necessary -I flag to pick up the libc/include/extern.h
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 1997/06/23 13:25:58 mrg Exp $
d13 1
a13 1
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
@


1.21.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1997/10/25 10:12:46 lukem Exp $
d13 1
a13 1
CPPFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
@


1.20
log
@install all man pages.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1997/05/31 21:21:37 cjs Exp $
d11 1
d13 1
a13 1
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS
d26 1
a26 1
.PATH: ${.CURDIR}/../../../../lib/libc/stdio
@


1.19
log
@Back out BUILDDIR and NOINSTALL changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1997/04/16 16:49:43 christos Exp $
d3 6
a10 1
MAN= rtld.1
a21 1
MLINKS=	rtld.1 ld.so.1
d32 4
@


1.18
log
@Remove an ifdef. Add comment about -nostdlib vs. ELF ld.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.17 1997/05/30 11:39:01 veego Exp $

.include <bsd.own.mk>	# for BUILDDIR
d10 2
a11 4
# XXX The ELF ports do not currently use this ld.so, so we don't have to
# worry about their linker not accepting -nostdlib.
.if defined(BUILDDIR)
LDFLAGS+= -nostdlib -L${BUILDDIR}/usr/lib
@


1.18.2.1
log
@update to 1.21
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.21 1997/07/14 02:56:54 christos Exp $
a4 6
.if	(${MACHINE_ARCH} == "i386") || \
	(${MACHINE_ARCH} == "m68k") || \
	(${MACHINE_ARCH} == "ns32k") || \
	(${MACHINE_ARCH} == "sparc") || \
	(${MACHINE_ARCH} == "vax") || \
	(${MACHINE_ARCH} == "arm32")
d7 1
a7 1
CLIB=	${.CURDIR}/../../../../lib/libc
d9 1
a9 1
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
d21 1
d25 1
a25 1
.PATH: ${CLIB}/stdio
a31 4
.endif

MAN= rtld.1
MLINKS=	rtld.1 ld.so.1
@


1.17
log
@Use the extra LDFLAGS if OBJDIR is defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1997/04/16 16:49:43 christos Exp $
d3 1
a3 1
.include <bsd.own.mk>	# for OBJDIR and BUILDDIR
d12 3
a14 1
.if defined(OBJDIR)
a15 3
.else
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
a16 1
.endif	# defined(OBJDIR)
@


1.16
log
@Ld directory reorganization:
	- separate out the common files used by rtld ldd ld
	- move machine dependent files into arch
	- move ld in its own directory
	- factor out .PATH and CFLAGS common to all Makefiles
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.15 1997/03/24 22:06:36 christos Exp $
d12 3
d18 1
@


1.15
log
@Makefile cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1996/12/23 22:13:03 pk Exp $
a5 1
LDDIR?= $(.CURDIR)/..
d7 1
a7 1
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD -DLIBC_SCCS
d21 1
a21 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH) ${.CURDIR}/../../../../lib/libc/stdio
@


1.14
log
@<link.h> has moved in with the run-time linker source.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1996/06/08 22:22:26 pk Exp $
d15 1
d19 2
a28 9

includes:
	@@cd ${.CURDIR}; for i in $(HDRS); do \
	    j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
		${DESTDIR}/usr/include"; \
	    echo $$j; \
	    eval "$$j"; \
	done
@


1.13
log
@Use DESTDIR to point at libraries like bsd.prog.mk does (PR#2524).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1996/01/02 08:54:28 thorpej Exp $
d16 1
d26 9
@


1.12
log
@Add -fno-function-cse to PICFLAGS.  Without it, Very Bad Things happen
when ld.so is compiled with gcc 2.7.2 on the m68k.  From
Niklas Hallqvist <niklas@@appli.se> in PR #1557.  (Thanks, Nik, for reminding
me about this PR...)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1995/10/09 00:11:24 pk Exp $
a4 1
#NOMAN=	noman
a6 1
#PICFLAG=-pic
d9 1
d11 3
a13 1
ASFLAGS+=-k
@


1.11
log
@New style RCS IDs.
@
text
@d1 1
a1 1
#	$NetBSD$
d9 1
a9 1
PICFLAG=-fpic
@


1.10
log
@Install the manual page.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1994/09/19 04:49:02 mycroft Exp $
@


1.9
log
@Shrink ld.so by 12k.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1994/01/28 21:01:20 pk Exp $
d5 2
a6 1
NOMAN=	noman
d15 1
@


1.8
log
@Use somewhat customized version of malloc, in stead of relying on  a
crummy sbrk() backend; proper aligment must be guaranteed on all archs.
Drafting dlopen, dlsym, et.al.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1993/12/10 05:10:30 mycroft Exp $
d4 1
a4 1
SRCS=	mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
d9 1
a9 1
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD
d15 1
a15 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH)
@


1.7
log
@Minor cleanup.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1993/12/08 11:47:31 mycroft Exp $
d4 1
a4 1
SRCS=	mdprologue.S rtld.c sbrk.c shlib.c etc.c md.c
@


1.6
log
@Use MACHINE_ARCH.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.5 1993/12/08 10:28:05 pk Exp $
d9 4
a12 3
CFLAGS += -I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) -O $(PICFLAG) -DRTLD
LDFLAGS = -Bshareable -Bsymbolic -assert nosymbolic
LIBS =  -lc_pic
a16 2
.SUFFIXES: .S

d18 1
a18 1
	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS) $(LDADD)
d21 1
a21 1
	$(CPP) $(.IMPSRC) | $(AS) -k -o $(.TARGET) -
@


1.5
log
@Parcelled out the heap allocator into separate file.
Changes prototype for findshlib() (corrected library search order for ld).
@
text
@d1 1
a1 1
#	$Id$
d14 1
a14 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
@


1.4
log
@MACHINE_ARCH support
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1993/11/08 13:20:39 pk Exp $
d4 1
a4 1
SRCS=	mdprologue.S rtld.c shlib.c etc.c md.c
d9 1
a9 2
CFLAGS += -I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) -O $(PICFLAG) \
	-DRTLD
d14 1
a14 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH)
@


1.3
log
@Use strsep() in stead of strtok() and restore colons in eg. env. vars.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1993/10/27 00:55:24 pk Exp $
d9 2
a10 1
CFLAGS += -I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) -O $(PICFLAG) -DRTLD
d15 1
a15 1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
@


1.2
log
@-Bshareable added to CFLAGS.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1993/10/16 21:54:08 pk Exp $
d19 1
a19 1
	$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
@


1.1
log
@A linker supporting shared libraries (run-time part).
@
text
@d1 1
a1 1
#	$Id$
d10 1
a10 1
LDFLAGS = -Bsymbolic -assert nosymbolic
@
