head	1.30;
access;
symbols
	netbsd-11-0-RC4:1.30
	netbsd-11-0-RC3:1.30
	netbsd-11-0-RC2:1.30
	netbsd-11-0-RC1:1.30
	perseant-exfatfs-base-20250801:1.30
	netbsd-11:1.30.0.56
	netbsd-11-base:1.30
	netbsd-10-1-RELEASE:1.30
	perseant-exfatfs-base-20240630:1.30
	perseant-exfatfs:1.30.0.54
	perseant-exfatfs-base:1.30
	netbsd-8-3-RELEASE:1.30
	netbsd-9-4-RELEASE:1.30
	netbsd-10-0-RELEASE:1.30
	netbsd-10-0-RC6:1.30
	netbsd-10-0-RC5:1.30
	netbsd-10-0-RC4:1.30
	netbsd-10-0-RC3:1.30
	netbsd-10-0-RC2:1.30
	netbsd-10-0-RC1:1.30
	netbsd-10:1.30.0.52
	netbsd-10-base:1.30
	netbsd-9-3-RELEASE:1.30
	cjep_sun2x-base1:1.30
	cjep_sun2x:1.30.0.50
	cjep_sun2x-base:1.30
	cjep_staticlib_x-base1:1.30
	netbsd-9-2-RELEASE:1.30
	cjep_staticlib_x:1.30.0.48
	cjep_staticlib_x-base:1.30
	netbsd-9-1-RELEASE:1.30
	phil-wifi-20200421:1.30
	phil-wifi-20200411:1.30
	is-mlppp:1.30.0.46
	is-mlppp-base:1.30
	phil-wifi-20200406:1.30
	netbsd-8-2-RELEASE:1.30
	netbsd-9-0-RELEASE:1.30
	netbsd-9-0-RC2:1.30
	netbsd-9-0-RC1:1.30
	phil-wifi-20191119:1.30
	netbsd-9:1.30.0.44
	netbsd-9-base:1.30
	phil-wifi-20190609:1.30
	netbsd-8-1-RELEASE:1.30
	netbsd-8-1-RC1:1.30
	pgoyette-compat-merge-20190127:1.30
	pgoyette-compat-20190127:1.30
	pgoyette-compat-20190118:1.30
	pgoyette-compat-1226:1.30
	pgoyette-compat-1126:1.30
	pgoyette-compat-1020:1.30
	pgoyette-compat-0930:1.30
	pgoyette-compat-0906:1.30
	netbsd-7-2-RELEASE:1.30
	pgoyette-compat-0728:1.30
	netbsd-8-0-RELEASE:1.30
	phil-wifi:1.30.0.42
	phil-wifi-base:1.30
	pgoyette-compat-0625:1.30
	netbsd-8-0-RC2:1.30
	pgoyette-compat-0521:1.30
	pgoyette-compat-0502:1.30
	pgoyette-compat-0422:1.30
	netbsd-8-0-RC1:1.30
	pgoyette-compat-0415:1.30
	pgoyette-compat-0407:1.30
	pgoyette-compat-0330:1.30
	pgoyette-compat-0322:1.30
	pgoyette-compat-0315:1.30
	netbsd-7-1-2-RELEASE:1.30
	pgoyette-compat:1.30.0.40
	pgoyette-compat-base:1.30
	netbsd-7-1-1-RELEASE:1.30
	matt-nb8-mediatek:1.30.0.38
	matt-nb8-mediatek-base:1.30
	perseant-stdc-iso10646:1.30.0.36
	perseant-stdc-iso10646-base:1.30
	netbsd-8:1.30.0.34
	netbsd-8-base:1.30
	prg-localcount2-base3:1.30
	prg-localcount2-base2:1.30
	prg-localcount2-base1:1.30
	prg-localcount2:1.30.0.32
	prg-localcount2-base:1.30
	pgoyette-localcount-20170426:1.30
	bouyer-socketcan-base1:1.30
	pgoyette-localcount-20170320:1.30
	netbsd-7-1:1.30.0.30
	netbsd-7-1-RELEASE:1.30
	netbsd-7-1-RC2:1.30
	netbsd-7-nhusb-base-20170116:1.30
	bouyer-socketcan:1.30.0.28
	bouyer-socketcan-base:1.30
	pgoyette-localcount-20170107:1.30
	netbsd-7-1-RC1:1.30
	pgoyette-localcount-20161104:1.30
	netbsd-7-0-2-RELEASE:1.30
	localcount-20160914:1.30
	netbsd-7-nhusb:1.30.0.26
	netbsd-7-nhusb-base:1.30
	pgoyette-localcount-20160806:1.30
	pgoyette-localcount-20160726:1.30
	pgoyette-localcount:1.30.0.24
	pgoyette-localcount-base:1.30
	netbsd-7-0-1-RELEASE:1.30
	netbsd-7-0:1.30.0.22
	netbsd-7-0-RELEASE:1.30
	netbsd-7-0-RC3:1.30
	netbsd-7-0-RC2:1.30
	netbsd-7-0-RC1:1.30
	netbsd-5-2-3-RELEASE:1.26
	netbsd-5-1-5-RELEASE:1.26
	netbsd-6-0-6-RELEASE:1.30
	netbsd-6-1-5-RELEASE:1.30
	netbsd-7:1.30.0.20
	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.18
	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.26
	netbsd-5-1-4-RELEASE:1.26
	netbsd-6-1-2-RELEASE:1.30
	netbsd-6-0-3-RELEASE:1.30
	netbsd-5-2-1-RELEASE:1.26
	netbsd-5-1-3-RELEASE:1.26
	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.16
	netbsd-6-0-2-RELEASE:1.30
	netbsd-6-1-RELEASE:1.30
	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.26.0.22
	netbsd-6-0-1-RELEASE:1.30
	yamt-pagecache-base7:1.30
	netbsd-5-2-RELEASE:1.26
	netbsd-5-2-RC1:1.26
	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.26
	netbsd-5-1-1-RELEASE:1.26
	yamt-pagecache-base3:1.30
	yamt-pagecache-base2:1.30
	yamt-pagecache:1.30.0.2
	yamt-pagecache-base:1.30
	cherry-xenmp:1.29.0.4
	cherry-xenmp-base:1.29
	bouyer-quota2-nbase:1.29
	bouyer-quota2:1.29.0.2
	bouyer-quota2-base:1.29
	matt-mips64-premerge-20101231:1.29
	matt-nb5-mips64-premerge-20101231:1.26
	matt-nb5-pq3:1.26.0.20
	matt-nb5-pq3-base:1.26
	netbsd-5-1:1.26.0.18
	netbsd-5-1-RELEASE:1.26
	netbsd-5-1-RC4:1.26
	matt-nb5-mips64-k15:1.26
	netbsd-5-1-RC3:1.26
	netbsd-5-1-RC2:1.26
	netbsd-5-1-RC1:1.26
	netbsd-5-0-2-RELEASE:1.26
	matt-nb5-mips64-premerge-20091211:1.26
	matt-premerge-20091211:1.28
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.26
	matt-nb4-mips64-k7-u2a-k9b:1.26
	matt-nb5-mips64-u1-k1-k5:1.26
	matt-nb5-mips64:1.26.0.16
	netbsd-5-0-1-RELEASE:1.26
	jym-xensuspend-nbase:1.27
	netbsd-5-0:1.26.0.14
	netbsd-5-0-RELEASE:1.26
	netbsd-5-0-RC4:1.26
	netbsd-5-0-RC3:1.26
	netbsd-5-0-RC2:1.26
	jym-xensuspend:1.26.0.12
	jym-xensuspend-base:1.27
	netbsd-5-0-RC1:1.26
	netbsd-5:1.26.0.10
	netbsd-5-base:1.26
	matt-mips64-base2:1.26
	matt-mips64:1.25.0.16
	mjf-devfs2:1.26.0.8
	mjf-devfs2-base:1.26
	netbsd-4-0-1-RELEASE:1.25
	wrstuden-revivesa-base-3:1.26
	wrstuden-revivesa-base-2:1.26
	wrstuden-fixsa-newbase:1.25
	wrstuden-revivesa-base-1:1.26
	yamt-pf42-base4:1.26
	yamt-pf42-base3:1.26
	hpcarm-cleanup-nbase:1.26
	yamt-pf42-baseX:1.26
	yamt-pf42-base2:1.26
	wrstuden-revivesa:1.26.0.6
	wrstuden-revivesa-base:1.26
	yamt-pf42:1.26.0.4
	yamt-pf42-base:1.26
	keiichi-mipv6:1.26.0.2
	keiichi-mipv6-base:1.26
	matt-armv6-nbase:1.26
	matt-armv6-prevmlocking:1.25
	wrstuden-fixsa-base-1:1.25
	netbsd-4-0:1.25.0.14
	netbsd-4-0-RELEASE:1.25
	cube-autoconf:1.25.0.12
	cube-autoconf-base:1.25
	netbsd-4-0-RC5:1.25
	netbsd-4-0-RC4:1.25
	netbsd-4-0-RC3:1.25
	netbsd-4-0-RC2:1.25
	netbsd-4-0-RC1:1.25
	matt-armv6:1.25.0.10
	matt-armv6-base:1.25
	matt-mips64-base:1.25
	hpcarm-cleanup:1.25.0.8
	hpcarm-cleanup-base:1.26
	netbsd-3-1-1-RELEASE:1.23
	netbsd-3-0-3-RELEASE:1.23
	wrstuden-fixsa:1.25.0.6
	wrstuden-fixsa-base:1.25
	abandoned-netbsd-4-base:1.25
	abandoned-netbsd-4:1.25.0.2
	netbsd-3-1:1.23.0.12
	netbsd-3-1-RELEASE:1.23
	netbsd-3-0-2-RELEASE:1.23
	netbsd-3-1-RC4:1.23
	netbsd-3-1-RC3:1.23
	netbsd-3-1-RC2:1.23
	netbsd-3-1-RC1:1.23
	netbsd-4:1.25.0.4
	netbsd-4-base:1.25
	netbsd-3-0-1-RELEASE:1.23
	netbsd-3-0:1.23.0.10
	netbsd-3-0-RELEASE:1.23
	netbsd-3-0-RC6:1.23
	netbsd-3-0-RC5:1.23
	netbsd-3-0-RC4:1.23
	netbsd-3-0-RC3:1.23
	netbsd-3-0-RC2:1.23
	netbsd-3-0-RC1:1.23
	netbsd-2-0-3-RELEASE:1.23
	netbsd-2-1:1.23.0.8
	netbsd-2-1-RELEASE:1.23
	netbsd-2-1-RC6:1.23
	netbsd-2-1-RC5:1.23
	netbsd-2-1-RC4:1.23
	netbsd-2-1-RC3:1.23
	netbsd-2-1-RC2:1.23
	netbsd-2-1-RC1:1.23
	netbsd-2-0-2-RELEASE:1.23
	netbsd-3:1.23.0.6
	netbsd-3-base:1.23
	netbsd-2-0-1-RELEASE:1.23
	netbsd-2:1.23.0.4
	netbsd-2-base:1.23
	netbsd-2-0-RELEASE:1.23
	netbsd-2-0-RC5:1.23
	netbsd-2-0-RC4:1.23
	netbsd-2-0-RC3:1.23
	netbsd-2-0-RC2:1.23
	netbsd-2-0-RC1:1.23
	netbsd-2-0:1.23.0.2
	netbsd-2-0-base:1.23
	netbsd-1-6-PATCH002-RELEASE:1.22
	netbsd-1-6-PATCH002:1.22
	netbsd-1-6-PATCH002-RC4:1.22
	netbsd-1-6-PATCH002-RC3:1.22
	netbsd-1-6-PATCH002-RC2:1.22
	netbsd-1-6-PATCH002-RC1:1.22
	netbsd-1-6-PATCH001:1.22
	netbsd-1-6-PATCH001-RELEASE:1.22
	netbsd-1-6-PATCH001-RC3:1.22
	netbsd-1-6-PATCH001-RC2:1.22
	netbsd-1-6-PATCH001-RC1:1.22
	fvdl_fs64_base:1.22
	netbsd-1-6-RELEASE:1.22
	netbsd-1-6-RC3:1.22
	netbsd-1-6-RC2:1.22
	netbsd-1-6-RC1:1.22
	netbsd-1-6:1.22.0.10
	netbsd-1-6-base:1.22
	netbsd-1-5-PATCH003:1.22
	netbsd-1-5-PATCH002:1.22
	netbsd-1-5-PATCH001:1.22
	netbsd-1-5-RELEASE:1.22
	netbsd-1-5-BETA2:1.22
	netbsd-1-5-BETA:1.22
	netbsd-1-4-PATCH003:1.21
	netbsd-1-5-ALPHA2:1.22
	netbsd-1-5:1.22.0.8
	netbsd-1-5-base:1.22
	minoura-xpg4dl:1.22.0.6
	minoura-xpg4dl-base:1.22
	netbsd-1-4-PATCH002:1.21
	wrstuden-devbsize-19991221:1.22
	wrstuden-devbsize:1.22.0.4
	wrstuden-devbsize-base:1.22
	comdex-fall-1999:1.22.0.2
	comdex-fall-1999-base:1.22
	netbsd-1-4-PATCH001:1.21
	netbsd-1-4-RELEASE:1.21
	netbsd-1-4:1.21.0.2
	netbsd-1-4-base:1.21
	netbsd-1-3-PATCH003:1.12.2.3
	netbsd-1-3-PATCH003-CANDIDATE2:1.12.2.3
	netbsd-1-3-PATCH003-CANDIDATE1:1.12.2.3
	netbsd-1-3-PATCH003-CANDIDATE0:1.12.2.3
	netbsd-1-3-PATCH002:1.12.2.3
	netbsd-1-3-PATCH001:1.12.2.3
	netbsd-1-3-RELEASE:1.12.2.3
	netbsd-1-3-BETA:1.12.2.2
	netbsd-1-3:1.12.0.2
	netbsd-1-3-base:1.12
	netbsd-1-2-PATCH001:1.9
	lite-2:1.1.1.2
	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
	lite-1:1.1.1.2
	CSRG:1.1.1
	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
	netbsd-1-0:1.5.0.2
	netbsd-1-0-base:1.5
	netbsd-0-9-RELEASE:1.3
	netbsd-0-9-BETA:1.3
	netbsd-0-9-ALPHA2:1.3
	netbsd-0-9-ALPHA:1.3
	netbsd-0-9:1.3.0.2
	netbsd-0-9-base:1.3
	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.30
date	2011.08.16.10.14.40;	author christos;	state Exp;
branches;
next	1.29;

1.29
date	2010.02.06.23.45.24;	author he;	state Exp;
branches;
next	1.28;

1.28
date	2009.10.29.14.27.26;	author christos;	state Exp;
branches;
next	1.27;

1.27
date	2009.04.20.16.05.29;	author drochner;	state Exp;
branches;
next	1.26;

1.26
date	2008.01.28.07.03.58;	author dholland;	state Exp;
branches
	1.26.12.1;
next	1.25;

1.25
date	2006.06.07.09.21.06;	author jnemeth;	state Exp;
branches
	1.25.10.1;
next	1.24;

1.24
date	2005.08.10.17.52.56;	author rpaulo;	state Exp;
branches;
next	1.23;

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

1.22
date	99.07.17.19.57.03;	author hubertf;	state Exp;
branches;
next	1.21;

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

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

1.19
date	98.09.13.15.22.59;	author hubertf;	state Exp;
branches;
next	1.18;

1.18
date	98.05.13.19.21.37;	author tv;	state Exp;
branches;
next	1.17;

1.17
date	98.04.09.00.32.32;	author tv;	state Exp;
branches;
next	1.16;

1.16
date	98.02.18.22.37.30;	author jtc;	state Exp;
branches;
next	1.15;

1.15
date	97.11.29.19.31.51;	author veego;	state Exp;
branches;
next	1.14;

1.14
date	97.11.20.00.12.31;	author mrg;	state Exp;
branches;
next	1.13;

1.13
date	97.10.22.02.01.17;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	97.10.10.02.07.01;	author lukem;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	97.03.24.22.15.37;	author christos;	state Exp;
branches;
next	1.10;

1.10
date	96.10.18.02.43.36;	author thorpej;	state Exp;
branches;
next	1.9;

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

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

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

1.6
date	94.12.22.09.32.47;	author cgd;	state Exp;
branches;
next	1.5;

1.5
date	93.12.02.18.18.02;	author jtc;	state Exp;
branches;
next	1.4;

1.4
date	93.08.01.05.46.23;	author mycroft;	state Exp;
branches;
next	1.3;

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

1.2
date	93.03.23.02.44.38;	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.26.12.1
date	2009.05.13.19.18.04;	author jym;	state Exp;
branches;
next	;

1.25.10.1
date	2008.03.23.00.25.42;	author matt;	state Exp;
branches;
next	;

1.12.2.1
date	97.11.08.05.42.56;	author lukem;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	97.11.20.09.06.26;	author mrg;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	97.11.29.19.52.53;	author mellon;	state Exp;
branches;
next	;

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

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


desc
@@


1.30
log
@document non-literal format strings
@
text
@#	$NetBSD: Makefile,v 1.29 2010/02/06 23:45:24 he Exp $
#	@@(#)Makefile	8.1 (Berkeley) 5/31/93

.include <bsd.own.mk>

PROG=	atc
CPPFLAGS+=-DBSD -I${.CURDIR} -I.
SRCS=	extern.c grammar.y graphics.c input.c lex.l list.c log.c \
	main.c tunable.c update.c
YHEADER=1
MAN=	atc.6
LDADD=	-ll -lm -lcurses -lterminfo
DPADD=	${LIBL} ${LIBM} ${LIBCURSES} ${LIBTERMINFO}
GAMES=	Game_List Killer crossover default easy game_2 \
	Atlantis OHare Tic-Tac-Toe airports box crosshatch game_3 \
	game_4 novice two-corners
HIDEGAME=hidegame
SETGIDGAME=yes
.if ${MKSHARE} != "no"
FILES=${GAMES:S@@^@@${.CURDIR}/games/@@g}
FILESDIR=/usr/share/games/atc
FILESMODE=444
.endif

COPTS.input.c += -Wno-format-nonliteral

.include <bsd.prog.mk>
@


1.29
log
@When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2009/10/29 14:27:26 christos Exp $
d25 2
@


1.28
log
@use %option noinput nounput
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2009/04/20 16:05:29 drochner Exp $
d12 2
a13 2
LDADD=	-ll -lm -lcurses
DPADD=	${LIBL} ${LIBM} ${LIBCURSES}
@


1.27
log
@define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2008/01/28 07:03:58 dholland Exp $
d7 1
a7 1
CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT -DYY_NO_INPUT
@


1.26
log
@Make the default WARNS for games 4. The only game that needs to set WARNS
to anything else now is rogue, so clear WARNS from the other makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2006/06/07 09:21:06 jnemeth Exp $
d7 1
a7 1
CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT
@


1.26.12.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 1
#	$NetBSD: Makefile,v 1.27 2009/04/20 16:05:29 drochner Exp $
d7 1
a7 1
CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT -DYY_NO_INPUT
@


1.25
log
@WARNS=4
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2005/08/10 17:52:56 rpaulo Exp $
a5 1
WARNS=	4
@


1.25.10.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	Makefile,v 1.25 2006/06/07 09:21:06 jnemeth Exp
d6 1
@


1.24
log
@Enable WARNS=3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2003/08/01 17:03:42 lukem Exp $
d6 1
a6 1
WARNS=	3
@


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 1999/07/17 19:57:03 hubertf Exp $
d6 1
@


1.22
log
@The patch below improves the security of the game atc(6), by having it
open the score file at the start and then drop all setgid privileges
while keeping a (close-on-exec) file descriptor open to it.  In order
to allow this the static data files have to be made world readable.
In addition a potential buffer overrun with corrupted score files is
avoided by more careful use of scanf (note that SCORE_SCANF_FMT is
defined alongside the definition of the relevant structure).

Submitted in PR 8015 by Joseph Myers <jsm28@@cam.ac.uk>
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 1999/02/13 02:54:20 lukem Exp $
a23 2

lex.o:	grammar.h
@


1.21
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.20 1998/09/29 07:33:20 lukem Exp $
d22 1
a22 1
FILESMODE=440
@


1.20
log
@don't install in /usr/share if NOSHARE is defined
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1998/09/13 15:22:59 hubertf Exp $
d4 2
d19 1
a19 1
.if !defined(NOSHARE)
@


1.19
log
@remove unused files (PR#6083 by Joseph Myers <jsm28@@cam.ac.uk>)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1998/05/13 19:21:37 tv Exp $
d17 1
d21 1
@


1.18
log
@y.tab.h is now called grammar.h (and there's an implied .y.h rule now too)
Noticed by veego.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1998/04/09 00:32:32 tv Exp $
d12 1
a12 1
GAMES=	ATC_scores Game_List Killer crossover default easy game_2 \
@


1.17
log
@.y.c <sys.mk> rule fixes.  Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1998/02/18 22:37:30 jtc Exp $
d21 1
a21 3
y.tab.h:	grammar.c

lex.o:	y.tab.h
@


1.16
log
@Simply include -lcurses instead of -lcurses -ltermcap
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1997/11/29 19:31:51 veego Exp $
d6 1
a6 1
SRCS=	extern.c grammar.c graphics.c input.c lex.c list.c log.c \
d8 1
a14 1
CLEANFILES=grammar.c y.tab.h lex.c
@


1.15
log
@We need a FILESMODE=440 for dm which is now setgid games.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/11/20 00:12:31 mrg Exp $
d9 2
a10 2
LDADD=	-ll -lm -lcurses -ltermcap
DPADD=	${LIBL} ${LIBM} ${LIBTERM} ${LIBCURSES}
@


1.14
log
@install games that need it setgid.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/10/22 02:01:17 lukem Exp $
d19 1
a19 1
FILESMODE=400
@


1.13
log
@use CPPFLAGS instead of CFLAGS, fix dependancies for parallel compile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1997/10/10 02:07:01 lukem Exp $
d16 1
@


1.12
log
@WARNSify
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/03/24 22:15:37 christos Exp $
d5 1
a5 1
CFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT
d19 4
@


1.12.2.1
log
@pull up rev 1.13 (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/10/22 02:01:17 lukem Exp $
d5 1
a5 1
CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT
a18 4

y.tab.h:	grammar.c

lex.o:	y.tab.h
@


1.12.2.2
log
@pull up from trunk:
- install games files with the correct permissions.
- install games that need it setgid.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/11/20 00:12:31 mrg Exp $
a15 1
SETGIDGAME=yes
@


1.12.2.3
log
@Pull rev 1.15 up from trunk (veego)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12.2.2 1997/11/20 09:06:26 mrg Exp $
d19 1
a19 1
FILESMODE=440
@


1.11
log
@- Makefile cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1996/10/18 02:43:36 thorpej Exp $
d5 1
a5 1
CFLAGS+=-DBSD -I${.CURDIR} -I.
@


1.10
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1995/03/21 15:03:38 cgd Exp $
d16 3
a18 12

beforeinstall: 
	@@if [ ! -d ${DESTDIR}/usr/share/games/atc ]; then \
                /bin/rm -f ${DESTDIR}/usr/share/games/atc ; \
                mkdir -p ${DESTDIR}/usr/share/games/atc ; \
                chown root.wheel ${DESTDIR}/usr/share/games/atc ; \
                chmod 755 ${DESTDIR}/usr/share/games/atc ; \
        else \
                true ; \
        fi
	(cd ${.CURDIR}/games; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 400 \
	    ${GAMES} ${DESTDIR}/usr/share/games/atc)
@


1.9
log
@clean up import
@
text
@d1 1
a1 1
#	$NetBSD$
d26 1
a26 1
	(cd ${.CURDIR}/games; install -c -o ${BINOWN} -g ${BINGRP} -m 400 \
@


1.8
log
@MAN6 => MAN.
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	5.7 (Berkeley) 6/27/90
#	$Id: Makefile,v 1.7 1994/12/23 07:01:39 phil Exp $
@


1.7
log
@adding 10 more games collected from ????  and some I wrote.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1993/12/02 18:18:02 jtc Exp $
d8 1
a8 1
MAN6=	atc.0
@


1.6
log
@specify man pages the new way.
@
text
@d8 1
a8 1
MAN=	atc.6
d11 3
a13 1
GAMES=	ATC_scores Game_List Killer crossover default easy game_2
@


1.5
log
@All programs that use lex must link with -ll.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.4 1993/08/01 05:46:23 mycroft Exp $
d8 1
a8 1
MAN6=	atc.0
@


1.4
log
@Add RCS identifiers.
@
text
@d2 1
a2 1
#	$Id: $
a8 1
DPADD=	${usr/lib/libl.a ${LIBM} ${LIBTERM} ${LIBCURSES}
d10 1
@


1.3
log
@make sure directory to install stuff exists before installing
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.7 (Berkeley) 6/27/90
@


1.2
log
@got rid of unnecessary -lcompat and associated dependency
@
text
@d15 8
@


1.1
log
@Initial revision
@
text
@d8 2
a9 2
DPADD=	${usr/lib/libl.a ${LIBM} ${LIBTERM} ${LIBCURSES} ${LIBCOMPAT}
LDADD=	-ll -lm -lcurses -ltermcap -lcompat
@


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


1.1.1.2
log
@from Lite
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.1 (Berkeley) 5/31/93
@
