#
#  Use "make -r" to make this file, or alias as in: 
#					set in .cmd mk=(make -r $*)
#
.SUFFIXES: .o .s .c

.s.o:
	mac $(MACFLAGS) $*.s
.c.o:
	@echo c68 -c $*.c
	@c:\compiler.dsk\cp68.prg $(CFLAGS) $*.c m:$*.i
	@c:\compiler.dsk\c068.prg m:$*.i m:$*.1 m:$*.2 m:$*.3 -f
	@rm m:$*.i
	@c:\compiler.dsk\c168.prg m:$*.1 m:$*.2 m:$*.s
	@c:\bin\mac.prg -6 -o $*.o m:$*.s
	@rm m:$*.1 m:$*.2 m:$*.s

TEMP = m:tmp
LIBS = gemlib

OBJS = chnltst.o acsi.o cmdblk.o doit.o ide.o scsi.o spsctst.o

driver.prg : $(OBJS)
	echo $(OBJS) >$(TEMP)
	aln -l -o chnltst.prg -c $(TEMP)


#
#  assembly-language files
#
acsi.o : acsi.s defs.h spscsi.h
chnltst.o : chnltst.s defs.h spscsi.h sound.h
cmdblk.o : cmdblk.s defs.h
doit.o : doit.s defs.h
ide.o : ide.s defs.h
scsi.o : scsi.s defs.h scsi.h
spsctst.o : spsctst.s spscsi.h defs.h

