NASM=..\nasm65
NLINK=..\nlink65
NLIB=..\nlib65
# if you have UNIX you don't need this kludge
SHELL=callgu

AFLAGS=-x

.SUFFIXES:

.SUFFIXES:	.l65 .o65 .s65 .h65 .com

.s65.o65:
	$(NASM) $(AFLAGS) $<

.o65.com:
	$(NLINK) $(LFLAGS) $*.o65 -o $*.com

.s65.com:
	$(NASM) $(AFLAGS) $<
	$(NLINK) $(LFLAGS) $*.o65 -o $*.com

#
# --------------------------------------------------------------
all:	handler.com readsect.com readboot.com strtest.com fill.com

clean:
	$(SHELL) rm *.d* *.o*

install.o65:	handler.h65 install.s65

resident.o65:	handler.h65 resident.s65

handler.com:	install.o65 resident.o65
	$(NLINK) -b handler -o handler.com -s 4000 -m
