# SCRIPT makefile. 17th September 1996

!include \rtrware\include\gblmkdef

OBJS = $(OLS)script.ol $(OLS)scrtinit.ol $(OLS)scrthdlr.ol $(OLS)scrtrtns.ol \
	$(OLS)scrtargs.ol $(OLS)scrtasm.ol $(OLS)scrtutls.ol

LIBFILE = script.lib

LIBFILE : delerr $(OBJS)

delerr :
	del err

$(OLS)script.ol: $(@B).c scrtcons.h scrttype.h scrtfuns.h scrtdata.h \
		scrtenum.h scrtvnv.h scrtasm.h $(INC)kstart.h
		$(CC) $(@B).c $(CFLAGS)
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE) 

$(OLS)scrtinit.ol: $(@B).c scrtcons.h scrttype.h scrtfuns.h scrtenum.h \
		scrtdefs.h scrtenum.h scrtstr.h $(INC)kstart.h
	$(CC) $(@B).c $(CFLAGS)
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)
		

$(OLS)scrthdlr.ol: $(@B).c scrtfuns.h scrtdefs.h scrtargs.h scrtenum.h \
		 scrttype.h scrtcons.h scrtwan.h scrtasm.h scrtutls.h $(INC)kstart.h
	$(CC) $(@B).c $(CFLAGS)
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)scrtrtns.ol: $(@B).c scrtfuns.h scrtdefs.h scrttype.h \
		scrtenum.h scrtargs.h $(INC)kstart.h
	$(CC) $(@B).c $(CFLAGS)
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

	
$(OLS)scrtargs.ol: $(@B).c scrttype.h scrtargs.h scrtenum.h \
		 scrtdefs.h scrtfuns.h $(INC)kstart.h
	$(CC) $(@B).c $(CFLAGS)
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)
	
$(OLS)scrtasm.ol: $(@B).68k ..\include\a360def.h		
	$(ASM) $(@B).68k -o $(OLS)$(@B).ol -l $(LST)$(@B).lst $(ASMFLG) -err+ err
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)scrtutls.ol: $(@B).c scrtutls.h scrtasm.h scrtwan.h \
	$(INC)kstart.h
	$(CC) $(@B).c $(CFLAGS)
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)
