0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.145.92.213


Current Path : /var/www/html/guk_old/libgd-gd-2.2.3/windows/
Upload File :
Current File : /var/www/html/guk_old/libgd-gd-2.2.3/windows/gentest.bat

SETLOCAL ENABLEDELAYEDEXPANSION
@echo off
set testsdir=%~1
set builddir=%~2
set CFLAGS=%~3
set LDFLAGS=%~4
set CC=%~5
set LD=%~6
set TESTMK=%~7
set TESTLIST=%~8
echo %*
echo recieved !testsdir! !builddir! !CFLAGS! !LDFLAGS! !CC!

copy NUL !TESTMK! > nul
copy NUL !TESTLIST! > nul

for /D %%d in (!testsdir!/*) do (
	if NOT "%%d"=="gdtest" for %%f in (!testsdir!/%%d/*.c) do (
		echo TEST_EXES=!builddir!\tests\%%d_%%~nf.exe ^$^(TEST_EXES^) >> !TESTMK!
	)
)

for /D %%d in (!testsdir!/*) do (
    if NOT "%%d"=="gdtest" for %%f in (!testsdir!/%%d/*.c) do (
		echo !builddir!\%%d_%%~nf.obj: !testsdir!\%%d\%%f; ^$^(CC^) ^$^(TEST_CFLAGS^) /c ^$** /Fo:$@  >> !TESTMK!
	)
)

for /D %%d in (!testsdir!/*) do (
    if NOT "%%d"=="gdtest" for %%f in (!testsdir!/%%d/*.c) do (
		echo !builddir!\tests\%%d_%%~nf.exe: !builddir!\%%d_%%~nf.obj; !LD! !LDFLAGS! $** /out:$@ >> !TESTMK!
		echo %%d_%%~nf.exe >> !TESTLIST!
	)
)
ENDLOCAL