BSD 4_3 release
[unix-history] / usr / src / games / snake / Makefile
CommitLineData
b6f0a7e4
DF
1#
2# Copyright (c) 1980 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
95f51977 6# @(#)Makefile 5.1 (Berkeley) 5/30/85
c53ac2ea
SL
7#
8DESTDIR=
9CFLAGS= -O
10LIBS= -lm -ltermcap
11BIN= $(DESTDIR)/usr/games
12LIB= $(DESTDIR)/usr/games/lib
13USER= daemon
14UTILS= snscore
15OBJS= snake.o move.o
16ALL= snake ${UTILS}
17
18all: ${ALL}
19
20snake: $(OBJS)
21 cc $(OBJS) -o snake $(LIBS)
22
23snake.o move.o:snake.h
24
25snscore: snscore.c
26 cc $(CFLAGS) snscore.c -o snscore
27
28busy: busy.c
29 cc $(CFLAGS) busy.c -o busy
30
31install: all
32 install -s -m 4755 -o ${USER} snake ${BIN}/snake
33 install -s -m 755 -o ${USER} snscore ${BIN}/snscore
34# install -s -m 755 -o ${USER} busy ${BIN}/busy
35 cat /dev/null >> $(LIB)/snakerawscores
36 chmod 644 $(LIB)/snakerawscores
37 chown $(USER) $(LIB)/snakerawscores
38
39clean:
40 rm -f *.o ${ALL}