##############################################################################
# MC68HC11 SCI Interrupt test program
#
# Copyright (c) 1996, Clifford Heath.  ALL RIGHTS RESERVED.
# May be used, but not passed on, for any purpose whatsoever, provided
# that this copyright notice is not removed.
#
# This uses the "htdemo" HiTech C compiler demo, which I run under Linux
# in a DOS window (using DOSEMU).  The compiler reads the .c and .h files,
# and produces "sci_intr.as".  After this has been done, this makefile will
# go ahead and run "htfix", which will transform the assembler syntax into
# one acceptable to the freeware assembler in the file "sci_intr.asm", which
# it then assembles.  The s19 file is sorted into ascending order because
# it sometimes improves loading for me - you might not need this.
#
# If you don't use LINUX and DOSEMU, but can get a DOS version of "sed", for
# example from www.cygnus.com, you'll probably be able to get it working,
# but you'll have to edit "htfix" into a DOS batch file.
#
all:	sci_intr.s19
	@echo done

sci_intr.as:	sci_intr.c crte.c vectors.c
	echo 'Use "run.bat" in DOSEMU window!'
	exit 1

sci_intr.asm:	sci_intr.as
	htfix sci_intr

sci_intr.s19:	sci_intr.asm
	as11 sci_intr.asm || (rm sci_intr.s19; exit 1)
	sort +0.1 -0.2 +0.4 -0.8 sci_intr.s19 -o sci_intr.s19
