@echo off
REM This builds all the libraries of the folder for 1 uname

call tecmake %1 %2 %3 %4 %5 %6
REM call tecmake %1 "USE_GTK=Yes" %2 %3 %4 %5 %6

if "%1"=="dll" goto stub_dll6
if "%1"=="dll7" goto stub_dll7
if "%1"=="dll8" goto stub_dll8
if "%1"=="dll8_64" goto stub_dll8_64
if "%1"=="dll9" goto stub_dll9
if "%1"=="dll9_64" goto stub_dll9_64
if "%1"=="dll10" goto stub_dll10
if "%1"=="dll10_64" goto stub_dll10_64
if "%1"=="dll11" goto stub_dll11
if "%1"=="dll11_64" goto stub_dll11_64
if "%1"=="dll12" goto stub_dll12
if "%1"=="dll12_64" goto stub_dll12_64
if "%1"=="dll14" goto stub_dll14
if "%1"=="dll14_64" goto stub_dll14_64
if "%1"=="dll15" goto stub_dll15
if "%1"=="dll15_64" goto stub_dll15_64
if "%1"=="dllg4" goto stub_dllg4
if "%1"=="dllw4" goto stub_dllw4
if "%1"=="dllw4_64" goto stub_dllw4_64
if "%1"=="dllw6" goto stub_dllw6
if "%1"=="dllw6_64" goto stub_dllw6_64
if "%1"=="all" goto all_dll
if "%1"=="all-dll" goto all_dll
if "%1"=="all-vc_dll" goto all_vc_dll
if "%1"=="all-gcc_dll" goto all_gcc_dll
if "%1"=="all-beta" goto all_beta
goto fim

:stub_dll6
call tecmake vc6 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc6\iupstub.lib ..\lib\dll
goto fim

:stub_dll7
call tecmake vc7 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc7\iupstub.lib ..\lib\dll7
goto fim

:stub_dll8
call tecmake vc8 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc8\iupstub.lib ..\lib\dll8
goto fim

:stub_dll8_64
call tecmake vc8_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc8_64\iupstub.lib ..\lib\dll8_64
goto fim

:stub_dll9
call tecmake vc9 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc9\iupstub.lib ..\lib\dll9
goto fim

:stub_dll9_64
call tecmake vc9_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc9_64\iupstub.lib ..\lib\dll9_64
goto fim

:stub_dll10
call tecmake vc10 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc10\iupstub.lib ..\lib\dll10
goto fim

:stub_dll10_64
call tecmake vc10_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc10_64\iupstub.lib ..\lib\dll10_64
goto fim

:stub_dll11
call tecmake vc11 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc11\iupstub.lib ..\lib\dll11
goto fim

:stub_dll11_64
call tecmake vc11_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc11_64\iupstub.lib ..\lib\dll11_64
goto fim

:stub_dll12
call tecmake vc12 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc12\iupstub.lib ..\lib\dll12
goto fim

:stub_dll12_64
call tecmake vc12_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc12_64\iupstub.lib ..\lib\dll12_64
goto fim

:stub_dll14
call tecmake vc14 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc14\iupstub.lib ..\lib\dll14
goto fim

:stub_dll14_64
call tecmake vc14_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc14_64\iupstub.lib ..\lib\dll14_64
goto fim

:stub_dll15
call tecmake vc15 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc15\iupstub.lib ..\lib\dll15
goto fim

:stub_dll15_64
call tecmake vc15_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\vc15_64\iupstub.lib ..\lib\dll15_64
goto fim

:stub_dllw4
call tecmake mingw4 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\mingw4\libiupstub.a ..\lib\dllw4
goto fim

:stub_dllw4_64
call tecmake mingw4_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\mingw4_64\libiupstub.a ..\lib\dllw4_64
goto fim

:stub_dllw6
call tecmake mingw6 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\mingw6\libiupstub.a ..\lib\dllw6
goto fim

:stub_dllw6_64
call tecmake mingw6_64 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\mingw6_64\libiupstub.a ..\lib\dllw6_64
goto fim

:stub_dllg4
call tecmake gcc4 "MF=iupstub" %2 %3 %4 %5 %6 %7
move /y ..\lib\gcc4\libiupstub.a ..\lib\dllg4
goto fim

:all_dll
call make_uname dll10 %2 %3 %4 %5 %6
call make_uname dll10_64 %2 %3 %4 %5 %6
call make_uname dll11 %2 %3 %4 %5 %6
call make_uname dll11_64 %2 %3 %4 %5 %6
call make_uname dll12 %2 %3 %4 %5 %6
call make_uname dll12_64 %2 %3 %4 %5 %6
call make_uname dll14 %2 %3 %4 %5 %6
call make_uname dll14_64 %2 %3 %4 %5 %6
call make_uname dll15 %2 %3 %4 %5 %6
call make_uname dll15_64 %2 %3 %4 %5 %6
call make_uname dllw6 %2 %3 %4 %5 %6
call make_uname dllw6_64 %2 %3 %4 %5 %6
goto fim

:all_beta
call make_uname dll10 %2 %3 %4 %5 %6
call make_uname dll10_64 %2 %3 %4 %5 %6
goto fim

:all_vc_dll
call make_uname dll10 %2 %3 %4 %5 %6
call make_uname dll10_64 %2 %3 %4 %5 %6
call make_uname dll11 %2 %3 %4 %5 %6
call make_uname dll11_64 %2 %3 %4 %5 %6
call make_uname dll12 %2 %3 %4 %5 %6
call make_uname dll12_64 %2 %3 %4 %5 %6
call make_uname dll14 %2 %3 %4 %5 %6
call make_uname dll14_64 %2 %3 %4 %5 %6
call make_uname dll15 %2 %3 %4 %5 %6
call make_uname dll15_64 %2 %3 %4 %5 %6
goto fim

:all_gcc_dll
call make_uname dllw6 %2 %3 %4 %5 %6
call make_uname dllw6_64 %2 %3 %4 %5 %6
goto fim

:fim
