@echo off if "%1"=="" goto usage if exist %1 goto usage if exist %1.obj del %1.obj if exist %1.o del %1.o if exist *.tmp del *.tmp gcc -c -I%qlib%\h %2 %3 %4 %5 %6 %7 %8 %9 %1.cpp if not exist %1.o goto end ren %1.o %1.obj goto done :usage echo Usage : GCPP2OBJ file [...] echo file - file to compile to OBJ (do not give .CPP extension) echo [...] - options to give to GCC :done if exist *.tmp del *.tmp :end