# Project:   MakeIndex

#  Makefile for MakeIndex on RISC OS machines.

# ---------------- Edit this part of the file. -----------------

# Where the installed binaries and Obey file go.
BINDIR = <MakeIndex$Dir>

# Define this to be whatever you use for installation.  If you don't have
# an install binary, use an Obey file that invokes Copy and Accesses the
# files appropriately.
INSTALL = <Prefix$Dir>.install

DEFS = -DOS_RISCOS

# ---------------------- Edits end here. ------------------------


# Toolflags:
CCflags = -W -c -depend !Depend -throwback -IC: $(DEFS)
Linkflags = -o $@
Squeezeflags = -o $@

OBJ =  o.genind o.mkind o.qsort o.scanid o.scanst o.sortid o.riscosname
 
LIBS = C:o.stubs


# Final targets:
all: MakeIndex

MakeIndex:   $(OBJ)
        drlink $(linkflags) $(OBJ) $(LIBS)
        squeeze $(Squeezeflags) MakeIndex 

install: MakeIndex
        $(INSTALL) LR ff8 MakeIndex $(BINDIR) MakeIndex


clean:
        -Wipe o.* ~CF~R~V

veryclean: clean
        -Wipe MakeIndex ~CF~R~V


# User-editable dependencies:

# Static dependencies:
.SUFFIXES: .o
.c.o:;  cc -c -o $@ $(CCflags) $<


# Dynamic dependencies:
o.riscosname:	c.riscosname
o.riscosname:	C:h.kernel
o.genind:	c.genind
o.genind:	h.mkind
o.genind:	h.genind
o.mkind:	c.mkind
o.mkind:	h.mkind
o.mkind:	C:h.kernel
o.qsort:	c.qsort
o.qsort:	h.mkind
o.scanid:	c.scanid
o.scanid:	h.mkind
o.scanid:	h.scanid
o.scanst:	c.scanst
o.scanst:	h.mkind
o.scanst:	h.scanst
o.sortid:	c.sortid
o.sortid:	h.mkind
