head	1.39;
access;
symbols
	netbsd-11-0-RC5:1.39
	netbsd-11-0-RC4:1.39
	netbsd-11-0-RC3:1.39
	netbsd-11-0-RC2:1.39
	netbsd-11-0-RC1:1.39
	perseant-exfatfs-base-20250801:1.39
	netbsd-11:1.39.0.2
	netbsd-11-base:1.39
	netbsd-10-1-RELEASE:1.36
	perseant-exfatfs-base-20240630:1.37
	perseant-exfatfs:1.37.0.2
	perseant-exfatfs-base:1.37
	netbsd-8-3-RELEASE:1.33
	netbsd-9-4-RELEASE:1.35
	netbsd-10-0-RELEASE:1.36
	netbsd-10-0-RC6:1.36
	netbsd-10-0-RC5:1.36
	netbsd-10-0-RC4:1.36
	netbsd-10-0-RC3:1.36
	netbsd-10-0-RC2:1.36
	netbsd-10-0-RC1:1.36
	netbsd-10:1.36.0.8
	netbsd-10-base:1.36
	netbsd-9-3-RELEASE:1.35
	cjep_sun2x-base1:1.36
	cjep_sun2x:1.36.0.6
	cjep_sun2x-base:1.36
	cjep_staticlib_x-base1:1.36
	netbsd-9-2-RELEASE:1.35
	cjep_staticlib_x:1.36.0.4
	cjep_staticlib_x-base:1.36
	netbsd-9-1-RELEASE:1.35
	phil-wifi-20200421:1.36
	phil-wifi-20200411:1.36
	is-mlppp:1.36.0.2
	is-mlppp-base:1.36
	phil-wifi-20200406:1.36
	netbsd-8-2-RELEASE:1.33
	netbsd-9-0-RELEASE:1.35
	netbsd-9-0-RC2:1.35
	netbsd-9-0-RC1:1.35
	phil-wifi-20191119:1.36
	netbsd-9:1.35.0.2
	netbsd-9-base:1.35
	phil-wifi-20190609:1.35
	netbsd-8-1-RELEASE:1.33
	netbsd-8-1-RC1:1.33
	pgoyette-compat-merge-20190127:1.34
	pgoyette-compat-20190127:1.34
	pgoyette-compat-20190118:1.34
	pgoyette-compat-1226:1.34
	pgoyette-compat-1126:1.34
	pgoyette-compat-1020:1.34
	pgoyette-compat-0930:1.34
	pgoyette-compat-0906:1.34
	netbsd-7-2-RELEASE:1.30.22.1
	pgoyette-compat-0728:1.34
	netbsd-8-0-RELEASE:1.33
	phil-wifi:1.34.0.6
	phil-wifi-base:1.34
	pgoyette-compat-0625:1.34
	netbsd-8-0-RC2:1.33
	pgoyette-compat-0521:1.34
	pgoyette-compat-0502:1.34
	pgoyette-compat-0422:1.34
	netbsd-8-0-RC1:1.33
	pgoyette-compat-0415:1.34
	pgoyette-compat-0407:1.34
	pgoyette-compat-0330:1.34
	pgoyette-compat-0322:1.34
	pgoyette-compat-0315:1.34
	netbsd-7-1-2-RELEASE:1.30.22.1
	pgoyette-compat:1.34.0.4
	pgoyette-compat-base:1.34
	netbsd-7-1-1-RELEASE:1.30.22.1
	matt-nb8-mediatek:1.33.0.10
	matt-nb8-mediatek-base:1.33
	perseant-stdc-iso10646:1.34.0.2
	perseant-stdc-iso10646-base:1.34
	netbsd-8:1.33.0.8
	netbsd-8-base:1.33
	prg-localcount2-base3:1.33
	prg-localcount2-base2:1.33
	prg-localcount2-base1:1.33
	prg-localcount2:1.33.0.6
	prg-localcount2-base:1.33
	pgoyette-localcount-20170426:1.33
	bouyer-socketcan-base1:1.33
	pgoyette-localcount-20170320:1.33
	netbsd-7-1:1.30.22.1.0.6
	netbsd-7-1-RELEASE:1.30.22.1
	netbsd-7-1-RC2:1.30.22.1
	netbsd-7-nhusb-base-20170116:1.30.22.1
	bouyer-socketcan:1.33.0.4
	bouyer-socketcan-base:1.33
	pgoyette-localcount-20170107:1.33
	netbsd-7-1-RC1:1.30.22.1
	pgoyette-localcount-20161104:1.33
	netbsd-7-0-2-RELEASE:1.30.22.1
	localcount-20160914:1.33
	netbsd-7-nhusb:1.30.22.1.0.4
	netbsd-7-nhusb-base:1.30.22.1
	pgoyette-localcount-20160806:1.33
	pgoyette-localcount-20160726:1.33
	pgoyette-localcount:1.33.0.2
	pgoyette-localcount-base:1.33
	netbsd-7-0-1-RELEASE:1.30.22.1
	netbsd-7-0:1.30.22.1.0.2
	netbsd-7-0-RELEASE:1.30.22.1
	netbsd-7-0-RC3:1.30.22.1
	netbsd-7-0-RC2:1.30.22.1
	netbsd-7-0-RC1:1.30.22.1
	netbsd-5-2-3-RELEASE:1.25
	netbsd-5-1-5-RELEASE:1.25
	netbsd-6-0-6-RELEASE:1.30
	netbsd-6-1-5-RELEASE:1.30
	netbsd-7:1.30.0.22
	netbsd-7-base:1.30
	yamt-pagecache-base9:1.30
	yamt-pagecache-tag8:1.30
	netbsd-6-1-4-RELEASE:1.30
	netbsd-6-0-5-RELEASE:1.30
	tls-earlyentropy:1.30.0.20
	tls-earlyentropy-base:1.30
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.30
	riastradh-drm2-base3:1.30
	netbsd-6-1-3-RELEASE:1.30
	netbsd-6-0-4-RELEASE:1.30
	netbsd-5-2-2-RELEASE:1.25
	netbsd-5-1-4-RELEASE:1.25
	netbsd-6-1-2-RELEASE:1.30
	netbsd-6-0-3-RELEASE:1.30
	netbsd-5-2-1-RELEASE:1.25
	netbsd-5-1-3-RELEASE:1.25
	netbsd-6-1-1-RELEASE:1.30
	riastradh-drm2-base2:1.30
	riastradh-drm2-base1:1.30
	riastradh-drm2:1.30.0.12
	riastradh-drm2-base:1.30
	netbsd-6-1:1.30.0.18
	netbsd-6-0-2-RELEASE:1.30
	netbsd-6-1-RELEASE:1.30
	khorben-n900:1.30.0.16
	netbsd-6-1-RC4:1.30
	netbsd-6-1-RC3:1.30
	agc-symver:1.30.0.14
	agc-symver-base:1.30
	netbsd-6-1-RC2:1.30
	netbsd-6-1-RC1:1.30
	yamt-pagecache-base8:1.30
	netbsd-5-2:1.25.0.14
	netbsd-6-0-1-RELEASE:1.30
	yamt-pagecache-base7:1.30
	netbsd-5-2-RELEASE:1.25
	netbsd-5-2-RC1:1.25
	matt-nb6-plus-nbase:1.30
	yamt-pagecache-base6:1.30
	netbsd-6-0:1.30.0.10
	netbsd-6-0-RELEASE:1.30
	netbsd-6-0-RC2:1.30
	tls-maxphys:1.30.0.8
	tls-maxphys-base:1.30
	matt-nb6-plus:1.30.0.6
	matt-nb6-plus-base:1.30
	netbsd-6-0-RC1:1.30
	yamt-pagecache-base5:1.30
	yamt-pagecache-base4:1.30
	netbsd-6:1.30.0.4
	netbsd-6-base:1.30
	netbsd-5-1-2-RELEASE:1.25
	netbsd-5-1-1-RELEASE:1.25
	yamt-pagecache-base3:1.30
	yamt-pagecache-base2:1.30
	yamt-pagecache:1.30.0.2
	yamt-pagecache-base:1.30
	cherry-xenmp:1.27.0.2
	cherry-xenmp-base:1.27
	bouyer-quota2-nbase:1.26
	bouyer-quota2:1.26.0.2
	bouyer-quota2-base:1.26
	matt-mips64-premerge-20101231:1.26
	matt-nb5-mips64-premerge-20101231:1.25
	matt-nb5-pq3:1.25.0.12
	matt-nb5-pq3-base:1.25
	netbsd-5-1:1.25.0.10
	netbsd-5-1-RELEASE:1.25
	netbsd-5-1-RC4:1.25
	matt-nb5-mips64-k15:1.25
	netbsd-5-1-RC3:1.25
	netbsd-5-1-RC2:1.25
	netbsd-5-1-RC1:1.25
	netbsd-5-0-2-RELEASE:1.25
	matt-nb5-mips64-premerge-20091211:1.25
	matt-premerge-20091211:1.26
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.25
	matt-nb4-mips64-k7-u2a-k9b:1.25
	matt-nb5-mips64-u1-k1-k5:1.25
	matt-nb5-mips64:1.25.0.8
	netbsd-5-0-1-RELEASE:1.25
	jym-xensuspend-nbase:1.26
	netbsd-5-0:1.25.0.6
	netbsd-5-0-RELEASE:1.25
	netbsd-5-0-RC4:1.25
	netbsd-5-0-RC3:1.25
	netbsd-5-0-RC2:1.25
	jym-xensuspend:1.25.0.4
	jym-xensuspend-base:1.26
	netbsd-5-0-RC1:1.25
	netbsd-5:1.25.0.2
	netbsd-5-base:1.25
	matt-mips64-base2:1.24
	matt-mips64:1.23.0.24
	mjf-devfs2:1.23.0.22
	mjf-devfs2-base:1.23
	netbsd-4-0-1-RELEASE:1.23
	wrstuden-revivesa-base-3:1.23
	wrstuden-revivesa-base-2:1.23
	wrstuden-fixsa-newbase:1.23
	wrstuden-revivesa-base-1:1.23
	yamt-pf42-base4:1.23
	yamt-pf42-base3:1.23
	hpcarm-cleanup-nbase:1.23
	yamt-pf42-baseX:1.23
	yamt-pf42-base2:1.23
	wrstuden-revivesa:1.23.0.20
	wrstuden-revivesa-base:1.23
	yamt-pf42:1.23.0.18
	yamt-pf42-base:1.23
	keiichi-mipv6:1.23.0.16
	keiichi-mipv6-base:1.23
	matt-armv6-nbase:1.23
	matt-armv6-prevmlocking:1.23
	wrstuden-fixsa-base-1:1.23
	netbsd-4-0:1.23.0.14
	netbsd-4-0-RELEASE:1.23
	cube-autoconf:1.23.0.12
	cube-autoconf-base:1.23
	netbsd-4-0-RC5:1.23
	netbsd-4-0-RC4:1.23
	netbsd-4-0-RC3:1.23
	netbsd-4-0-RC2:1.23
	netbsd-4-0-RC1:1.23
	matt-armv6:1.23.0.10
	matt-armv6-base:1.23
	matt-mips64-base:1.23
	hpcarm-cleanup:1.23.0.8
	hpcarm-cleanup-base:1.23
	netbsd-3-1-1-RELEASE:1.22
	netbsd-3-0-3-RELEASE:1.22
	wrstuden-fixsa:1.23.0.6
	wrstuden-fixsa-base:1.23
	abandoned-netbsd-4-base:1.23
	abandoned-netbsd-4:1.23.0.2
	netbsd-3-1:1.22.0.12
	netbsd-3-1-RELEASE:1.22
	netbsd-3-0-2-RELEASE:1.22
	netbsd-3-1-RC4:1.22
	netbsd-3-1-RC3:1.22
	netbsd-3-1-RC2:1.22
	netbsd-3-1-RC1:1.22
	netbsd-4:1.23.0.4
	netbsd-4-base:1.23
	netbsd-3-0-1-RELEASE:1.22
	netbsd-3-0:1.22.0.10
	netbsd-3-0-RELEASE:1.22
	netbsd-3-0-RC6:1.22
	netbsd-3-0-RC5:1.22
	netbsd-3-0-RC4:1.22
	netbsd-3-0-RC3:1.22
	netbsd-3-0-RC2:1.22
	netbsd-3-0-RC1:1.22
	netbsd-2-0-3-RELEASE:1.22
	netbsd-2-1:1.22.0.8
	netbsd-2-1-RELEASE:1.22
	netbsd-2-1-RC6:1.22
	netbsd-2-1-RC5:1.22
	netbsd-2-1-RC4:1.22
	netbsd-2-1-RC3:1.22
	netbsd-2-1-RC2:1.22
	netbsd-2-1-RC1:1.22
	netbsd-2-0-2-RELEASE:1.22
	netbsd-3:1.22.0.6
	netbsd-3-base:1.22
	netbsd-2-0-1-RELEASE:1.22
	netbsd-2:1.22.0.4
	netbsd-2-base:1.22
	netbsd-2-0-RELEASE:1.22
	netbsd-2-0-RC5:1.22
	netbsd-2-0-RC4:1.22
	netbsd-2-0-RC3:1.22
	netbsd-2-0-RC2:1.22
	netbsd-2-0-RC1:1.22
	netbsd-2-0:1.22.0.2
	netbsd-2-0-base:1.22
	historyrename-after:1.22
	historyrename-before:1.22
	netbsd-1-6-PATCH002-RELEASE:1.16
	netbsd-1-6-PATCH002:1.16
	netbsd-1-6-PATCH002-RC4:1.16
	netbsd-1-6-PATCH002-RC3:1.16
	netbsd-1-6-PATCH002-RC2:1.16
	netbsd-1-6-PATCH002-RC1:1.16
	netbsd-1-6-PATCH001:1.16
	netbsd-1-6-PATCH001-RELEASE:1.16
	netbsd-1-6-PATCH001-RC3:1.16
	netbsd-1-6-PATCH001-RC2:1.16
	netbsd-1-6-PATCH001-RC1:1.16
	fvdl_fs64_base:1.16
	netbsd-1-6-RELEASE:1.16
	netbsd-1-6-RC3:1.16
	netbsd-1-6-RC2:1.16
	netbsd-1-6-RC1:1.16
	netbsd-1-6:1.16.0.2
	netbsd-1-6-base:1.16
	netbsd-1-5-PATCH003:1.12.6.2
	netbsd-1-5-PATCH002:1.12.6.1
	netbsd-1-5-PATCH001:1.12.6.1
	netbsd-1-5-RELEASE:1.12.6.1
	netbsd-1-5-BETA2:1.12.6.1
	netbsd-1-5-BETA:1.12.6.1
	netbsd-1-4-PATCH003:1.11
	netbsd-1-5-ALPHA2:1.12
	netbsd-1-5:1.12.0.6
	netbsd-1-5-base:1.12
	minoura-xpg4dl:1.12.0.4
	minoura-xpg4dl-base:1.12
	netbsd-1-4-PATCH002:1.11
	wrstuden-devbsize-19991221:1.12
	wrstuden-devbsize:1.11.0.4
	wrstuden-devbsize-base:1.12
	comdex-fall-1999:1.12.0.2
	comdex-fall-1999-base:1.12
	netbsd-1-4-PATCH001:1.11
	netbsd-1-4-RELEASE:1.11
	netbsd-1-4:1.11.0.2
	netbsd-1-4-base:1.11
	netbsd-1-3-PATCH003:1.10.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.10.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.10.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.10.2.1
	netbsd-1-3-PATCH002:1.10.2.1
	netbsd-1-3-PATCH001:1.10.2.1
	netbsd-1-3-RELEASE:1.10.2.1
	netbsd-1-3-BETA:1.10.2.1
	netbsd-1-3:1.10.0.2
	netbsd-1-3-base:1.10
	PDKSH5_2_12:1.1.1.1
	PDKSH5_2_11:1.1.1.1
	PDKSH5_2_9:1.1.1.1
	PDKSH5_2_8:1.1.1.1
	MR:1.1.1;
locks; strict;
comment	@# @;


1.39
date	2024.12.05.22.45.20;	author rillig;	state Exp;
branches;
next	1.38;
commitid	nhKKx3caTSFoGmAF;

1.38
date	2024.12.05.22.40.02;	author rillig;	state Exp;
branches;
next	1.37;
commitid	1dP57TJRYgVYEmAF;

1.37
date	2023.06.03.21.30.20;	author lukem;	state Exp;
branches
	1.37.2.1;
next	1.36;
commitid	jxeKWdozvzDbZxrE;

1.36
date	2019.09.29.23.44.58;	author mrg;	state Exp;
branches;
next	1.35;
commitid	xrLFk44PaFrGTXEB;

1.35
date	2019.02.04.04.05.15;	author mrg;	state Exp;
branches;
next	1.34;
commitid	HC3U7qZ7jiPeZoaB;

1.34
date	2017.06.30.04.22.22;	author kamil;	state Exp;
branches
	1.34.6.1;
next	1.33;

1.33
date	2016.03.16.23.02.23;	author christos;	state Exp;
branches;
next	1.32;

1.32
date	2016.03.16.23.01.33;	author christos;	state Exp;
branches;
next	1.31;

1.31
date	2015.01.29.20.46.31;	author joerg;	state Exp;
branches;
next	1.30;

1.30
date	2011.10.16.17.12.11;	author joerg;	state Exp;
branches
	1.30.22.1;
next	1.29;

1.29
date	2011.08.14.10.40.25;	author christos;	state Exp;
branches;
next	1.28;

1.28
date	2011.06.22.02.49.41;	author mrg;	state Exp;
branches;
next	1.27;

1.27
date	2011.05.26.12.56.24;	author joerg;	state Exp;
branches;
next	1.26;

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

1.25
date	2008.10.25.22.23.55;	author apb;	state Exp;
branches
	1.25.4.1;
next	1.24;

1.24
date	2008.10.20.07.11.55;	author apb;	state Exp;
branches;
next	1.23;

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

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

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

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

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

1.18
date	2003.10.19.00.18.53;	author lukem;	state Exp;
branches;
next	1.17;

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

1.16
date	2001.11.03.13.39.25;	author lukem;	state Exp;
branches;
next	1.15;

1.15
date	2001.05.15.23.50.36;	author simonb;	state Exp;
branches;
next	1.14;

1.14
date	2000.06.26.06.18.07;	author kleink;	state Exp;
branches;
next	1.13;

1.13
date	2000.06.22.05.42.22;	author soren;	state Exp;
branches;
next	1.12;

1.12
date	99.10.20.15.09.58;	author hubertf;	state Exp;
branches
	1.12.6.1;
next	1.11;

1.11
date	97.10.22.01.36.36;	author lukem;	state Exp;
branches
	1.11.4.1;
next	1.10;

1.10
date	97.10.10.19.56.26;	author christos;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	97.07.20.22.37.12;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	97.07.20.17.41.56;	author christos;	state Exp;
branches;
next	1.7;

1.7
date	97.06.30.19.30.04;	author phil;	state Exp;
branches;
next	1.6;

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

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

1.4
date	97.01.16.21.17.53;	author perry;	state Exp;
branches;
next	1.3;

1.3
date	97.01.12.19.11.37;	author tls;	state Exp;
branches;
next	1.2;

1.2
date	96.10.10.14.17.02;	author jtc;	state Exp;
branches;
next	1.1;

1.1
date	96.09.21.23.35.17;	author jtc;	state Exp;
branches
	1.1.1.1;
next	;

1.37.2.1
date	2025.08.02.05.18.24;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.34.6.1
date	2019.06.10.21.41.03;	author christos;	state Exp;
branches;
next	1.34.6.2;
commitid	jtc8rnCzWiEEHGqB;

1.34.6.2
date	2020.04.13.07.45.06;	author martin;	state Exp;
branches;
next	1.34.6.3;
commitid	X01YhRUPVUDaec4C;

1.34.6.3
date	2020.04.21.18.41.04;	author martin;	state dead;
branches;
next	1.34.6.4;
commitid	86tA4aEmdr3VCh5C;

1.34.6.4
date	2020.04.21.19.37.32;	author martin;	state Exp;
branches;
next	;
commitid	x6IB64bYH9UmWh5C;

1.30.22.1
date	2015.05.14.08.15.47;	author snj;	state Exp;
branches;
next	;

1.25.4.1
date	2009.05.13.19.15.49;	author jym;	state Exp;
branches;
next	;

1.12.6.1
date	2000.09.03.22.44.02;	author soren;	state Exp;
branches;
next	1.12.6.2;

1.12.6.2
date	2002.02.26.19.50.47;	author he;	state Exp;
branches;
next	;

1.11.4.1
date	99.12.27.18.27.00;	author wrstuden;	state Exp;
branches;
next	;

1.10.2.1
date	97.11.07.07.34.48;	author lukem;	state Exp;
branches;
next	;

1.1.1.1
date	96.09.21.23.35.17;	author jtc;	state Exp;
branches;
next	;


desc
@@


1.39
log
@ksh: suppress the 435 lint warnings about identifier list definitions

Leave the actual work of modernizing the function definitions to some
later day.
@
text
@#	$NetBSD: Makefile,v 1.38 2024/12/05 22:40:02 rillig Exp $

WARNS=			3
CWARNFLAGS.clang+=	-Wno-error=cast-qual

.include <bsd.own.mk>

CPPFLAGS+=	-I.
LINTFLAGS+=	-X 384	# function definition using identifier list

PROG=	ksh
SRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
	main.c misc.c path.c shf.c syn.c table.c trap.c tree.c tty.c \
	var.c version.c vi.c
DPSRCS=	emacs.out siglist.out
.if ${MKMAN} != "no"
DPSRCS+=ksh.1
.endif

USETBL=		# yes, needed for the man page.

# Environment for scripts executed during build.
SCRIPT_ENV= \
	AWK=${TOOL_AWK:Q} \
	SED=${TOOL_SED:Q}

CLEANFILES+=	siglist.out siglist.out.tmp
# two steps to prevent the creation of a bogus siglist.out
siglist.out: config.h sh.h siglist.in siglist.sh
	${_MKTARGET_CREATE}
	${SCRIPT_ENV} \
	${HOST_SH} ${.CURDIR}/siglist.sh "${CC} -E ${CPPFLAGS} ${DEFS} \
		-I. -I${.CURDIR}" < ${.CURDIR}/siglist.in > siglist.out.tmp \
	    && mv siglist.out.tmp siglist.out

# two steps to prevent the creation of a bogus emacs.out
CLEANFILES+=	emacs.out emacs.out.tmp
emacs.out: emacs.c
	${_MKTARGET_CREATE}
	${SCRIPT_ENV} \
	${HOST_SH} ${.CURDIR}/emacs-gen.sh ${.CURDIR}/emacs.c > emacs.out.tmp \
	    && mv emacs.out.tmp emacs.out

CLEANFILES+=	ksh.1 ksh.1.tmp
ksh.1: ksh.Man mkman
	${_MKTARGET_CREATE}
	${SCRIPT_ENV} \
	${HOST_SH} ${.CURDIR}/mkman ksh ${.CURDIR}/ksh.Man >ksh.1.tmp \
	    && mv ksh.1.tmp ksh.1

COPTS+=	${CC_WNO_IMPLICIT_FALLTHROUGH}

.include <bsd.prog.mk>
@


1.38
log
@ksh: clean up Makefile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2023/06/03 21:30:20 lukem Exp $
d9 1
@


1.37
log
@adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}

Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of
the older style more complex expressions.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2019/09/29 23:44:58 mrg Exp $
d3 1
a3 1
WARNS=3
d16 1
a16 1
.if (${MKMAN} != "no")
d20 1
a20 2
# needs tbl for the man page.
USETBL= 
d32 2
a33 1
	${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
d41 1
a41 1
	${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
d48 1
a48 1
	${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
@


1.37.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2024/12/05 22:45:20 rillig Exp $
d3 1
a3 1
WARNS=			3
a8 1
LINTFLAGS+=	-X 384	# function definition using identifier list
d16 1
a16 1
.if ${MKMAN} != "no"
d20 2
a21 1
USETBL=		# yes, needed for the man page.
d33 1
a33 2
	${HOST_SH} ${.CURDIR}/siglist.sh "${CC} -E ${CPPFLAGS} ${DEFS} \
		-I. -I${.CURDIR}" < ${.CURDIR}/siglist.in > siglist.out.tmp \
d41 1
a41 1
	${HOST_SH} ${.CURDIR}/emacs-gen.sh ${.CURDIR}/emacs.c > emacs.out.tmp \
d48 1
a48 1
	${HOST_SH} ${.CURDIR}/mkman ksh ${.CURDIR}/ksh.Man >ksh.1.tmp \
@


1.36
log
@convert HAVE_GCC == 7 to HAVE_GCC >= 7.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2019/02/04 04:05:15 mrg Exp $
d51 1
a51 3
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
COPTS+=	-Wno-error=implicit-fallthrough
.endif
@


1.35
log
@- use -Wno-error=implicit-fallthrough with GCC7.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2017/06/30 04:22:22 kamil Exp $
d51 1
a51 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
@


1.34
log
@ksh: Drop support for OSes without POSIX sigaction(2)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2016/03/16 23:02:23 christos Exp $
d51 4
@


1.34.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2019/02/04 04:05:15 mrg Exp $
a50 4
.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
COPTS+=	-Wno-error=implicit-fallthrough
.endif

@


1.34.6.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD$
d51 1
a51 1
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
@


1.34.6.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34.6.2 2020/04/13 07:45:06 martin Exp $
@


1.34.6.4
log
@Ooops, restore accidently removed files from merge mishap
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2019/09/29 23:44:58 mrg Exp $
@


1.33
log
@Put back awk, other scripts need it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2016/03/16 23:01:33 christos Exp $
d13 2
a14 2
	main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
	tree.c tty.c var.c version.c vi.c
@


1.32
log
@We don't need all this magic to build the signals lists. Do the work at
compile time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2015/01/29 20:46:31 joerg Exp $
d25 1
@


1.31
log
@Make cast warnings for clang non-fatal.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2011/10/16 17:12:11 joerg Exp $
a24 1
	AWK=${TOOL_AWK:Q} \
@


1.30
log
@Don't use non-literal format strings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2011/08/14 10:40:25 christos Exp $
d4 1
@


1.30.22.1
log
@Pull up following revision(s) (requested by joerg in ticket #758):
	bin/ksh/Makefile: revision 1.31
	bin/ps/print.c: revision 1.123
	external/bsd/iscsi/dist/src/lib/parameters.c: revision 1.4
	external/bsd/iscsi/dist/src/lib/target.c: revision 1.9
	external/gpl2/lvm2/dist/lib/commands/toolcontext.c: revision 1.8
	external/gpl2/lvm2/dist/lib/format1/import-export.c: revision 1.2
	gnu/dist/texinfo/makeinfo/xml.c: revision 1.2
	sbin/bioctl/bioctl.c: revision 1.16
	usr.sbin/isdn/isdnd/msghdl.c: revision 1.12
Drop pointer checks that are always true.
--
Comment out impossible code.
--
Remove tautologic check.
--
Skip vendor if the string is empty.
Use l_wmesg if the string is not empty. Don't bother checking l_name for
nullness.
--
Array can't be null.
--
Show display if it is not empty.
--
Make cast warnings for clang non-fatal.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2011/10/16 17:12:11 joerg Exp $
a3 1
CWARNFLAGS.clang+=	-Wno-error=cast-qual
@


1.29
log
@kill gcc-4.5 hack.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2011/06/22 02:49:41 mrg Exp $
a49 2
CWARNFLAGS.clang+=	-Wno-format-security

@


1.28
log
@apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2011/05/26 12:56:24 joerg Exp $
a52 5

# XXX
.if ${HAVE_GCC} == 45
COPTS.eval.c+=	-Wno-error
.endif
@


1.27
log
@Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2009/02/14 08:31:13 lukem Exp $
d53 5
@


1.26
log
@Default to WARNS=4 (except for rcp & ksh)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2008/10/25 22:23:55 apb Exp $
d50 2
@


1.25
log
@Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.24 2008/10/20 07:11:55 apb Exp $
@


1.25.4.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.26 2009/02/14 08:31:13 lukem Exp $

WARNS=3
@


1.24
log
@Pass AWK in environment to shell scripts run during the build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2005/06/26 19:09:00 christos Exp $
d23 1
@


1.23
log
@warns=3
- remove param names from function decls
- sprinkle const
- rename shadowed variables
- XXX: there is a lot of fishy __UNCONST going on.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2003/10/26 09:30:55 lukem Exp $
d20 4
d28 1
d36 1
d43 1
@


1.22
log
@don't need -DHAVE_CONFIG_H here
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2003/10/26 07:25:33 lukem Exp $
a6 1
WARNS?=	1
@


1.21
log
@Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2003/10/21 10:01:19 lukem Exp $
d5 1
a5 1
CPPFLAGS+=	-DHAVE_CONFIG_H -I.
@


1.20
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.19 2003/10/19 04:45:01 lukem Exp $
d25 1
a25 1
	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
d32 1
a32 1
	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
d38 1
a38 1
	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
@


1.19
log
@rework to use the newer _MKMSGCREATE (et al) macros
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2003/10/19 00:18:53 lukem Exp $
d24 1
a24 2
	${_MKMSGCREATE}
	${_MKCMD}\
d31 1
a31 2
	${_MKMSGCREATE}
	${_MKCMD}\
d37 1
a37 2
	${_MKMSGCREATE}
	${_MKCMD}\
@


1.18
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2003/08/01 17:03:42 lukem Exp $
d24 1
a24 1
	${_MKMSG} " create  ${.TARGET}"
d32 1
a32 1
	${_MKMSG} " create  ${.TARGET}"
d39 1
a39 1
	${_MKMSG} " create  ${.TARGET}"
@


1.17
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.16 2001/11/03 13:39:25 lukem Exp $
d24 2
d32 2
d39 2
@


1.16
log
@default to WARNS=1 if not set
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2001/05/15 23:50:36 simonb Exp $
d21 1
a21 2
CLEANFILES+=	siglist.out emacs.out

d24 2
a25 2
	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
	mv tmpsiglist.out siglist.out
d28 1
d30 2
a31 2
	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
	mv tmpemacs.out emacs.out
d33 1
d35 2
a36 5
	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1
	mv tmpksh.1 ksh.1

emacs.o:	emacs.out
trap.o:		siglist.out
@


1.15
log
@Don't build ksh.1 if MKMAN == "no".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2000/06/26 06:18:07 kleink Exp $
d7 1
@


1.14
log
@$(CPP) -> $(CC) -E
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.13 2000/06/22 05:42:22 soren Exp $
d12 4
a15 1
DPSRCS=	emacs.out siglist.out ksh.1
@


1.13
log
@CLEANFILES+= siglist.out emacs.out
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1999/10/20 15:09:58 hubertf Exp $
d19 1
a19 1
	sh $(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
@


1.12
log
@resolve conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/10/22 01:36:36 lukem Exp $
d14 2
@


1.12.6.1
log
@Pull up rev 1.13:
> date: 2000/06/22 05:42:22;  author: soren;  state: Exp;  lines: +3 -1
> CLEANFILES+= siglist.out emacs.out
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1999/10/20 15:09:58 hubertf Exp $
a13 2

CLEANFILES+=	siglist.out emacs.out
@


1.12.6.2
log
@Pull up revisions 1.14-1.16 (requested by dogcow):
  Synchronize with current development version:
   o fix problem with ``set -x'' causing a core dump; fixes PR#11361
   o fix problem with ``set -e'' causing early exit; fixes PR#11542
   o fix various misspellings and nested extern declarations
@
text
@d1 1
a1 3
#	$NetBSD$

.include <bsd.own.mk>
a4 1
WARNS?=	1
d10 1
a10 4
DPSRCS=	emacs.out siglist.out
.if (${MKMAN} != "no")
DPSRCS+=ksh.1
.endif
d19 1
a19 1
	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
@


1.11
log
@add dependancies to fix parallel compilation
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1997/10/10 19:56:26 christos Exp $
d10 1
a10 1
DPSRCS=	emacs.out siglist.out
d24 4
@


1.11.4.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1999/10/20 15:09:58 hubertf Exp $
d10 1
a10 1
DPSRCS=	emacs.out siglist.out ksh.1
a23 4

ksh.1: ksh.Man mkman
	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1
	mv tmpksh.1 ksh.1
@


1.10
log
@CFLAGS->CPPFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1997/07/20 22:37:12 christos Exp $
d24 3
@


1.10.2.1
log
@pull up rev 1.11 from trunk (approval by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/10/22 01:36:36 lukem Exp $
a23 3

emacs.o:	emacs.out
trap.o:		siglist.out
@


1.9
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.8 1997/07/20 17:41:56 christos Exp $
d3 1
a3 1
CFLAGS+=	-DHAVE_CONFIG_H -I.
@


1.8
log
@Fix compiler warnings
Add WARNS=1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1997/06/30 19:30:04 phil Exp $
a2 1
WARNS=1
@


1.7
log
@Define USETBL to get tbl used in making man page.  (Closed PR 3144.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1997/05/09 13:28:39 mycroft Exp $
d3 1
@


1.6
log
@Use DPSRCS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1997/05/09 07:50:03 mycroft Exp $
d11 3
@


1.5
log
@Eliminate bogus redefinitions of standard targets.
@
text
@d1 2
a2 1
#	$NetBSD: Makefile,v 1.4 1997/01/16 21:17:53 perry Exp $
d6 1
a6 2
SRCS=	emacs.out siglist.out \
	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
d10 1
a10 1
CLEANFILES+=emacs.out siglist.out
@


1.4
log
@close pr-3111 -- use sh to invoke script instead of executing
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1997/01/12 19:11:37 tls Exp $
d5 2
a6 1
SRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
a11 2
beforedepend:	emacs.out siglist.out

a20 3

emacs.o: emacs.out
trap.o: siglist.out
@


1.3
log
@RCS ID Police
@
text
@d1 1
a1 1
#	$NetBSD$
d15 1
a15 1
	$(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
d20 1
a20 1
	$(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
@


1.2
log
@Removed missing.c beacuse NetBSD is not missing any of the functions
that it provides.
@
text
@d1 1
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
	main.c misc.c missing.c path.c shf.c sigact.c syn.c table.c trap.c \
@


1.1.1.1
log
@import pdksh 5.2.8
@
text
@@
