summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authortv <tv@NetBSD.org>1998-04-09 00:32:31 +0000
committertv <tv@NetBSD.org>1998-04-09 00:32:31 +0000
commit7d08250df0690ec4fec8cde5bc683bc83e1f9094 (patch)
treed59e9230e22a386b3800ddd0b5dcca6ed0ad3e59 /atc
parent3b0bf94a42df78b2914b10e6a118a8ccab48b9dd (diff)
downloadbsdgames-darwin-7d08250df0690ec4fec8cde5bc683bc83e1f9094.tar.gz
bsdgames-darwin-7d08250df0690ec4fec8cde5bc683bc83e1f9094.tar.zst
bsdgames-darwin-7d08250df0690ec4fec8cde5bc683bc83e1f9094.zip
.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.
Diffstat (limited to 'atc')
-rw-r--r--atc/Makefile6
-rw-r--r--atc/lex.l6
2 files changed, 6 insertions, 6 deletions
diff --git a/atc/Makefile b/atc/Makefile
index 7d284963..3c63b0aa 100644
--- a/atc/Makefile
+++ b/atc/Makefile
@@ -1,17 +1,17 @@
-# $NetBSD: Makefile,v 1.16 1998/02/18 22:37:30 jtc Exp $
+# $NetBSD: Makefile,v 1.17 1998/04/09 00:32:32 tv Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= atc
CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT
-SRCS= extern.c grammar.c graphics.c input.c lex.c list.c log.c \
+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
DPADD= ${LIBL} ${LIBM} ${LIBCURSES}
GAMES= ATC_scores Game_List Killer crossover default easy game_2 \
Atlantis OHare Tic-Tac-Toe airports box crosshatch game_3 \
game_4 novice two-corners
-CLEANFILES=grammar.c y.tab.h lex.c
HIDEGAME=hidegame
SETGIDGAME=yes
FILES=${GAMES:S@^@${.CURDIR}/games/@g}
diff --git a/atc/lex.l b/atc/lex.l
index cbad189e..864d5473 100644
--- a/atc/lex.l
+++ b/atc/lex.l
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: lex.l,v 1.5 1997/10/10 13:38:51 lukem Exp $ */
+/* $NetBSD: lex.l,v 1.6 1998/04/09 00:32:32 tv Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,13 +51,13 @@
#if 0
static char sccsid[] = "@(#)lex.l 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: lex.l,v 1.5 1997/10/10 13:38:51 lukem Exp $");
+__RCSID("$NetBSD: lex.l,v 1.6 1998/04/09 00:32:32 tv Exp $");
#endif
#endif /* not lint */
#include "include.h"
#undef ECHO /* XXX: work around lex(1) vs termios lameness */
-#include "y.tab.h"
+#include "grammar.h"
extern int line;