AS	= optasm
OBJ	= ish.obj
SOURCE	= ish.asm ishsub.asm errors.asm makehsi.asm emulate.asm encode.asm \
	  makeish.asm filename.asm crc32.asm int21.asm timezone.asm
INCLUDE	= ish.h ishsub.h v30.h default.h masm.h crc.h makeish.h display.h \
	  makehsi.h decode.h multivol.h int21.h timezone.h
DAT	= encdec.dat crc.dat formpara.dat errors.dat emulate.dat misc.dat \
	  path.dat msg.dat work.dat crc32.dat idblock.dat

ish.com: $(OBJ)
	link $* ;
#	exe2bin $*.exe $*.com
#	rm $*.exe
	exe2bin $*.exe $*.bin
	if exist $*.com rm $*.com
	compack $*.bin $*.com
	rm $*.exe $*.bin

ish.obj: $(SOURCE) $(INCLUDE) $(DAT)
#masm	/DMASM ish;
#	optasm $* $* $* ;
	optasm $(aflags) $* ;
