### makefile
#
#   DESCRIPTION:
#   ===========
#
#	This is the makefile for the xprascii.library.
#	This version is written for Aztec C. It is based on the example
#	library  by Jim Mackraz who got some stuff from Neil Katin.
#	All changes and additions by me.
#
#   AUTHOR/DATE:  W.G.J. Langeveld, February 1989.
#   ============
#
#	Modified for Aztec C V3.6a and XPR Kermit by Stephen Walton and
#	Marco Papa, November-December 1989.
#
#	The "-lstring" on the Makefile below refers to the Henry Spencer
#	string library, available on Fish Disk.  It is only needed for the
#	strtok() function.
###
CFLAGS = +B -DXPRKERMIT

# The order in the following is important!

OBJS	=	xprkermit.o timeout.o funky.o protolib.o \
		rtag.o libface.o kermitproto.o

All:           xprkermit.library

xprkermit.library: $(OBJS) 
	ln -o xprkermit.library $(OBJS) -lstring -lc

xprkermit.o:    xprkermit.c xproto.h

kermitproto.o: kermitproto.c kermitproto.h
	cc $(CFLAGS) kermitproto.c

kermitproto.c:	kermitproto.w
	wart kermitproto.w kermitproto.c

timeout.o:     timeout.c

protolib.o:    protolib.c protolib.h

rtag.o:        rtag.asm
	as rtag.asm

funky.o:       funky.asm
	as funky.asm

libface.o:     libface.asm
	as libface.asm

copy:	xprkermit.library
	copy xprkermit.library to LIBS:
	
clean:
	delete #?.o
