# NOT FOR USE WITH AMIGA SYSTEMS!  This Makefile is for, obviously,
# Unix only.  See the ReadMe for instructions on installing/
# compiling on an Amiga.

# Replace LIBDIR with a period to put libmb.a in the current directory,
# or make it /usr/lib/ or wherever it is you'd like your new library.

LIBDIR = .

all:	libmb.a		build		sample		enctest
build:	build.c		stdinc.h
	cc -o build -O build.c
libmb.a:	mbase.c		stdinc.h	mbase.h
	cc -c -O mbase.c
	ar r ${LIBDIR}/libmb.a mbase.o
	ranlib ${LIBDIR}/libmb.a
sample:	stdinc.h	mbase.h		sample.c  	libmb.a
	cc -L ${LIBDIR} -o sample sample.c -lmb
enctest:	enctest.c
	cc -o enctest enctest.c
