]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - atc/Makefile
All programs that use lex must link with -ll.
[bsdgames-darwin.git] / atc / Makefile
1 # from: @(#)Makefile 5.7 (Berkeley) 6/27/90
2 # $Id: Makefile,v 1.5 1993/12/02 18:18:02 jtc Exp $
3
4 PROG= atc
5 CFLAGS+=-DBSD -I${.CURDIR} -I.
6 SRCS= extern.c grammar.c graphics.c input.c lex.c list.c log.c \
7 main.c tunable.c update.c
8 MAN6= atc.0
9 LDADD= -ll -lm -lcurses -ltermcap
10 DPADD= ${LIBL} ${LIBM} ${LIBTERM} ${LIBCURSES}
11 GAMES= ATC_scores Game_List Killer crossover default easy game_2
12 CLEANFILES=grammar.c y.tab.h lex.c
13 HIDEGAME=hidegame
14
15 beforeinstall:
16 @if [ ! -d ${DESTDIR}/usr/share/games/atc ]; then \
17 /bin/rm -f ${DESTDIR}/usr/share/games/atc ; \
18 mkdir -p ${DESTDIR}/usr/share/games/atc ; \
19 chown root.wheel ${DESTDIR}/usr/share/games/atc ; \
20 chmod 755 ${DESTDIR}/usr/share/games/atc ; \
21 else \
22 true ; \
23 fi
24 (cd ${.CURDIR}/games; install -c -o ${BINOWN} -g ${BINGRP} -m 400 \
25 ${GAMES} ${DESTDIR}/usr/share/games/atc)
26
27 .include <bsd.prog.mk>