# makefile for arp.library binders and startup code for Aztec
# Basically, create two types of lib, arp.lib which could stand
# alone, has it's own startup code, etc.
#
# And a.lib, which is just the binding functions.  If you use a.lib
# then you must Open arplibrary (and intuition and graphics).
#
# Created by -=+SDB+=- 11/09/87
#
# Modified -=+SDB+=- 02-20-88, add entries for makeing resident stuff
# rstart and res.lib
#
CFLAGS=+b -icc:include
AFLAGS=-L
.c.o:
        cc $(CFLAGS) -o $@ $*.c
.s.o:
        as -o $@ $*.s

.c.o32:
        cc +l $(CFLAGS) -o $@ $*.c

.s.o32:
        as -EINT32 -o $@ $*.s

# WARNING: The order of the following IS SIGNIFICANT, do not change unless
#          you have specific reason to do so.
#
STARTUP=arpcrt0.o _arpmain.o arpcliparse.o arpexit.o _arpexit.o arpvars.o\
                AztecGlue.o
STARTUP32=arpcrt0.o32 _arpmain.o32 arpcliparse.o32 arpexit.o32 _arpexit.o32\
                arpvars.o32 AztecGlue.o32

RESLIB=resgeta4.o _arpmain.o arpcliparse.o arpexit.o _arpexit.o\
        arpvars.o AztecGlue.o
RESLIB32=resgeta4.o32 _arpmain.o32 arpcliparse.o32 arpexit.o32 _arpexit.o32\
        arpvars.o32 AztecGlue.o32

ARPFUNCS=AztecGlue.o
ARPFUNCS32=AztecGlue.o32

all:    arp.lib a.lib arp32.lib a32.lib rstart rstart32 res.lib res32.lib clean

arp.lib:        $(STARTUP)
                lb arp.lib -v $(STARTUP)

a.lib:          $(ARPFUNCS)
                lb a.lib -v $(ARPFUNCS)

arp32.lib:      $(STARTUP32)
                lb arp32.lib -v $(STARTUP32)

a32.lib:        $(ARPFUNCS32)
                lb a32.lib -v $(ARPFUNCS32)

rstart:         arprescrt0.s
                as arprescrt0.s -o rstart.x

rstart32:       arprescrt0.s
                as -EINT32 -o rstart32.x arprescrt0.s

res.lib:        $(RESLIB)
                lb res.lib -v $(RESLIB)

res32.lib:      $(RESLIB32)
                lb res32.lib -v $(RESLIB32)
clean:
                delete *.o *.o32 QUIET
                @Rename *.x *.o


