Commit | Line | Data |
---|---|---|
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 | # | |
8 | HDRS= robot.h | |
9 | CFILES= 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 | |
12 | OBJS= 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 | |
15 | DEFS= -DMAX_PER_UID=5 | |
16 | CFLAGS= -O ${DEFS} | |
17 | ||
18 | robots: ${OBJS} | |
19 | ${CC} ${CFLAGS} -o robots ${OBJS} -lcurses -ltermlib | |
20 | ||
21 | lint: | |
22 | lint -hb ${DEFS} ${CFILES} -lcurses 2>1 > lint.out | |
23 | ||
24 | install: 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 | ||
28 | clean: | |
29 | rm -f a.out core *.o robots |