.key File/a,OutDir

; batch file to call HCC, TOP and A68k by TetiSoft
;
; TetiSoft=Detlef Wuerkner, Werrastr. 7, 6300 Giessen, Germany
;
; Usage: cc filename [objfiledir] (.c will be added to filename)
; Example: cc hello
; (This will compile, optimize and assemble hello.c to hello.o)

HCC -L <File>.c <OutDir><File>.t

If warn
	; 'chip' detected
   TOP -vc <OutDir><File>.t <OutDir><File>.s
Else
   TOP -v  <OutDir><File>.t <OutDir><File>.s
EndIf

; Comment this out if you want to keep the unoptimized Atari assembler file
Delete <OutDir><File>.t

;A68k -q100 <OutDir><File>.s <OutDir><File>.o
as LARGE NOEXE <OutDir><File>.s

; Comment this out if you want to keep the assembler source file
Delete <OutDir><File>.s

List <OutDir><File>.o
