1# 2# Copyright (c) 1987 The Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.4 (Berkeley) 07/30/89 18# 19CFLAGS= -O -DBSD 20YFLAGS= -d 21LIBC= /lib/libc.a 22LIBS= -ll -lm -lcurses -ltermcap 23SRCS= extern.c grammar.c graphics.c input.c lex.c list.c log.c \ 24 main.c tunable.c update.c 25OBJS= extern.o grammar.o input.o lex.o list.o log.o main.o tunable.o \ 26 graphics.o update.o 27MAN= atc.0 28 29all: atc 30 31atc: ${OBJS} ${LIBC} 32 ${CC} ${CFLAGS} ${OBJS} ${LIBS} -o $@ -lcompat 33 34clean: 35 rm -f ${OBJS} core atc grammar.c y.tab.h y.tab.c lex.yy.c lex.c 36 37cleandir: clean 38 rm -f ${MAN} tags .depend 39 40depend: ${SRCS} 41 mkdep ${CFLAGS} ${SRCS} 42 43install: ${MAN} 44 -[ -d ${DESTDIR}/usr/games/lib/atc ] || mkdir ${DESTDIR}/usr/games/lib/atc 45 chmod 700 ${DESTDIR}/usr/games/lib/atc 46 chown games.bin ${DESTDIR}/usr/games/lib/atc 47 (cd games; install -c -o games -g bin -m 600 * ${DESTDIR}/usr/games/lib/atc) 48 install -s -o games -g bin -m 4700 atc ${DESTDIR}/usr/games/hide/atc 49 (cd ${DESTDIR}/usr/games; rm -f atc; ln -s dm atc; chown games.bin atc) 50 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/games/cat6 51 52lint: ${SRCS} 53 lint ${CFLAGS} ${SRCS} 54 55tags: ${SRCS} 56 ctags ${SRCS} 57