#
#This makefile is for the Aztec system.
#The program 'HunkFix' is not necessary, it just removes unused hunks.
#

objs=copymemquicker.o cm000.o cm010.o cm020.o

all: CopyMemQuicker TestIt

.asm.o:
	as -l $*

CopyMemQuicker: $(objs)
	ln -o CopyMemQuicker $(objs) -lC
	HunkFix >NIL: $@

TestIt: TestIt.o
	ln -o TestIt -m $*.o -lC +l -lamiga
	HunkFix >NIL: $@

TestIt.o: TestIt.c testit.pre
	cc $* -so -wu -ms -hi $*.pre

testit.pre: TestIt.h
	cc $*.h -so -wu -ms -ho $*.pre
