# This makefile is for SAS/C 5.1 for the Amiga.
# I do not guarantee it working for anything at all.

# BINDIR is the directory where the moria binary while be put
# LIBDIR is where the other files (score, news, hours) will be put
# LIBDIR must be the same directory defined in config.h
BINDIR = Angband:
LIBDIR = Angband:

# -b0 = 32 bit addressing, -C continue after error, -d0 = disable debugging
# -ms = optimized for space 
LCFLAGS = -b0 -C -d0 -ms -dAMIGA -dUSG -dultrix -dLINT_ARGS

LC = lc

SRCS = main.c misc1.c misc2.c misc3.c store1.c files.c io.c create.c \
    desc.c generate.c sets.c dungeon.c creature.c death.c eat.c help.c \
    magic.c potions.c prayer.c save.c staffs.c wands.c scrolls.c spells.c \
    wizard.c store2.c signals.c moria1.c moria2.c monsters.c treasure.c \
    variable.c rnd.c recall.c unix.c undef.c player.c tables.c \
    describe_mon.c rods.c amiga.c timer.c

OBJS = main.o misc1.o misc2.o misc3.o store1.o files.o io.o create.o \
    desc.o generate.o sets.o dungeon.o creature.o death.o eat.o help.o \
    magic.o potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o \
	wizard.o store2.o signals.o moria1.o moria2.o monsters.o treasure.o \
    variable.o rnd.o recall.o unix.o undef.o player.o tables.o \
    describe_mon.o rods.o amiga.o timer.o

LIBFILES = hours news origcmds.hlp owizcmds.hlp roglcmds.hlp rwizcmds.hlp \
	scores version.hlp welcome.hlp

.c.o:
    $(LC) $(LCFLAGS) $*
    
Angband : $(OBJS)
    blink with angband.lnk

install:
    copy Angband angband:
    
amiga.o: amiga.c constant.h types.h externs.h config.h amiga.h
create.o: create.c constant.h types.h externs.h config.h
creature.o: creature.c constant.h types.h externs.h config.h monster.h
death.o: death.c constant.h types.h externs.h config.h
desc.o: desc.c constant.h types.h externs.h config.h
describe_mon.o: describe_mon.c monster.h externs.h types.h
dungeon.o: dungeon.c constant.h types.h externs.h config.h
eat.o: eat.c constant.h types.h externs.h config.h
files.o: files.c constant.h types.h externs.h config.h
generate.o: generate.c constant.h types.h externs.h config.h
help.o: help.c constant.h types.h externs.h config.h monster.h
io.o: io.c constant.h types.h externs.h config.h
magic.o: magic.c constant.h types.h externs.h config.h
main.o: main.c constant.h types.h externs.h config.h
misc1.o: misc1.c constant.h types.h externs.h config.h monster.h
misc2.o: misc2.c constant.h types.h externs.h config.h monster.h
misc3.o: misc3.c constant.h types.h externs.h config.h monster.h
monsters.o: monsters.c constant.h types.h config.h monster.h
moria1.o: moria1.c constant.h types.h externs.h config.h monster.h
moria2.o: moria2.c constant.h types.h externs.h config.h monster.h
player.o: player.c constant.h types.h config.h
potions.o: potions.c constant.h types.h externs.h config.h
prayer.o: prayer.c constant.h types.h externs.h config.h monster.h
recall.o: recall.c constant.h config.h types.h externs.h monster.h
rnd.o: rnd.c constant.h types.h
rods.o: rods.c constant.h types.h externs.h config.h monster.h
save.o: save.c constant.h types.h externs.h config.h
scrolls.o: scrolls.c constant.h types.h externs.h config.h monster.h
sets.o: sets.c constant.h config.h types.h
signals.o: signals.c constant.h types.h externs.h config.h
spells.o: spells.c constant.h types.h externs.h config.h monster.h
staffs.o: staffs.c constant.h types.h externs.h config.h monster.h
store1.o: store1.c constant.h types.h externs.h config.h
store2.o: store2.c constant.h types.h externs.h config.h
tables.o: tables.c constant.h types.h config.h
treasure.o: treasure.c constant.h types.h config.h
unix.o: unix.c constant.h config.h types.h externs.h
variable.o: variable.c constant.h types.h config.h
wands.o: wands.c constant.h types.h externs.h config.h monster.h
wizard.o: wizard.c constant.h types.h externs.h config.h

# DO NOT DELETE THIS LINE -- make depend depends on it.
