Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set NAMESPEC=
- set PATH=%PATH%;.\bin
- set CC=bin\sh3-unknown-elf-gcc.exe
- set CFLAGS=-m4a-nofpu -mb -Os -mhitachi -Wall -nostdlib -Iinclude -lfxcg -lgcc -Llib
- set LDFLAGS=%CFLAGS% -Tprizm.lkr -Wl,-static
- set BINFILE=default.bin
- rem Compile and link
- dir /b *.c *.s > _BUILDTEMP
- %CC% @_BUILDTEMP -o default.bin %LDFLAGS%
- if %errorlevel% neq 0 goto fail
- del _BUILDTEMP
- rem Make g3a
- mkg3a.exe %NAMESPEC %BINFILE
- if %errorlevel% neq 0 goto fail
- :fail
- echo Build failed. See above for error messages.
- :done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement