# # Copyright (c) 1987 Regents of the University of California. # All rights reserved. # # Redistribution and use in source and binary forms are permitted # provided that the above copyright notice and this paragraph are # duplicated in all such forms and that any documentation, # advertising materials, and other materials related to such # distribution and use acknowledge that the software was developed # by the University of California, Berkeley. The name of the # University may not be used to endorse or promote products derived # from this software without specific prior written permission. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # @(#)Makefile 5.5 (Berkeley) %G% # CFLAGS= -O -DUNIX -DUNIX_BSD4_2 LIBC= /lib/libc.a SRCS= curses.c hit.c init.c inventory.c level.c machdep.c main.c \ message.c monster.c move.c object.c pack.c play.c random.c ring.c \ room.c save.c score.c spec_hit.c throw.c trap.c use.c zap.c OBJS= curses.o hit.o init.o inventory.o level.o machdep.o main.o \ message.o monster.o move.o object.o pack.o play.o random.o ring.o \ room.o save.o score.o spec_hit.o throw.o trap.o use.o zap.o MAN= rogue.0 all: rogue rogue: ${OBJS} ${LIBC} ${CC} ${OBJS} -o $@ -lcurses -ltermlib clean: rm -f ${OBJS} core rogue cleandir: clean rm -f ${MAN} tags .depend depend: ${SRCS} mkdep ${CFLAGS} ${SRCS} install: ${MAN} install -s -o games -g bin -m 4700 rogue ${DESTDIR}/usr/games/hide (cd ${DESTDIR}/usr/games; rm -f rogue; ln -s dm rogue; chown games.bin rogue) install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6 lint: ${SRCS} lint ${CFLAGS} ${SRCS} tags: ${SRCS} ctags ${SRCS}