# File: Makefile.acn
# For Acorn machines with RISC OS 3.10 or later

##
## This makefile is designed for use with Acorn C/C++.
## It may be possible to modify it for use with
## GCC or Easy C, or whatever.
##
## If you want to alter the behaviour of the game,
## then fiddle with config.h
##

#
# Here are the basic object files.
#

OBJS = \
  main.o \
  main-acn.o \
  birth.o \
  cave.o \
  cmd-attk.o \
  cmd-book.o \
  cmd-item.o \
  cmd-know.o \
  cmd-misc.o \
  cmd-util.o \
  dungeon.o \
  effects.o \
  files.o \
  generate.o \
  info.o \
  init1.o \
  init2.o \
  load.o \
  melee1.o \
  melee2.o \
  monster1.o \
  monster2.o \
  monster3.o \
  object1.o \
  object2.o \
  object3.o \
  powers.o \
  quest.o \
  save.o \
  spells1.o \
  spells2.o \
  squelch.o \
  store.o \
  tables.o \
  traps.c \
  util.o \
  variable.o \
  wizard.o \
  xtra1.o \
  xtra2.o \
  z-form.o \
  z-rand.o \
  z-term.o \
  z-util.o \
  z-virt.o \
  C:o.Stubs OSLib:o.OSLib C:o.eventlib


CC = cc
LD = link

#
# Remove the #s from the following two lines of flags to generate
# a debug version
#

CFLAGS = -IOS:,C: -throwback -depend !Depend -Wan -ff -zps1 #-g
LDFLAGS = -s symbols #-d

.SUFFIXES: .o .c

.c.o:;	$(CC) $(CFLAGS) -c -o $@ $<

angband: $(OBJS)
	$(LD) $(LDFLAGS) -o angband $(OBJS)
	Squeeze angband ^.!RunImage


# Dynamic dependencies:

