#
#  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:\bin\cp68.prg $(CFLAGS) $*.c m:$*.i
	c:\bin\c068.prg m:$*.i m:$*.1 m:$*.2 m:$*.3 -f
	rm m:$*.i
	c:\bin\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 = aesbind2 vdibind gemlib libf 


OBJS = gemstart.o osbind.o optimize.o hdlfile.o	

hdlfile.prg : $(OBJS)
	echo $(OBJS) $(LIBS) >$(TEMP)
	aln -s -o hdlfile.prg -c $(TEMP)


#
#  assembly-language files
#
gemstart.o 	: 	gemstart.s
osbind.o	:	osbind.s
optimize.o 	:	optimize.s


#
#  C sources
#

hdlfile.o 	:hdlfile.c

