2 setlocal enabledelayedexpansion
9 echo %*|findstr /R /C:"\<-c\>" >nul &&set EXT=.o
10 echo %*|findstr /R /C:"\<-shared\>" >nul &&set EXT=.dll
12 ::1st file found must be the main c file to get output file name
16 if "%OUTF%"=="" goto :EXIT
18 call _parseLibs -vv -o "%OUTF%" %*
27 if exist %%i set OUTF=%%~dpni%EXT%&goto :ENDFDF