#	@(#)Makefile	8.1 (Berkeley) 5/31/93

PROG=	rogue
CFLAGS+=-DUNIX
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
DPADD=	${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
LDADD=	-lcurses -ltermlib -lcompat
HIDEGAME=hidegame
MAN6=	rogue.0

.if ${MACHINE} == "rt" && ${CC} == "cc"
CFLAGS+=-Hoff=Read_only_strings
.else
CFLAGS+=-fwritable-strings
.endif
.if ${MACHINE} == "rt"
CFLAGS+=-DUNIX_BSD4_2 -Dtstp=__stop_signal_handler
.endif

.include <bsd.prog.mk>
