1# 2# Copyright (c) 1987 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.8 (Berkeley) 10/19/88 18# 19DEFS= -DMAX_PER_UID=5 20CFLAGS= -O ${DEFS} 21LIBC= /lib/libc.a 22LIBS= -lcurses -ltermlib 23SRCS= extern.c init_field.c main.c make_level.c move.c move_robs.c \ 24 play_level.c query.c rnd_pos.c score.c flush_in.c 25OBJS= extern.o init_field.o main.o make_level.o move.o move_robs.o \ 26 play_level.o query.o rnd_pos.o score.o flush_in.o 27MAN= robots.0 28 29all: robots 30 31robots: ${OBJS} ${LIBC} 32 ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} 33 34clean: 35 rm -f ${OBJS} core robots 36 37cleandir: clean 38 rm -f ${MAN} tags .depend 39 40depend: ${SRCS} 41 mkdep ${CFLAGS} ${SRCS} 42 43install: ${MAN} 44 install -s -o games -g bin -m 4700 robots ${DESTDIR}/usr/games/hide 45 (cd ${DESTDIR}/usr/games; rm -f robots; ln -s dm robots; chown games.bin robots) 46 install -c -o games -g bin -m 600 /dev/null ${DESTDIR}/usr/games/lib/robots_roll 47 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6 48 49lint: ${SRCS} 50 lint ${CFLAGS} ${SRCS} 51 52tags: ${SRCS} 53 ctags ${SRCS} 54