2 setlocal enabledelayedexpansion
6 ::Define as main parameters
11 set ARGSO=-IExt\include -LExt\lib %*
13 ::This is for the .def file also have a similar name .c file
14 ::.a file will be larger than .def + .c
15 ::*-uuid.c files are suitable to form libuuid.a
18 for %%i in (%ARGSO%) do (
28 set LIBi= lib\msvfw32.def lib\avifil32.def lib\avicap32.def
34 set _Args_=!_Args_! %%i
36 set LIBi=!LIBi:%~dp0=!
37 set _LIBs_=!_LIBs_! !LIBi!
38 echo For lib !LIB! will use:
43 set _Args_=!_Args_! %%i
50 tcc.exe !_Args_! !_LIBs_!
57 for %%D in (-Llib %ARGSO%) do (
63 if exist "!LIBD!" call :GetDLib
74 for /f "usebackq delims=" %%I in (`"dir /b /s !LIB!.c !LIB!_*.c !LIB!.def !LIB!_*.def 2>nul"`) do (