date and time created 85/05/30 18:36:48 by mckusick
[unix-history] / usr / src / games / robots / Makefile
CommitLineData
3d64173d
KM
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#
6# @(#)Makefile 5.1 (Berkeley) %G%
7#
8HDRS= robot.h
9CFILES= extern.c init_field.c main.c make_level.c move.c \
10 move_robs.c play_level.c query.c rnd_pos.c score.c \
11 flush_in.c
12OBJS= extern.o init_field.o main.o make_level.o move.o \
13 move_robs.o play_level.o query.o rnd_pos.o score.o \
14 flush_in.o
15DEFS= -DMAX_PER_UID=5
16CFLAGS= -O ${DEFS}
17
18robots: ${OBJS}
19 ${CC} ${CFLAGS} -o robots ${OBJS} -lcurses -ltermlib
20
21lint:
22 lint -hb ${DEFS} ${CFILES} -lcurses 2>1 > lint.out
23
24install: robots
25 install -c -s -m 4711 -o daemon robots /usr/games
26 install -c -m 644 -o daemon /dev/null /usr/games/lib/robots_roll
27
28clean:
29 rm -f a.out core *.o robots