@echo off


set armdir=..
set sdkdir=..\SDK
set lib_o=..\Lib.o

set src_input=src\ELF.c
set tmp_o=ELF.o

rem NORMAL
set output=bin\ToneDBKiller.elf

if exist %output% del %output%
if exist bin goto :nbin
md bin
:nbin
%armdir%\tcc -O2  -I%sdkdir% -c -bigend -apcs  /interwork %options% %src_input%
%armdir%\armlink -nolocals -reloc -first Lib.o(Lib) -o %output% %tmp_o% %ext_o% %lib_o%


if exist obj goto :nobj
md obj
:nobj
move /Y *.o obj\

pause