@echo off
echo Building enhanced_exi_viewer...

gcc -o enhanced_exi_viewer enhanced_exi_viewer.c ^
    src/iso1/*.c ^
    src/iso2/*.c ^
    src/din/*.c ^
    src/codec/*.c ^
    -I./src/codec ^
    -I./src/iso1 ^
    -I./src/iso2 ^
    -I./src/din

if %ERRORLEVEL% EQU 0 (
    echo Build successful! enhanced_exi_viewer.exe created.
) else (
    echo Build failed with error code %ERRORLEVEL%
)

pause