#
# DMakeFile for the test program.
#
# I use "amigas20.lib" to get a "sprintf" from which is shorter than
# the one from "cr.lib" and is not in "amigasr20.lib".
#

CFLAGS = -mRR -c
SRCC = main.c event.c
SRCA = ascii.s hstub.s
OBJC = main.o event.o
OBJA = ascii.o hstub.o
OBJS = main.o event.o ascii.o hstub.o
EXE = view

all: $(SRCC) $(SRCA) $(LINK)

$(LINK) : $(OBJS)
    dlink c.o $(OBJS) amigas20.lib cr.lib amigasr20.lib auto.lib x.o nofragr.lib powerpackerr.lib -o $(EXE)

$(SRCC) : $(OBJC)
    dcc $(CFLAGS) %(left) -o %(right)

$(SRCA) : $(OBJA)
    genim2 %(left)
