Advertisement
tari

Untitled

May 3rd, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. set NAMESPEC=
  3.  
  4. set PATH=%PATH%;.\bin
  5. set CC=bin\sh3-unknown-elf-gcc.exe
  6. set CFLAGS=-m4a-nofpu -mb -Os -mhitachi -Wall -nostdlib -Iinclude -lfxcg -lgcc -Llib
  7. set LDFLAGS=%CFLAGS% -Tprizm.lkr -Wl,-static
  8. set BINFILE=default.bin
  9.  
  10. rem Compile and link
  11. dir /b *.c *.s > _BUILDTEMP
  12. %CC% @_BUILDTEMP -o default.bin %LDFLAGS%
  13. if %errorlevel% neq 0 goto fail
  14. del _BUILDTEMP
  15.  
  16. rem Make g3a
  17. mkg3a.exe %NAMESPEC %BINFILE
  18. if %errorlevel% neq 0 goto fail
  19.  
  20. :fail
  21. echo Build failed.  See above for error messages.
  22.  
  23. :done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement