echo Compiling %1.dpr ppcrossarm -CX -XXs -dgp2x %1.dpr echo Assembling %1 arm-linux-as.exe -mcpu=arm920 -o %1.o %1.s if errorlevel 1 goto asmend echo archiving %1 arm-linux-ar.exe -r %1.a rem arm-linux-ld.exe -static --no-warn-mismatch --reduce-memory-overheads --gc-sections -s -L. -o%1.gpe link.res -lpng -lm -lstdc++ -lgcc_eh -lpthread -lvorbisidec -lmikmod -lpng12 -lz -lSDL -ljpeg -lfreetype -lc -lgcc arm-linux-ld.exe -static --no-warn-mismatch -s -L. -o%1.gpe link.res if errorlevel 1 goto linkend goto end :asmend echo An error occured while assembling %1 goto end :linkend echo An error occured while linking %1 :end