install approved copyright notice
[unix-history] / usr / src / games / snake / snake / Makefile
CommitLineData
b6f0a7e4 1#
810969fd 2# Copyright (c) 1987 Regents of the University of California.
a825d20f 3# All rights reserved.
b6f0a7e4 4#
a825d20f 5# Redistribution and use in source and binary forms are permitted
65c7d3b6
KB
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.
a825d20f 16#
65c7d3b6 17# @(#)Makefile 5.7 (Berkeley) %G%
c53ac2ea 18#
c53ac2ea 19CFLAGS= -O
810969fd 20LIBC= /lib/libc.a
c53ac2ea 21LIBS= -lm -ltermcap
810969fd
KB
22SRCS1= snake.c move.c
23OBJS1= snake.o move.o
24SRCS2= snscore.c
25OBJS2= snscore.o
c53ac2ea 26
810969fd 27all: snake snscore
c53ac2ea 28
810969fd
KB
29snake: ${OBJS1} ${LIBC}
30 ${CC} -o $@ ${CFLAGS} ${OBJS1} ${LIBS}
c53ac2ea 31
810969fd
KB
32snscore: ${OBJS2} ${LIBC}
33 ${CC} -o $@ ${CFLAGS} ${OBJS2}
c53ac2ea 34
810969fd 35clean: FRC
8b51accb 36 rm -f ${OBJS1} ${OBJS2} core snake snscore busy
c53ac2ea 37
810969fd 38depend: FRC
8b51accb 39 mkdep ${CFLAGS} ${SRCS1} ${SRCS2}
c53ac2ea 40
810969fd 41install: FRC
8b51accb
KB
42 install -s -o games -g bin -m 4700 snake ${DESTDIR}/usr/games/hide
43 (cd ${DESTDIR}/usr/games; rm -f snake; ln -s dm snake; chown games.bin snake)
44 install -s -o games -g bin -m 700 snscore ${DESTDIR}/usr/games/hide
45 (cd ${DESTDIR}/usr/games; rm -f snscore; ln -s dm snscore; chown games.bin snscore)
b6ec3af5 46 -[ -s ${DESTDIR}/usr/games/lib/snakerawscores ] || install -c -o games -g bin -m 600 /dev/null ${DESTDIR}/usr/games/lib/snakerawscores
bf982f23 47
810969fd
KB
48lint: FRC
49 lint ${CFLAGS} ${SRCS1}
50 lint ${CFLAGS} ${SRCS2}
810969fd
KB
51
52tags: FRC
8b51accb 53 ctags ${SRCS1} ${SRCS2}
810969fd
KB
54
55FRC:
56
57# DO NOT DELETE THIS LINE -- mkdep uses it.
58# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
59
60snake.o: snake.c snake.h /usr/include/stdio.h /usr/include/assert.h
61snake.o: /usr/include/sys/types.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
62snake.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
a825d20f
KB
63snake.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h
64snake.o: /usr/include/pwd.h
810969fd
KB
65move.o: move.c snake.h /usr/include/stdio.h /usr/include/assert.h
66move.o: /usr/include/sys/types.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
67move.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
a825d20f 68move.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/math.h
810969fd 69snscore.o: snscore.c /usr/include/stdio.h /usr/include/pwd.h
810969fd
KB
70
71# IF YOU PUT ANYTHING HERE IT WILL GO AWAY