head	1.26;
access;
symbols
	netbsd-11-0-RC4:1.26
	netbsd-11-0-RC3:1.26
	netbsd-11-0-RC2:1.26
	netbsd-11-0-RC1:1.26
	perseant-exfatfs-base-20250801:1.26
	netbsd-11:1.26.0.14
	netbsd-11-base:1.26
	netbsd-10-1-RELEASE:1.26
	perseant-exfatfs-base-20240630:1.26
	perseant-exfatfs:1.26.0.12
	perseant-exfatfs-base:1.26
	netbsd-8-3-RELEASE:1.24.18.1
	netbsd-9-4-RELEASE:1.26
	netbsd-10-0-RELEASE:1.26
	netbsd-10-0-RC6:1.26
	netbsd-10-0-RC5:1.26
	netbsd-10-0-RC4:1.26
	netbsd-10-0-RC3:1.26
	netbsd-10-0-RC2:1.26
	netbsd-10-0-RC1:1.26
	netbsd-10:1.26.0.10
	netbsd-10-base:1.26
	netbsd-9-3-RELEASE:1.26
	cjep_sun2x-base1:1.26
	cjep_sun2x:1.26.0.8
	cjep_sun2x-base:1.26
	cjep_staticlib_x-base1:1.26
	netbsd-9-2-RELEASE:1.26
	cjep_staticlib_x:1.26.0.6
	cjep_staticlib_x-base:1.26
	netbsd-9-1-RELEASE:1.26
	phil-wifi-20200421:1.26
	phil-wifi-20200411:1.26
	is-mlppp:1.26.0.4
	is-mlppp-base:1.26
	phil-wifi-20200406:1.26
	netbsd-8-2-RELEASE:1.24.18.1
	netbsd-9-0-RELEASE:1.26
	netbsd-9-0-RC2:1.26
	netbsd-9-0-RC1:1.26
	phil-wifi-20191119:1.26
	netbsd-9:1.26.0.2
	netbsd-9-base:1.26
	phil-wifi-20190609:1.26
	netbsd-8-1-RELEASE:1.24.18.1
	netbsd-8-1-RC1:1.24.18.1
	pgoyette-compat-merge-20190127:1.25
	pgoyette-compat-20190127:1.25
	pgoyette-compat-20190118:1.25
	pgoyette-compat-1226:1.25
	pgoyette-compat-1126:1.25
	pgoyette-compat-1020:1.25
	pgoyette-compat-0930:1.25
	pgoyette-compat-0906:1.25
	netbsd-7-2-RELEASE:1.24.4.1
	pgoyette-compat-0728:1.25
	netbsd-8-0-RELEASE:1.24.18.1
	phil-wifi:1.25.0.6
	phil-wifi-base:1.25
	pgoyette-compat-0625:1.25
	netbsd-8-0-RC2:1.24.18.1
	pgoyette-compat-0521:1.25
	pgoyette-compat-0502:1.25
	pgoyette-compat-0422:1.25
	netbsd-8-0-RC1:1.24.18.1
	pgoyette-compat-0415:1.25
	pgoyette-compat-0407:1.25
	pgoyette-compat-0330:1.25
	pgoyette-compat-0322:1.25
	pgoyette-compat-0315:1.25
	netbsd-7-1-2-RELEASE:1.24
	pgoyette-compat:1.25.0.4
	pgoyette-compat-base:1.25
	netbsd-7-1-1-RELEASE:1.24
	matt-nb8-mediatek:1.24.18.1.0.2
	matt-nb8-mediatek-base:1.24.18.1
	perseant-stdc-iso10646:1.25.0.2
	perseant-stdc-iso10646-base:1.25
	netbsd-8:1.24.0.18
	netbsd-8-base:1.24
	prg-localcount2-base3:1.24
	prg-localcount2-base2:1.24
	prg-localcount2-base1:1.24
	prg-localcount2:1.24.0.16
	prg-localcount2-base:1.24
	pgoyette-localcount-20170426:1.24
	bouyer-socketcan-base1:1.24
	pgoyette-localcount-20170320:1.24
	netbsd-7-1:1.24.0.14
	netbsd-7-1-RELEASE:1.24
	netbsd-7-1-RC2:1.24
	netbsd-7-nhusb-base-20170116:1.24
	bouyer-socketcan:1.24.0.12
	bouyer-socketcan-base:1.24
	pgoyette-localcount-20170107:1.24
	netbsd-7-1-RC1:1.24
	pgoyette-localcount-20161104:1.24
	netbsd-7-0-2-RELEASE:1.24
	localcount-20160914:1.24
	netbsd-7-nhusb:1.24.0.10
	netbsd-7-nhusb-base:1.24
	pgoyette-localcount-20160806:1.24
	pgoyette-localcount-20160726:1.24
	pgoyette-localcount:1.24.0.8
	pgoyette-localcount-base:1.24
	netbsd-7-0-1-RELEASE:1.24
	netbsd-7-0:1.24.0.6
	netbsd-7-0-RELEASE:1.24
	netbsd-7-0-RC3:1.24
	netbsd-7-0-RC2:1.24
	netbsd-7-0-RC1:1.24
	netbsd-5-2-3-RELEASE:1.21.14.1
	netbsd-5-1-5-RELEASE:1.21.14.1
	netbsd-6-0-6-RELEASE:1.22
	netbsd-6-1-5-RELEASE:1.22
	netbsd-7:1.24.0.4
	netbsd-7-base:1.24
	yamt-pagecache-base9:1.24
	yamt-pagecache-tag8:1.22.8.1
	netbsd-6-1-4-RELEASE:1.22
	netbsd-6-0-5-RELEASE:1.22
	tls-earlyentropy:1.24.0.2
	tls-earlyentropy-base:1.24
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.24
	riastradh-drm2-base3:1.24
	netbsd-6-1-3-RELEASE:1.22
	netbsd-6-0-4-RELEASE:1.22
	netbsd-5-2-2-RELEASE:1.21.14.1
	netbsd-5-1-4-RELEASE:1.21.14.1
	netbsd-6-1-2-RELEASE:1.22
	netbsd-6-0-3-RELEASE:1.22
	netbsd-5-2-1-RELEASE:1.21.14.1
	netbsd-5-1-3-RELEASE:1.21.14.1
	netbsd-6-1-1-RELEASE:1.22
	riastradh-drm2-base2:1.23
	riastradh-drm2-base1:1.23
	riastradh-drm2:1.23.0.2
	riastradh-drm2-base:1.23
	netbsd-6-1:1.22.0.18
	netbsd-6-0-2-RELEASE:1.22
	netbsd-6-1-RELEASE:1.22
	khorben-n900:1.23.0.6
	netbsd-6-1-RC4:1.22
	netbsd-6-1-RC3:1.22
	agc-symver:1.23.0.4
	agc-symver-base:1.23
	netbsd-6-1-RC2:1.22
	netbsd-6-1-RC1:1.22
	yamt-pagecache-base8:1.23
	netbsd-5-2:1.21.14.1.0.10
	netbsd-6-0-1-RELEASE:1.22
	yamt-pagecache-base7:1.23
	netbsd-5-2-RELEASE:1.21.14.1
	netbsd-5-2-RC1:1.21.14.1
	matt-nb6-plus-nbase:1.22
	yamt-pagecache-base6:1.23
	netbsd-6-0:1.22.0.16
	netbsd-6-0-RELEASE:1.22
	netbsd-6-0-RC2:1.22
	tls-maxphys:1.22.0.14
	tls-maxphys-base:1.24
	matt-nb6-plus:1.22.0.12
	matt-nb6-plus-base:1.22
	netbsd-6-0-RC1:1.22
	yamt-pagecache-base5:1.22
	yamt-pagecache-base4:1.22
	netbsd-6:1.22.0.10
	netbsd-6-base:1.22
	netbsd-5-1-2-RELEASE:1.21.14.1
	netbsd-5-1-1-RELEASE:1.21.14.1
	yamt-pagecache-base3:1.22
	yamt-pagecache-base2:1.22
	yamt-pagecache:1.22.0.8
	yamt-pagecache-base:1.22
	cherry-xenmp:1.22.0.6
	cherry-xenmp-base:1.22
	bouyer-quota2-nbase:1.22
	bouyer-quota2:1.22.0.4
	bouyer-quota2-base:1.22
	matt-mips64-premerge-20101231:1.22
	matt-nb5-mips64-premerge-20101231:1.21.14.1
	matt-nb5-pq3:1.21.14.1.0.8
	matt-nb5-pq3-base:1.21.14.1
	netbsd-5-1:1.21.14.1.0.6
	netbsd-5-1-RELEASE:1.21.14.1
	netbsd-5-1-RC4:1.21.14.1
	matt-nb5-mips64-k15:1.21.14.1
	netbsd-5-1-RC3:1.21.14.1
	netbsd-5-1-RC2:1.21.14.1
	netbsd-5-1-RC1:1.21.14.1
	netbsd-5-0-2-RELEASE:1.21.14.1
	matt-nb5-mips64-premerge-20091211:1.21.14.1
	matt-premerge-20091211:1.22
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.21.14.1
	matt-nb4-mips64-k7-u2a-k9b:1.21.14.1
	matt-nb5-mips64-u1-k1-k5:1.21.14.1
	matt-nb5-mips64:1.21.14.1.0.4
	netbsd-5-0-1-RELEASE:1.21.14.1
	jym-xensuspend-nbase:1.22
	netbsd-5-0:1.21.14.1.0.2
	netbsd-5-0-RELEASE:1.21.14.1
	netbsd-5-0-RC4:1.21.14.1
	netbsd-5-0-RC3:1.21.14.1
	netbsd-5-0-RC2:1.21.14.1
	jym-xensuspend:1.22.0.2
	jym-xensuspend-base:1.22
	netbsd-5-0-RC1:1.21.14.1
	netbsd-5:1.21.0.14
	netbsd-5-base:1.21
	matt-mips64-base2:1.21
	matt-mips64:1.20.0.6
	netbsd-4-0-1-RELEASE:1.18.4.1
	wrstuden-revivesa-base-3:1.21
	wrstuden-revivesa-base-2:1.21
	wrstuden-fixsa-newbase:1.18.4.1
	wrstuden-revivesa-base-1:1.21
	yamt-pf42-base4:1.21
	yamt-pf42-base3:1.21
	hpcarm-cleanup-nbase:1.21
	yamt-pf42-baseX:1.21
	yamt-pf42-base2:1.21
	wrstuden-revivesa:1.21.0.12
	wrstuden-revivesa-base:1.21
	yamt-pf42:1.21.0.10
	yamt-pf42-base:1.21
	mjf-devfs2:1.21.0.8
	mjf-devfs2-base:1.21
	keiichi-mipv6:1.21.0.6
	keiichi-mipv6-base:1.21
	mjf-devfs:1.21.0.4
	mjf-devfs-base:1.21
	matt-armv6-nbase:1.21
	matt-armv6-prevmlocking:1.20
	wrstuden-fixsa-base-1:1.18.4.1
	netbsd-4-0:1.18.4.1.0.4
	netbsd-4-0-RELEASE:1.18.4.1
	cube-autoconf:1.21.0.2
	cube-autoconf-base:1.21
	netbsd-4-0-RC5:1.18.4.1
	netbsd-4-0-RC4:1.18.4.1
	netbsd-4-0-RC3:1.18.4.1
	netbsd-4-0-RC2:1.18.4.1
	netbsd-4-0-RC1:1.18.4.1
	matt-armv6:1.20.0.4
	matt-armv6-base:1.21
	matt-mips64-base:1.20
	hpcarm-cleanup:1.20.0.2
	hpcarm-cleanup-base:1.21
	netbsd-3-1-1-RELEASE:1.17
	netbsd-3-0-3-RELEASE:1.17
	wrstuden-fixsa:1.18.4.1.0.2
	wrstuden-fixsa-base:1.18.4.1
	abandoned-netbsd-4-base:1.18
	abandoned-netbsd-4:1.18.0.2
	netbsd-3-1:1.17.0.6
	netbsd-3-1-RELEASE:1.17
	netbsd-3-0-2-RELEASE:1.17
	netbsd-3-1-RC4:1.17
	netbsd-3-1-RC3:1.17
	netbsd-3-1-RC2:1.17
	netbsd-3-1-RC1:1.17
	netbsd-4:1.18.0.4
	netbsd-4-base:1.18
	netbsd-3-0-1-RELEASE:1.17
	netbsd-3-0:1.17.0.4
	netbsd-3-0-RELEASE:1.17
	netbsd-3-0-RC6:1.17
	netbsd-3-0-RC5:1.17
	netbsd-3-0-RC4:1.17
	netbsd-3-0-RC3:1.17
	netbsd-3-0-RC2:1.17
	netbsd-3-0-RC1:1.17
	netbsd-2-0-3-RELEASE:1.15
	netbsd-2-1:1.15.0.8
	netbsd-2-1-RELEASE:1.15
	netbsd-2-1-RC6:1.15
	netbsd-2-1-RC5:1.15
	netbsd-2-1-RC4:1.15
	netbsd-2-1-RC3:1.15
	netbsd-2-1-RC2:1.15
	netbsd-2-1-RC1:1.15
	netbsd-2-0-2-RELEASE:1.15
	netbsd-3:1.17.0.2
	netbsd-3-base:1.17
	netbsd-2-0-1-RELEASE:1.15
	netbsd-2:1.15.0.6
	netbsd-2-base:1.15
	netbsd-2-0-RELEASE:1.15
	netbsd-2-0-RC5:1.15
	netbsd-2-0-RC4:1.15
	netbsd-2-0-RC3:1.15
	netbsd-2-0-RC2:1.15
	netbsd-2-0-RC1:1.15
	netbsd-2-0:1.15.0.4
	netbsd-2-0-base:1.15
	netbsd-1-6-PATCH002-RELEASE:1.15
	netbsd-1-6-PATCH002:1.15
	netbsd-1-6-PATCH002-RC4:1.15
	netbsd-1-6-PATCH002-RC3:1.15
	netbsd-1-6-PATCH002-RC2:1.15
	netbsd-1-6-PATCH002-RC1:1.15
	netbsd-1-6-PATCH001:1.15
	netbsd-1-6-PATCH001-RELEASE:1.15
	netbsd-1-6-PATCH001-RC3:1.15
	netbsd-1-6-PATCH001-RC2:1.15
	netbsd-1-6-PATCH001-RC1:1.15
	fvdl_fs64_base:1.15
	netbsd-1-6-RELEASE:1.15
	netbsd-1-6-RC3:1.15
	netbsd-1-6-RC2:1.15
	netbsd-1-6-RC1:1.15
	netbsd-1-6:1.15.0.2
	netbsd-1-6-base:1.15
	netbsd-1-5-PATCH003:1.10.4.1
	netbsd-1-5-PATCH002:1.10.4.1
	netbsd-1-5-PATCH001:1.10
	netbsd-1-5-RELEASE:1.10
	netbsd-1-5-BETA2:1.10
	netbsd-1-5-BETA:1.10
	netbsd-1-4-PATCH003:1.6.2.2
	netbsd-1-5-ALPHA2:1.10
	netbsd-1-5:1.10.0.4
	netbsd-1-5-base:1.10
	minoura-xpg4dl:1.10.0.2
	minoura-xpg4dl-base:1.10
	netbsd-1-4-PATCH002:1.6.2.2
	wrstuden-devbsize-19991221:1.9
	wrstuden-devbsize:1.8.0.2
	wrstuden-devbsize-base:1.9
	comdex-fall-1999:1.9.0.2
	comdex-fall-1999-base:1.9
	netbsd-1-4-PATCH001:1.6.2.2
	netbsd-1-4-RELEASE:1.6
	netbsd-1-4:1.6.0.2
	netbsd-1-4-base:1.6
	netbsd-1-3-PATCH003:1.3.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.3.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.3.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.3.2.1
	netbsd-1-3-PATCH002:1.3.2.1
	netbsd-1-3-PATCH001:1.3.2.1
	netbsd-1-3-RELEASE:1.3.2.1
	netbsd-1-3-BETA:1.3
	netbsd-1-3:1.3.0.2
	netbsd-1-3-base:1.3
	netbsd-1-2-PATCH001:1.2.6.1
	netbsd-1-2-RELEASE:1.2
	netbsd-1-2-BETA:1.2
	netbsd-1-2-base:1.2
	netbsd-1-2:1.2.0.6
	netbsd-1-1-PATCH001:1.2
	netbsd-1-1-RELEASE:1.2
	netbsd-1-1:1.2.0.4
	netbsd-1-1-base:1.1.1.1
	GWR:1.1.1;
locks; strict;
comment	@# @;


1.26
date	2019.03.28.15.04.41;	author christos;	state Exp;
branches;
next	1.25;
commitid	2rqGPn1ZqZRUX8hB;

1.25
date	2017.06.18.03.56.39;	author manu;	state Exp;
branches
	1.25.6.1;
next	1.24;
commitid	uN5YTs64UYzB5OVz;

1.24
date	2013.08.27.09.53.33;	author christos;	state Exp;
branches
	1.24.4.1
	1.24.18.1;
next	1.23;
commitid	UEDlFtFwHRnwM43x;

1.23
date	2012.10.11.17.11.16;	author christos;	state Exp;
branches;
next	1.22;

1.22
date	2009.01.02.00.20.18;	author tnozaki;	state Exp;
branches
	1.22.8.1
	1.22.14.1;
next	1.21;

1.21
date	2007.11.06.19.27.07;	author martin;	state Exp;
branches
	1.21.8.1
	1.21.14.1;
next	1.20;

1.20
date	2007.04.02.15.53.25;	author christos;	state Exp;
branches
	1.20.4.1;
next	1.19;

1.19
date	2007.02.03.19.55.51;	author christos;	state Exp;
branches;
next	1.18;

1.18
date	2005.05.15.10.15.47;	author dsl;	state Exp;
branches
	1.18.4.1;
next	1.17;

1.17
date	2004.06.06.07.03.53;	author christos;	state Exp;
branches;
next	1.16;

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

1.15
date	2002.03.25.07.43.49;	author lukem;	state Exp;
branches;
next	1.14;

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

1.13
date	2001.12.12.00.05.10;	author tv;	state Exp;
branches;
next	1.12;

1.12
date	2001.10.05.01.17.28;	author jmc;	state Exp;
branches;
next	1.11;

1.11
date	2001.08.20.12.19.43;	author martin;	state Exp;
branches;
next	1.10;

1.10
date	2000.05.18.00.43.06;	author matt;	state Exp;
branches
	1.10.4.1;
next	1.9;

1.9
date	99.09.26.04.49.37;	author dan;	state Exp;
branches;
next	1.8;

1.8
date	99.06.27.12.56.01;	author mrg;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	99.05.19.03.58.13;	author gwr;	state Exp;
branches;
next	1.6;

1.6
date	99.03.13.19.08.43;	author sommerfe;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	99.02.13.02.54.18;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	97.12.12.03.36.38;	author gwr;	state Exp;
branches;
next	1.3;

1.3
date	96.10.09.00.13.36;	author jtc;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	95.10.13.18.10.19;	author gwr;	state Exp;
branches
	1.2.4.1
	1.2.6.1;
next	1.1;

1.1
date	95.10.08.23.08.48;	author gwr;	state Exp;
branches
	1.1.1.1;
next	;

1.25.6.1
date	2019.06.10.21.42.37;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.24.4.1
date	2017.07.23.06.08.16;	author snj;	state Exp;
branches;
next	;
commitid	V5GhJTKlyf7BHj0A;

1.24.18.1
date	2017.07.04.12.57.45;	author martin;	state Exp;
branches;
next	;
commitid	DpVPorwt1zo0AUXz;

1.22.8.1
date	2012.10.30.18.48.51;	author yamt;	state Exp;
branches;
next	1.22.8.2;

1.22.8.2
date	2014.05.22.12.01.35;	author yamt;	state Exp;
branches;
next	;
commitid	yqlfOuaAhYmASwBx;

1.22.14.1
date	2012.11.20.02.57.53;	author tls;	state Exp;
branches;
next	1.22.14.2;

1.22.14.2
date	2014.08.19.23.45.45;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.21.8.1
date	2008.10.05.20.11.08;	author mjf;	state dead;
branches;
next	;

1.21.14.1
date	2009.01.15.03.24.06;	author snj;	state Exp;
branches;
next	;

1.20.4.1
date	2008.01.09.01.28.26;	author matt;	state Exp;
branches;
next	;

1.18.4.1
date	2007.05.08.19.40.58;	author pavel;	state Exp;
branches;
next	;

1.10.4.1
date	2001.07.29.20.32.29;	author he;	state Exp;
branches;
next	;

1.8.2.1
date	99.12.27.18.28.42;	author wrstuden;	state Exp;
branches;
next	;

1.6.2.1
date	99.06.21.03.25.36;	author perry;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	99.07.01.19.38.19;	author perry;	state Exp;
branches;
next	;

1.3.2.1
date	97.12.13.00.06.38;	author gwr;	state Exp;
branches;
next	;

1.2.4.1
date	95.10.13.18.10.19;	author gwr;	state dead;
branches;
next	1.2.4.2;

1.2.4.2
date	95.10.13.18.10.20;	author gwr;	state Exp;
branches;
next	;

1.2.6.1
date	96.09.13.20.01.56;	author gwr;	state Exp;
branches;
next	;

1.1.1.1
date	95.10.08.23.08.48;	author gwr;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	95.10.11.23.51.48;	author gwr;	state Exp;
branches;
next	;


desc
@@


1.26
log
@Dedup and add the small jemalloc implementation so our install media has
a chance to fit again.
@
text
@# $NetBSD: Makefile,v 1.25 2017/06/18 03:56:39 manu Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
# (See Makefile.inc also.)

LIB=	hack
WARNS=		1
NOLINKLIB=	# defined
NOLINT= 	# defined
NOPIC=		# defined
NOPROFILE=	# defined

HACKSRC?=${.CURDIR}
HACKOBJ?=${.OBJDIR}

.include "Makefile.inc"

OBJS=		${HACKOBJS}

realall: libhack.o

libhack.o: libhack.a
	${LD} -r -o $@@ --whole-archive libhack.a

CLEANFILES+=	libhack.o

tpwent: getpwent.c
	${CC} -g -o $@@.o -DTEST_MAIN -c getpwent.c
	${CC} -o $@@ $@@.o

.include <bsd.lib.mk>
@


1.25
log
@Make shared -DSMALL libc buildable without breaking libhack

We used -DSMALL to exclude code from libc in order to build
libhack. Introduce -DLIBHACK to do this without so that
-DSMALL does not remove code necessary for building a shared libc
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2013/08/27 09:53:33 christos Exp $
d7 6
a12 1
.PATH.c: ${.CURDIR}/../../../lib/libc/gen ${.CURDIR}/../../../lib/libc/locale
d17 1
a17 11
CPPFLAGS+=	-DSMALL
CPPFLAGS+=	-DLIBHACK
CPPFLAGS.runetable.c+=	-I${HACKSRC}/../../../lib/libc/citrus \
			-DALL_80_TO_FF_SW1
CPPFLAGS.syslog.c+=	-I${HACKSRC}/../../../lib/libc/include
CPPFLAGS.gethost.c+=	-I${HACKSRC}/../../../lib/libc/net

LIB=		hack
SRCS=		getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \
		localeconv.c multibyte.c perror.c runetable.c setlocale.c \
		strerror.c strsignal.c syslog.c utmp.c yplib.c gethost.c
d19 1
a19 5
WARNS=		1
NOLINKLIB=	# defined
NOLINT= 	# defined
NOPIC=		# defined
NOPROFILE=	# defined
@


1.25.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2019/03/28 15:04:41 christos Exp $
d7 17
a23 1
LIB=	hack
a29 7
HACKSRC?=${.CURDIR}
HACKOBJ?=${.OBJDIR}

.include "Makefile.inc"

OBJS=		${HACKOBJS}

@


1.24
log
@avoid copying most of libc (except gethostent_r, which unfortunately
adds a resolver dependency) by callling the internal nsswitch functions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2012/10/11 17:11:16 christos Exp $
d13 1
@


1.24.4.1
log
@Pull up following revision(s) (requested by manu in ticket #1440):
	distrib/utils/libhack/Makefile: revision 1.25
	distrib/utils/libhack/Makefile.inc: revision 1.27
	lib/libc/gen/getcap.c: revision 1.57
Make shared -DSMALL libc buildable without breaking libhack
We used -DSMALL to exclude code from libc in order to build
libhack. Introduce -DLIBHACK to do this without so that
-DSMALL does not remove code necessary for building a shared libc
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2013/08/27 09:53:33 christos Exp $
a12 1
CPPFLAGS+=	-DLIBHACK
@


1.24.18.1
log
@Pull up following revision(s) (requested by manu in ticket #79):
	distrib/utils/libhack/Makefile.inc: revision 1.27
	lib/libc/gen/getcap.c: revision 1.57
	distrib/utils/libhack/Makefile: revision 1.25
Make shared -DSMALL libc buildable without breaking libhack
We used -DSMALL to exclude code from libc in order to build
libhack. Introduce -DLIBHACK to do this without so that
-DSMALL does not remove code necessary for building a shared libc
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2013/08/27 09:53:33 christos Exp $
a12 1
CPPFLAGS+=	-DLIBHACK
@


1.23
log
@make libhack's syslog.c produce exactly the same symbols as libc's syslog.c,
so that in the future we can keep them synced. Avoid strong_alias since it
does not play well with symbol renaming.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2009/01/02 00:20:18 tnozaki Exp $
d16 1
d21 1
a21 1
		strerror.c strsignal.c syslog.c utmp.c yplib.c
@


1.22
log
@Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@@, snj@@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2007/11/06 19:27:07 martin Exp $
d9 3
d15 1
@


1.22.14.1
log
@Resync to 2012-11-19 00:00:00 UTC
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2012/10/11 17:11:16 christos Exp $
a8 3
HACKSRC?=${.CURDIR}
HACKOBJ?=${.OBJDIR}

a11 1
CPPFLAGS.syslog.c+=	-I${HACKSRC}/../../../lib/libc/include
@


1.22.14.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
# $NetBSD$
a15 1
CPPFLAGS.gethost.c+=	-I${HACKSRC}/../../../lib/libc/net
d20 1
a20 1
		strerror.c strsignal.c syslog.c utmp.c yplib.c gethost.c
@


1.22.8.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2009/01/02 00:20:18 tnozaki Exp $
a8 3
HACKSRC?=${.CURDIR}
HACKOBJ?=${.OBJDIR}

a11 1
CPPFLAGS.syslog.c+=	-I${HACKSRC}/../../../lib/libc/include
@


1.22.8.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.22.8.1 2012/10/30 18:48:51 yamt Exp $
a15 1
CPPFLAGS.gethost.c+=	-I${HACKSRC}/../../../lib/libc/net
d20 1
a20 1
		strerror.c strsignal.c syslog.c utmp.c yplib.c gethost.c
@


1.21
log
@Compile a special version of the default locale into libhack - we can
not use real locales, but this at least allows single byte character
locales to work as expected (i.e. the existing translations for sysinst).
Once we get a sysinst translation that needs more, we'll have to drop this
and the castrated setlocale(), and go for a real solution.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2007/04/02 15:53:25 christos Exp $
d10 2
a11 1
CPPFLAGS.runetable.c+=	-I ${HACKSRC}/../../../lib/libc -DALL_80_TO_FF_SW1
@


1.21.14.1
log
@Pull up following revision(s) (requested by tnozaki in ticket #222):
	distrib/sets/lists/base/mi: revision 1.788
	distrib/utils/libhack/Makefile.inc: revision 1.23
	distrib/utils/libhack/Makefile: revision 1.22
	etc/mtree/NetBSD.dist: revision 1.387
	include/locale.h: revision 1.15
	lib/libc/citrus/Makefile.inc: revision 1.6
	lib/libc/citrus/citrus_aliasname_local.h: revision 1.1
	lib/libc/citrus/citrus_bcs.h: revision 1.5
	lib/libc/citrus/citrus_bcs_strtol.c: revision 1.1
	lib/libc/citrus/citrus_bcs_strtoul.c: revision 1.1
	lib/libc/citrus/citrus_csmapper.c: revision 1.9
	lib/libc/citrus/citrus_fix_grouping.h: revision 1.1
	lib/libc/citrus/citrus_lc_ctype.c: revision 1.1
	lib/libc/citrus/citrus_lc_messages.c: revision 1.1
	lib/libc/citrus/citrus_lc_messages.h: revision 1.1
	lib/libc/citrus/citrus_lc_monetary.c: revision 1.1
	lib/libc/citrus/citrus_lc_monetary.h: revision 1.1
	lib/libc/citrus/citrus_lc_numeric.c: revision 1.1
	lib/libc/citrus/citrus_lc_numeric.h: revision 1.1
	lib/libc/citrus/citrus_lc_template.h: revision 1.1
	lib/libc/citrus/citrus_lc_template_decl.h: revision 1.1
	lib/libc/citrus/citrus_lc_time.c: revision 1.1
	lib/libc/citrus/citrus_lc_time.h: revision 1.1
	lib/libc/citrus/citrus_module.c: revision 1.8
	lib/libc/citrus/citrus_namespace.h: revision 1.7
	lib/libc/citrus/modules/citrus_euc.c: revision 1.13
	lib/libc/gen/Makefile.inc: revision 1.166
	lib/libc/gen/isctype.c: revision 1.17 via patch
	lib/libc/gen/tolower_.c: revision 1.10
	lib/libc/gen/toupper_.c: revision 1.10
	lib/libc/iconv/Makefile.inc: revision 1.3
	lib/libc/iconv/iconv.c: revision 1.7
	lib/libc/locale/Makefile.inc: revision 1.53
	lib/libc/locale/___runetype_mb.c: file removal
	lib/libc/locale/_wctrans.c: revision 1.7
	lib/libc/locale/_wctrans_local.h: revision 1.3
	lib/libc/locale/_wctype.c: revision 1.1
	lib/libc/locale/_wctype_local.h: revision 1.1
	lib/libc/locale/aliasname.c: revision 1.3
	lib/libc/locale/aliasname_local.h: revision 1.2
	lib/libc/locale/bsdctype.c: revision 1.1
	lib/libc/locale/bsdctype.h: revision 1.1
	lib/libc/locale/ctypeio.c: revision 1.8
	lib/libc/locale/ctypeio.h: revision 1.2
	lib/libc/locale/current_locale.c: revision 1.1
	lib/libc/locale/dummy_lc_collate.c: revision 1.1
	lib/libc/locale/dummy_lc_template.h: revision 1.1
	lib/libc/locale/fix_grouping.c: revision 1.1
	lib/libc/locale/fix_grouping.h: revision 1.1
	lib/libc/locale/generic_lc_all.c: revision 1.1
	lib/libc/locale/generic_lc_template.h: revision 1.1
	lib/libc/locale/generic_lc_template_decl.h: revision 1.1
	lib/libc/locale/global_locale.c: revision 1.1
	lib/libc/locale/iswctype.c: file removal
	lib/libc/locale/iswctype_mb.c: revision 1.1
	lib/libc/locale/iswctype_sb.c: revision 1.6
	lib/libc/locale/lcmessages.c: file removal
	lib/libc/locale/lcmessages.h: file removal
	lib/libc/locale/lcmonetary.c: file removal
	lib/libc/locale/lcmonetary.h: file removal
	lib/libc/locale/lcnumeric.c: file removal
	lib/libc/locale/lcnumeric.h: file removal
	lib/libc/locale/lctime.c: file removal
	lib/libc/locale/lctime.h: file removal
	lib/libc/locale/localeconv.c: revision 1.15
	lib/libc/locale/localeio.c: revision 1.2
	lib/libc/locale/localeio.h: revision 1.2
	lib/libc/locale/localeio_lc_ctype.c: revision 1.1
	lib/libc/locale/localeio_lc_messages.c: revision 1.1
	lib/libc/locale/localeio_lc_monetary.c: revision 1.1
	lib/libc/locale/localeio_lc_numeric.c: revision 1.1
	lib/libc/locale/localeio_lc_time.c: revision 1.1
	lib/libc/locale/multibyte.h: revision 1.4
	lib/libc/locale/multibyte_amd1.c: revision 1.6
	lib/libc/locale/multibyte_c90.c: revision 1.5
	lib/libc/locale/nb_lc_messages_misc.h: revision 1.1
	lib/libc/locale/nb_lc_monetary_misc.h: revision 1.1
	lib/libc/locale/nb_lc_numeric_misc.h: revision 1.1
	lib/libc/locale/nb_lc_template.h: revision 1.1
	lib/libc/locale/nb_lc_template_decl.h: revision 1.1
	lib/libc/locale/nb_lc_time_misc.h: revision 1.1
	lib/libc/locale/nl_langinfo.c: revision 1.12
	lib/libc/locale/rune.c: revision 1.31
	lib/libc/locale/rune.h: revision 1.13
	lib/libc/locale/rune_local.h: revision 1.11
	lib/libc/locale/runeglue.c: revision 1.14
	lib/libc/locale/runetable.c: revision 1.18
	lib/libc/locale/setlocale.c: revision 1.55 via patch
	lib/libc/locale/setlocale_local.h: revision 1.1
	lib/libc/locale/setrunelocale.c: file removal
	lib/libc/nls/Makefile.inc: revision 1.9
	lib/libc/nls/catopen.c: revision 1.26
	lib/libc/string/Makefile.inc: revision 1.68
	lib/libc/string/wcscmp.c: revision 1.6
	lib/libc/string/wcsncmp.c: revision 1.6
	lib/libc/string/wcswidth.c: file removal
	lib/libc/string/wmemcmp.c: revision 1.4
	regress/lib/libc/locale/Makefile: revision 1.4
	regress/lib/libc/locale/ctype1/Makefile: revision 1.4
	regress/lib/libc/locale/ctype1/en_US.UTF-8.exp.uue: revision 1.2
	regress/lib/libc/locale/ctype1/ja_JP.ISO-2022-JP.exp.uue: revision 1.1
	regress/lib/libc/locale/ctype1/ja_JP.ISO-2022-JP.in.uue: revision 1.1
	regress/lib/libc/locale/ctype1/ja_JP.ISO2022-JP.exp.uue: file removal
	regress/lib/libc/locale/ctype1/ja_JP.ISO2022-JP.in.uue: file removal
	regress/lib/libc/locale/ctype1/ja_JP.SJIS.exp.uue: revision 1.2
	regress/lib/libc/locale/ctype1/ja_JP.eucJP.exp.uue: revision 1.2
	regress/lib/libc/locale/ctype2/Makefile: revision 1.5
	regress/lib/libc/locale/ctype2/ja_JP.ISO-2022-JP-2.in.uue: revision 1.1
	regress/lib/libc/locale/ctype2/ja_JP.ISO2022-JP2.in.uue: file removal
	regress/lib/libc/locale/ctype3/Makefile: revision 1.5
	regress/lib/libc/locale/mbtowc/Makefile: revision 1.3
	regress/lib/libc/locale/mbtowc/ja_JP.ISO-2022-JP: revision 1.1
	regress/lib/libc/locale/mbtowc/ja_JP.ISO2022-JP: file removal
	regress/lib/libc/locale/wcstod/wcstod_test.c: revision 1.2
	share/locale/Makefile.locale: revision 1.1
	share/locale/Makefile: revision 1.5
	share/locale/ctype/Makefile: revision 1.28
	share/locale/locale.alias: revision 1.11
	share/locale/messages/Makefile: revision 1.5
	share/locale/messages/en_US.ISO8859-1.src: file removal
	share/locale/messages/en_US.US-ASCII.src: revision 1.1
	share/locale/messages/ja_JP.ISO-2022-JP.src: revision 1.1
	share/locale/messages/ja_JP.ct.src: revision 1.1
	share/locale/messages/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/messages/sr_ME.ISO8859-5.src: revision 1.1
	share/locale/messages/sr_YU.ISO8859-2.src: file removal
	share/locale/messages/sr_YU.ISO8859-5.src: file removal
	share/locale/messages/sr_YU.UTF-8.src: file removal
	share/locale/messages/zh_CN.GB18030.src: file removal
	share/locale/messages/zh_TW.eucTW.src: revision 1.1
	share/locale/monetary/Makefile: revision 1.5
	share/locale/monetary/af_ZA.ISO8859-1.src: revision 1.2
	share/locale/monetary/am_ET.UTF-8.src: revision 1.2
	share/locale/monetary/be_BY.CP1131.src: file removal
	share/locale/monetary/be_BY.CP1251.src: revision 1.2
	share/locale/monetary/be_BY.ISO8859-5.src: revision 1.2
	share/locale/monetary/be_BY.UTF-8.src: revision 1.2
	share/locale/monetary/bg_BG.CP1251.src: revision 1.2
	share/locale/monetary/bg_BG.UTF-8.src: revision 1.2
	share/locale/monetary/ca_ES.ISO8859-1.src: revision 1.2
	share/locale/monetary/cs_CZ.ISO8859-2.src: revision 1.2
	share/locale/monetary/cs_CZ.UTF-8.src: revision 1.2
	share/locale/monetary/da_DK.ISO8859-1.src: revision 1.2
	share/locale/monetary/de_AT.ISO8859-1.src: revision 1.2
	share/locale/monetary/de_CH.ISO8859-1.src: revision 1.2
	share/locale/monetary/de_DE.ISO8859-1.src: revision 1.2
	share/locale/monetary/el_GR.ISO8859-7.src: revision 1.2
	share/locale/monetary/en_AU.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_CA.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_GB.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_GB.UTF-8.src: revision 1.2
	share/locale/monetary/en_IE.UTF-8.src: revision 1.2
	share/locale/monetary/en_NZ.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_US.ISO8859-1.src: revision 1.2
	share/locale/monetary/en_US.US-ASCII.src: revision 1.1
	share/locale/monetary/es_ES.ISO8859-1.src: revision 1.2
	share/locale/monetary/et_EE.ISO8859-15.src: revision 1.2
	share/locale/monetary/fi_FI.ISO8859-1.src: revision 1.2
	share/locale/monetary/fr_BE.ISO8859-1.src: revision 1.2
	share/locale/monetary/fr_CA.ISO8859-1.src: revision 1.2
	share/locale/monetary/fr_FR.ISO8859-1.src: revision 1.2
	share/locale/monetary/he_IL.UTF-8.src: revision 1.2
	share/locale/monetary/hi_IN.ISCII-DEV.src: revision 1.2
	share/locale/monetary/hr_HR.ISO8859-2.src: revision 1.2
	share/locale/monetary/hu_HU.ISO8859-2.src: revision 1.2
	share/locale/monetary/hy_AM.ARMSCII-8.src: revision 1.2
	share/locale/monetary/hy_AM.UTF-8.src: revision 1.2
	share/locale/monetary/is_IS.ISO8859-1.src: revision 1.2
	share/locale/monetary/it_IT.ISO8859-1.src: revision 1.2
	share/locale/monetary/ja_JP.ISO-2022-JP.src: revision 1.1
	share/locale/monetary/ja_JP.UTF-8.src: revision 1.2
	share/locale/monetary/ja_JP.eucJP.src: revision 1.2
	share/locale/monetary/kk_KZ.PT154.src: revision 1.2
	share/locale/monetary/kk_KZ.UTF-8.src: revision 1.2
	share/locale/monetary/ko_KR.UTF-8.src: revision 1.2
	share/locale/monetary/ko_KR.eucKR.src: revision 1.2
	share/locale/monetary/lt_LT.ISO8859-13.src: revision 1.2
	share/locale/monetary/mn_MN.UTF-8.src: revision 1.2
	share/locale/monetary/nl_BE.ISO8859-1.src: revision 1.2
	share/locale/monetary/nl_NL.ISO8859-1.src: revision 1.2
	share/locale/monetary/no_NO.ISO8859-1.src: revision 1.2
	share/locale/monetary/pl_PL.ISO8859-2.src: revision 1.2
	share/locale/monetary/pl_PL.UTF-8.src: revision 1.2
	share/locale/monetary/pt_BR.ISO8859-1.src: revision 1.2
	share/locale/monetary/pt_PT.ISO8859-1.src: revision 1.2
	share/locale/monetary/ro_RO.ISO8859-2.src: revision 1.2
	share/locale/monetary/ru_RU.CP1251.src: revision 1.2
	share/locale/monetary/ru_RU.CP866.src: revision 1.2
	share/locale/monetary/ru_RU.ISO8859-5.src: revision 1.2
	share/locale/monetary/ru_RU.KOI8-R.src: revision 1.2
	share/locale/monetary/ru_RU.UTF-8.src: revision 1.2
	share/locale/monetary/sk_SK.ISO8859-2.src: revision 1.2
	share/locale/monetary/sl_SI.ISO8859-2.src: revision 1.2
	share/locale/monetary/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/monetary/sr_RS.ISO8859-2.src: revision 1.1
	share/locale/monetary/sr_YU.ISO8859-2.src: revision 1.2
	share/locale/monetary/sr_YU.ISO8859-5.src: revision 1.2
	share/locale/monetary/sr_YU.UTF-8.src: revision 1.2
	share/locale/monetary/sv_SE.ISO8859-1.src: revision 1.2
	share/locale/monetary/tr_TR.ISO8859-9.src: revision 1.2
	share/locale/monetary/uk_UA.CP1251.src: revision 1.2
	share/locale/monetary/uk_UA.ISO8859-5.src: revision 1.2
	share/locale/monetary/uk_UA.KOI8-U.src: revision 1.2
	share/locale/monetary/uk_UA.UTF-8.src: revision 1.2
	share/locale/monetary/zh_CN.GB18030.src: revision 1.2
	share/locale/monetary/zh_CN.UTF-8.src: revision 1.2
	share/locale/monetary/zh_CN.eucCN.src: revision 1.2
	share/locale/monetary/zh_HK.Big5hkscs.src: revision 1.1
	share/locale/monetary/zh_HK.UTF-8.src: revision 1.2
	share/locale/monetary/zh_TW.Big5.src: revision 1.2
	share/locale/numeric/Makefile: revision 1.4
	share/locale/numeric/am_ET.UTF-8.src: file removal
	share/locale/numeric/en_US.ISO8859-1.src: file removal
	share/locale/numeric/en_US.US-ASCII.src: revision 1.1
	share/locale/numeric/ja_JP.eucJP.src: file removal
	share/locale/numeric/ko_KR.eucKR.src: file removal
	share/locale/numeric/mn_MN.UTF-8.src: file removal
	share/locale/numeric/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/numeric/sr_YU.ISO8859-2.src: file removal
	share/locale/numeric/sr_YU.ISO8859-5.src: file removal
	share/locale/numeric/zh_CN.eucCN.src: file removal
	share/locale/time/Makefile: revision 1.5
	share/locale/time/en_US.ISO8859-1.src: file removal
	share/locale/time/en_US.US-ASCII.src: revision 1.1
	share/locale/time/ja_JP.ISO-2022-JP.src: revision 1.1
	share/locale/time/ja_JP.ct.src: revision 1.1
	share/locale/time/sr_ME.ISO8859-2.src: revision 1.1
	share/locale/time/sr_ME.ISO8859-5.src: revision 1.1
	share/locale/time/sr_ME.UTF-8.src: revision 1.1
	share/locale/time/sr_YU.ISO8859-2.src: file removal
	share/locale/time/sr_YU.ISO8859-5.src: file removal
	share/locale/time/sr_YU.UTF-8.src: file removal
	share/locale/time/zh_CN.GB18030.src: file removal
	share/locale/time/zh_TW.eucTW.src: revision 1.1
	usr.bin/locale/locale.c: revision 1.6
	usr.bin/mklocale/Makefile: revision 1.12
	usr.bin/mklocale/lex.l: revision 1.14
	usr.bin/mklocale/mklocaledb.c: revision 1.1
	usr.bin/mklocale/yacc.y: revision 1.25
	usr.sbin/chrtbl/Makefile: revision 1.8
	usr.sbin/chrtbl/ctypeio.c: revision 1.1
	usr.sbin/chrtbl/ctypeio.h: revision 1.1
Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES}
db format.
ok'ed by core and releng.
(thanks for agc@@, snj@@ and i'm sorry for long time patience).
[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].
[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().
[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<
old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2007/11/06 19:27:07 martin Exp $
d10 1
a10 2
CPPFLAGS.runetable.c+=	-I${HACKSRC}/../../../lib/libc/citrus \
			-DALL_80_TO_FF_SW1
@


1.21.8.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2007/11/06 19:27:07 martin Exp $
@


1.20
log
@Merge the multibyte routines into one file, and add stub implementations
for one more that is needed, and commented out partial implementations for
the test of the functions. This should stop the re-defined symbol errors
for now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2007/02/03 19:55:51 christos Exp $
d7 1
a7 1
.PATH.c: ${.CURDIR}/../../../lib/libc/gen
d10 1
d14 1
a14 1
		localeconv.c multibyte.c perror.c setlocale.c \
@


1.20.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD$
d7 1
a7 1
.PATH.c: ${.CURDIR}/../../../lib/libc/gen ${.CURDIR}/../../../lib/libc/locale
a9 1
CPPFLAGS.runetable.c+=	-I ${HACKSRC}/../../../lib/libc -DALL_80_TO_FF_SW1
d13 1
a13 1
		localeconv.c multibyte.c perror.c runetable.c setlocale.c \
@


1.19
log
@we need wcrtomb now too.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2005/05/15 10:15:47 dsl Exp $
d13 1
a13 2
		localeconv.c perror.c setlocale.c \
		mbrtowc.c wcrtomb.c \
@


1.18
log
@Stub out mbrtowc(), removes all the citrus_xxx stuff from libc.
rescue_tiny fits again...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/06/06 07:03:53 christos Exp $
d14 1
a14 1
		mbrtowc.c \
@


1.18.4.1
log
@Pull up following revision(s) originally forgotten in ticket #607:
	distrib/utils/libhack/Makefile: revision 1.19-1.20
	distrib/utils/libhack/Makefile.inc: revision 1.20-1.21
	distrib/utils/libhack/multibyte.c: revision 1.1
	distrib/utils/libhack/syslog.c: revision 1.6
	distrib/utils/libhack/mbrtowc.c: deleted

add prototypes for the _ss functions.

we need wcrtomb now too.

Merge the multibyte routines into one file, and add stub
implementations for one more that is needed, and commented out partial
implementations for the test of the functions. This should stop the
re-defined symbol errors for now.
@
text
@d1 1
a1 1
# $NetBSD$
d13 2
a14 1
		localeconv.c multibyte.c perror.c setlocale.c \
@


1.17
log
@Include a fake syslog that does only printf; saves 4K.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2004/04/25 06:45:02 christos Exp $
d14 1
@


1.16
log
@arrange for libc's getcap to be used instead of a local copy.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2002/03/25 07:43:49 lukem Exp $
d14 1
a14 1
		strerror.c strsignal.c utmp.c yplib.c
@


1.15
log
@Disable libhack's gethost.o (replacement gethostby{name,addr}()) by default,
as they only support reading /etc/hosts, and its the "least useful" of
the libhack routines.  Add gethost.o back to Really Small media which
appears to need the space savings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2002/02/03 22:39:52 lukem Exp $
d7 4
@


1.14
log
@permanently disable opendir.o until its link bugs (on ELF platforms
only?) are sorted out.  speculation (based on some analysis by simonb)
is that it's because fts calls _opendir2 directly, which forces both
the libhack and the libc versions of opendir.o to be linked in.
in any case, there's space saves to be had elsewhere...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2001/12/12 00:05:10 tv Exp $
d8 1
a8 1
SRCS=		getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
@


1.13
log
@Major readability cleanup; nuke redundancies; MKfoo=no -> NOfoo=.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2001/10/05 01:17:28 jmc Exp $
a10 3
.ifndef NOLIBHACKOPENDIR
SRCS+=		opendir.c
.endif
@


1.12
log
@Change all COPTS+=-Os to DBG=-Os as that var actually controls the optimization
levels
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:43 martin Exp $
d7 4
a10 4
LIB=	hack
SRCS=	getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
	localeconv.c perror.c setlocale.c \
	strerror.c strsignal.c utmp.c yplib.c
d12 1
a12 1
SRCS+=        opendir.c
d15 5
d21 1
a21 16
HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
	localeconv.o perror.o setlocale.o \
	strerror.o strsignal.o utmp.o yplib.o
.ifndef NOLIBHACKOPENDIR
HACKOBJS+= opendir.o
.endif

.if ${MACHINE_ARCH} != "sparc64"
DBG= -Os
.endif
WARNS=	1
MKPIC=	no
MKLINT= no
MKPROFILE=no

all: libhack.a libhack.o
d23 2
a24 2
libhack.o : $(HACKOBJS)
	$(LD) -r -o $@@ $(HACKOBJS)
d26 1
a26 1
CLEANFILES+=  libhack.o
d29 2
a30 2
	$(CC) -g -o $@@.o -DTEST_MAIN -c getpwent.c
	$(CC) -o $@@ $@@.o
@


1.11
log
@Drop ``-Os'' on sparc64 due to toolchain issues.

The same change has already been applied on the 1.5 branch. The problems
(i.e. ifconfig not showing IP addresses) have been verified to still exist
with the new toolchain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2000/05/18 00:43:06 matt Exp $
d24 1
a24 1
COPTS+= -Os
@


1.10
log
@Compile things with -Os.  I wonder if compiling -Mno-pic for mips and vax
would shrink them even more?
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 1999/09/26 04:49:37 dan Exp $
d23 1
d25 1
@


1.10.4.1
log
@Apply patch (requested by martin):
  Drop ``-Os'' on sparc64 due to toolchain issues.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2000/05/18 00:43:06 matt Exp $
a22 1
.if ${MACHINE_ARCH} != "sparc64"
a23 1
.endif
@


1.9
log
@Combine the Makefile.inc and Makefile, and specify the $(HACKOBJS)
directly to work around the fact that $(OBJS) seems to produce a double list of
each .o for some reason.

XXX Why does $(OBJS) list doubles?
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 1999/06/27 12:56:01 mrg Exp $
d23 1
@


1.8
log
@miniroot changes:
    install.sub:
	- fix interface grovelling, ifmedia support, allow ifmedia and link
	  to have a "none" (-> "") answer (which lets you give nothing when
	  a default answer is given)
	- allow installing more than one set at a time, including "all" as
	  a synonym for all remaining sets
	- mount -o async when extracting sets
    makeconf.awk:
	- put default "libs" section at the end rather than the start, so
	  you can put other "libs" in before this list
	- minor cleanup

    mtree.conf:
	- create /kern

    sparc install.md:
	- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
	- use /kern & kernfs (replaces dmesg)
	- replace grep & cut pipe lines with sed
	- replace grep hackery with sed hackery
	- grep and cut are no longer required!  yay!
	- deal with no /usr/bin/vi -- call disklabel -i
	- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
	  rather than the miniroot kernel
    sparc miniroot list:
	- no more dmesg, cut or grep

sparc ramdisk changes:
    Makefile:
	- `ramdiskbin.conf' is now generated by makeconf.awk
	- don't use libhack's opendir, it breaks
    dot.profile:
	- don't assume terminal is `sun'
	- set EDITOR=ed
	-
    list:
	- instbin -> ramdiskbin to make `makeconf.awk' work
	- CRUNCHSPECIAL those special dirs
	- add our LIBS as necessary

libhack changes:
	- if NOLIBHACKOPENDIR is set, don't build opendir.o
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1999/05/19 03:58:13 gwr Exp $
d15 8
d30 3
a33 2
libhack.o : $(OBJS)
	$(LD) -r -o $@@ $(OBJS)
@


1.8.2.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 1999/09/26 04:49:37 dan Exp $
a14 8

HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
	localeconv.o perror.o setlocale.o \
	strerror.o strsignal.o utmp.o yplib.o
.ifndef NOLIBHACKOPENDIR
HACKOBJS+= opendir.o
.endif

a21 3
libhack.o : $(HACKOBJS)
	$(LD) -r -o $@@ $(HACKOBJS)

d23 2
@


1.7
log
@New files...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1999/03/13 19:08:43 sommerfe Exp $
d9 1
a9 1
	localeconv.c opendir.c perror.c setlocale.c \
d11 3
@


1.6
log
@Warnsify.
Add reduced version of getcap routines, so sysinst need not drag in
the database goop via libtermcap.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1999/02/13 02:54:18 lukem Exp $
d8 4
a11 1
SRCS=	getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c setlocale.c yplib.c
d17 5
a21 1
all: libhack.a
@


1.6.2.1
log
@pullup 1.6->1.7 (gwr)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1999/05/19 03:58:13 gwr Exp $
d8 1
a8 4
SRCS=	getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
	localeconv.c opendir.c perror.c setlocale.c \
	strerror.c strsignal.c utmp.c yplib.c

d14 1
a14 5
all: libhack.a libhack.o

CLEANFILES+=  libhack.o
libhack.o : $(OBJS)
	$(LD) -r -o $@@ $(OBJS)
@


1.6.2.2
log
@pullup 1.7->1.8 (mrg)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6.2.1 1999/06/21 03:25:36 perry Exp $
d9 1
a9 1
	localeconv.c perror.c setlocale.c \
a10 3
.ifndef NOLIBHACKOPENDIR
SRCS+=        opendir.c
.endif
@


1.5
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1997/12/12 03:36:38 gwr Exp $
d8 2
a9 2
SRCS=	getgrent.c gethost.c getnet.c getnetgr.c getpwent.c setlocale.c yplib.c

d11 1
@


1.4
log
@Add getnet.c
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 1996/10/09 00:15:19 jtc Exp $
d8 1
a8 2
SRCS= getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
	setlocale.c yplib.c
d10 2
a11 2
NOPIC=
NOPROFILE=
@


1.3
log
@merge in 1.2 branch
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2.6.1 1996/09/13 20:01:56 gwr Exp $
d5 1
a5 1
#
d8 1
a8 1
SRCS=	getgrent.c gethost.c getnetgr.c getpwent.c \
@


1.3.2.1
log
@From HEAD:  Add getnet.c
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1997/12/12 03:36:38 gwr Exp $
d5 1
a5 1
# (See Makefile.inc also.)
d8 1
a8 1
SRCS= getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
@


1.2
log
@Minor cleanup
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1.2.1 1995/10/11 23:51:48 gwr Exp $
d8 2
a9 1
SRCS=	getgrent.c gethost.c getnetgr.c getpwent.c
@


1.2.4.1
log
@file Makefile was added on branch netbsd-1-1 on 1995-10-13 18:10:20 +0000
@
text
@d1 19
@


1.2.4.2
log
@Minor cleanup
@
text
@a0 19
# $NetBSD: Makefile,v 1.2 1995/10/13 18:10:19 gwr Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
#

LIB=	hack
SRCS=	getgrent.c gethost.c getnetgr.c getpwent.c

NOPIC=
NOPROFILE=

all: libhack.a

tpwent: getpwent.c
	$(CC) -g -o $@@.o -DTEST_MAIN -c getpwent.c
	$(CC) -o $@@ $@@.o

.include <bsd.lib.mk>
@


1.2.6.1
log
@Add setlocale.c
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1995/10/13 18:10:19 gwr Exp $
d8 1
a8 2
SRCS=	getgrent.c gethost.c getnetgr.c getpwent.c \
	setlocale.c yplib.c
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d14 4
@


1.1.1.1
log
@Add some utilities all ports might use in a ramdisk root.
@
text
@@


1.1.1.1.2.1
log
@Minor cleanup.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 1995/10/08 23:08:48 gwr Exp $
a13 4

tpwent: getpwent.c
	$(CC) -g -o $@@.o -DTEST_MAIN -c getpwent.c
	$(CC) -o $@@ $@@.o
@
