mirror of https://github.com/PCSX2/pcsx2.git
41 lines
779 B
Batchfile
41 lines
779 B
Batchfile
@echo off
|
|
set source=DynaCrcHack.c
|
|
|
|
@cd /D "%~d1%~p1" > nul
|
|
|
|
if not exist tcc\tcc.exe (
|
|
echo.
|
|
echo Missing ^<this-folder^>\tcc\tcc.exe
|
|
echo.
|
|
echo Please download TCC 0.9.25 for windows from http://bellard.org/tcc/
|
|
echo and extract the package to ^<this-folder^>\tcc
|
|
echo.
|
|
pause
|
|
goto end
|
|
)
|
|
|
|
if not exist utils\waitForChange.exe tcc\tcc utils\waitForChange.c -o utils\waitForChange.exe
|
|
if not exist utils\ding.exe tcc\tcc utils\ding.c -luser32 -o utils\ding.exe
|
|
|
|
:start
|
|
echo Compiling ...
|
|
echo.
|
|
tcc\tcc -shared -Wall %source%
|
|
if %errorlevel% == 0 (
|
|
echo -^> OK
|
|
utils\ding 2
|
|
) else (
|
|
echo -^> ERROR
|
|
utils\ding 1
|
|
utils\ding 1
|
|
)
|
|
|
|
if exist *.def del /Q *.def
|
|
|
|
echo Waiting ...
|
|
utils\waitForChange %source%
|
|
echo.
|
|
|
|
goto start
|
|
|
|
:end |