set OPTS1=-Wall -g -gcoff -O2 -I../inc -L../lib
set OPTS2=-lwatt -lrt32 -o
goto start
:start

gcc.exe %OPTS1%  test.c %OPTS2% test.exe

rem test2 doesn't work in 32 bits
rem gcc.exe %OPTS1%  test2.c %OPTS2% test2.exe

gcc.exe %OPTS1%  test3.c %OPTS2% test3.exe
gcc.exe %OPTS1%  test4.c %OPTS2% test4.exe
gcc.exe %OPTS1%  test5.c %OPTS2% test5.exe
gcc.exe %OPTS1%  test6.c %OPTS2% test6.exe
gcc.exe %OPTS1%  test7.c %OPTS2% test7.exe
gcc.exe %OPTS1%  test8.c %OPTS2% test8.exe
gcc.exe %OPTS1%  test9.c %OPTS2% test9.exe

rem test10 doesn't work in 32 bits, timer needs work
rem gcc.exe %OPTS1%  test10.c %OPTS2% test10.exe

rem test11 doesn't work int 32 bits, no ISR code supported
rem gcc.exe %OPTS1%  test11.c %OPTS2% test11.exe

gcc.exe %OPTS1%  test12.c %OPTS2% test12.exe
gcc.exe %OPTS1%  test13.c %OPTS2% test13.exe
gcc.exe %OPTS1%  test14.c %OPTS2% test14.exe
gcc.exe %OPTS1%  test15.c %OPTS2% test15.exe

rem test16 is not supported in 32 bits
rem gcc.exe %OPTS1%  test16.c %OPTS2% test16.exe

gcc.exe %OPTS1%  test17.c %OPTS2% test17.exe
gcc.exe %OPTS1%  mathtest.c %OPTS2% mathtest.exe

rem stktest doesn't work in 32 bits, compiler doesn't show registers
rem gcc.exe %OPTS1%  stktest.c %OPTS2% stktest.exe

goto end

:end
