#
# Aztec C makefile
#

# different caching algorithms
CACHE=	trackcache.o
#CACHE=	cache.o
#CACHE=	nocache.o

# I am working on an IBM card version
WD= 	wd.o

PROG=	harddisk.device
OBJS=	begin.o autoinit.o global.o $(CACHE) perform_io.o $(WD) posn.o\
		lib.o libasm.o subprocess.o misc.o main.o hash.o
CFLAGS=	+b +p +Iram:hd.hdr
AFLAGS=	-c -d

$(PROG)	: ram:hd.hdr $(OBJS) makefile
	ln -w -t +a -o $(PROG) $(OBJS) -lcl32
	copy $(PROG) ram:

hd.hdr : hd.c hd.h
	cc +p +Hhd.hdr hd.c

$(OBJS) : hd.hdr

ram:hd.hdr : hd.hdr
	copy hd.hdr ram:hd.hdr
