- echo off
- if "%1" == "32" goto start
- if "%1" == "16" goto start
- if "%1" == "" goto bad_parameter
- goto bad_parameter
- REM===================================================================
- :bad_parameter
- echo **********************
- echo bad parameter
- echo for 16m, usage: all 16
- echo for 32m, usage: all 32
- echo **********************
- goto end
- REM===================================================================
- :start
- font_parse.exe
- del mipscrt0.o
- del mipsinit0.o
- del mipsintdrv.o
- if "%1" == "16" goto sdram16
- if "%1" == "32" goto sdram32
- REM ==================================================================
- :sdram32
- if exist systemmakefile call sys.bat %1
- if not exist mipsel-elflibsys_8202.a goto failed
- rem if exist clibmakefile call clib.bat
- if exist idemakefile call ide.bat %1
- if not exist mipsel-elflibatapi_8202.a goto failed
- if exist authmakefile call auth.bat %1
- if not exist mipsel-elflibauth_8202.a goto failed
- if exist navmakefile call nav.bat %1
- if not exist mipsel-elflibnav_8202.a goto failed
- if exist kernelmakefile call kernel.bat %1
- if not exist mipsel-elflibkern_8202.a goto failed
- if exist kernelmakefile_mp4 call mp4.bat %1
- rme if not exist mipsel-elflibmp4_8202.a goto failed
- rem if exist chinesemakefile call ch.bat %1
- rem if exist testmakefile call test.bat %1
- if exist jpegmakefile call jpeg.bat %1
- if not exist mipsel-elflibjpeg_8202.a goto failed
- if exist fsmakefile call fs.bat %1
- if not exist mipsel-elflibfs_8202.a goto failed
- if exist peifmakefile call pe.bat %1
- if not exist mipsel-elflibpe_8202.a goto failed
- rem if exist dsp3makefile call dsp3.bat %1
- rem if not exist mipsel-elflibdsp3_8202.a goto failed
- if exist vcdmakefile call vcd.bat %1
- if not exist mipsel-elflibvcd_8202.a goto failed
- if exist gamemakefile call game.bat %1
- if not exist mipsel-elflibgame_8202.a goto failed
- if exist taskmakefile call task.bat %1
- if not exist mipsel-elflibtask_8202.a goto failed
- call 1.bat %1
- if not exist mipsel-elflibir_8202.a goto failed
- goto end
- REM ==================================================================
- REM ==================================================================
- :sdram16
- if exist systemmakefile call sys.bat %1
- if not exist mipsel-elflibsys_16.a goto failed
- rem if exist clibmakefile call clib.bat
- if exist idemakefile call ide.bat %1
- if not exist mipsel-elflibatapi_8202.a goto failed
- if exist authmakefile call auth.bat %1
- if not exist mipsel-elflibauth_16.a goto failed
- if exist navmakefile call nav.bat %1
- if not exist mipsel-elflibnav_16.a goto failed
- if exist kernelmakefile call kernel.bat %1
- if not exist mipsel-elflibkern_8202.a goto failed
- if exist kernelmakefile_mp4 call mp4.bat %1
- if not exist mipsel-elflibmp4_8202.a goto failed
- rem if exist chinesemakefile call ch.bat %1
- rem if exist testmakefile call test.bat %1
- if exist jpegmakefile call jpeg.bat %1
- if not exist mipsel-elflibjpeg_16.a goto failed
- if exist fsmakefile call fs.bat %1
- if not exist mipsel-elflibfs_16.a goto failed
- if exist peifmakefile call pe.bat %1
- if not exist mipsel-elflibpe_16.a goto failed
- if exist dsp3makefile call dsp3.bat %1
- if not exist mipsel-elflibdsp3_8202.a goto failed
- if exist vcdmakefile call vcd.bat %1
- if not exist mipsel-elflibvcd_16.a goto failed
- if exist gamemakefile call game.bat %1
- if not exist mipsel-elflibgame_8202.a goto failed
- if exist taskmakefile call task.bat %1
- if not exist mipsel-elflibtask_8202.a goto failed
- call 1.bat %1
- if not exist mipsel-elflibir_8202.a goto failed
- goto end
- REM ==================================================================
- REM ===================================================================
- :failed
- echo compile failed
- echo *************************
- REM ===================================================================
- :end