head	1.175;
access;
symbols
	netbsd-11-0-RC4:1.175
	netbsd-11-0-RC3:1.175
	netbsd-11-0-RC2:1.175
	netbsd-11-0-RC1:1.175
	perseant-exfatfs-base-20250801:1.175
	netbsd-11:1.175.0.2
	netbsd-11-base:1.175
	netbsd-10-1-RELEASE:1.173
	perseant-exfatfs-base-20240630:1.174
	perseant-exfatfs:1.174.0.2
	perseant-exfatfs-base:1.174
	netbsd-8-3-RELEASE:1.169
	netbsd-9-4-RELEASE:1.172
	netbsd-10-0-RELEASE:1.173
	netbsd-10-0-RC6:1.173
	netbsd-10-0-RC5:1.173
	netbsd-10-0-RC4:1.173
	netbsd-10-0-RC3:1.173
	netbsd-10-0-RC2:1.173
	netbsd-10-0-RC1:1.173
	netbsd-10:1.173.0.6
	netbsd-10-base:1.173
	netbsd-9-3-RELEASE:1.172
	cjep_sun2x-base1:1.173
	cjep_sun2x:1.173.0.4
	cjep_sun2x-base:1.173
	cjep_staticlib_x-base1:1.173
	netbsd-9-2-RELEASE:1.172
	cjep_staticlib_x:1.173.0.2
	cjep_staticlib_x-base:1.173
	netbsd-9-1-RELEASE:1.172
	phil-wifi-20200421:1.172
	phil-wifi-20200411:1.172
	is-mlppp:1.172.0.4
	is-mlppp-base:1.172
	phil-wifi-20200406:1.172
	netbsd-8-2-RELEASE:1.169
	netbsd-9-0-RELEASE:1.172
	netbsd-9-0-RC2:1.172
	netbsd-9-0-RC1:1.172
	phil-wifi-20191119:1.172
	netbsd-9:1.172.0.2
	netbsd-9-base:1.172
	phil-wifi-20190609:1.172
	netbsd-8-1-RELEASE:1.169
	netbsd-8-1-RC1:1.169
	pgoyette-compat-merge-20190127:1.169.14.2
	pgoyette-compat-20190127:1.172
	pgoyette-compat-20190118:1.172
	pgoyette-compat-1226:1.172
	pgoyette-compat-1126:1.172
	pgoyette-compat-1020:1.172
	pgoyette-compat-0930:1.172
	pgoyette-compat-0906:1.172
	netbsd-7-2-RELEASE:1.166.2.1
	pgoyette-compat-0728:1.170
	netbsd-8-0-RELEASE:1.169
	phil-wifi:1.170.0.2
	phil-wifi-base:1.170
	pgoyette-compat-0625:1.170
	netbsd-8-0-RC2:1.169
	pgoyette-compat-0521:1.170
	pgoyette-compat-0502:1.170
	pgoyette-compat-0422:1.170
	netbsd-8-0-RC1:1.169
	pgoyette-compat-0415:1.170
	pgoyette-compat-0407:1.170
	pgoyette-compat-0330:1.169
	pgoyette-compat-0322:1.169
	pgoyette-compat-0315:1.169
	netbsd-7-1-2-RELEASE:1.166.2.1
	pgoyette-compat:1.169.0.14
	pgoyette-compat-base:1.169
	netbsd-7-1-1-RELEASE:1.166.2.1
	matt-nb8-mediatek:1.169.0.12
	matt-nb8-mediatek-base:1.169
	perseant-stdc-iso10646:1.169.0.10
	perseant-stdc-iso10646-base:1.169
	netbsd-8:1.169.0.8
	netbsd-8-base:1.169
	prg-localcount2-base3:1.169
	prg-localcount2-base2:1.169
	prg-localcount2-base1:1.169
	prg-localcount2:1.169.0.6
	prg-localcount2-base:1.169
	pgoyette-localcount-20170426:1.169
	bouyer-socketcan-base1:1.169
	pgoyette-localcount-20170320:1.169
	netbsd-7-1:1.166.2.1.0.6
	netbsd-7-1-RELEASE:1.166.2.1
	netbsd-7-1-RC2:1.166.2.1
	netbsd-7-nhusb-base-20170116:1.166.2.1
	bouyer-socketcan:1.169.0.4
	bouyer-socketcan-base:1.169
	pgoyette-localcount-20170107:1.169
	netbsd-7-1-RC1:1.166.2.1
	pgoyette-localcount-20161104:1.169
	netbsd-7-0-2-RELEASE:1.166.2.1
	localcount-20160914:1.169
	netbsd-7-nhusb:1.166.2.1.0.4
	netbsd-7-nhusb-base:1.166.2.1
	pgoyette-localcount-20160806:1.169
	pgoyette-localcount-20160726:1.169
	pgoyette-localcount:1.169.0.2
	pgoyette-localcount-base:1.169
	netbsd-7-0-1-RELEASE:1.166.2.1
	netbsd-7-0:1.166.2.1.0.2
	netbsd-7-0-RELEASE:1.166.2.1
	netbsd-7-0-RC3:1.166.2.1
	netbsd-7-0-RC2:1.166.2.1
	netbsd-7-0-RC1:1.166.2.1
	netbsd-5-2-3-RELEASE:1.136
	netbsd-5-1-5-RELEASE:1.136
	netbsd-6-0-6-RELEASE:1.149
	netbsd-6-1-5-RELEASE:1.149
	netbsd-7:1.166.0.2
	netbsd-7-base:1.166
	yamt-pagecache-base9:1.165
	yamt-pagecache-tag8:1.148.2.1
	netbsd-6-1-4-RELEASE:1.149
	netbsd-6-0-5-RELEASE:1.149
	tls-earlyentropy:1.165.0.2
	tls-earlyentropy-base:1.165
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.165
	riastradh-drm2-base3:1.165
	netbsd-6-1-3-RELEASE:1.149
	netbsd-6-0-4-RELEASE:1.149
	netbsd-5-2-2-RELEASE:1.136
	netbsd-5-1-4-RELEASE:1.136
	netbsd-6-1-2-RELEASE:1.149
	netbsd-6-0-3-RELEASE:1.149
	netbsd-5-2-1-RELEASE:1.136
	netbsd-5-1-3-RELEASE:1.136
	netbsd-6-1-1-RELEASE:1.149
	riastradh-drm2-base2:1.157
	riastradh-drm2-base1:1.157
	riastradh-drm2:1.157.0.2
	riastradh-drm2-base:1.157
	netbsd-6-1:1.149.0.14
	netbsd-6-0-2-RELEASE:1.149
	netbsd-6-1-RELEASE:1.149
	netbsd-6-1-RC4:1.149
	netbsd-6-1-RC3:1.149
	agc-symver:1.149.0.12
	agc-symver-base:1.149
	netbsd-6-1-RC2:1.149
	netbsd-6-1-RC1:1.149
	yamt-pagecache-base8:1.149
	netbsd-5-2:1.136.0.16
	netbsd-6-0-1-RELEASE:1.149
	yamt-pagecache-base7:1.149
	netbsd-5-2-RELEASE:1.136
	netbsd-5-2-RC1:1.136
	matt-nb6-plus-nbase:1.149
	yamt-pagecache-base6:1.149
	netbsd-6-0:1.149.0.8
	netbsd-6-0-RELEASE:1.149
	netbsd-6-0-RC2:1.149
	tls-maxphys:1.149.0.6
	tls-maxphys-base:1.166
	matt-nb6-plus:1.149.0.4
	matt-nb6-plus-base:1.149
	netbsd-6-0-RC1:1.149
	yamt-pagecache-base5:1.149
	yamt-pagecache-base4:1.149
	netbsd-6:1.149.0.2
	netbsd-6-base:1.149
	netbsd-5-1-2-RELEASE:1.136
	netbsd-5-1-1-RELEASE:1.136
	yamt-pagecache-base3:1.148
	yamt-pagecache-base2:1.148
	yamt-pagecache:1.148.0.2
	yamt-pagecache-base:1.148
	cherry-xenmp:1.145.0.2
	cherry-xenmp-base:1.145
	bouyer-quota2-nbase:1.143
	bouyer-quota2:1.143.0.2
	bouyer-quota2-base:1.143
	matt-mips64-premerge-20101231:1.143
	matt-nb5-mips64-premerge-20101231:1.136
	matt-nb5-pq3:1.136.0.14
	matt-nb5-pq3-base:1.136
	netbsd-5-1:1.136.0.12
	netbsd-5-1-RELEASE:1.136
	netbsd-5-1-RC4:1.136
	matt-nb5-mips64-k15:1.136
	netbsd-5-1-RC3:1.136
	netbsd-5-1-RC2:1.136
	netbsd-5-1-RC1:1.136
	netbsd-5-0-2-RELEASE:1.136
	matt-nb5-mips64-premerge-20091211:1.136
	matt-premerge-20091211:1.140
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.136
	matt-nb4-mips64-k7-u2a-k9b:1.136
	matt-nb5-mips64-u1-k1-k5:1.136
	matt-nb5-mips64:1.136.0.10
	netbsd-5-0-1-RELEASE:1.136
	jym-xensuspend-nbase:1.136
	netbsd-5-0:1.136.0.8
	netbsd-5-0-RELEASE:1.136
	netbsd-5-0-RC4:1.136
	netbsd-5-0-RC3:1.136
	netbsd-5-0-RC2:1.136
	jym-xensuspend:1.136.0.6
	jym-xensuspend-base:1.136
	netbsd-5-0-RC1:1.136
	christos-time_t-nbase:1.136
	christos-time_t:1.136.0.4
	christos-time_t-base:1.136
	netbsd-5:1.136.0.2
	netbsd-5-base:1.136
	matt-mips64-base2:1.135
	matt-mips64:1.131.0.6
	netbsd-4-0-1-RELEASE:1.127.4.1
	wrstuden-revivesa-base-3:1.135
	wrstuden-revivesa-base-2:1.135
	wrstuden-fixsa-newbase:1.127.4.1
	wrstuden-revivesa-base-1:1.134
	yamt-pf42-base4:1.134
	yamt-pf42-base3:1.134
	hpcarm-cleanup-nbase:1.134
	yamt-pf42-baseX:1.134
	yamt-pf42-base2:1.134
	wrstuden-revivesa:1.134.0.8
	wrstuden-revivesa-base:1.134
	yamt-pf42:1.134.0.6
	yamt-pf42-base:1.134
	keiichi-mipv6:1.134.0.4
	keiichi-mipv6-base:1.134
	matt-armv6-nbase:1.134
	matt-armv6-prevmlocking:1.131
	wrstuden-fixsa-base-1:1.127.4.1
	netbsd-4-0:1.127.4.1.0.2
	netbsd-4-0-RELEASE:1.127.4.1
	cube-autoconf:1.134.0.2
	cube-autoconf-base:1.134
	netbsd-4-0-RC5:1.127.4.1
	netbsd-4-0-RC4:1.127.4.1
	netbsd-4-0-RC3:1.127.4.1
	netbsd-4-0-RC2:1.127.4.1
	netbsd-4-0-RC1:1.127.4.1
	matt-armv6:1.131.0.4
	matt-armv6-base:1.134
	matt-mips64-base:1.131
	hpcarm-cleanup:1.131.0.2
	hpcarm-cleanup-base:1.134
	netbsd-3-1-1-RELEASE:1.120
	netbsd-3-0-3-RELEASE:1.120
	wrstuden-fixsa:1.127.0.6
	wrstuden-fixsa-base:1.127.4.1
	abandoned-netbsd-4-base:1.127
	abandoned-netbsd-4:1.127.0.2
	netbsd-3-1:1.120.0.6
	netbsd-3-1-RELEASE:1.120
	netbsd-3-0-2-RELEASE:1.120
	netbsd-3-1-RC4:1.120
	netbsd-3-1-RC3:1.120
	netbsd-3-1-RC2:1.120
	netbsd-3-1-RC1:1.120
	netbsd-4:1.127.0.4
	netbsd-4-base:1.127
	netbsd-3-0-1-RELEASE:1.120
	netbsd-3-0:1.120.0.4
	netbsd-3-0-RELEASE:1.120
	netbsd-3-0-RC6:1.120
	netbsd-3-0-RC5:1.120
	netbsd-3-0-RC4:1.120
	netbsd-3-0-RC3:1.120
	netbsd-3-0-RC2:1.120
	netbsd-3-0-RC1:1.120
	netbsd-2-0-3-RELEASE:1.114
	netbsd-2-1:1.114.0.6
	netbsd-2-1-RELEASE:1.114
	netbsd-2-1-RC6:1.114
	netbsd-2-1-RC5:1.114
	netbsd-2-1-RC4:1.114
	netbsd-2-1-RC3:1.114
	netbsd-2-1-RC2:1.114
	netbsd-2-1-RC1:1.114
	netbsd-2-0-2-RELEASE:1.114
	netbsd-3:1.120.0.2
	netbsd-3-base:1.120
	netbsd-2-0-1-RELEASE:1.114
	netbsd-2:1.114.0.4
	netbsd-2-base:1.114
	netbsd-2-0-RELEASE:1.114
	netbsd-2-0-RC5:1.114
	netbsd-2-0-RC4:1.114
	netbsd-2-0-RC3:1.114
	netbsd-2-0-RC2:1.114
	netbsd-2-0-RC1:1.114
	netbsd-2-0:1.114.0.2
	netbsd-2-0-base:1.114
	netbsd-1-6-PATCH002-RELEASE:1.104
	netbsd-1-6-PATCH002:1.104
	netbsd-1-6-PATCH002-RC4:1.104
	netbsd-1-6-PATCH002-RC3:1.104
	netbsd-1-6-PATCH002-RC2:1.104
	netbsd-1-6-PATCH002-RC1:1.104
	netbsd-1-6-PATCH001:1.104
	netbsd-1-6-PATCH001-RELEASE:1.104
	netbsd-1-6-PATCH001-RC3:1.104
	netbsd-1-6-PATCH001-RC2:1.104
	netbsd-1-6-PATCH001-RC1:1.104
	nathanw_sa_end:1.98.2.9
	nathanw_sa_before_merge:1.107
	fvdl_fs64_base:1.107
	nathanw_sa_base:1.107
	netbsd-1-6-RELEASE:1.104
	netbsd-1-6-RC3:1.104
	netbsd-1-6-RC2:1.104
	netbsd-1-6-RC1:1.104
	netbsd-1-6:1.104.0.2
	netbsd-1-6-base:1.104
	netbsd-1-5-PATCH003:1.89.2.1
	netbsd-1-5-PATCH002:1.89.2.1
	netbsd-1-5-PATCH001:1.89.2.1
	nathanw_sa:1.98.0.2
	netbsd-1-5-RELEASE:1.89
	netbsd-1-5-BETA2:1.89
	netbsd-1-5-BETA:1.89
	netbsd-1-4-PATCH003:1.84
	netbsd-1-5-ALPHA2:1.89
	netbsd-1-5:1.89.0.2
	netbsd-1-5-base:1.89
	minoura-xpg4dl:1.88.0.2
	minoura-xpg4dl-base:1.88
	netbsd-1-4-PATCH002:1.84
	wrstuden-devbsize-19991221:1.85
	wrstuden-devbsize:1.84.0.4
	wrstuden-devbsize-base:1.85
	comdex-fall-1999:1.85.0.2
	comdex-fall-1999-base:1.85
	netbsd-1-4-PATCH001:1.84
	netbsd-1-4-RELEASE:1.84
	netbsd-1-4:1.84.0.2
	netbsd-1-4-base:1.84
	netbsd-1-3-PATCH003:1.70.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.70.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.70.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.70.2.1
	netbsd-1-3-PATCH002:1.70.2.1
	netbsd-1-3-PATCH001:1.70.2.1
	lite-2:1.1.1.2
	netbsd-1-3-RELEASE:1.70.2.1
	netbsd-1-3-BETA:1.70.2.1
	netbsd-1-3:1.70.0.2
	netbsd-1-3-base:1.70
	lukem-nsswitch2:1.64.0.2
	netbsd-1-2-PATCH001:1.47
	nsswitch:1.49.0.2
	ivory_soap2:1.48.0.2
	netbsd-1-2-RELEASE:1.47
	netbsd-1-2-BETA:1.47
	netbsd-1-2-base:1.47
	netbsd-1-2:1.47.0.4
	netbsd-1-1-PATCH001:1.46
	netbsd-1-1-RELEASE:1.46
	netbsd-1-1:1.46.0.2
	netbsd-1-1-base:1.46
	lite-1:1.1.1.2
	CSRG:1.1.1
	ivory_soap:1.31.0.2
	netbsd-1-0-PATCH06:1.27
	netbsd-1-0-PATCH05:1.27
	netbsd-1-0-PATCH04:1.27
	netbsd-1-0-PATCH03:1.27
	netbsd-1-0-PATCH02:1.27
	netbsd-1-0-PATCH1:1.27
	netbsd-1-0-PATCH0:1.27
	netbsd-1-0-RELEASE:1.27
	netbsd-1-0:1.27.0.2
	netbsd-1-0-base:1.27
	netbsd-0-9-RELEASE:1.7
	netbsd-0-9-BETA:1.7
	netbsd-0-9-ALPHA2:1.7
	netbsd-0-9-ALPHA:1.7
	netbsd-0-9:1.7.0.2
	netbsd-0-9-base:1.7
	netbsd-0-8:1.1.1.1
	netbsd-alpha-1:1.1.1.1
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.175
date	2025.03.30.16.17.04;	author riastradh;	state Exp;
branches;
next	1.174;
commitid	BPrqLEnqHFYrQ6PF;

1.174
date	2023.05.29.18.25.52;	author lukem;	state Exp;
branches
	1.174.2.1;
next	1.173;
commitid	UqYPi2xWBG5m7TqE;

1.173
date	2020.05.16.18.31.47;	author christos;	state Exp;
branches;
next	1.172;
commitid	AayHkepHy6nSLu8C;

1.172
date	2018.08.03.14.01.21;	author kamil;	state Exp;
branches;
next	1.171;
commitid	a9lBdK7ceLNgeGMA;

1.171
date	2018.08.03.02.29.35;	author kamil;	state Exp;
branches;
next	1.170;
commitid	RlOTIMIrWBtMoCMA;

1.170
date	2018.03.31.14.24.54;	author kamil;	state Exp;
branches
	1.170.2.1;
next	1.169;
commitid	Qwhwwia7by89nCwA;

1.169
date	2015.06.15.14.24.01;	author christos;	state Exp;
branches
	1.169.14.1;
next	1.168;
commitid	ScOUDgnPFiyZ9xpy;

1.168
date	2015.02.09.22.44.34;	author pooka;	state Exp;
branches;
next	1.167;
commitid	nJZle7BbGGZMWn9y;

1.167
date	2014.12.10.00.37.30;	author pooka;	state Exp;
branches;
next	1.166;
commitid	6zYjAZo1y6Uyzq1y;

1.166
date	2014.08.10.23.39.08;	author matt;	state Exp;
branches
	1.166.2.1;
next	1.165;
commitid	IYetTcutJpmuaSLx;

1.165
date	2014.03.04.14.58.14;	author joerg;	state Exp;
branches;
next	1.164;
commitid	tpAEAHn6gebjoorx;

1.164
date	2014.01.29.23.37.18;	author joerg;	state Exp;
branches;
next	1.163;
commitid	XzET6rd2DWYkm4nx;

1.163
date	2014.01.19.11.36.45;	author apb;	state Exp;
branches;
next	1.162;
commitid	Z6adCV0PCkLAGIlx;

1.162
date	2014.01.18.01.08.56;	author joerg;	state Exp;
branches;
next	1.161;
commitid	FU41wSvVkcnKfxlx;

1.161
date	2014.01.15.20.58.09;	author joerg;	state Exp;
branches;
next	1.160;
commitid	v5g8MDnA7INJVflx;

1.160
date	2013.10.14.16.00.17;	author joerg;	state Exp;
branches;
next	1.159;
commitid	x8z53yVLowtRgh9x;

1.159
date	2013.10.14.01.30.21;	author joerg;	state Exp;
branches;
next	1.158;
commitid	iuddZiIT13Ipsc9x;

1.158
date	2013.07.30.15.28.47;	author joerg;	state Exp;
branches;
next	1.157;
commitid	jcQm5ZfUj5CyxvZw;

1.157
date	2013.04.30.01.42.03;	author matt;	state Exp;
branches;
next	1.156;

1.156
date	2013.04.27.08.00.40;	author matt;	state Exp;
branches;
next	1.155;

1.155
date	2013.04.25.15.39.26;	author matt;	state Exp;
branches;
next	1.154;

1.154
date	2013.04.25.06.36.49;	author matt;	state Exp;
branches;
next	1.153;

1.153
date	2013.04.19.22.24.10;	author matt;	state Exp;
branches;
next	1.152;

1.152
date	2013.04.19.21.02.43;	author matt;	state Exp;
branches;
next	1.151;

1.151
date	2013.04.19.16.53.18;	author matt;	state Exp;
branches;
next	1.150;

1.150
date	2013.04.12.19.58.45;	author joerg;	state Exp;
branches;
next	1.149;

1.149
date	2012.01.20.16.31.29;	author joerg;	state Exp;
branches
	1.149.6.1;
next	1.148;

1.148
date	2011.08.17.09.53.53;	author christos;	state Exp;
branches
	1.148.2.1;
next	1.147;

1.147
date	2011.06.21.02.32.55;	author mrg;	state Exp;
branches;
next	1.146;

1.146
date	2011.06.19.11.31.55;	author nakayama;	state Exp;
branches;
next	1.145;

1.145
date	2011.05.27.17.06.55;	author drochner;	state Exp;
branches
	1.145.2.1;
next	1.144;

1.144
date	2011.03.09.23.10.06;	author joerg;	state Exp;
branches;
next	1.143;

1.143
date	2010.09.04.12.17.58;	author ahoka;	state Exp;
branches;
next	1.142;

1.142
date	2010.05.30.08.28.53;	author tnozaki;	state Exp;
branches;
next	1.141;

1.141
date	2010.04.25.00.54.46;	author joerg;	state Exp;
branches;
next	1.140;

1.140
date	2009.12.06.12.56.59;	author uebayasi;	state Exp;
branches;
next	1.139;

1.139
date	2009.12.06.06.30.52;	author uebayasi;	state Exp;
branches;
next	1.138;

1.138
date	2009.08.11.17.29.04;	author dsl;	state Exp;
branches;
next	1.137;

1.137
date	2009.07.30.20.57.15;	author dsl;	state Exp;
branches;
next	1.136;

1.136
date	2008.10.26.07.43.07;	author mrg;	state Exp;
branches
	1.136.4.1;
next	1.135;

1.135
date	2008.06.23.10.22.40;	author ad;	state Exp;
branches;
next	1.134;

1.134
date	2007.12.08.18.34.51;	author he;	state Exp;
branches
	1.134.8.1;
next	1.133;

1.133
date	2007.12.07.20.34.04;	author ad;	state Exp;
branches;
next	1.132;

1.132
date	2007.11.13.15.21.19;	author ad;	state Exp;
branches;
next	1.131;

1.131
date	2007.05.30.01.13.15;	author tls;	state Exp;
branches
	1.131.4.1;
next	1.130;

1.130
date	2007.03.19.12.27.22;	author tnozaki;	state Exp;
branches;
next	1.129;

1.129
date	2007.03.18.08.52.48;	author tnozaki;	state Exp;
branches;
next	1.128;

1.128
date	2007.03.15.00.59.32;	author matt;	state Exp;
branches;
next	1.127;

1.127
date	2006.03.11.21.07.18;	author christos;	state Exp;
branches
	1.127.4.1
	1.127.6.1;
next	1.126;

1.126
date	2006.01.25.15.43.01;	author kleink;	state Exp;
branches;
next	1.125;

1.125
date	2005.12.20.19.31.47;	author christos;	state Exp;
branches;
next	1.124;

1.124
date	2005.11.29.03.11.58;	author christos;	state Exp;
branches;
next	1.123;

1.123
date	2005.09.13.01.44.08;	author christos;	state Exp;
branches;
next	1.122;

1.122
date	2005.05.30.16.04.18;	author thorpej;	state Exp;
branches;
next	1.121;

1.121
date	2005.05.03.04.37.33;	author matt;	state Exp;
branches;
next	1.120;

1.120
date	2005.01.10.02.32.46;	author lukem;	state Exp;
branches;
next	1.119;

1.119
date	2004.09.13.21.44.54;	author thorpej;	state Exp;
branches;
next	1.118;

1.118
date	2004.07.31.14.13.05;	author lukem;	state Exp;
branches;
next	1.117;

1.117
date	2004.05.21.02.30.03;	author christos;	state Exp;
branches;
next	1.116;

1.116
date	2004.04.18.04.26.15;	author lukem;	state Exp;
branches;
next	1.115;

1.115
date	2004.04.07.03.49.16;	author ross;	state Exp;
branches;
next	1.114;

1.114
date	2004.03.03.22.57.26;	author matt;	state Exp;
branches;
next	1.113;

1.113
date	2003.12.07.21.57.22;	author matt;	state Exp;
branches;
next	1.112;

1.112
date	2003.07.10.10.34.22;	author lukem;	state Exp;
branches;
next	1.111;

1.111
date	2003.06.27.05.21.52;	author tshiozak;	state Exp;
branches;
next	1.110;

1.110
date	2003.04.14.05.21.50;	author salo;	state Exp;
branches;
next	1.109;

1.109
date	2003.04.09.20.17.06;	author jmmv;	state Exp;
branches;
next	1.108;

1.108
date	2003.01.18.11.04.39;	author thorpej;	state Exp;
branches;
next	1.107;

1.107
date	2002.08.19.14.55.14;	author lukem;	state Exp;
branches;
next	1.106;

1.106
date	2002.08.19.09.41.28;	author lukem;	state Exp;
branches;
next	1.105;

1.105
date	2002.07.20.08.51.32;	author yamt;	state Exp;
branches;
next	1.104;

1.104
date	2002.03.22.18.10.21;	author thorpej;	state Exp;
branches;
next	1.103;

1.103
date	2002.03.17.22.14.17;	author tshiozak;	state Exp;
branches;
next	1.102;

1.102
date	2002.03.05.21.25.08;	author thorpej;	state Exp;
branches;
next	1.101;

1.101
date	2002.01.31.19.13.12;	author tv;	state Exp;
branches;
next	1.100;

1.100
date	2001.12.28.01.32.38;	author lukem;	state Exp;
branches;
next	1.99;

1.99
date	2001.09.02.13.13.41;	author zuntum;	state Exp;
branches;
next	1.98;

1.98
date	2001.02.06.18.47.09;	author christos;	state Exp;
branches
	1.98.2.1;
next	1.97;

1.97
date	2001.01.25.09.21.57;	author itojun;	state Exp;
branches;
next	1.96;

1.96
date	2001.01.16.12.10.29;	author tron;	state Exp;
branches;
next	1.95;

1.95
date	2001.01.08.08.30.00;	author itojun;	state Exp;
branches;
next	1.94;

1.94
date	2001.01.04.06.53.45;	author itojun;	state Exp;
branches;
next	1.93;

1.93
date	2000.12.29.20.13.44;	author bjh21;	state Exp;
branches;
next	1.92;

1.92
date	2000.12.20.21.13.56;	author christos;	state Exp;
branches;
next	1.91;

1.91
date	2000.08.13.23.26.12;	author christos;	state Exp;
branches;
next	1.90;

1.90
date	2000.08.13.22.43.28;	author christos;	state Exp;
branches;
next	1.89;

1.89
date	2000.06.02.23.11.05;	author fvdl;	state Exp;
branches
	1.89.2.1;
next	1.88;

1.88
date	2000.04.02.15.35.48;	author minoura;	state Exp;
branches
	1.88.2.1;
next	1.87;

1.87
date	2000.01.26.02.46.37;	author itojun;	state Exp;
branches;
next	1.86;

1.86
date	2000.01.23.07.10.13;	author mycroft;	state Exp;
branches;
next	1.85;

1.85
date	99.09.26.20.27.59;	author jdolecek;	state Exp;
branches;
next	1.84;

1.84
date	99.02.27.21.21.26;	author tv;	state Exp;
branches
	1.84.4.1;
next	1.83;

1.83
date	99.02.24.15.00.08;	author drochner;	state Exp;
branches;
next	1.82;

1.82
date	99.02.09.19.30.03;	author tv;	state Exp;
branches;
next	1.81;

1.81
date	99.02.04.05.09.19;	author explorer;	state Exp;
branches;
next	1.80;

1.80
date	99.01.15.13.31.15;	author bouyer;	state Exp;
branches;
next	1.79;

1.79
date	99.01.15.12.48.41;	author lukem;	state Exp;
branches;
next	1.78;

1.78
date	98.11.28.17.01.54;	author eeh;	state Exp;
branches;
next	1.77;

1.77
date	98.10.14.19.19.32;	author kleink;	state Exp;
branches;
next	1.76;

1.76
date	98.08.04.05.55.56;	author perry;	state Exp;
branches;
next	1.75;

1.75
date	98.05.06.18.12.35;	author mycroft;	state Exp;
branches;
next	1.74;

1.74
date	98.03.27.01.29.47;	author cgd;	state Exp;
branches;
next	1.73;

1.73
date	98.03.04.08.17.20;	author mikel;	state Exp;
branches;
next	1.72;

1.72
date	98.01.22.00.17.11;	author cgd;	state Exp;
branches;
next	1.71;

1.71
date	97.10.22.23.14.04;	author lukem;	state Exp;
branches;
next	1.70;

1.70
date	97.10.09.14.36.18;	author lukem;	state Exp;
branches
	1.70.2.1;
next	1.69;

1.69
date	97.07.18.10.52.36;	author veego;	state Exp;
branches;
next	1.68;

1.68
date	97.07.18.00.28.15;	author thorpej;	state Exp;
branches;
next	1.67;

1.67
date	97.07.13.18.36.23;	author christos;	state Exp;
branches;
next	1.66;

1.66
date	97.06.19.06.12.10;	author mikel;	state Exp;
branches;
next	1.65;

1.65
date	97.06.04.23.11.54;	author christos;	state Exp;
branches;
next	1.64;

1.64
date	97.05.12.16.41.03;	author christos;	state Exp;
branches
	1.64.2.1;
next	1.63;

1.63
date	97.04.30.00.43.08;	author thorpej;	state Exp;
branches;
next	1.62;

1.62
date	97.04.28.21.36.45;	author ragge;	state Exp;
branches;
next	1.61;

1.61
date	97.04.28.09.00.20;	author is;	state Exp;
branches;
next	1.60;

1.60
date	97.04.28.08.49.31;	author is;	state Exp;
branches;
next	1.59;

1.59
date	97.04.17.18.12.47;	author is;	state Exp;
branches;
next	1.58;

1.58
date	97.03.29.21.01.36;	author thorpej;	state Exp;
branches;
next	1.57;

1.57
date	97.03.29.21.00.40;	author thorpej;	state Exp;
branches;
next	1.56;

1.56
date	97.03.24.22.11.51;	author christos;	state Exp;
branches;
next	1.55;

1.55
date	97.03.10.20.51.01;	author hpeyerl;	state Exp;
branches;
next	1.54;

1.54
date	97.03.10.20.17.43;	author perry;	state Exp;
branches;
next	1.53;

1.53
date	97.03.10.19.07.19;	author hpeyerl;	state Exp;
branches;
next	1.52;

1.52
date	97.01.30.01.02.17;	author thorpej;	state Exp;
branches;
next	1.51;

1.51
date	96.12.19.07.52.52;	author cgd;	state Exp;
branches;
next	1.50;

1.50
date	96.11.07.19.15.22;	author jtc;	state Exp;
branches;
next	1.49;

1.49
date	96.10.18.05.45.01;	author thorpej;	state Exp;
branches
	1.49.2.1;
next	1.48;

1.48
date	96.08.15.22.36.59;	author jtc;	state Exp;
branches
	1.48.2.1;
next	1.47;

1.47
date	95.11.23.02.20.59;	author jtc;	state Exp;
branches;
next	1.46;

1.46
date	95.10.09.03.58.02;	author jtc;	state Exp;
branches;
next	1.45;

1.45
date	95.10.04.22.06.11;	author thorpej;	state Exp;
branches;
next	1.44;

1.44
date	95.10.02.20.54.45;	author jtc;	state Exp;
branches;
next	1.43;

1.43
date	95.06.26.22.15.56;	author jtc;	state Exp;
branches;
next	1.42;

1.42
date	95.06.07.04.37.54;	author cgd;	state Exp;
branches;
next	1.41;

1.41
date	95.05.02.19.57.15;	author jtc;	state Exp;
branches;
next	1.40;

1.40
date	95.04.25.00.00.58;	author jtc;	state Exp;
branches;
next	1.39;

1.39
date	95.04.12.00.56.12;	author jtc;	state Exp;
branches;
next	1.38;

1.38
date	95.03.13.05.26.07;	author jtc;	state Exp;
branches;
next	1.37;

1.37
date	95.03.05.07.12.54;	author jtc;	state Exp;
branches;
next	1.36;

1.36
date	95.02.25.03.31.42;	author cgd;	state Exp;
branches;
next	1.35;

1.35
date	95.02.13.21.57.24;	author cgd;	state Exp;
branches;
next	1.34;

1.34
date	95.02.10.17.45.39;	author cgd;	state Exp;
branches;
next	1.33;

1.33
date	95.02.01.09.09.01;	author jtc;	state Exp;
branches;
next	1.32;

1.32
date	95.01.30.12.21.41;	author cgd;	state Exp;
branches;
next	1.31;

1.31
date	95.01.06.00.09.19;	author cgd;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	94.10.19.03.05.22;	author cgd;	state Exp;
branches;
next	1.29;

1.29
date	94.10.06.05.47.57;	author jtc;	state Exp;
branches;
next	1.28;

1.28
date	94.09.03.04.53.16;	author jtc;	state Exp;
branches;
next	1.27;

1.27
date	94.07.06.04.06.43;	author mycroft;	state Exp;
branches;
next	1.26;

1.26
date	94.06.30.06.44.54;	author deraadt;	state Exp;
branches;
next	1.25;

1.25
date	94.05.29.22.09.13;	author jtc;	state Exp;
branches;
next	1.24;

1.24
date	94.05.14.06.25.56;	author cgd;	state Exp;
branches;
next	1.23;

1.23
date	94.01.27.19.21.55;	author pk;	state Exp;
branches;
next	1.22;

1.22
date	93.12.04.05.15.26;	author cgd;	state Exp;
branches;
next	1.21;

1.21
date	93.12.04.02.31.56;	author cgd;	state Exp;
branches;
next	1.20;

1.20
date	93.11.14.16.48.54;	author pk;	state Exp;
branches;
next	1.19;

1.19
date	93.11.11.01.18.03;	author jtc;	state Exp;
branches;
next	1.18;

1.18
date	93.11.05.22.43.47;	author cgd;	state Exp;
branches;
next	1.17;

1.17
date	93.10.17.01.10.37;	author pk;	state Exp;
branches;
next	1.16;

1.16
date	93.10.17.00.46.25;	author pk;	state Exp;
branches;
next	1.15;

1.15
date	93.10.15.01.23.49;	author jtc;	state Exp;
branches;
next	1.14;

1.14
date	93.10.15.01.06.47;	author jtc;	state Exp;
branches;
next	1.13;

1.13
date	93.10.07.00.17.24;	author cgd;	state Exp;
branches;
next	1.12;

1.12
date	93.09.28.03.05.28;	author mycroft;	state Exp;
branches;
next	1.11;

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

1.10
date	93.09.16.06.06.41;	author mycroft;	state Exp;
branches;
next	1.9;

1.9
date	93.09.05.22.12.35;	author deraadt;	state Exp;
branches;
next	1.8;

1.8
date	93.08.01.05.40.29;	author mycroft;	state Exp;
branches;
next	1.7;

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

1.6
date	93.04.27.10.11.24;	author deraadt;	state Exp;
branches;
next	1.5;

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

1.4
date	93.04.26.08.25.13;	author deraadt;	state Exp;
branches;
next	1.3;

1.3
date	93.04.21.04.48.07;	author proven;	state Exp;
branches;
next	1.2;

1.2
date	93.04.18.21.50.28;	author proven;	state Exp;
branches;
next	1.1;

1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.174.2.1
date	2025.08.02.05.54.31;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.170.2.1
date	2019.06.10.22.05.15;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.169.14.1
date	2018.04.07.04.12.08;	author pgoyette;	state Exp;
branches;
next	1.169.14.2;
commitid	ZMkKSYuBapz7LsxA;

1.169.14.2
date	2018.09.06.06.55.19;	author pgoyette;	state Exp;
branches;
next	;
commitid	HCi1bXD317XIK0RA;

1.166.2.1
date	2015.06.16.06.08.47;	author snj;	state Exp;
branches;
next	;
commitid	84KPlwUpQhMloCpy;

1.149.6.1
date	2013.06.23.06.21.03;	author tls;	state Exp;
branches;
next	1.149.6.2;
commitid	NYFFXRB0xCbrHHUw;

1.149.6.2
date	2014.08.20.00.02.08;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.148.2.1
date	2012.04.17.00.05.12;	author yamt;	state Exp;
branches;
next	1.148.2.2;

1.148.2.2
date	2014.05.22.11.36.46;	author yamt;	state Exp;
branches;
next	;
commitid	HJV5p3BoaVY5KwBx;

1.145.2.1
date	2011.06.23.14.18.35;	author cherry;	state Exp;
branches;
next	;

1.136.4.1
date	2008.10.26.07.43.07;	author mrg;	state dead;
branches;
next	1.136.4.2;

1.136.4.2
date	2008.10.26.07.43.08;	author mrg;	state Exp;
branches;
next	;

1.134.8.1
date	2008.09.18.04.39.19;	author wrstuden;	state Exp;
branches;
next	;

1.131.4.1
date	2008.01.09.01.33.52;	author matt;	state Exp;
branches;
next	;

1.127.4.1
date	2007.07.22.18.44.42;	author liamjfoy;	state Exp;
branches;
next	;

1.127.6.1
date	2007.09.03.07.01.12;	author wrstuden;	state Exp;
branches;
next	;

1.98.2.1
date	2001.08.08.16.27.06;	author nathanw;	state Exp;
branches;
next	1.98.2.2;

1.98.2.2
date	2001.10.08.20.16.46;	author nathanw;	state Exp;
branches;
next	1.98.2.3;

1.98.2.3
date	2002.01.28.20.49.39;	author nathanw;	state Exp;
branches;
next	1.98.2.4;

1.98.2.4
date	2002.01.29.19.50.39;	author nathanw;	state Exp;
branches;
next	1.98.2.5;

1.98.2.5
date	2002.03.08.21.34.43;	author nathanw;	state Exp;
branches;
next	1.98.2.6;

1.98.2.6
date	2002.03.22.20.41.49;	author nathanw;	state Exp;
branches;
next	1.98.2.7;

1.98.2.7
date	2002.08.01.03.27.53;	author nathanw;	state Exp;
branches;
next	1.98.2.8;

1.98.2.8
date	2002.08.02.21.32.14;	author nathanw;	state Exp;
branches;
next	1.98.2.9;

1.98.2.9
date	2002.08.27.23.49.18;	author nathanw;	state Exp;
branches;
next	;

1.89.2.1
date	2001.04.25.09.52.23;	author he;	state Exp;
branches;
next	;

1.88.2.1
date	2000.05.28.22.40.54;	author minoura;	state Exp;
branches;
next	1.88.2.2;

1.88.2.2
date	2000.06.23.16.58.50;	author minoura;	state Exp;
branches;
next	;

1.84.4.1
date	99.12.27.18.29.27;	author wrstuden;	state Exp;
branches;
next	;

1.70.2.1
date	97.11.09.00.59.46;	author lukem;	state Exp;
branches;
next	;

1.64.2.1
date	97.05.23.21.17.00;	author lukem;	state Exp;
branches;
next	1.64.2.2;

1.64.2.2
date	98.10.31.12.47.14;	author lukem;	state Exp;
branches;
next	1.64.2.3;

1.64.2.3
date	99.01.15.12.45.23;	author lukem;	state Exp;
branches;
next	;

1.49.2.1
date	96.11.06.00.48.17;	author lukem;	state Exp;
branches;
next	;

1.48.2.1
date	96.09.16.18.38.45;	author jtc;	state Exp;
branches;
next	;

1.31.2.1
date	95.03.13.20.49.46;	author jtc;	state Exp;
branches;
next	1.31.2.2;

1.31.2.2
date	95.05.02.19.33.52;	author jtc;	state Exp;
branches;
next	;

1.1.1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	95.02.25.03.25.05;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.175
log
@ctype(3): Actually conditionalize guard page on shared libc.

Apparently we build the libc .o files with -fPIC too (I guess this is
so that libc.a works in position-independent executables? but why
don't they just use libc_pic.a?), so use a purpose-built cpp macro
_CTYPE_DYNAMIC for this instead of using __PIC__.

Now this shows the right symbol sizes:

$ readelf -s ctype_.pico | grep _C_ctype_tab_guarded_
     3: 0000000000000000  4610 OBJECT  LOCAL  DEFAULT   11 _C_ctype_tab_guarded_
$ readelf -s ctype_.po | grep _C_ctype_tab_guarded_
     3: 0000000000000000   514 OBJECT  LOCAL  DEFAULT    7 _C_ctype_tab_guarded_
$ readelf -s ctype_.o | grep _C_ctype_tab_guarded_
     3: 0000000000000000   514 OBJECT  LOCAL  DEFAULT    7 _C_ctype_tab_guarded_

PR lib/58208: ctype(3) provides poor runtime feedback of abuse
@
text
@#	$NetBSD: Makefile,v 1.174 2023/05/29 18:25:52 lukem Exp $
#	@@(#)Makefile	8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
# excluded as a space-saving measure.  To produce a library that does
# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
# from CPPFLAGS below.  To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
#
# The NLS (message catalog) functions are always in libc.  To choose that
# strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
# functions, put -DNLS on the CPPFLAGS line below.
#
# The YP functions are always in libc. To choose that getpwent() and friends
# actually call the YP functions, put -DYP on the CPPFLAGS line below.
#
# The Hesiod functions are always in libc. To choose that getpwent() and friends
# actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.


# generated code depends on RTTI
LIBCSANITIZERFLAGS+=	${${ACTIVE_CC} == "clang":? -fno-sanitize=function :}

.include "Makefile.inc"

LIB=		c
CPPFLAGS+=	-I${.CURDIR}/include -I${.CURDIR}

LIBCDIR=	${.CURDIR}

.if exists (${ARCHDIR}/Makefile.inc)
.PATH:	${ARCHDIR}
.include "${ARCHDIR}/Makefile.inc"
.endif

.if exists (${ARCHDIR}/genassym.cf)
DPSRCS+=	assym.h
CLEANFILES+=	assym.h assym.h.tmp

assym.h: ${ARCHDIR}/genassym.cf
	${_MKTARGET_CREATE}
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} \
		${CPPFLAGS} ${CPPFLAGS.assym.h} ${PROF} \
		${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h
.endif

# The following controls how to build compatibility code for old NetBSD
# binaries. If BUILD_LEGACY is yes, then we build a separate library; otherwise
# we include the code in libc.
BUILD_LEGACY?= no
.if "${BUILD_LEGACY}" == "yes"
SUBDIR=compat
.include <bsd.subdir.mk>
.else
COMPATDIR=${.CURDIR}/compat
.include "${.CURDIR}/compat/Makefile.inc"
# Marker for compat code that can't be easily isolated
CPPFLAGS+=	-D__BUILD_LEGACY
.endif

.include "${.CURDIR}/../../common/lib/libc/Makefile.inc"
.include "${.CURDIR}/atomic/Makefile.inc"
.include "${.CURDIR}/cdb/Makefile.inc"
.include "${.CURDIR}/db/Makefile.inc"
.include "${.CURDIR}/citrus/Makefile.inc"
.include "${.CURDIR}/compat-43/Makefile.inc"
.include "${.CURDIR}/compiler_rt/Makefile.inc"
.include "${.CURDIR}/dlfcn/Makefile.inc"
.include "${.CURDIR}/gdtoa/Makefile.inc"
.include "${.CURDIR}/gen/Makefile.inc"
.include "${.CURDIR}/gmon/Makefile.inc"
.include "${.CURDIR}/hash/Makefile.inc"
.include "${.CURDIR}/iconv/Makefile.inc"
.include "${.CURDIR}/inet/Makefile.inc"
.include "${.CURDIR}/isc/Makefile.inc"
.include "${.CURDIR}/locale/Makefile.inc"
.include "${.CURDIR}/md/Makefile.inc"
.include "${.CURDIR}/misc/Makefile.inc"
.include "${.CURDIR}/net/Makefile.inc"
.include "${.CURDIR}/nameser/Makefile.inc"
.include "${.CURDIR}/nls/Makefile.inc"
.include "${.CURDIR}/posix1e/Makefile.inc"
.include "${.CURDIR}/regex/Makefile.inc"
.include "${.CURDIR}/resolv/Makefile.inc"
.include "${.CURDIR}/rpc/Makefile.inc"
.include "${.CURDIR}/ssp/Makefile.inc"
.include "${.CURDIR}/stdio/Makefile.inc"
.include "${.CURDIR}/stdlib/Makefile.inc"
.include "${.CURDIR}/string/Makefile.inc"
.include "${.CURDIR}/termios/Makefile.inc"
.include "${.CURDIR}/thread-stub/Makefile.inc"
.include "${.CURDIR}/time/Makefile.inc"
.if ${RUMPRUN} != "yes"
.include "${.CURDIR}/tls/Makefile.inc"
.endif
.include "${.CURDIR}/sys/Makefile.inc"
.if ${HAVE_LIBGCC_EH} == "no"
.include "${NETBSDSRCDIR}/sys/lib/libunwind/Makefile.inc"
.endif
.include "${.CURDIR}/uuid/Makefile.inc"
.if (${MKYP} != "no")
.include "${.CURDIR}/yp/Makefile.inc"
.endif

# Remove from SRCS the .c files for any .S files added by the MD makefiles,
# also remove from SRCS the .c files for the .S and .c files in NO_SRCS.
# Add the .c file for .S files (in both variables) to LSRCS so that the
# 'normal' .c file for assembly files is used for the lint librray.
#
# Usage:
# Add .S files to NO_SRCS when another .S file provides the entry points.
# Add .c files to NO_SRCS when another .c file provides the entry points.
# (lint is run on all .c files in SRCS)

.for check_file in ${SRCS:M*.S} ${NO_SRCS}
unwanted_file := ${SRCS:M${check_file:.S=.c}}
.if "${unwanted_file}" != ""
SRCS := ${SRCS:N${unwanted_file}}
.if "${unwanted_file}" != "${check_file}"
LSRCS := ${LSRCS} ${unwanted_file}
.endif
.endif
.endfor

NLS=	C.msg Pig.msg ca.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg \
	no.msg pl.msg sk.msg sv.msg

.if ${MKREPRO:Uno} == "yes"
REGEX_SPECIALS=[][)(^$$.?*\\;]
MKREPRO_SED=   -e 's;${NETBSDSRCDIR:C/${REGEX_SPECIALS}/\\\\&/g};/usr/src;'
.endif

.if !defined(MLIBDIR) && ${RUMPRUN} != "yes"
realall: tags
tags: ${SRCS}
	${_MKTARGET_CREATE}
	-${TOOL_CTAGS} -f ${.TARGET}.tmp -w ${.ALLSRC:M*.c}
	-egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
           >> ${.TARGET}.tmp
.if ${MKREPRO:Uno} == "yes"
	sed ${MKREPRO_SED} <${.TARGET}.tmp | sort -o ${.TARGET}
.else
	sort -o ${.TARGET} ${.TARGET}.tmp
.endif
	rm -f ${.TARGET}.tmp

FILES=		tags
FILESNAME=	libc.tags
FILESDIR=	/var/db
.endif


# workaround for I18N stuffs: build singlebyte setlocale() for libc.a,
# multibyte for libc.so.  the quirk should be removed when we support
# dlopen() from within statically linked binaries.
CSHLIBFLAGS+=	-D_I18N_DYNAMIC

# Tell ctype(3) that this is a dynamic libc, so if appropriate it
# should allocate a guard page.
CSHLIBFLAGS+=	-D_CTYPE_DYNAMIC

.include <bsd.lib.mk>

# force the dynamic linker to initialize libc first
SHLIB_SHFLAGS+=	-Wl,-z,initfirst
.if ${HAVE_LIBGCC} == "no"
SHLIB_SHFLAGS+= -Wl,-z,defs
.endif
@


1.174
log
@libc: fix typo in comments: NO_SRSC -> NO_SRCS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.173 2020/05/16 18:31:47 christos Exp $
d160 4
@


1.174.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.175 2025/03/30 16:17:04 riastradh Exp $
a159 4
# Tell ctype(3) that this is a dynamic libc, so if appropriate it
# should allocate a guard page.
CSHLIBFLAGS+=	-D_CTYPE_DYNAMIC

@


1.173
log
@Add ACL support for FFS. From FreeBSD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.172 2018/08/03 14:01:21 kamil Exp $
d112 2
a113 2
# Add .S files to NO_SRSC when another .S file provides the entry points.
# Add .c files to NO_SRSC when another .c file provides the entry points.
@


1.172
log
@Restrict -fno-sanitize=function to Clang/LLVM only

The base GCC version 6,x does not support this option.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.171 2018/08/03 02:29:35 kamil Exp $
d83 1
@


1.171
log
@Disable sanitization of -fsanitize=function in libc

Generated code for the checks (in at least libunwind) depends on the C++
runtime feature of RTTI.

Pass -fno-sanitize=function to LIBCSANITIZERFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.170 2018/03/31 14:24:54 kamil Exp $
d20 3
a22 1
LIBCSANITIZERFLAGS+=	-fno-sanitize=function	# generated code depends on RTTI
@


1.170
log
@Drop the USE_LIBTRE build option

libtre cannot be used any more as a replacement for regex(3).
Tt does not build and the library development is stalled in upstream.

Proposed on mailing list.

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.169 2015/06/15 14:24:01 christos Exp $
d20 2
@


1.170.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.172 2018/08/03 14:01:21 kamil Exp $
a19 4

# generated code depends on RTTI
LIBCSANITIZERFLAGS+=	${${ACTIVE_CC} == "clang":? -fno-sanitize=function :}

@


1.169
log
@Only create and install the tags file for the normal libc (not any of the
compat copies), because we don't want it to be overwritten by the compat
copies. This was detected by the evbarm mkimage complaining.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.168 2015/02/09 22:44:34 pooka Exp $
a78 3
.if (${USE_LIBTRE} == "yes")
.include "${NETBSDSRCDIR}/external/bsd/tre/Makefile.inc"
.else
a79 1
.endif
@


1.169.14.1
log
@Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.170 2018/03/31 14:24:54 kamil Exp $
d79 3
d83 1
@


1.169.14.2
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.172 2018/08/03 14:01:21 kamil Exp $
a19 4

# generated code depends on RTTI
LIBCSANITIZERFLAGS+=	${${ACTIVE_CC} == "clang":? -fno-sanitize=function :}

@


1.168
log
@Include compat in rumprun libc

Not including non-renamed symbols in libc caused all kinds of configure
scripts to do the wrong thing when they just tested linkage without
including headers.  So, go for the "least moving parts" bandaid for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.167 2014/12/10 00:37:30 pooka Exp $
d133 1
a133 1
.if ${RUMPRUN} != "yes"
@


1.167
log
@Add hooks for RUMPRUN build of libc

If "yes", does the following (default "no"):
  * prevents ASM syscalls from being built (librump provides syscalls)
  * does not include compat (useless when application is linked with libc)
  * does not build tags (no /var/db to install them to)
  * does not include tls

==> libc for rumprun can now be built against unmodified NetBSD sources
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.166 2014/08/10 23:39:08 matt Exp $
a43 1
.if ${RUMPRUN} != "yes"
a56 1
.endif
@


1.166
log
@MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.165 2014/03/04 14:58:14 joerg Exp $
d44 1
d58 1
d95 1
d97 1
d135 1
d153 1
@


1.166.2.1
log
@Pull up following revision(s) (requested by martin in ticket #843):
	lib/libc/Makefile: revision 1.169 via patch
Only create and install the tags file for the normal libc (not any of the
compat copies), because we don't want it to be overwritten by the compat
copies. This was detected by the evbarm mkimage complaining.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.166 2014/08/10 23:39:08 matt Exp $
a130 1
.if !defined(MLIBDIR)
d148 1
a148 1
.endif
@


1.165
log
@Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.164 2014/01/29 23:37:18 joerg Exp $
a21 2
LIBC_MACHINE_ARCH?=	${MACHINE_ARCH}		# for MKCOMPAT

@


1.164
log
@Include compiler-rt in libc, libm and libkern.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.163 2014/01/19 11:36:45 apb Exp $
d40 1
a40 1
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,--fatal-warnings} \
d42 1
a42 1
		< ${ARCHDIR}/genassym.cf > assym.h.tmp && \
@


1.163
log
@If MKREPRO=yes, make the tags file refer to /usr/src
instead of referring to the actual source directory ${NETBSDSRC}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.162 2014/01/18 01:08:56 joerg Exp $
a65 1
.if ${HAVE_LIBGCC} == "no"
a66 1
.endif
a80 3
.if ${HAVE_LIBGCC} != "no" && ${MACHINE_ARCH} != "alpha" && ${ARCHSUBDIR} != "sparc64"
.include "${.CURDIR}/quad/Makefile.inc"
.endif
@


1.162
log
@Use a separate variable for the use of GCC's unwind code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.161 2014/01/15 20:58:09 joerg Exp $
d133 5
d141 1
a141 1
	-${TOOL_CTAGS} -w ${.ALLSRC:M*.c}
d144 7
a150 1
	    >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET}
@


1.161
log
@Use the quad support from compiler-rt for MKLIBGCC=no.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.160 2013/10/14 16:00:17 joerg Exp $
d102 1
a102 1
.if ${HAVE_LIBGCC} == "no"
@


1.160
log
@Rename USE_LIBGCC to HAVE_LIBGCC and retry using it as flag on unwind.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.159 2013/10/14 01:30:21 joerg Exp $
d83 1
a83 1
.if (${MACHINE_ARCH} != "alpha") && (${ARCHSUBDIR} != "sparc64")
@


1.159
log
@Include compiler-rt and libunwind in libc for Clang/x86 builds.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.158 2013/07/30 15:28:47 joerg Exp $
d66 1
a66 1
.if ${USE_LIBGCC} == "no"
d102 1
a102 1
.if ${USE_LIBGCC} == "no"
d155 1
a155 1
.if ${USE_LIBGCC} == "no"
@


1.158
log
@Don't pass assembler flags to cpp for genassym.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.157 2013/04/30 01:42:03 matt Exp $
d66 3
d102 3
d155 3
@


1.157
log
@Match against LIBC_MACHINE_ARCH for MKCOMPAT
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.156 2013/04/27 08:00:40 matt Exp $
d40 1
a40 1
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS} \
@


1.156
log
@Just build the legacy stuff for earm (for now).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.155 2013/04/25 15:39:26 matt Exp $
d22 2
@


1.155
log
@for earm, make sure to build getdirentries man page
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.154 2013/04/25 06:36:49 matt Exp $
a46 1
.if empty(MACHINE_ARCH:Mearm*)
a56 8
.else # XXX temp
COMPATDIR=${.CURDIR}/compat
.PATH: ${COMPATDIR}/sys
SRCS+=	compat___lwp_park50.c
MAN+=	getdirentries.3
CPPFLAGS+=	-D__BUILD_LEGACY
CPPFLAGS+=	-I${NETBSDSRCDIR}/sys
.endif
@


1.154
log
@Add CPPFLAGS+=      -I${NETBSDSRCDIR}/sys for earm compat
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.153 2013/04/19 22:24:10 matt Exp $
d61 2
a62 1
SRCS+= compat___lwp_park50.c
@


1.153
log
@for EARM, just build __lwp_park50 compat for libpthread until the situation
is involved.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.152 2013/04/19 21:02:43 matt Exp $
d63 1
@


1.152
log
@Fix inverted test.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.151 2013/04/19 16:53:18 matt Exp $
d58 5
@


1.151
log
@Since earm is new, don't bother building the compat libc code since there
is nothing that can use it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.150 2013/04/12 19:58:45 joerg Exp $
d47 1
a47 1
.if !empty(MACHINE_ARCH:Mearm*)
@


1.150
log
@Rename BUILDCOLD to BUILD_LEGACY and provide a preprocessor macro that
can be used in code files that aren't easy to split up. Add the removal
to the major bump todo list.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.149 2012/01/20 16:31:29 joerg Exp $
d47 1
d58 1
@


1.149
log
@Remove code for CITRUS!=yes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.148 2011/08/17 09:53:53 christos Exp $
d45 1
a45 1
# binaries. If BUILDCOLD is yes, then we build a separate library; otherwise
d47 2
a48 2
BUILDCOLD?= no
.if "${BUILDCOLD}" == "yes"
d54 2
@


1.149.6.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
a21 2
LIBC_MACHINE_ARCH?=	${MACHINE_ARCH}		# for MKCOMPAT

d45 1
a45 1
# binaries. If BUILD_LEGACY is yes, then we build a separate library; otherwise
d47 2
a48 2
BUILD_LEGACY?= no
.if "${BUILD_LEGACY}" == "yes"
a53 2
# Marker for compat code that can't be easily isolated
CPPFLAGS+=	-D__BUILD_LEGACY
@


1.149.6.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d22 2
d40 1
a40 1
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} \
d42 1
a42 1
		${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
a65 1
.include "${.CURDIR}/compiler_rt/Makefile.inc"
d80 3
a98 3
.if ${HAVE_LIBGCC_EH} == "no"
.include "${NETBSDSRCDIR}/sys/lib/libunwind/Makefile.inc"
.endif
a126 5
.if ${MKREPRO:Uno} == "yes"
REGEX_SPECIALS=[][)(^$$.?*\\;]
MKREPRO_SED=   -e 's;${NETBSDSRCDIR:C/${REGEX_SPECIALS}/\\\\&/g};/usr/src;'
.endif

d130 1
a130 1
	-${TOOL_CTAGS} -f ${.TARGET}.tmp -w ${.ALLSRC:M*.c}
d133 1
a133 7
           >> ${.TARGET}.tmp
.if ${MKREPRO:Uno} == "yes"
	sed ${MKREPRO_SED} <${.TARGET}.tmp | sort -o ${.TARGET}
.else
	sort -o ${.TARGET} ${.TARGET}.tmp
.endif
	rm -f ${.TARGET}.tmp
a148 3
.if ${HAVE_LIBGCC} == "no"
SHLIB_SHFLAGS+= -Wl,-z,defs
.endif
@


1.148
log
@fix the rest of libc mi gcc-4.5 hacks. portmasters should fix the md ones.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.147 2011/06/21 02:32:55 mrg Exp $
a59 1
.if (${CITRUS} == "yes")
a60 1
.endif
a138 1
.if (${CITRUS} == "yes")
a139 1
.endif
@


1.148.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.148 2011/08/17 09:53:53 christos Exp $
d60 1
d62 1
d141 1
d143 1
@


1.148.2.2
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.148.2.1 2012/04/17 00:05:12 yamt Exp $
a21 2
LIBC_MACHINE_ARCH?=	${MACHINE_ARCH}		# for MKCOMPAT

d38 1
a38 1
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} \
d40 1
a40 1
		${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
d45 1
a45 1
# binaries. If BUILD_LEGACY is yes, then we build a separate library; otherwise
d47 2
a48 2
BUILD_LEGACY?= no
.if "${BUILD_LEGACY}" == "yes"
a53 2
# Marker for compat code that can't be easily isolated
CPPFLAGS+=	-D__BUILD_LEGACY
a61 1
.include "${.CURDIR}/compiler_rt/Makefile.inc"
d76 3
a94 3
.if ${HAVE_LIBGCC_EH} == "no"
.include "${NETBSDSRCDIR}/sys/lib/libunwind/Makefile.inc"
.endif
a122 5
.if ${MKREPRO:Uno} == "yes"
REGEX_SPECIALS=[][)(^$$.?*\\;]
MKREPRO_SED=   -e 's;${NETBSDSRCDIR:C/${REGEX_SPECIALS}/\\\\&/g};/usr/src;'
.endif

d126 1
a126 1
	-${TOOL_CTAGS} -f ${.TARGET}.tmp -w ${.ALLSRC:M*.c}
d129 1
a129 7
           >> ${.TARGET}.tmp
.if ${MKREPRO:Uno} == "yes"
	sed ${MKREPRO_SED} <${.TARGET}.tmp | sort -o ${.TARGET}
.else
	sort -o ${.TARGET} ${.TARGET}.tmp
.endif
	rm -f ${.TARGET}.tmp
a144 3
.if ${HAVE_LIBGCC} == "no"
SHLIB_SHFLAGS+= -Wl,-z,defs
.endif
@


1.147
log
@add some XXX'd -Wno-foo if HAVE_GCC >= 45.

XXX: someone should look at these.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.146 2011/06/19 11:31:55 nakayama Exp $
a148 8

# XXX
.if ${HAVE_GCC} >= 45
COPTS.res_comp.c+= -Wno-cast-qual
COPTS.vfwprintf.c+= -Wno-cast-qual
COPTS.vfprintf.c+= -Wno-cast-qual
COPTS.vswprintf.c+= -Wno-cast-qual
.endif
@


1.146
log
@__udivdi3 isn't included in sparc compat libc on sparc64, so use
ARCHSUBDIR instead of MACHINE_ARCH for checking whether to include
quad/Makefile.inc.

This fixes undefined symbol __udivdi3 in /libexec/ld.elf_so-sparc
on sparc64 which is the cause of failure of hello32 test in
toolchain/cc/t_hello.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.145 2011/05/27 17:06:55 drochner Exp $
d150 7
@


1.145
log
@make the "tags" target non-.PHONY because it reflects a real file,
and remove some nonsense in libc Makefile which caused that
a "tags" file was written in my source tree
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.144 2011/03/09 23:10:06 joerg Exp $
d78 1
a78 1
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64")
@


1.145.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.147 2011/06/21 02:32:55 mrg Exp $
d78 1
a78 1
.if (${MACHINE_ARCH} != "alpha") && (${ARCHSUBDIR} != "sparc64")
a149 7
# XXX
.if ${HAVE_GCC} >= 45
COPTS.res_comp.c+= -Wno-cast-qual
COPTS.vfwprintf.c+= -Wno-cast-qual
COPTS.vfprintf.c+= -Wno-cast-qual
COPTS.vswprintf.c+= -Wno-cast-qual
.endif
@


1.144
log
@Add TLS support infrastructure. For dynamic binaries, ld.elf_so exports
_rtld_tls_allocate and _rtld_tls_free. libpthread uses this functions to
setup the thread private area of all new threads. ld.elf_so is
responsible for setting up the private area for the initial thread.
Similar functions are called from _libc_init for static binaries, using
dl_iterate_phdr to access the ELF Program Header.

Add test cases to exercise the different TLS storage models. Test cases
are compiled and installed on all platforms, but are skipped on
platforms not marked for TLS support.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

It is inspired by the TLS support in FreeBSD by Doug Rabson and the
clean ups of the DragonFly port of the original FreeBSD modifications.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.143 2010/09/04 12:17:58 ahoka Exp $
d126 1
a126 2
tags: ${.OBJDIR}/tags
${.OBJDIR}/tags: ${SRCS}
d133 1
a133 1
FILES=		${.OBJDIR}/tags
@


1.143
log
@Add libc glue for libtre.
tre will be compiled without approx and wchar/mulibyte support to
only match the minimum requirement to replace our spencer regex.

This needs a lot of testing.

Only enabled when USE_LIBTRE is set to `yes'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.142 2010/05/30 08:28:53 tnozaki Exp $
d95 1
@


1.142
log
@1. fix build problem CITRUS=no
2. make CITRUS={yes,no} knob friendly with libc/compat.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.141 2010/04/25 00:54:46 joerg Exp $
d81 3
d85 1
@


1.141
log
@Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.140 2009/12/06 12:56:59 uebayasi Exp $
d60 1
d62 1
d137 1
d139 1
@


1.140
log
@Provide the phony "tags" target as previous.  Make it depend on the real
target.  In case someone assumes the target as an interface.
@
text
@d1 1
a1 1
#	$NetBSD$
d58 1
@


1.139
log
@Make the local "tags" target an absolute path, ${.OBJDIR}/tags, otherwise
it conflicts with the "tags" target defined in bsd.own.mk, which is .PHONY,
which causes you to re-build "tags" everytime you re-run make.
@
text
@d117 2
a118 1
realall: ${.OBJDIR}/tags
@


1.138
log
@Change (slightly) the way NO_SRCS is processed, update big comment!
Now the .c file is removed from SRCS for both .S and .c in NO_SRSC.
The .c file is added to LSRCS for .S files in NO_SRCS.
(.S files in SRCS have the same treatment - but also get compiled.)
Allows vax build to be fixed.
Also the previous version failed to add to LSRCS correctly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.137 2009/07/30 20:57:15 dsl Exp $
d117 2
a118 2
realall: tags
tags: ${SRCS}
d125 1
a125 1
FILES=		tags
@


1.137
log
@If SRCS contains any .S files then remove the corresponding .c file from
SRCS and add to LSRCS (for lint).
Change the 'string' Makefiles so that the arch/*/string/Makefile.inc
need only specify the .S files for that architecture and not the .c
files for all the files they don't override.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.136 2008/10/26 07:43:07 mrg Exp $
d94 12
a105 7
# Remove from SRCS the .c files for any .S files added by the MD makefiles.
# Any files added to NO_SRCS will also not be compiled
# (eg because another file generates the same entry point)
# Use the .c file to generate the lint library, but don't add to DPSRCS
# (since it would overwrite the .d file containing the foo.o: foo.S rules).
.for asm_file in ${SRCS:M*.S} ${NO_SRCS}
unwanted_file := ${SRCS:M${asm_file:.S=.c}}
d108 3
a110 1
LSRCS += ${unwanted_file}
a113 1

@


1.136
log
@define and use LIBCDIR in terms of .CURDIR.  fixes compat/lib/libc build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.135 2008/06/23 10:22:40 ad Exp $
d94 14
@


1.136.4.1
log
@file Makefile was added on branch christos-time_t on 2008-10-26 07:43:08 +0000
@
text
@d1 119
@


1.136.4.2
log
@define and use LIBCDIR in terms of .CURDIR.  fixes compat/lib/libc build.
@
text
@a0 119
#	$NetBSD: Makefile,v 1.136 2008/10/26 07:43:07 mrg Exp $
#	@@(#)Makefile	8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
# excluded as a space-saving measure.  To produce a library that does
# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
# from CPPFLAGS below.  To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
#
# The NLS (message catalog) functions are always in libc.  To choose that
# strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
# functions, put -DNLS on the CPPFLAGS line below.
#
# The YP functions are always in libc. To choose that getpwent() and friends
# actually call the YP functions, put -DYP on the CPPFLAGS line below.
#
# The Hesiod functions are always in libc. To choose that getpwent() and friends
# actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.

.include "Makefile.inc"

LIB=		c
CPPFLAGS+=	-I${.CURDIR}/include -I${.CURDIR}

LIBCDIR=	${.CURDIR}

.if exists (${ARCHDIR}/Makefile.inc)
.PATH:	${ARCHDIR}
.include "${ARCHDIR}/Makefile.inc"
.endif

.if exists (${ARCHDIR}/genassym.cf)
DPSRCS+=	assym.h
CLEANFILES+=	assym.h assym.h.tmp

assym.h: ${ARCHDIR}/genassym.cf
	${_MKTARGET_CREATE}
	${TOOL_GENASSYM} -- ${CC} ${CFLAGS} \
		${CPPFLAGS} ${CPPFLAGS.assym.h} ${PROF} \
		< ${ARCHDIR}/genassym.cf > assym.h.tmp && \
	mv -f assym.h.tmp assym.h
.endif

# The following controls how to build compatibility code for old NetBSD
# binaries. If BUILDCOLD is yes, then we build a separate library; otherwise
# we include the code in libc.
BUILDCOLD?= no
.if "${BUILDCOLD}" == "yes"
SUBDIR=compat
.include <bsd.subdir.mk>
.else
COMPATDIR=${.CURDIR}/compat
.include "${.CURDIR}/compat/Makefile.inc"
.endif

.include "${.CURDIR}/../../common/lib/libc/Makefile.inc"
.include "${.CURDIR}/atomic/Makefile.inc"
.include "${.CURDIR}/db/Makefile.inc"
.include "${.CURDIR}/citrus/Makefile.inc"
.include "${.CURDIR}/compat-43/Makefile.inc"
.include "${.CURDIR}/dlfcn/Makefile.inc"
.include "${.CURDIR}/gdtoa/Makefile.inc"
.include "${.CURDIR}/gen/Makefile.inc"
.include "${.CURDIR}/gmon/Makefile.inc"
.include "${.CURDIR}/hash/Makefile.inc"
.include "${.CURDIR}/iconv/Makefile.inc"
.include "${.CURDIR}/inet/Makefile.inc"
.include "${.CURDIR}/isc/Makefile.inc"
.include "${.CURDIR}/locale/Makefile.inc"
.include "${.CURDIR}/md/Makefile.inc"
.include "${.CURDIR}/misc/Makefile.inc"
.include "${.CURDIR}/net/Makefile.inc"
.include "${.CURDIR}/nameser/Makefile.inc"
.include "${.CURDIR}/nls/Makefile.inc"
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64")
.include "${.CURDIR}/quad/Makefile.inc"
.endif
.include "${.CURDIR}/regex/Makefile.inc"
.include "${.CURDIR}/resolv/Makefile.inc"
.include "${.CURDIR}/rpc/Makefile.inc"
.include "${.CURDIR}/ssp/Makefile.inc"
.include "${.CURDIR}/stdio/Makefile.inc"
.include "${.CURDIR}/stdlib/Makefile.inc"
.include "${.CURDIR}/string/Makefile.inc"
.include "${.CURDIR}/termios/Makefile.inc"
.include "${.CURDIR}/thread-stub/Makefile.inc"
.include "${.CURDIR}/time/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"
.include "${.CURDIR}/uuid/Makefile.inc"
.if (${MKYP} != "no")
.include "${.CURDIR}/yp/Makefile.inc"
.endif

NLS=	C.msg Pig.msg ca.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg \
	no.msg pl.msg sk.msg sv.msg

realall: tags
tags: ${SRCS}
	${_MKTARGET_CREATE}
	-${TOOL_CTAGS} -w ${.ALLSRC:M*.c}
	-egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
	    >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET}

FILES=		tags
FILESNAME=	libc.tags
FILESDIR=	/var/db


# workaround for I18N stuffs: build singlebyte setlocale() for libc.a,
# multibyte for libc.so.  the quirk should be removed when we support
# dlopen() from within statically linked binaries.
CSHLIBFLAGS+=	-D_I18N_DYNAMIC

.include <bsd.lib.mk>

# force the dynamic linker to initialize libc first
SHLIB_SHFLAGS+=	-Wl,-z,initfirst

@


1.135
log
@Install manual pages for the atomic ops.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.134 2007/12/08 18:34:51 he Exp $
d25 2
@


1.134
log
@Ensure that we pass -z initfirst to the linker.  The mips gcc
was unhappy about the missing -Wl specification.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.133 2007/12/07 20:34:04 ad Exp $
d55 1
@


1.134.8.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.134 2007/12/08 18:34:51 he Exp $
a54 1
.include "${.CURDIR}/atomic/Makefile.inc"
@


1.133
log
@rtld changes for PR bin/37347:

- Apply patch from J.T. Conklin to execute .init/.fini functions in order.
- Support DF_1_INITFIRST and mark libc with DF_1_INITFIRST. Shared libs
  should be recording a dependency on libc, but it's too late to do that.

Ok christos@@.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.132 2007/11/13 15:21:19 ad Exp $
d115 1
a115 1
SHLIB_SHFLAGS+=	-z initfirst
@


1.132
log
@- stack_protector.c doesn't really belong under sys/. Add a new directory
  for misc support routines and put it there.
- Add a libc constructor. Use this to initialize threading and the
  stack protector stuff. libpthread cannot be initialized safely using
  its own constructor because libc and libpthread are deeply intertwined.
  PR bin/37347
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.131 2007/05/30 01:13:15 tls Exp $
d113 4
@


1.131
log
@Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do.  Goodbye, libssp
dependency in libraries and executables.  Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.130 2007/03/19 12:27:22 tnozaki Exp $
d68 1
@


1.131.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
a67 1
.include "${.CURDIR}/misc/Makefile.inc"
a111 4

# force the dynamic linker to initialize libc first
SHLIB_SHFLAGS+=	-Wl,-z,initfirst

@


1.130
log
@revert to rev1.127 for iconv(3).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.129 2007/03/18 08:52:48 tnozaki Exp $
d77 1
@


1.129
log
@don't use CPPPICFLAGS but CPICFLAGS.

CPPPICFLAGS obly affect *.s sources only,
but we want -D_I18N_DYNAMIC flag for *.c source
(src/lib/libc/citrus_module.c and so on).
use CPICFLAGS instead.

this fix suggested by tsutsui-san in current-users@@, thanks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.128 2007/03/15 00:59:32 matt Exp $
d108 1
a108 5
.if ${MKPICLIB} != "no"
CPICFLAGS+=	-D_I18N_DYNAMIC
.elif ${MKPIC} != "no"
CPPFLAGS+=	-D_I18N_DYNAMIC
.endif
@


1.128
log
@Don't modify CSHPICFLAGS. (this causes .so file to be made when they shouldn't)
if MKPICLIB is "no", change CPPPICFLAGS otherwise add change CPPFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.127 2006/03/11 21:07:18 christos Exp $
d109 1
a109 1
CPPPICFLAGS+=	-D_I18N_DYNAMIC
@


1.127
log
@Add glue to build the compat library as a separate "libcold" turned off by
default. Clean up the libc Makefile and remove obsolete stuff such as copy
to libkern.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.126 2006/01/25 15:43:01 kleink Exp $
d108 5
a112 1
CSHLIBFLAGS+=	-D_I18N_DYNAMIC
@


1.127.6.1
log
@Sync w/ NetBSD-4-RC_1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.127.4.1 2007/07/22 18:44:42 liamjfoy Exp $
a76 1
.include "${.CURDIR}/ssp/Makefile.inc"
@


1.127.4.1
log
@Pull up to netbsd-4 (requested by christos in ticket #773):

Move libssp to libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.127 2006/03/11 21:07:18 christos Exp $
a76 1
.include "${.CURDIR}/ssp/Makefile.inc"
@


1.126
log
@Drop in gdtoa as a replacement for dtoa, strtod() from stdlib/strtod.c.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.125 2005/12/20 19:31:47 christos Exp $
d20 1
a20 1
USE_SHLIBDIR=	yes
a21 3
.include <bsd.own.mk>

WARNS=4
a22 1
CPPFLAGS+=	-D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
a24 43
.if (${USE_HESIOD} != "no")
CPPFLAGS+=	-DHESIOD
.endif

.if (${USE_INET6} != "no")
CPPFLAGS+=	-DINET6
.endif

CPPFLAGS+=	-DNLS

.if (${USE_YP} != "no")
CPPFLAGS+=	-DYP
.endif

.if ${MACHINE_ARCH} == "i386"
# Set lint to exit on warnings
LINTFLAGS+=	-w
.endif
# ignore 'empty translation unit' warnings.
LINTFLAGS+=	-X 272

.if exists(${.CURDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=	${MACHINE_ARCH}
.elif exists(${.CURDIR}/arch/${MACHINE_CPU}) 
ARCHSUBDIR=	${MACHINE_CPU}
.else
.BEGIN:
	@@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@@false
.endif

ARCHDIR=	${.CURDIR}/arch/${ARCHSUBDIR}
AFLAGS+=	-I${ARCHDIR}
.if defined(DESTDIR)
AFLAGS+=	-nostdinc -idirafter ${DESTDIR}/usr/include
.endif
CLEANFILES+=	tags

# Don't try to lint the C library against itself when creating llib-lc.ln
LLIBS=

INCSDIR=	/usr/include

d29 1
d42 12
a57 1
.include "${.CURDIR}/compat/Makefile.inc"
a91 37
LIBKERN=	${NETBSDSRCDIR}/sys/lib/libkern

KSRCS=	bcopy.c bcmp.c bswap16.c bswap32.c bswap64.c bzero.c ffs.c \
	strcat.c strchr.c strcmp.c strcpy.c strlen.c \
	strncmp.c strncpy.c strrchr.c \
	htonl.c htons.c ntohl.c ntohs.c md5c.c \
	memchr.c memcmp.c memcpy.c memmove.c memset.c \
	index.c rindex.c
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64")
KSRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
KINCLUDES+=	quad/quad.h
.endif

copy-to-libkern:	copy-to-libkern-machind copy-to-libkern-machdep

copy-to-libkern-machind: ${KSRCS}
	cp -p ${.ALLSRC} ${LIBKERN}
.if defined(KINCLUDES) && !empty(KINCLUDES)
	(cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN})
.endif

copy-to-libkern-machdep: ${KMSRCS}
.if defined(KMSRCS) && !empty(KMSRCS)
	cp -p ${.ALLSRC} ${LIBKERN}/arch/${ARCHSUBDIR}
.endif
.if defined(KMINCLUDES) && !empty(KMINCLUDES)
	(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${ARCHSUBDIR})
.endif

rm-from-libkern:
	for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done
.if defined(KMSRCS) && !empty(KMSRCS)
	for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${ARCHSUBDIR}/$$i; done
.endif

@


1.125
log
@Use reach-over sources from common/lib/libc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.124 2005/11/29 03:11:58 christos Exp $
d94 1
@


1.124
log
@WARNS=4
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.123 2005/09/13 01:44:08 christos Exp $
d88 1
@


1.123
log
@compat core reorg.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.122 2005/05/30 16:04:18 thorpej Exp $
d24 1
@


1.122
log
@Use TOOL_GENASSYM.  Part of PR toolchain/30350
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.121 2005/05/03 04:37:33 matt Exp $
d90 1
@


1.121
log
@Make longjmp on vax not use sigreturn.  Instead it rewrites the
jmp_buf into one compatible with __longjmp14 and relies on that
to change that into a ucontext_t suitable for setcontext(2).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.120 2005/01/10 02:32:46 lukem Exp $
d79 1
a79 1
assym.h: genassym.sh ${ARCHDIR}/genassym.cf
d81 1
a81 1
	${HOST_SH} ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} \
@


1.120
log
@minor whitespace consistency
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.119 2004/09/13 21:44:54 thorpej Exp $
d81 2
a82 1
	${HOST_SH} ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
@


1.119
log
@DCE 1.1 RPC compatible UUID routines for libc, adapted from FreeBSD.
Encode/decode to big/little endian binary blob routines adapted from
kernel.

PR 23470.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.118 2004/07/31 14:13:05 lukem Exp $
d35 1
@


1.118
log
@support MAKEVERBOSE in tags:
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.117 2004/05/21 02:30:03 christos Exp $
d113 1
@


1.117
log
@Finish bind9 resolver merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.116 2004/04/18 04:26:15 lukem Exp $
d159 1
@


1.116
log
@Append to AFLAGS rather than setting AINC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.115 2004/04/07 03:49:16 ross Exp $
d26 1
a26 1
CPPFLAGS+=	-I${.CURDIR}/include
d93 2
d98 1
d104 1
@


1.115
log
@Ignore errors when making tags here with the override target. (Now matches
the default target in bsd.dep.mk, which dashes the ctags commands.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.114 2004/03/03 22:57:26 matt Exp $
d59 1
a59 1
AINC=		-I${ARCHDIR}
d61 1
a61 1
AINC+=		-nostdinc -idirafter ${DESTDIR}/usr/include
@


1.114
log
@Add support to generate an assym.h if corresponding ARCHDIR contains a
genassym.cf.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.113 2003/12/07 21:57:22 matt Exp $
d155 2
a156 2
	${TOOL_CTAGS} -w ${.ALLSRC:M*.c}
	egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
@


1.113
log
@Make building IPv6 support controllable by MKINET6
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.112 2003/07/10 10:34:22 lukem Exp $
d74 10
@


1.112
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.111 2003/06/27 05:21:52 tshiozak Exp $
d32 1
d34 1
@


1.111
log
@Citrus iconv support(4)
add iconv external I/F (iconv.h - iconv_open()/iconv()/iconv_close()) and
iconv(1) utility.
TODO:
  - bump libc minor.
  - add iconv data files.
  - create manpages: iconv_open(3)/iconv(3)/iconv_close(3)/iconv(1)/
    mkesdb(1)/mkcsmapper(1).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.110 2003/04/14 05:21:50 salo Exp $
a140 2
CTAGS?=		ctags

d143 1
a143 1
	${CTAGS} -w ${.ALLSRC:M*.c}
@


1.110
log
@Add slovak language libc message catalog.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.109 2003/04/09 20:17:06 jmmv Exp $
d74 1
d80 1
a80 1
.include "${.CURDIR}/citrus/Makefile.inc"
@


1.109
log
@Add a Catalan libc message catalog file (plus everything else needed to
track the file).  Closes my own PR lib/19498.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.108 2003/01/18 11:04:39 thorpej Exp $
d101 1
a101 1
	no.msg sv.msg pl.msg
@


1.108
log
@Merge the nathanw_sa branch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.107 2002/08/19 14:55:14 lukem Exp $
d100 2
a101 2
NLS=	C.msg Pig.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg \
	sv.msg pl.msg
@


1.107
log
@Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.106 2002/08/19 09:41:28 lukem Exp $
d93 1
@


1.106
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.105 2002/07/20 08:51:32 yamt Exp $
d20 2
a24 1
USE_SHLIBDIR=	yes
@


1.105
log
@for _I18N_DYNAMIC, use CSHLIBFLAGS instead of CPICFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.104 2002/03/22 18:10:21 thorpej Exp $
d101 1
a101 1
LIBKERN=	${.CURDIR}/../../sys/lib/libkern
@


1.104
log
@Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.103 2002/03/17 22:14:17 tshiozak Exp $
a150 1
.include <bsd.lib.mk>
d155 3
a157 1
CPICFLAGS+=	-D_I18N_DYNAMIC
@


1.103
log
@refine i18n stuffs.
  - add libc/citrus directory.
    this directory contains the common stuffs not only for locale
    but also other facilities relating to i18n (e.g. iconv).
  - To keep the binary compatibility for the ctype modules easily,
    the interface between libc and the modules is simplified.
  - For the future integrated extension, module pool is renamed
    from "/usr/lib/runemodule" to "/usr/lib/i18n".
    In the future, this directory will contain the modules for "iconv",
    "collation", etc.
  - some cosmetic changes.
  - Bug fix for runetype.h; __attribute__((__packed__)) is placed at
    the wrong position and it is invalid unintentionally.
    But, the all members of the structures seem well-aligned.  Thus,
    this bug causes no problem, hopefully.

HEADS UP:
  - /usr/lib/rumemodule is obsoleted.  If you use the multibyte locales,
    you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
  - The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
    Perhaps, the bug fix about __packed__ mentioned above breaks the
    compatibility...  Be careful especially on 64bit platforms.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.102 2002/03/05 21:25:08 thorpej Exp $
d20 2
d24 7
a30 2
CPPFLAGS+=	-D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS \
		-D_REENTRANT -I${.CURDIR}/include
d32 1
d34 3
a36 1
.include <bsd.own.mk>
d94 1
d96 1
@


1.102
log
@No need to reference .OBJDIR here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.101 2002/01/31 19:13:12 tv Exp $
d68 1
d141 1
a141 1
# workaround for lib/libc/locale: build singlebyte setlocale() for libc.a,
d144 1
a144 1
CPICFLAGS+=	-DDLRUNE
@


1.101
log
@Make it possible for ctags to be a host tool.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.100 2001/12/28 01:32:38 lukem Exp $
d50 1
a50 1
CLEANFILES+=	${.CURDIR}/tags ${.OBJDIR}/tags
d127 2
a128 2
realall: ${.OBJDIR}/tags
${.OBJDIR}/tags: ${SRCS}
d134 1
a134 1
FILES=		${.OBJDIR}/tags
@


1.100
log
@* Add user-controlled mk.conf variables
	- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.99 2001/09/02 13:13:41 zuntum Exp $
d125 2
d129 1
a129 1
	ctags -w ${.ALLSRC:M*.c}
@


1.99
log
@Add pl.msg file to nls/ directory and list it in the Makefile
 -- now libc has polish messages

set LANG to "pl" in your environment to use it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98 2001/02/06 18:47:09 christos Exp $
a19 2
.include <bsd.own.mk>

d21 1
d25 2
@


1.98
log
@I've had it. Raise the barrier on committing unlinted code. On the i386
make lint exit on warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.97 2001/01/25 09:21:57 itojun Exp $
d84 2
a85 1
NLS=	C.msg Pig.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg sv.msg
@


1.98.2.1
log
@Build thread stubs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98 2001/02/06 18:47:09 christos Exp $
a79 1
.include "${.CURDIR}/thread-stub/Makefile.inc"
@


1.98.2.2
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98.2.1 2001/08/08 16:27:06 nathanw Exp $
d85 1
a85 2
NLS=	C.msg Pig.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg \
	sv.msg pl.msg
@


1.98.2.3
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98.2.2 2001/10/08 20:16:46 nathanw Exp $
d20 2
a22 1
USE_SHLIBDIR=	yes
a25 2

.include <bsd.own.mk>
@


1.98.2.4
log
@Generate a dependancy on libsyscall.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98.2.3 2002/01/28 20:49:39 nathanw Exp $
a24 2

LDADD+=		 -lsyscall
@


1.98.2.5
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98.2.4 2002/01/29 19:50:39 nathanw Exp $
d52 1
a52 1
CLEANFILES+=	tags
d128 3
a130 5
CTAGS?=		ctags

realall: tags
tags: ${SRCS}
	${CTAGS} -w ${.ALLSRC:M*.c}
d135 1
a135 1
FILES=		tags
@


1.98.2.6
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98.2.5 2002/03/08 21:34:43 nathanw Exp $
a19 2
.include <bsd.own.mk>

d22 2
a23 7
CPPFLAGS+=	-D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
CPPFLAGS+=	-I${.CURDIR}/include

.if (${USE_HESIOD} != "no")
CPPFLAGS+=	-DHESIOD
.endif

a24 1
CPPFLAGS+=	-DNLS
d26 1
a26 3
.if (${USE_YP} != "no")
CPPFLAGS+=	-DYP
.endif
d28 1
a28 1
LDADD+=		 -lsyscall
a69 1
.include "${.CURDIR}/citrus/Makefile.inc"
a85 1
.if (${MKYP} != "no")
a86 1
.endif
d143 1
a143 1
# workaround for I18N stuffs: build singlebyte setlocale() for libc.a,
d146 1
a146 1
CPICFLAGS+=	-D_I18N_DYNAMIC
@


1.98.2.7
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD$
d154 1
d159 1
a159 3
CSHLIBFLAGS+=	-D_I18N_DYNAMIC

.include <bsd.lib.mk>
@


1.98.2.8
log
@Stop adding a dependancy on libsyscall.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.98.2.7 2002/08/01 03:27:53 nathanw Exp $
d37 2
@


1.98.2.9
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD$
a19 2
USE_SHLIBDIR=	yes

d23 1
d102 1
a102 1
LIBKERN=	${NETBSDSRCDIR}/sys/lib/libkern
@


1.97
log
@(finally!) enable multibyte LC_CTYPE locale support.

the functionality will be available for dynamic-linked binary only, due to
limitation with dlopen() from within statically-linked binaries.
(statically-linked binary can still enjoy singlebyte LC_CTYPE locale support)

from citrus project.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.96 2001/01/16 12:10:29 tron Exp $
d26 7
a32 3
# Set lint to exit on warnings and ignore 'empty translation unit' warnings.
#LINTFLAGS+=	-w
LINTFLAGS+=-X 272
@


1.96
log
@Remove duplicate "tags" target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.95 2001/01/08 08:30:00 itojun Exp $
d131 5
@


1.95
log
@use MACIHNE_CPU to determine architecture-dependent source code directory.
is use of exists(foo) safe enough?
TODO: many other places to fix
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.94 2001/01/04 06:53:45 itojun Exp $
a124 5

tags: ${.CURDIR}/tags
${.CURDIR}/tags: 
	@@rm -f ${.TARGET}
	ln -s /var/db/libc.tags ${.TARGET}
@


1.94
log
@prepare for sh3e[bl] split
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.93 2000/12/29 20:13:44 bjh21 Exp $
d30 10
a39 1
ARCHSUBDIR=	${MACHINE_ARCH:C/mipse[bl]/mips/:S/arm26/arm/:C/sh3e[bl]/sh3/}
@


1.93
log
@Create shared ARM source for libc, and move arm26 port over to using it.
The code is (almost) a direct copy of the current arm26 sources.
It's identical to the current arm32 sources, with the following exceptions:
 - _C_LABEL is used on references to C labels from assembler.
 - Function returns in assembler have APCS-26 versions in #ifdef __APCS_26__.
 - It uses SoftFloat 2a rather than SoftFloat 1a.

The first two of these should be inconsequential.  I believe that SoftFloat 2a
should work on arm32 and be backward-compatible with existing code, but this
is not obviously true.  For now, arm32 remains using its own bits of libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.92 2000/12/20 21:13:56 christos Exp $
d30 1
a30 1
ARCHSUBDIR=	${MACHINE_ARCH:C/mipse[bl]/mips/:S/arm26/arm/}
@


1.92
log
@Ignore empty translation unit errors.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.91 2000/08/13 23:26:12 christos Exp $
d30 1
a30 1
ARCHSUBDIR=	${MACHINE_ARCH:C/mipse[bl]/mips/}
@


1.91
log
@Don't enable lin's exit on warnings yet. It'll break most ports.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.90 2000/08/13 22:43:28 christos Exp $
d27 2
a28 1
#LINTFLAGS+=	-w -X 272
@


1.90
log
@add -w to ctags. got finally tired of looking at all those dup error messages
that nobody will ever fix.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.89 2000/06/02 23:11:05 fvdl Exp $
d27 1
a27 1
LINTFLAGS+=	-w -X 272
@


1.89
log
@Add new RPC code, based on Sun's TI-RPC code. Adapted to not use XTI,
but sockets instead, internally. Old, backward compatible interfaces
maintained.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.88 2000/04/02 15:35:48 minoura Exp $
d26 2
d111 1
a111 1
	ctags ${.ALLSRC:M*.c}
@


1.89.2.1
log
@Pull up revision 1.96 (requested by chris):
  Remove duplicate ``tags'' target definition.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.89 2000/06/02 23:11:05 fvdl Exp $
d113 5
@


1.88
log
@Move dl* function definitions to libc on ELF.
Based on the patch supplied by Takuya Shiozaki <tshiozak@@astec.co.jp>.
See http://mail-index.netbsd.org/tech-userlevel/2000/02/23/0000.html.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.87 2000/01/26 02:46:37 itojun Exp $
d37 2
@


1.88.2.1
log
@Citrus Project XPG4DL, an implementation of I18N (locale) framework,
is imported.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.88 2000/04/02 15:35:48 minoura Exp $
a25 3
CPPFLAGS+=	-I${.CURDIR}/locale
WITH_RUNE= yes
DLRUNE= yes
@


1.88.2.2
log
@Import of most recent XPG4DL dated 2000.06.23.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.88.2.1 2000/05/28 22:40:54 minoura Exp $
a39 2

INCSDIR=	/usr/include
@


1.87
log
@move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
  subdirs as well)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.86 2000/01/23 07:10:13 mycroft Exp $
d20 2
d45 1
@


1.86
log
@Fix the tags build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.85 1999/09/26 20:27:59 jdolecek Exp $
d23 1
@


1.85
log
@Add czech language message catalog
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.84 1999/02/27 21:21:26 tv Exp $
d101 1
a101 1
all: ${.OBJDIR}/tags
@


1.84
log
@Revert part of previous and use C/// instead of S/// for mipse[bl]->mips.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.83 1999/02/24 15:00:08 drochner Exp $
d62 1
a62 1
NLS=	C.msg Pig.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg sv.msg
@


1.84.4.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.85 1999/09/26 20:27:59 jdolecek Exp $
d62 1
a62 1
NLS=	C.msg Pig.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg sv.msg
@


1.83
log
@-this fancy S/mipse[bl]/mips/ didn't work - replace it by something simple
-generate an ARCHSUBDIR which contains the last path element
-use ${ARCHSUBDIR} instead of ${MACHINE_ARCH} where appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.82 1999/02/09 19:30:03 tv Exp $
d24 1
a24 5
.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
ARCHSUBDIR=	mips
.else
ARCHSUBDIR=	${MACHINE_ARCH}
.endif
@


1.82
log
@Remap mipse[bl] to mips when finding arch directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.81 1999/02/04 05:09:19 explorer Exp $
d24 6
a29 1
ARCHDIR=	${.CURDIR}/arch/${MACHINE_ARCH:S/mipse[bl]/mips/}
d93 1
a93 1
	cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH}
d96 1
a96 1
	(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH})
d102 1
a102 1
	for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done
@


1.81
log
@add sha1 functions, like md5/4
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.80 1999/01/15 13:31:15 bouyer Exp $
d20 6
a25 4
LIB=c
CPPFLAGS+=-D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
CPPFLAGS+=-I${.CURDIR}/include
AINC=	-I${.CURDIR}/arch/${MACHINE_ARCH}
d27 1
a27 1
AINC+=	-nostdinc -idirafter ${DESTDIR}/usr/include
d34 3
a36 3
.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
.PATH:	${.CURDIR}/arch/${MACHINE_ARCH}
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
d112 3
a114 3
FILES=${.OBJDIR}/tags
FILESNAME=libc.tags
FILESDIR=/var/db
@


1.80
log
@Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.79 1999/01/15 12:48:41 lukem Exp $
d41 1
@


1.79
log
@merge nsswitch into main branch
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.78 1998/11/28 17:01:54 eeh Exp $
d62 1
a62 1
KSRCS=	bcopy.c bcmp.c bzero.c ffs.c \
@


1.78
log
@sparc doesn't need quad support when running in 64-bit mode either.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.77 1998/10/14 19:19:32 kleink Exp $
d16 3
d21 1
a21 1
CPPFLAGS+=-D_LIBC -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
@


1.77
log
@Add _LIBC to the set of preprocessor symbols defined in the libc build
environment; used by source files shared with other parts of the userland
to determine whether certain conventions need to be obeyed or not.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.76 1998/08/04 05:55:56 perry Exp $
d42 1
a42 1
.if (${MACHINE_ARCH} != "alpha")
d65 1
a65 1
.if (${MACHINE_ARCH} != "alpha")
@


1.76
log
@add strchr.c, strrchr.c, memmove.c, memcpy.c, to KSRC for copy to libkern.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.75 1998/05/06 18:12:35 mycroft Exp $
d18 1
a18 1
CPPFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
@


1.75
log
@Enable quad support on PowerPC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.74 1998/03/27 01:29:47 cgd Exp $
d59 6
a64 3
KSRCS=	bcopy.c bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c \
	strncmp.c strncpy.c htonl.c htons.c ntohl.c ntohs.c md5c.c memcmp.c \
	memset.c memchr.c index.c rindex.c
@


1.74
log
@add bcopy.c to KSRCS, to sync with charles's libkern changes
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.73 1998/03/04 08:17:20 mikel Exp $
d42 1
a42 1
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "powerpc")
@


1.73
log
@fix typo in comment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.72 1998/01/22 00:17:11 cgd Exp $
d59 3
a61 3
KSRCS=	bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \
	strncpy.c htonl.c htons.c ntohl.c ntohs.c md5c.c memcmp.c memset.c \
	memchr.c index.c rindex.c
@


1.72
log
@copy memchr.c, index.c, and rindex.c to libkern
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.71 1997/10/22 23:14:04 lukem Exp $
d26 1
a26 1
# Don't try to lint the C libarary against itself when creating llib-lc.ln
@


1.71
log
@- use CPPFLAGS instead of CFLAGS
- use ${COMPILE.C} ... instead of ${CC} ${CFLAGS} -c ...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.70 1997/10/09 14:36:18 lukem Exp $
d60 2
a61 1
	strncpy.c htonl.c htons.c ntohl.c ntohs.c md5c.c memcmp.c memset.c
@


1.70
log
@- define WARNS?=1 in the top-level Makefile.inc, and don't define
  anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.69 1997/07/18 10:52:36 veego Exp $
d7 2
a8 2
# from CFLAGS below.  To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CFLAGS.
d12 1
a12 1
# functions, put -DNLS on the CFLAGS line below.
d15 1
a15 1
# actually call the YP functions, put -DYP on the CFLAGS line below.
d18 2
a19 1
CFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I${.CURDIR}/include
@


1.70.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.71 1997/10/22 23:14:04 lukem Exp $
d7 2
a8 2
# from CPPFLAGS below.  To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
d12 1
a12 1
# functions, put -DNLS on the CPPFLAGS line below.
d15 1
a15 1
# actually call the YP functions, put -DYP on the CPPFLAGS line below.
d18 1
a18 2
CPPFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
CPPFLAGS+=-I${.CURDIR}/include
@


1.69
log
@Build with warnings enabled on m68k systems.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.68 1997/07/18 00:28:15 thorpej Exp $
a16 4
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "i386" || \
    ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "m68k"
WARNS=1
.endif
@


1.68
log
@Build with warnings enabled on the Alpha.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.67 1997/07/13 18:36:23 christos Exp $
d18 1
a18 1
    ${MACHINE_ARCH} == "alpha"
@


1.67
log
@Add WARNS=1 for the sparc and the i386
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.66 1997/06/19 06:12:10 mikel Exp $
d17 2
a18 1
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "i386"
@


1.66
log
@add ${.OBJDIR}/tags to CLEANFILES
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.65 1997/06/04 23:11:54 christos Exp $
d17 3
@


1.65
log
@Try to fix the tags mess.
- Build in obj/tags
- Only create ${.CURDIR}/tags if 'make tags' is specify.
- ${.CURDIR}/tags is a symlink to /var/db/libc.tags
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.64 1997/05/12 16:41:03 christos Exp $
d23 1
a23 1
CLEANFILES+=${.CURDIR}/tags
@


1.64
log
@Use ${.CURDIR}/tags instead of tags. `tags' is .PHONY so it gets rebuilt
all the time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.63 1997/04/30 00:43:08 thorpej Exp $
d89 2
a90 2
all: ${.CURDIR}/tags
${.CURDIR}/tags: ${SRCS}
d96 7
a102 2
FILES=${.CURDIR}/tags
FILESNAME_tags=libc.tags
@


1.64.2.1
log
@* document and add -DHESIOD to CFLAGS
* bump minor number
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.64 1997/05/12 16:41:03 christos Exp $
a15 3
#
# The Hesiod functions are always in libc. To choose that getpwent() and friends
# actually call the Hesiod functions, put -DHESIOD on the CFLAGS line below.
d18 1
a18 1
CFLAGS+=-DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I${.CURDIR}/include
@


1.64.2.2
log
@sync to current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.77 1998/10/14 19:19:32 kleink Exp $
d7 2
a8 2
# from CPPFLAGS below.  To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
d12 1
a12 1
# functions, put -DNLS on the CPPFLAGS line below.
d15 1
a15 1
# actually call the YP functions, put -DYP on the CPPFLAGS line below.
d18 1
a18 1
# actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
d21 1
a21 2
CPPFLAGS+=-D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
CPPFLAGS+=-I${.CURDIR}/include
d26 1
a26 1
CLEANFILES+=	${.CURDIR}/tags ${.OBJDIR}/tags
d28 1
a28 1
# Don't try to lint the C library against itself when creating llib-lc.ln
d44 1
a44 1
.if (${MACHINE_ARCH} != "alpha")
d61 2
a62 6
KSRCS=	bcopy.c bcmp.c bzero.c ffs.c \
	strcat.c strchr.c strcmp.c strcpy.c strlen.c \
	strncmp.c strncpy.c strrchr.c \
	htonl.c htons.c ntohl.c ntohs.c md5c.c \
	memchr.c memcmp.c memcpy.c memmove.c memset.c \
	index.c rindex.c
d92 2
a93 2
all: ${.OBJDIR}/tags
${.OBJDIR}/tags: ${SRCS}
d99 2
a100 7
tags: ${.CURDIR}/tags
${.CURDIR}/tags: 
	@@rm -f ${.TARGET}
	ln -s /var/db/libc.tags ${.TARGET}

FILES=${.OBJDIR}/tags
FILESNAME=libc.tags
@


1.64.2.3
log
@sync with current
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.64.2.2 1998/10/31 12:47:14 lukem Exp $
d45 1
a45 1
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64")
d68 1
a68 1
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64")
@


1.63
log
@Add md5c.c to the list of files to copy-to-libkern.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.62 1997/04/28 21:36:45 ragge Exp $
d23 1
a23 1
CLEANFILES+=tags
d89 2
a90 2
all: tags
tags: ${SRCS}
d94 1
a94 1
	    >> tags; sort -o tags tags
d96 1
a96 1
FILES=tags
@


1.62
log
@Svensk meddelandekatalog, ursprungligen skriven av Martin Kullberg.
(frolix@@ludd.luth.se)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.61 1997/04/28 09:00:20 is Exp $
d59 1
a59 1
	strncpy.c htonl.c htons.c ntohl.c ntohs.c memcmp.c memset.c
@


1.61
log
@Compile the Dutch message catalog.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.60 1997/04/28 08:49:31 is Exp $
d54 1
a54 1
NLS=	C.msg Pig.msg de.msg es.msg fi.msg fr.msg nl.msg no.msg
@


1.60
log
@Added Norwegian libc error messages/signal names, donated by Stig
Venaas <venaas@@nvg.ntnu.no>.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.59 1997/04/17 18:12:47 is Exp $
d54 1
a54 1
NLS=	C.msg Pig.msg de.msg es.msg fi.msg fr.msg no.msg
@


1.59
log
@Finnish libc error message/signal name catalog, by Jukka Marin and coworker.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.58 1997/03/29 21:01:36 thorpej Exp $
d54 1
a54 1
NLS=	C.msg Pig.msg de.msg es.msg fi.msg fr.msg
@


1.58
log
@oops, add missing quotes
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.57 1997/03/29 21:00:40 thorpej Exp $
d54 1
a54 1
NLS=	C.msg Pig.msg de.msg es.msg fr.msg
@


1.57
log
@Don't need to build quad stuff on PowerPC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.56 1997/03/24 22:11:51 christos Exp $
d41 1
a41 1
.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != powerpc)
@


1.56
log
@Makefile cleanups:
use INCS variable to install includes and FILES to install objects.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.55 1997/03/10 20:51:01 hpeyerl Exp $
d41 1
a41 1
.if (${MACHINE_ARCH} != "alpha")
@


1.55
log
@Remove as per discussion with core.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.54 1997/03/10 20:17:43 perry Exp $
d96 3
a98 3
beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 tags \
		${DESTDIR}/var/db/libc.tags
@


1.54
log
@Initial cut of Canadian national language support
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.53 1997/03/10 19:07:19 hpeyerl Exp $
d54 1
a54 1
NLS=	C.msg Pig.msg ca.msg de.msg es.msg fr.msg ed.msg
@


1.53
log
@Color me bored.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 1997/01/30 01:02:17 thorpej Exp $
d54 1
a54 1
NLS=	C.msg Pig.msg de.msg es.msg fr.msg ed.msg
@


1.52
log
@Build the MD4/MD5 sources.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 1996/12/19 07:52:52 cgd Exp $
d54 1
a54 1
NLS=	C.msg Pig.msg de.msg es.msg fr.msg
@


1.51
log
@set LLIBS to nothing, so we don't try to lint the C libarary against
itself when creating llib-lc.ln.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.50 1996/11/07 19:15:22 jtc Exp $
d38 1
@


1.50
log
@Add -D_REENTRANT to CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 1996/10/18 05:45:01 thorpej Exp $
d24 3
@


1.49
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 1996/08/15 22:36:59 jtc Exp $
d18 1
a18 1
CFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/include
@


1.49.2.1
log
@initial nsswitch implementation
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 1996/10/18 05:45:01 thorpej Exp $
a15 3
#
# The Hesiod functions are always in libc. To choose that getpwent() and friends
# actually call the Hesiod functions, put -DHESIOD on the CFLAGS line below.
d18 1
a18 1
CFLAGS+=-DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/include
@


1.48
log
@Add memcmp.c and memset.c to KSRCS (files copied to libkern).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 1995/11/23 02:20:59 jtc Exp $
d93 1
a93 1
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 tags \
@


1.48.2.1
log
@snapshot namespace cleanup
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 1996/08/15 22:36:59 jtc Exp $
d85 1
a85 1
all: 
d92 3
a94 3
#beforeinstall:
#	install -c -o ${BINOWN} -g ${BINGRP} -m 444 tags \
#		${DESTDIR}/var/db/libc.tags
@


1.47
log
@Added spanish language message catalog from Jesus M. Gonzalez <jgb@@ordago.uc3m.es>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 1995/10/09 03:58:02 jtc Exp $
d55 1
a55 1
	strncpy.c htonl.c htons.c ntohl.c ntohs.c
@


1.46
log
@Add French libc message catalog by Matthieu Herrb <matthieu@@abel.laas.fr>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 1995/10/04 22:06:11 thorpej Exp $
d50 1
a50 1
NLS=	C.msg Pig.msg de.msg fr.msg
@


1.45
log
@We don't have a libc/search.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 1995/10/02 20:54:45 jtc Exp $
d50 1
a50 1
NLS=	C.msg Pig.msg de.msg
@


1.44
log
@Add german libc message catalog
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 1995/06/26 22:15:56 jtc Exp $
a41 1
.include "${.CURDIR}/search/Makefile.inc"
@


1.43
log
@Use "${BINOWN}" and "${BINGRP}" instead of "bin".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 1995/06/07 04:37:54 cgd Exp $
d42 1
d51 1
a51 1
NLS=	C.msg Pig.msg
@


1.42
log
@build tags at library build time, not at install time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 1995/05/02 19:57:15 jtc Exp $
d93 2
a94 1
	install -c -o bin -g bin -m 444 tags ${DESTDIR}/var/db/libc.tags
@


1.41
log
@Enable C and Pig Latin message catalogs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 1995/04/25 00:00:58 jtc Exp $
d85 1
a85 3
beforeinstall: tags
	install -c -o bin -g bin -m 444 tags ${DESTDIR}/var/db/libc.tags

d91 3
@


1.40
log
@Handle new termios subdirectory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 1995/04/12 00:56:12 jtc Exp $
d49 2
@


1.39
log
@Use ${DESTDIR} when installing libc.tags
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 1995/03/13 05:26:07 jtc Exp $
d45 1
@


1.38
log
@.include ${.CURDIR}/time/Makefile.inc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 1995/03/05 07:12:54 jtc Exp $
d83 1
a83 1
	install -c -o bin -g bin -m 444 tags /var/db/libc.tags
@


1.37
log
@Removed -o from and added /dev/null to egrep command line.  It does the
exactly the same thing, but doesn't need 4.4's or our hacked version of
GNU grep.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 1995/02/25 03:31:42 cgd Exp $
d45 1
@


1.36
log
@upgrade to 4.4-Lite Makefile, keeping local changes.  NOW BUILDS TAGS ON INST
@
text
@d1 1
a1 1
#	$NetBSD$
d86 1
a86 1
	egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.S} | \
@


1.35
log
@make copy-to-libkern work properly on the alpha. (deal with no quad support.)
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	5.2 (Berkeley) 3/5/91
#	$Id: Makefile,v 1.6 1995/02/13 21:53:00 cgd Exp $
d23 1
d80 9
@


1.34
log
@alphas don't need libc quad support.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.33 1995/02/01 09:09:01 jtc Exp $
d51 1
a54 1

d56 1
d62 1
d64 1
@


1.33
log
@Added -I${.CURDIR}/include to CFLAGS, for upcoming library-private
header files (namespace.h, etc.).
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.32 1995/01/30 12:21:41 cgd Exp $
d36 1
d38 1
@


1.32
log
@kill the damned tab.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.31 1995/01/06 00:09:19 cgd Exp $
d18 1
a18 1
CFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS
@


1.31
log
@don't forget to copy ntohs to libkern
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.30 1994/10/19 03:05:22 cgd Exp $
d74 1
a74 1
	
@


1.31.2.1
log
@sync with main branch
@
text
@d1 2
a2 2
#	$NetBSD: Makefile,v 1.38 1995/03/13 05:26:07 jtc Exp $
#	@@(#)Makefile	8.2 (Berkeley) 2/3/94
d18 1
a18 1
CFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/include
a22 1
CLEANFILES+=tags
a35 1
.if (${MACHINE_ARCH} != "alpha")
a36 1
.endif
a41 1
.include "${.CURDIR}/time/Makefile.inc"
a48 1
.if (${MACHINE_ARCH} != "alpha")
d52 1
a53 1
.endif
a58 1
.if defined(KINCLUDES) && !empty(KINCLUDES)
a59 1
.endif
d74 1
a74 10

beforeinstall: tags
	install -c -o bin -g bin -m 444 tags /var/db/libc.tags

tags: ${SRCS}
	ctags ${.ALLSRC:M*.c}
	egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
	    >> tags; sort -o tags tags

@


1.31.2.2
log
@#include "namespace.h"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31.2.1 1995/03/13 20:49:46 jtc Exp $
a90 3
NOMAN=
NOPROFILE=
NOPIC=
@


1.30
log
@relative path to libkerm
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.29 1994/10/06 05:47:57 jtc Exp $
d48 1
a48 1
	strncpy.c htonl.c htons.c ntohl.c ntohl.c
@


1.29
log
@It looks like most people were in favor of enabling NLS in the C library.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.28 1994/09/03 04:53:16 jtc Exp $
d45 1
a45 1
LIBKERN=	/sys/lib/libkern
@


1.28
log
@Document the fact that NLS (message catalog) support is enabled by adding
-DNLS to CFLAGS.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.27 1994/07/06 04:06:43 mycroft Exp $
d18 1
a18 1
CFLAGS+=-DYP -DLIBC_SCCS -DSYSLIBC_SCCS
@


1.27
log
@Do something more intelligent when compiling into ${DESTDIR}.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.26 1994/06/30 06:44:54 deraadt Exp $
d9 4
@


1.26
log
@libkern files are in arch/ now
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.25 1994/05/29 22:09:13 jtc Exp $
d16 3
@


1.25
log
@Add message catalog functions.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.24 1994/05/14 06:25:56 cgd Exp $
d56 1
a56 1
	cp -p ${.ALLSRC} ${LIBKERN}/${MACHINE_ARCH}
d59 1
a59 1
	(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/${MACHINE_ARCH})
d65 1
a65 1
	for i in ${KMSRCS}; do rm -f ${LIBKERN}/${MACHINE_ARCH}/$$i; done
@


1.24
log
@add new gmon stuff, rearrange inclusions
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.23 1994/01/27 19:21:55 pk Exp $
d28 1
@


1.23
log
@Remove dlopen() et. al., they don't work from libc.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.22 1993/12/04 05:15:26 cgd Exp $
d25 1
d28 3
a35 3
.include "${.CURDIR}/rpc/Makefile.inc"
.include "${.CURDIR}/quad/Makefile.inc"
.include "${.CURDIR}/regex/Makefile.inc"
@


1.22
log
@copy quad.h, too...
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.21 1993/12/04 02:31:56 cgd Exp $
a33 1
.include "${.CURDIR}/dl/Makefile.inc"
@


1.21
log
@update for .S and MACHINE_ARCH
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.20 1993/11/14 16:48:54 pk Exp $
d41 5
d51 1
@


1.20
log
@Removed `INSTALL_PIC_ARCHIVE' as installing these is going to be the default.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.19 1993/11/11 01:18:03 jtc Exp $
d15 1
a15 1
AINC=	-I${.CURDIR}/arch/${MACHINE}
d17 3
a19 3
.if exists (${.CURDIR}/arch/${MACHINE}/Makefile.inc)
.PATH:	${.CURDIR}/arch/${MACHINE}
.include "${.CURDIR}/arch/${MACHINE}/Makefile.inc"
d49 1
a49 1
	cp -p ${.ALLSRC} ${LIBKERN}/${MACHINE}
d52 1
a52 1
	(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/${MACHINE})
d58 1
a58 1
	for i in ${KMSRCS}; do rm -f ${LIBKERN}/${MACHINE}/$$i; done
@


1.19
log
@Enable Henry Spencer's POSIX.2 compatible regular expression routines.
Disable is earlier V8-style routines.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.18 1993/11/05 22:43:47 cgd Exp $
a13 1
INSTALL_PIC_ARCHIVE= yes
@


1.18
log
@add strncmp to the list of things that gets copied to libkern.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.17 1993/10/17 01:10:37 pk Exp $
d36 1
@


1.17
log
@Let libc_pic.a be installed.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.16 1993/10/17 00:46:25 pk Exp $
d39 2
a40 2
KSRCS=	bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncpy.c \
	htonl.c htons.c ntohl.c ntohl.c
d50 3
@


1.16
log
@Added subdir `dl'.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.15 1993/10/15 01:23:49 jtc Exp $
d14 1
@


1.15
log
@Copy machine dependant files (KMSRCS) to libkern.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.14 1993/10/15 01:06:47 jtc Exp $
d34 1
@


1.14
log
@Added copy-to-libkern and rm-from-libkern targets.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.13 1993/10/07 00:17:24 cgd Exp $
d40 3
a42 1
copy-to-libkern:	${KSRCS}
d45 5
d52 3
@


1.13
log
@make an arch directory in libc, and move all machine dirs into it
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.12 1993/09/28 03:05:28 mycroft Exp $
d35 11
@


1.12
log
@Reenable building of Torek's quad library.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.11 1993/09/18 01:03:58 cgd Exp $
d15 1
a15 1
AINC=	-I${.CURDIR}/${MACHINE}
d17 3
a19 3
.if exists (${.CURDIR}/${MACHINE}/Makefile.inc)
.PATH:	${.CURDIR}/${MACHINE}
.include "${.CURDIR}/${MACHINE}/Makefile.inc"
@


1.11
log
@ifdef notdef the inclusion of the quad support, since it doesn't compile
and charles didn't properly commit it to a branch.  LIBC SHOULD COMPILE
AT ALL TIMES!
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.10 1993/09/16 06:06:41 mycroft Exp $
a32 1
.ifdef notdef
a33 1
.endif
@


1.10
log
@Compile quad stuff.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.9 1993/09/05 22:12:35 deraadt Exp $
d33 1
d35 1
@


1.9
log
@include ${MACHINE}/Makefile.inc if it exists
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.8 1993/08/01 05:40:29 mycroft Exp $
d33 1
@


1.8
log
@Add RCS identifiers.
@
text
@d2 1
a2 1
#	$Id: $
d14 1
a14 1
CFLAGS+=-DYP -DLIBC_SCCS -DSYSLIBC_SCCS 
d16 5
@


1.7
log
@update db code to v1.6 from vangogh, and put it in "db" rather than "DB"
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.2 (Berkeley) 3/5/91
@


1.6
log
@changed the documentation on what -DYP really means.
@
text
@d16 1
a16 1
.include "${.CURDIR}/DB/Makefile.inc"
@


1.5
log
@always compile in YP.  theo hasn't given me a reason we can't do this, so...
@
text
@d9 2
a10 1
# To produce a library that does YP, add -DYP to CFLAGS below.
@


1.4
log
@Add instructions for compiling YP to the Makefile
@
text
@d12 1
a12 1
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS 
@


1.3
log
@New db stuff is in DB now. Makefile reflects change.
@
text
@d8 3
d24 2
@


1.2
log
@Removed references to db in the Makefile.
@
text
@d9 1
a9 1
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS
d12 1
@


1.1
log
@Initial revision
@
text
@a12 1
.include "${.CURDIR}/db/Makefile.inc"
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@


1.1.1.2
log
@lite libc makefile
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.2 (Berkeley) 2/3/94
a10 1
CLEANFILES+=tags
d12 1
a13 1
.include "${.CURDIR}/compat-43/Makefile.inc"
a14 1
.include "${.CURDIR}/gmon/Makefile.inc"
a16 2
.include "${.CURDIR}/quad/Makefile.inc"
.include "${.CURDIR}/regex/Makefile.inc"
a20 25

KQSRCS=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
	subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
KSRCS=	bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
	strlen.c strncpy.c

libkern: libkern.gen libkern.${MACHINE}

libkern.gen: ${KQSRCS} ${KSRCS}
	cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern

libkern.${MACHINE}:: ${KMSRCS}
.if defined(KMSRCS) && !empty(KMSRCS)
	cp -p ${.ALLSRC} /sys/libkern/${MACHINE}
.endif

beforeinstall: tags
	install -c -o bin -g bin -m 444 tags /var/db/libc.tags

tags: ${SRCS}
	ctags ${.ALLSRC:M*.c}
	egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
	    >> tags; sort -o tags tags
@
