]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - atc/Makefile
Since our gcc doesn't warn about NULL format strings anymore, we can
[bsdgames-darwin.git] / atc / Makefile
index 07e88780c41152ddc62f4918442d1086499d6cb7..ad5efc6ea081c7dbc185335fe0c198c895d1ec23 100644 (file)
@@ -1,18 +1,27 @@
-#      @(#)Makefile    5.7 (Berkeley) 6/27/90
+#      $NetBSD: Makefile,v 1.22 1999/07/17 19:57:03 hubertf Exp $
+#      @(#)Makefile    8.1 (Berkeley) 5/31/93
+
+.include <bsd.own.mk>
 
 PROG=  atc
-CFLAGS+=-DBSD -I${.CURDIR} -I.
-SRCS=  extern.c grammar.c graphics.c input.c lex.c list.c log.c \
+CPPFLAGS+=-DBSD -I${.CURDIR} -I. -DYY_NO_UNPUT
+SRCS=  extern.c grammar.y graphics.c input.c lex.l list.c log.c \
        main.c tunable.c update.c
-MAN6=  atc.0
-DPADD= ${usr/lib/libl.a ${LIBM} ${LIBTERM} ${LIBCURSES}
-LDADD= -ll -lm -lcurses -ltermcap
-GAMES= ATC_scores Game_List Killer crossover default easy game_2
-CLEANFILES=grammar.c y.tab.h lex.c
+YHEADER=1
+MAN=   atc.6
+LDADD= -ll -lm -lcurses
+DPADD= ${LIBL} ${LIBM} ${LIBCURSES}
+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
 
-beforeinstall: 
-       (cd ${.CURDIR}/games; install -c -o ${BINOWN} -g ${BINGRP} -m 400 \
-           ${GAMES} ${DESTDIR}/usr/share/games/atc)
+lex.o: grammar.h
 
 .include <bsd.prog.mk>