head	1.43;
access;
symbols
	netbsd-11-0-RC4:1.42
	netbsd-11-0-RC3:1.42
	netbsd-11-0-RC2:1.42
	netbsd-11-0-RC1:1.42
	perseant-exfatfs-base-20250801:1.42
	netbsd-11:1.42.0.16
	netbsd-11-base:1.42
	netbsd-10-1-RELEASE:1.42
	perseant-exfatfs-base-20240630:1.42
	perseant-exfatfs:1.42.0.14
	perseant-exfatfs-base:1.42
	netbsd-8-3-RELEASE:1.41
	netbsd-9-4-RELEASE:1.42
	netbsd-10-0-RELEASE:1.42
	netbsd-10-0-RC6:1.42
	netbsd-10-0-RC5:1.42
	netbsd-10-0-RC4:1.42
	netbsd-10-0-RC3:1.42
	netbsd-10-0-RC2:1.42
	netbsd-10-0-RC1:1.42
	netbsd-10:1.42.0.12
	netbsd-10-base:1.42
	netbsd-9-3-RELEASE:1.42
	cjep_sun2x-base1:1.42
	cjep_sun2x:1.42.0.10
	cjep_sun2x-base:1.42
	cjep_staticlib_x-base1:1.42
	netbsd-9-2-RELEASE:1.42
	cjep_staticlib_x:1.42.0.8
	cjep_staticlib_x-base:1.42
	netbsd-9-1-RELEASE:1.42
	phil-wifi-20200421:1.42
	phil-wifi-20200411:1.42
	is-mlppp:1.42.0.6
	is-mlppp-base:1.42
	phil-wifi-20200406:1.42
	netbsd-8-2-RELEASE:1.41
	netbsd-9-0-RELEASE:1.42
	netbsd-9-0-RC2:1.42
	netbsd-9-0-RC1:1.42
	phil-wifi-20191119:1.42
	netbsd-9:1.42.0.4
	netbsd-9-base:1.42
	phil-wifi-20190609:1.42
	netbsd-8-1-RELEASE:1.41
	netbsd-8-1-RC1:1.41
	pgoyette-compat-merge-20190127:1.41.22.1
	pgoyette-compat-20190127:1.42
	pgoyette-compat-20190118:1.42
	pgoyette-compat-1226:1.42
	pgoyette-compat-1126:1.42
	pgoyette-compat-1020:1.42
	pgoyette-compat-0930:1.42
	pgoyette-compat-0906:1.42
	netbsd-7-2-RELEASE:1.41
	pgoyette-compat-0728:1.42
	netbsd-8-0-RELEASE:1.41
	phil-wifi:1.42.0.2
	phil-wifi-base:1.42
	pgoyette-compat-0625:1.42
	netbsd-8-0-RC2:1.41
	pgoyette-compat-0521:1.41
	pgoyette-compat-0502:1.41
	pgoyette-compat-0422:1.41
	netbsd-8-0-RC1:1.41
	pgoyette-compat-0415:1.41
	pgoyette-compat-0407:1.41
	pgoyette-compat-0330:1.41
	pgoyette-compat-0322:1.41
	pgoyette-compat-0315:1.41
	netbsd-7-1-2-RELEASE:1.41
	pgoyette-compat:1.41.0.22
	pgoyette-compat-base:1.41
	netbsd-7-1-1-RELEASE:1.41
	matt-nb8-mediatek:1.41.0.20
	matt-nb8-mediatek-base:1.41
	perseant-stdc-iso10646:1.41.0.18
	perseant-stdc-iso10646-base:1.41
	netbsd-8:1.41.0.16
	netbsd-8-base:1.41
	prg-localcount2-base3:1.41
	prg-localcount2-base2:1.41
	prg-localcount2-base1:1.41
	prg-localcount2:1.41.0.14
	prg-localcount2-base:1.41
	pgoyette-localcount-20170426:1.41
	bouyer-socketcan-base1:1.41
	pgoyette-localcount-20170320:1.41
	netbsd-7-1:1.41.0.12
	netbsd-7-1-RELEASE:1.41
	netbsd-7-1-RC2:1.41
	netbsd-7-nhusb-base-20170116:1.41
	bouyer-socketcan:1.41.0.10
	bouyer-socketcan-base:1.41
	pgoyette-localcount-20170107:1.41
	netbsd-7-1-RC1:1.41
	pgoyette-localcount-20161104:1.41
	netbsd-7-0-2-RELEASE:1.41
	localcount-20160914:1.41
	netbsd-7-nhusb:1.41.0.8
	netbsd-7-nhusb-base:1.41
	pgoyette-localcount-20160806:1.41
	pgoyette-localcount-20160726:1.41
	pgoyette-localcount:1.41.0.6
	pgoyette-localcount-base:1.41
	netbsd-7-0-1-RELEASE:1.41
	netbsd-7-0:1.41.0.4
	netbsd-7-0-RELEASE:1.41
	netbsd-7-0-RC3:1.41
	netbsd-7-0-RC2:1.41
	netbsd-7-0-RC1:1.41
	netbsd-5-2-3-RELEASE:1.29
	netbsd-5-1-5-RELEASE:1.29
	netbsd-6-0-6-RELEASE:1.33
	netbsd-6-1-5-RELEASE:1.33
	netbsd-7:1.41.0.2
	netbsd-7-base:1.41
	yamt-pagecache-base9:1.39
	yamt-pagecache-tag8:1.33
	netbsd-6-1-4-RELEASE:1.33
	netbsd-6-0-5-RELEASE:1.33
	tls-earlyentropy:1.39.0.4
	tls-earlyentropy-base:1.41
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.39
	riastradh-drm2-base3:1.39
	netbsd-6-1-3-RELEASE:1.33
	netbsd-6-0-4-RELEASE:1.33
	netbsd-5-2-2-RELEASE:1.29
	netbsd-5-1-4-RELEASE:1.29
	netbsd-6-1-2-RELEASE:1.33
	netbsd-6-0-3-RELEASE:1.33
	netbsd-5-2-1-RELEASE:1.29
	netbsd-5-1-3-RELEASE:1.29
	netbsd-6-1-1-RELEASE:1.33
	riastradh-drm2-base2:1.39
	riastradh-drm2-base1:1.39
	riastradh-drm2:1.39.0.2
	riastradh-drm2-base:1.39
	netbsd-6-1:1.33.0.12
	netbsd-6-0-2-RELEASE:1.33
	netbsd-6-1-RELEASE:1.33
	khorben-n900:1.38.0.6
	netbsd-6-1-RC4:1.33
	netbsd-6-1-RC3:1.33
	agc-symver:1.38.0.4
	agc-symver-base:1.38
	netbsd-6-1-RC2:1.33
	netbsd-6-1-RC1:1.33
	yamt-pagecache-base8:1.33
	netbsd-5-2:1.29.0.18
	netbsd-6-0-1-RELEASE:1.33
	yamt-pagecache-base7:1.33
	netbsd-5-2-RELEASE:1.29
	netbsd-5-2-RC1:1.29
	matt-nb6-plus-nbase:1.33
	yamt-pagecache-base6:1.33
	netbsd-6-0:1.33.0.10
	netbsd-6-0-RELEASE:1.33
	netbsd-6-0-RC2:1.33
	tls-maxphys:1.33.0.8
	tls-maxphys-base:1.41
	matt-nb6-plus:1.33.0.6
	matt-nb6-plus-base:1.33
	netbsd-6-0-RC1:1.33
	yamt-pagecache-base5:1.33
	yamt-pagecache-base4:1.33
	netbsd-6:1.33.0.4
	netbsd-6-base:1.33
	netbsd-5-1-2-RELEASE:1.29
	netbsd-5-1-1-RELEASE:1.29
	yamt-pagecache-base3:1.33
	yamt-pagecache-base2:1.33
	yamt-pagecache:1.33.0.2
	yamt-pagecache-base:1.33
	cherry-xenmp:1.29.0.16
	cherry-xenmp-base:1.29
	bouyer-quota2-nbase:1.29
	bouyer-quota2:1.29.0.14
	bouyer-quota2-base:1.29
	matt-mips64-premerge-20101231:1.29
	matt-nb5-mips64-premerge-20101231:1.29
	matt-nb5-pq3:1.29.0.12
	matt-nb5-pq3-base:1.29
	netbsd-5-1:1.29.0.10
	netbsd-5-1-RELEASE:1.29
	netbsd-5-1-RC4:1.29
	matt-nb5-mips64-k15:1.29
	netbsd-5-1-RC3:1.29
	netbsd-5-1-RC2:1.29
	netbsd-5-1-RC1:1.29
	netbsd-5-0-2-RELEASE:1.29
	matt-nb5-mips64-premerge-20091211:1.29
	matt-premerge-20091211:1.29
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.29
	matt-nb4-mips64-k7-u2a-k9b:1.29
	matt-nb5-mips64-u1-k1-k5:1.29
	matt-nb5-mips64:1.29.0.8
	netbsd-5-0-1-RELEASE:1.29
	jym-xensuspend-nbase:1.29
	netbsd-5-0:1.29.0.6
	netbsd-5-0-RELEASE:1.29
	netbsd-5-0-RC4:1.29
	netbsd-5-0-RC3:1.29
	netbsd-5-0-RC2:1.29
	jym-xensuspend:1.29.0.4
	jym-xensuspend-base:1.29
	netbsd-5-0-RC1:1.29
	netbsd-5:1.29.0.2
	netbsd-5-base:1.29
	matt-mips64-base2:1.28
	matt-mips64:1.27.0.22
	netbsd-4-0-1-RELEASE:1.27
	wrstuden-revivesa-base-3:1.28
	wrstuden-revivesa-base-2:1.28
	wrstuden-fixsa-newbase:1.27
	wrstuden-revivesa-base-1:1.27
	yamt-pf42-base4:1.27
	yamt-pf42-base3:1.27
	hpcarm-cleanup-nbase:1.27
	yamt-pf42-baseX:1.27
	yamt-pf42-base2:1.27
	wrstuden-revivesa:1.27.0.20
	wrstuden-revivesa-base:1.27
	yamt-pf42:1.27.0.18
	yamt-pf42-base:1.27
	keiichi-mipv6:1.27.0.16
	keiichi-mipv6-base:1.27
	matt-armv6-nbase:1.27
	matt-armv6-prevmlocking:1.27
	wrstuden-fixsa-base-1:1.27
	netbsd-4-0:1.27.0.14
	netbsd-4-0-RELEASE:1.27
	cube-autoconf:1.27.0.12
	cube-autoconf-base:1.27
	netbsd-4-0-RC5:1.27
	netbsd-4-0-RC4:1.27
	netbsd-4-0-RC3:1.27
	netbsd-4-0-RC2:1.27
	netbsd-4-0-RC1:1.27
	matt-armv6:1.27.0.10
	matt-armv6-base:1.27
	matt-mips64-base:1.27
	hpcarm-cleanup:1.27.0.8
	hpcarm-cleanup-base:1.27
	netbsd-3-1-1-RELEASE:1.26
	netbsd-3-0-3-RELEASE:1.26
	wrstuden-fixsa:1.27.0.6
	wrstuden-fixsa-base:1.27
	abandoned-netbsd-4-base:1.27
	abandoned-netbsd-4:1.27.0.2
	netbsd-3-1:1.26.0.12
	netbsd-3-1-RELEASE:1.26
	netbsd-3-0-2-RELEASE:1.26
	netbsd-3-1-RC4:1.26
	netbsd-3-1-RC3:1.26
	netbsd-3-1-RC2:1.26
	netbsd-3-1-RC1:1.26
	netbsd-4:1.27.0.4
	netbsd-4-base:1.27
	netbsd-3-0-1-RELEASE:1.26
	netbsd-3-0:1.26.0.10
	netbsd-3-0-RELEASE:1.26
	netbsd-3-0-RC6:1.26
	netbsd-3-0-RC5:1.26
	netbsd-3-0-RC4:1.26
	netbsd-3-0-RC3:1.26
	netbsd-3-0-RC2:1.26
	netbsd-3-0-RC1:1.26
	netbsd-2-0-3-RELEASE:1.26
	netbsd-2-1:1.26.0.8
	netbsd-2-1-RELEASE:1.26
	netbsd-2-1-RC6:1.26
	netbsd-2-1-RC5:1.26
	netbsd-2-1-RC4:1.26
	netbsd-2-1-RC3:1.26
	netbsd-2-1-RC2:1.26
	netbsd-2-1-RC1:1.26
	netbsd-2-0-2-RELEASE:1.26
	netbsd-3:1.26.0.6
	netbsd-3-base:1.26
	netbsd-2-0-1-RELEASE:1.26
	netbsd-2:1.26.0.4
	netbsd-2-base:1.26
	netbsd-2-0-RELEASE:1.26
	netbsd-2-0-RC5:1.26
	netbsd-2-0-RC4:1.26
	netbsd-2-0-RC3:1.26
	netbsd-2-0-RC2:1.26
	netbsd-2-0-RC1:1.26
	netbsd-2-0:1.26.0.2
	netbsd-2-0-base:1.26
	netbsd-1-6-PATCH002-RELEASE:1.19
	netbsd-1-6-PATCH002:1.19
	netbsd-1-6-PATCH002-RC4:1.19
	netbsd-1-6-PATCH002-RC3:1.19
	netbsd-1-6-PATCH002-RC2:1.19
	netbsd-1-6-PATCH002-RC1:1.19
	netbsd-1-6-PATCH001:1.19
	netbsd-1-6-PATCH001-RELEASE:1.19
	netbsd-1-6-PATCH001-RC3:1.19
	netbsd-1-6-PATCH001-RC2:1.19
	netbsd-1-6-PATCH001-RC1:1.19
	fvdl_fs64_base:1.20
	netbsd-1-6-RELEASE:1.19
	netbsd-1-6-RC3:1.19
	netbsd-1-6-RC2:1.19
	netbsd-1-6-RC1:1.19
	netbsd-1-6:1.19.0.12
	netbsd-1-6-base:1.19
	netbsd-1-5-PATCH003:1.19
	netbsd-1-5-PATCH002:1.19
	netbsd-1-5-PATCH001:1.19
	netbsd-1-5-RELEASE:1.19
	netbsd-1-5-BETA2:1.19
	netbsd-1-5-BETA:1.19
	netbsd-1-4-PATCH003:1.19
	netbsd-1-5-ALPHA2:1.19
	netbsd-1-5:1.19.0.10
	netbsd-1-5-base:1.19
	minoura-xpg4dl:1.19.0.8
	minoura-xpg4dl-base:1.19
	netbsd-1-4-PATCH002:1.19
	wrstuden-devbsize-19991221:1.19
	wrstuden-devbsize:1.19.0.6
	wrstuden-devbsize-base:1.19
	comdex-fall-1999:1.19.0.4
	comdex-fall-1999-base:1.19
	netbsd-1-4-PATCH001:1.19
	netbsd-1-4-RELEASE:1.19
	netbsd-1-4:1.19.0.2
	netbsd-1-4-base:1.19
	netbsd-1-3-PATCH003:1.16.2.2
	netbsd-1-3-PATCH003-CANDIDATE2:1.16.2.2
	netbsd-1-3-PATCH003-CANDIDATE1:1.16.2.2
	netbsd-1-3-PATCH003-CANDIDATE0:1.16.2.2
	netbsd-1-3-PATCH002:1.16.2.2
	netbsd-1-3-PATCH001:1.16.2.1
	netbsd-1-3-RELEASE:1.16.2.1
	netbsd-1-3-BETA:1.16.2.1
	netbsd-1-3:1.16.0.2
	netbsd-1-3-base:1.16
	netbsd-1-2-PATCH001:1.9
	netbsd-1-2-RELEASE:1.9
	netbsd-1-2-BETA:1.9
	netbsd-1-2-base:1.9
	netbsd-1-2:1.9.0.6
	netbsd-1-1-PATCH001:1.9
	netbsd-1-1-RELEASE:1.9
	netbsd-1-1:1.9.0.2
	netbsd-1-1-base:1.9
	netbsd-1-0-PATCH06:1.5
	netbsd-1-0-PATCH05:1.5
	netbsd-1-0-PATCH04:1.5
	netbsd-1-0-PATCH03:1.5
	netbsd-1-0-PATCH02:1.5
	netbsd-1-0-PATCH1:1.5
	netbsd-1-0-PATCH0:1.5
	netbsd-1-0-RELEASE:1.5
	lite-1:1.1.1.2
	CSRG:1.1.1
	netbsd-1-0:1.5.0.2
	netbsd-1-0-base:1.5
	netbsd-0-9-RELEASE:1.4
	netbsd-0-9-BETA:1.4
	netbsd-0-9-ALPHA2:1.4
	netbsd-0-9-ALPHA:1.4
	netbsd-0-9:1.4.0.2
	netbsd-0-9-base:1.4
	netbsd-0-8:1.3
	netbsd-alpha-1:1.3
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.43
date	2025.09.18.03.35.59;	author mrg;	state Exp;
branches;
next	1.42;
commitid	RQc1sc69acbZ59bG;

1.42
date	2018.06.10.17.55.11;	author christos;	state Exp;
branches
	1.42.2.1;
next	1.41;
commitid	BcxRqUGZukqpgLFA;

1.41
date	2014.07.05.23.12.33;	author dholland;	state Exp;
branches
	1.41.22.1;
next	1.40;
commitid	KhTfjcBNNEi5bfHx;

1.40
date	2014.06.13.01.17.45;	author mrg;	state Exp;
branches;
next	1.39;
commitid	B85aQFinfdyyBiEx;

1.39
date	2013.07.16.17.47.43;	author christos;	state Exp;
branches
	1.39.4.1;
next	1.38;
commitid	X2bCJHd9I19TKIXw;

1.38
date	2013.01.25.19.07.14;	author he;	state Exp;
branches;
next	1.37;

1.37
date	2013.01.25.14.20.57;	author christos;	state Exp;
branches;
next	1.36;

1.36
date	2013.01.23.16.39.03;	author christos;	state Exp;
branches;
next	1.35;

1.35
date	2013.01.22.22.40.31;	author christos;	state Exp;
branches;
next	1.34;

1.34
date	2013.01.22.20.35.29;	author christos;	state Exp;
branches;
next	1.33;

1.33
date	2011.08.28.07.49.16;	author christos;	state Exp;
branches
	1.33.2.1
	1.33.8.1;
next	1.32;

1.32
date	2011.08.25.15.44.51;	author joerg;	state Exp;
branches;
next	1.31;

1.31
date	2011.08.14.10.53.16;	author christos;	state Exp;
branches;
next	1.30;

1.30
date	2011.07.01.03.58.10;	author mrg;	state Exp;
branches;
next	1.29;

1.29
date	2008.10.25.22.27.34;	author apb;	state Exp;
branches;
next	1.28;

1.28
date	2008.08.29.00.02.21;	author gmcgarry;	state Exp;
branches;
next	1.27;

1.27
date	2006.07.01.05.54.35;	author mrg;	state Exp;
branches
	1.27.20.1;
next	1.26;

1.26
date	2003.10.21.10.01.19;	author lukem;	state Exp;
branches;
next	1.25;

1.25
date	2003.10.19.04.45.01;	author lukem;	state Exp;
branches;
next	1.24;

1.24
date	2003.10.19.00.14.16;	author lukem;	state Exp;
branches;
next	1.23;

1.23
date	2003.08.01.17.03.41;	author lukem;	state Exp;
branches;
next	1.22;

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

1.21
date	2003.07.28.15.25.02;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	2002.08.19.09.56.00;	author lukem;	state Exp;
branches;
next	1.19;

1.19
date	98.04.13.14.08.27;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	98.04.08.22.38.18;	author fair;	state Exp;
branches;
next	1.17;

1.17
date	97.10.22.01.22.58;	author lukem;	state Exp;
branches;
next	1.16;

1.16
date	97.10.11.09.34.07;	author mycroft;	state Exp;
branches
	1.16.2.1;
next	1.15;

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

1.14
date	97.07.20.22.36.39;	author christos;	state Exp;
branches;
next	1.13;

1.13
date	97.07.04.21.23.50;	author christos;	state Exp;
branches;
next	1.12;

1.12
date	97.05.08.21.11.01;	author gwr;	state Exp;
branches;
next	1.11;

1.11
date	97.05.06.20.44.56;	author gwr;	state Exp;
branches;
next	1.10;

1.10
date	96.09.30.20.03.52;	author christos;	state Exp;
branches;
next	1.9;

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

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

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

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

1.5
date	93.08.01.05.47.53;	author mycroft;	state Exp;
branches;
next	1.4;

1.4
date	93.05.26.19.05.47;	author proven;	state Exp;
branches;
next	1.3;

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

1.2
date	93.03.22.08.04.00;	author cgd;	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.42.2.1
date	2020.04.21.18.41.02;	author martin;	state dead;
branches;
next	1.42.2.2;
commitid	86tA4aEmdr3VCh5C;

1.42.2.2
date	2020.04.21.19.37.30;	author martin;	state Exp;
branches;
next	;
commitid	x6IB64bYH9UmWh5C;

1.41.22.1
date	2018.06.25.07.25.04;	author pgoyette;	state Exp;
branches;
next	;
commitid	8PtAu9af7VvhiDHA;

1.39.4.1
date	2014.08.10.06.41.18;	author tls;	state Exp;
branches;
next	;
commitid	cmSmsS7FIRrlxMLx;

1.33.2.1
date	2014.05.22.11.26.22;	author yamt;	state Exp;
branches;
next	;
commitid	OarWMuV9WFtzGwBx;

1.33.8.1
date	2013.02.25.00.23.50;	author tls;	state Exp;
branches;
next	1.33.8.2;

1.33.8.2
date	2014.08.19.23.45.10;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.27.20.1
date	2008.09.18.04.27.40;	author wrstuden;	state Exp;
branches;
next	;

1.16.2.1
date	97.11.07.07.24.33;	author lukem;	state Exp;
branches;
next	1.16.2.2;

1.16.2.2
date	98.05.08.22.20.20;	author mycroft;	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	94.09.20.05.28.14;	author mycroft;	state Exp;
branches;
next	;


desc
@@


1.43
log
@introduce a couple of new turn-off-gcc-warning variables and use them.

GCC 14 has a new annoying calloc() checker that we turn off in a bunch
of places, and there are a few more dangling-pointer issuse that come up,
but seem bogus.
@
text
@#	$NetBSD: Makefile,v 1.42 2018/06/10 17:55:11 christos Exp $
#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
#
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
#
# To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile.

.include <bsd.own.mk>
WARNS=6

PROG=	csh
DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
# - Editor history not always aligned with shell history,
#   should implement internally
# - Does not handle escaped prompts.
# - Does not do completion
.ifndef SMALLPROG
DFLAGS+=-DEDIT
.endif
CPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
SRCS=	alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
	sem.c set.c str.c time.c
.PATH:	${NETBSDSRCDIR}/usr.bin/printf

MLINKS=	csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
	csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
	csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
	csh.1 stop.1 csh.1 source.1

DPSRCS+=	errnum.h const.h
CLEANFILES+=	errnum.h const.h

errnum.h: err.c
	${_MKTARGET_CREATE}
	rm -f ${.TARGET}
	(\
	echo '/* Do not edit this file, make creates it. */' ;\
	echo '#ifndef _h_sh_errnum' ;\
	echo '#define _h_sh_errnum' ;\
	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' ;\
	echo '#endif /* _h_sh_errnum */' ;\
	) > ${.TARGET}

const.c: errnum.h
const.h: const.c
	${_MKTARGET_CREATE}
	rm -f ${.TARGET}
	echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
	    ${TOOL_SED} -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
	    sort >> ${.TARGET}

SUBDIR.roff+=USD.doc

COPTS.err.c = -Wno-format-nonliteral
COPTS.printf.c = -Wno-format-nonliteral
COPTS.proc.c = -Wno-format-nonliteral
COPTS.glob.c = ${CC_WNO_DANGLING_POINTER}

.if !empty(DFLAGS:M*EDIT)
LDADD+=-ledit -lterminfo -lutil
DPADD+=${LIBEDIT} ${LIBUTIL}
.else
LDADD+=-lutil
DPADD+=${LIBUTIL}
.endif

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


1.42
log
@use SUBDIR.roff suggested by uwe@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2014/07/05 23:12:33 dholland Exp $
d60 1
@


1.42.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2018/06/10 17:55:11 christos Exp $
@


1.42.2.2
log
@Ooops, restore accidently removed files from merge mishap
@
text
@@


1.41
log
@remove .if make(install)
these are seriously bad juju
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2014/06/13 01:17:45 mrg Exp $
d55 1
a55 1
SUBDIR+=USD.doc
@


1.41.22.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2018/06/10 17:55:11 christos Exp $
d55 1
a55 1
SUBDIR.roff+=USD.doc
@


1.40
log
@remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2013/07/16 17:47:43 christos Exp $
a54 1
.if make(install)
a55 1
.endif
@


1.39
log
@WARNS=6 [-Wconversion]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2013/01/25 19:07:14 he Exp $
a58 4
# XXX Only GCC 4.1 problem
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax"
COPTS.parse.c+=	-O0
.endif
@


1.39.4.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2014/07/05 23:12:33 dholland Exp $
d55 1
d57 1
d59 4
@


1.38
log
@When using -ledit, also use -lterminfo, to allow static linking.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2013/01/25 14:20:57 christos Exp $
d10 1
@


1.37
log
@Obey SMALLPROG and don't enable the editor
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2013/01/23 16:39:03 christos Exp $
d67 1
a67 1
LDADD+=-ledit -lutil
@


1.36
log
@make history kind of work :-), turn libedit support on.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2013/01/22 22:40:31 christos Exp $
d17 1
d19 1
@


1.35
log
@fix compilation without -DEDIT
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2013/01/22 20:35:29 christos Exp $
d13 2
a14 1
# - Not integrated with history
d17 1
a17 1
# DFLAGS+=-DEDIT
d64 1
a64 1
.if 0
@


1.34
log
@Add a little libedit front end. Could be used as someone's pet project to
learn how to program. It is not enabled in the Makefile, and it states why
there.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2011/08/28 07:49:16 christos Exp $
d64 3
a68 3
.elese
LDADD+=-ledit -lutil
DPADD+=${LIBEDIT} ${LIBUTIL}
@


1.33
log
@use strpct(3) from libutil.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2011/08/25 15:44:51 joerg Exp $
d13 4
d63 1
d66 4
@


1.33.2.1
log
@sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2011/08/28 07:49:16 christos Exp $
a9 1
WARNS=6
a12 7
# - Editor history not always aligned with shell history,
#   should implement internally
# - Does not handle escaped prompts.
# - Does not do completion
.ifndef SMALLPROG
DFLAGS+=-DEDIT
.endif
a58 4
.if !empty(DFLAGS:M*EDIT)
LDADD+=-ledit -lterminfo -lutil
DPADD+=${LIBEDIT} ${LIBUTIL}
.else
a60 1
.endif
@


1.33.8.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2011/08/28 07:49:16 christos Exp $
a12 7
# - Editor history not always aligned with shell history,
#   should implement internally
# - Does not handle escaped prompts.
# - Does not do completion
.ifndef SMALLPROG
DFLAGS+=-DEDIT
.endif
a58 4
.if !empty(DFLAGS:M*EDIT)
LDADD+=-ledit -lterminfo -lutil
DPADD+=${LIBEDIT} ${LIBUTIL}
.else
a60 1
.endif
@


1.33.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a9 1
WARNS=6
d54 1
d56 1
d58 4
@


1.32
log
@Uses non-literal format strings in err.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2011/08/14 10:53:16 christos Exp $
d16 1
a16 1
	sem.c set.c str.c strpct.c time.c
d58 3
a60 1
COPTS.strpct.c = -Wno-format-nonliteral
@


1.31
log
@Document non-literal formats
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2011/07/01 03:58:10 mrg Exp $
d55 1
@


1.30
log
@add a comment to confirm a workaround as only being a GCC 4.1 issue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2008/10/25 22:27:34 apb Exp $
d55 3
@


1.29
log
@Use ${TOOL_SED} instead if plain sed in Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2008/08/29 00:02:21 gmcgarry Exp $
d51 1
@


1.28
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2006/07/01 05:54:35 mrg Exp $
d44 1
a44 1
	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
@


1.27
log
@apply a little -O0 with GCC4 and vax...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2003/10/21 10:01:19 lukem Exp $
d51 1
a51 1
.if ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax"
@


1.27.20.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2006/07/01 05:54:35 mrg Exp $
d51 1
a51 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax"
@


1.26
log
@Rework how MAKEVERBOSE operates:

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

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2003/10/19 04:45:01 lukem Exp $
d51 4
@


1.25
log
@rework to use the newer _MKMSGCREATE (et al) macros
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2003/10/19 00:14:16 lukem Exp $
d28 1
a28 2
	${_MKMSGCREATE}
	${_MKCMD}\
a29 1
	${_MKCMD}\
d40 1
a40 2
	${_MKMSGCREATE}
	${_MKCMD}\
a41 1
	${_MKCMD}\
a42 1
	${_MKCMD}\
@


1.24
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2003/08/01 17:03:41 lukem Exp $
d28 1
a28 1
	${_MKMSG} " create  ${.TARGET}"
d42 1
a42 1
	${_MKMSG} " create  ${.TARGET}"
@


1.23
log
@Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2003/07/29 01:34:16 lukem Exp $
d28 11
a38 6
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
	@@echo '#ifndef _h_sh_errnum' >> ${.TARGET}
	@@echo '#define _h_sh_errnum' >> ${.TARGET}
	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
	@@echo '#endif /* _h_sh_errnum */' >> ${.TARGET}
d40 1
d42 6
a47 2
	@@rm -f ${.TARGET}
	@@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
@


1.22
log
@move ${DEPENDSRCS} target to after .include <bsd.*.mk>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2003/07/28 15:25:02 lukem Exp $
a22 1
CLEANFILES+=errnum.h const.h
d24 2
a25 1
const.h: errnum.h
a41 3
alloc.o const.o csh.o dir.o dol.o err.o exec.o exp.o file.o func.o glob.o \
    hist.o init.o lex.o misc.o parse.o proc.o sem.o set.o str.o time.o: const.h

a47 2

${DEPENDSRCS} alloc.o: const.h errnum.h 
@


1.21
log
@Use ${DEPENDSRCS} as a target instead of .depend, now that
<bsd.dep.mk> builds .depend from .dep files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2002/08/19 09:56:00 lukem Exp $
a41 2
${DEPENDSRCS} alloc.o: const.h errnum.h 

d51 2
@


1.20
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1998/04/13 14:08:27 lukem Exp $
d42 1
a42 1
.depend alloc.o: const.h errnum.h 
@


1.19
log
@refer to COPTS not CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1998/04/08 22:38:18 fair Exp $
d9 2
d17 1
a17 1
.PATH:	${.CURDIR}/../../usr.bin/printf
@


1.18
log
@Fix PR#3585 - csh printed a negative percentage of CPU used when the total
CPU usage was more than 6 hours (integer overflow problem).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1997/10/22 01:22:58 lukem Exp $
d7 1
a7 1
# To profile, put -DPROF in DFLAGS and -pg in CFLAGS, and recompile.
@


1.17
log
@add dependancy line to fix parallel compilation
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1997/10/11 09:34:07 mycroft Exp $
d14 1
a14 1
	sem.c set.c str.c time.c
@


1.16
log
@Use bsd.subdir.mk as appropriate.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1997/10/10 19:55:58 christos Exp $
d7 1
a7 1
# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile.
d41 3
@


1.16.2.1
log
@pull up rev 1.17 from trunk (approval from thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1997/10/22 01:22:58 lukem Exp $
d7 1
a7 1
# To profile, put -DPROF in DFLAGS and -pg in CFLAGS, and recompile.
a40 3

alloc.o const.o csh.o dir.o dol.o err.o exec.o exp.o file.o func.o glob.o \
    hist.o init.o lex.o misc.o parse.o proc.o sem.o set.o str.o time.o: const.h
@


1.16.2.2
log
@Pull up 1.18, per request of fair.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16.2.1 1997/11/07 07:24:33 lukem Exp $
d14 1
a14 1
	sem.c set.c str.c strpct.c time.c
@


1.15
log
@CFLAGS->CPPFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/07/20 22:36:39 christos Exp $
d43 1
a43 1
SUBDIR+= USD.doc
d47 1
@


1.14
log
@Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/07/04 21:23:50 christos Exp $
d11 1
a11 1
CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
d36 1
a36 1
	${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
@


1.13
log
@Rename err.h to errnum.h to avoid collision with err.h
Fix compiler warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1997/05/08 21:11:01 gwr Exp $
a8 1
WARNS=	1
@


1.12
log
@Back out the .PATH.c changes.  The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/05/06 20:44:56 gwr Exp $
d9 1
a11 2
#CFLAGS+=-g
#CFLAGS+=-Wall -ansi -pedantic
d22 1
a22 1
CLEANFILES+=err.h const.h
d24 1
a24 1
const.h: err.h
d26 7
a32 7
err.h: err.c
	@@rm -f $@@
	@@echo '/* Do not edit this file, make creates it. */' > $@@
	@@echo '#ifndef _h_sh_err' >> $@@
	@@echo '#define _h_sh_err' >> $@@
	egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@@
	@@echo '#endif /* _h_sh_err */' >> $@@
d35 3
a37 3
	@@rm -f $@@
	@@echo '/* Do not edit this file, make creates it. */' > $@@
	${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
d39 1
a39 1
	    sort >> $@@
d41 1
a41 1
.depend alloc.o: const.h err.h 
@


1.11
log
@Use .PATH.c: ...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1996/09/30 20:03:52 christos Exp $
d17 1
a17 3

# printf.c
.PATH.c: ${.CURDIR}/../../usr.bin/printf
@


1.10
log
@- Use ../usr.bin/printf/printf.c
- Fix built-in which to set the status code correctly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1995/03/21 09:02:21 cgd Exp $
d17 3
a19 1
.PATH:	${.CURDIR}/../../usr.bin/printf
@


1.9
log
@convert to new RCS id conventions.
@
text
@d1 1
a1 1
#	$NetBSD$
d17 1
a17 1
#.PATH:	${.CURDIR}/../../usr.bin/printf
@


1.8
log
@new way of specifying man pages.
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	8.1 (Berkeley) 5/31/93
#	$Id: Makefile,v 1.7 1994/12/18 11:42:39 cgd Exp $
@


1.7
log
@add USD.doc to subdir list on install
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1994/09/21 00:10:23 mycroft Exp $
a18 1
MAN1=	csh.0
@


1.6
log
@Merge 4.4-Lite version.
@
text
@d2 1
a2 1
#	$Id: $
d44 4
@


1.5
log
@Add RCS identifiers.
@
text
@d1 1
a1 1
#	from: @@(#)Makefile	5.24 (Berkeley) 7/1/91
d3 1
a3 1

d10 4
a13 1
CFLAGS+=-fstrength-reduce -DFILEC -DNLS -DSHORT_STRINGS -I.
d15 3
a17 2
	func.c glob.c hist.c init.c lex.c misc.c parse.c print.c printf.c \
	proc.c sem.c set.c str.c time.c
d43 1
a43 1
.depend alloc.o: const.h err.h
@


1.4
log
@Compiles with gcc-2.3.3 now.
@
text
@d1 3
a3 4
#	@@(#)Makefile	5.24 (Berkeley) 7/1/91
#
#	$Header: /b/source/CVS/src/bin/csh/Makefile,v 1.3 1993/03/23 00:23:53 cgd Exp $
#
@


1.3
log
@changed "Id" to "Header" for rcsids
@
text
@d3 1
a3 1
#	$Header: Makefile,v 1.2 93/03/22 08:04:48 cgd Exp $
d11 1
a11 1
CFLAGS+=-fcombine-regs -fstrength-reduce -DFILEC -DNLS -DSHORT_STRINGS -I.
@


1.2
log
@added rcs ids to all files
@
text
@d3 1
a3 1
#	$Id: Makefile,v 1.2 93/03/21 22:09:40 cgd Exp $
@


1.1
log
@Initial revision
@
text
@d3 2
@


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


1.1.1.2
log
@Import original 4.4-Lite version.
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
d9 1
a9 4
DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
#CFLAGS+=-g
#CFLAGS+=-Wall -ansi -pedantic
CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
d11 2
a12 3
	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
	sem.c set.c str.c time.c
.PATH:	${.CURDIR}/../../usr.bin/printf
d38 1
a38 1
.depend: const.h err.h 
@
