#
# Copyright (c) 1987 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific written prior permission. This software
# is provided ``as is'' without express or implied warranty.
#
CFLAGS		= -DUNIX -DUNIX_SYSV -Werror -Wall -DCROSS -g -O0
LDFLAGS         = -g
LIBS            = -lncurses

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

all:            rogue

rogue:          ${OBJS}
		${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}

clean:
		rm -f *.o rogue *~
