# WEIRDNESS ALERT: You'll probably want to redo this makefile to suit
# yourself.  I like Aztec's make util better than lmk, and I prefer to
# invoke the compiler using the cc frontend from C++, and these are
# probably not habits shared by many other people.

CFLAGS  = -b1 -cfiqst -d1 -iinclude: -O -r1r -s -v
MODULES = latticelib.o send.o receive.o utils.o zm.o getsystime.o timeout.o

.c.o:
  cc $(CFLAGS) $*.c

.a.o:
  asm -iINCLUDE: $*

xprzmodem.library: $(MODULES) makefile
  blink FROM $(MODULES) TO $@ LIB lib:lcr.lib lib:amiga.lib MAXHUNK 8192 SC SD MAP $@.map FHL ND
  copy $@ libs:
  avail flush

send.o:     xproto.h zmodem.h xprzmodem.h

receive.o:  xproto.h zmodem.h xprzmodem.h

utils.o:    xproto.h zmodem.h xprzmodem.h

zm.o:       xproto.h zmodem.h xprzmodem.h zcrc.h
