# Project name:   fslib
#
# AMU Makefile for FSLib library
# By BDB & Nick Smith, 1993

# Toolflags:
COPYFLAGS = ~CNF
SQUEEZE = squeeze -v
DEPEND = -depend !Depend
CFLAGS= $(DEPEND) -c -zM -ffah -throwback -IC:
CC=cc
LN = link -rmf
AS = aasm $(DEPEND) -throwback -m -q

# Dependencies

LIBS = c:stubs.o c:risc_oslib.o

FSFILES = ModuleWrap.o util.o _Args.o _Close.o _File.o _Func.o _GBPB.o command.o \
         _GetBytes.o _Open.o _PutBytes.o Interface.o _Free.o cstart.o ticker.o \
        dropper.o #swiv.o

# Targets

all: FSLib

FSLib: $(FSFILES)
        libfile -io $@ $?

clean:
        remove fslib
        wipe o.* ~v~c

.SUFFIXES: .cmhg .o .s .c
.c.o :
                $(CC) $(CFLAGS) $<
.s.o :
                objasm $(DEPEND) $< $@ -stamp -quit

# Dynamic dependencies:
o.dropper: s.dropper
o.ModuleWrap:	c.ModuleWrap
o.ModuleWrap:	h.FS
o.ModuleWrap:	C:h.kernel
o.ModuleWrap:	C:h.swis
o.ModuleWrap:	h.Interface
o.ModuleWrap:	h.ModuleWrap
o.ModuleWrap:	h.util
o.ModuleWrap:	h.core
o.util:	c.util
o.util:	C:h.kernel
o.util:	h.interface
o.util:	h.util
o.util:	C:h.swis
o._Args:	c._Args
o._Args:	h.FS
o._Args:	C:h.kernel
o._Args:	C:h.swis
o._Args:	h.Interface
o._Args:	h.ModuleWrap
o._Args:	h.util
o._Args:	h.core
o._Close:	c._Close
o._Close:	h.FS
o._Close:	C:h.kernel
o._Close:	C:h.swis
o._Close:	h.Interface
o._Close:	h.ModuleWrap
o._Close:	h.util
o._Close:	h.core
o._File:	c._File
o._File:	h.FS
o._File:	C:h.kernel
o._File:	C:h.swis
o._File:	h.Interface
o._File:	h.ModuleWrap
o._File:	h.util
o._File:	h.core
o._Func:	c._Func
o._Func:	h.FS
o._Func:	C:h.kernel
o._Func:	C:h.swis
o._Func:	h.Interface
o._Func:	h.ModuleWrap
o._Func:	h.util
o._Func:	h.core
o._GBPB:	c._GBPB
o._GBPB:	h.FS
o._GBPB:	C:h.kernel
o._GBPB:	C:h.swis
o._GBPB:	h.Interface
o._GBPB:	h.ModuleWrap
o._GBPB:	h.util
o._GBPB:	h.core
o.command:	c.command
o.command:	h.FS
o.command:	C:h.kernel
o.command:	C:h.swis
o.command:	h.Interface
o.command:	h.ModuleWrap
o.command:	h.util
o.command:	h.core
o._GetBytes:	c._GetBytes
o._GetBytes:	h.FS
o._GetBytes:	C:h.kernel
o._GetBytes:	C:h.swis
o._GetBytes:	h.Interface
o._GetBytes:	h.ModuleWrap
o._GetBytes:	h.util
o._GetBytes:	h.core
o._Open:	c._Open
o._Open:	h.FS
o._Open:	C:h.kernel
o._Open:	C:h.swis
o._Open:	h.Interface
o._Open:	h.ModuleWrap
o._Open:	h.util
o._Open:	h.core
o._PutBytes:	c._PutBytes
o._PutBytes:	h.FS
o._PutBytes:	C:h.kernel
o._PutBytes:	C:h.swis
o._PutBytes:	h.Interface
o._PutBytes:	h.ModuleWrap
o._PutBytes:	h.util
o._PutBytes:	h.core
o.Interface: s.Interface
o._Free:	c._Free
o._Free:	h.FS
o._Free:	C:h.kernel
o._Free:	C:h.swis
o._Free:	h.Interface
o._Free:	h.ModuleWrap
o._Free:	h.util
o._Free:	h.core
o.cstart: s.cstart
o.ticker:	c.ticker
o.ticker:	C:h.kernel
o.ticker:	C:h.swis
o.ticker:	h.modulewrap
o.ticker:	h.ticker
