- 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
- if exist MIPS goto del_mips
- mkdir auddrvMIPS
- mkdir navMIPS
- mkdir kernelMIPS
- mkdir clibMIPS
- mkdir ideMIPS
- mkdir authMIPS
- mkdir jpegMIPS
- mkdir fsMIPS
- mkdir fs_krnlMIPS
- mkdir fs_midiMIPS
- mkdir fs_mp4MIPS
- mkdir fs_pmpMIPS
- mkdir GraphDrvMIPS
- mkdir peifMIPS
- mkdir dsp3MIPS
- mkdir ir_vfdMIPS
- mkdir vcdMIPS
- mkdir gameMIPS
- mkdir taskMIPS
- mkdir cssMIPS
- mkdir mipsel-elf-wma
- mkdir mipsel-elf-dts
- mkdir MIPS
- :del_mips
- del auddrvmips*.o
- del auddrvmips*.d
- del navmips*.o
- del navmips*.d
- del kernelmips*.o
- del kernelmips*.d
- del clibmips*.o
- del clibmips*.d
- del idemips*.o
- del idemips*.d
- del authmips*.o
- del authmips*.d
- del jpegmips*.o
- del fsmips*.o
- del fs_krnlmips*.o
- del fs_midimips*.o
- del fs_mp4mips*.o
- del fs_pmpmips*.o
- del fsmips*.d
- del fs_krnlmips*.d
- del fs_midimips*.d
- del fs_mp4mips*.d
- del fs_pmpmips*.d
- del peifmips*.o
- del mips*.o
- del jpegmips*.d
- del fsmips*.d
- del peifmips*.d
- del mips*.d
- del dsp3dsp3*.inc
- del ir_vfdmips*.d
- del ir_vfdmips*.o
- del vcdmips*.d
- del vcdmips*.o
- del gamemips*.d
- del gamemips*.o
- del GraphDrvMIPS*.d
- del GraphDrvMIPS*.o
- del taskmips*.d
- del taskmips*.o
- del systemmips*.d
- del systemmips*.o
- del cssmips*.d
- del cssmips*.o
- font_parse.exe
- del mipscrt0.o
- del mipsinit0.o
- del mipsintdrv.o
- if "%1" == "16" goto sdram16
- if "%1" == "32" goto sdram32
- REM ==================================================================
- :sdram32
- rem if exist clibmakefile call clib.bat
- if exist auddrvmakefile call auddrv.bat %1
- if not exist mipsel-elflibauddrv.a goto failed
- if exist cssmakefile call css.bat %1
- if not exist mipsel-elflibcss.a goto failed
- 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
- if not exist mipsel-elflibmp4_8202.a goto failed
- if exist kernelMakefile_game16 call game16.bat %1
- if not exist mipsel-elflibgame16_8202.a goto failed
- if exist GraphDrvmakefile call GraphDrv.bat %1
- if not exist mipsel-elflibGraphDrv.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 fs_krnlmakefile call fs_krnl.bat %1
- if not exist mipsel-elflibfs_krnl_8202.a goto failed
- if exist fs_midimakefile call fs_midi.bat %1
- if not exist mipsel-elflibfs_midi_8202.a goto failed
- if exist fs_mp4makefile call fs_mp4.bat %1
- if not exist mipsel-elflibfs_mp4_8202.a goto failed
- if exist fs_pmpmakefile call fs_pmp.bat %1
- if not exist mipsel-elflibfs_pmp_8202.a goto failed
- if exist peifmakefile call pe.bat %1
- if not exist mipsel-elflibpe_8202.a goto failed
- if exist dsp3makefile call dsp3.bat %1
- rem if not exist mipsel-elflibdsp3.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
- if exist systemmakefile call sys.bat %1
- if not exist mipsel-elflibsys_8202.a goto failed
- call 1.bat %1
- if not exist mipsel-elflibir_8202.a goto failed
- goto end
- REM ==================================================================
- REM ==================================================================
- :sdram16
- rem if exist clibmakefile call clib.bat
- if exist auddrvmakefile call auddrv.bat %1
- if not exist mipsel-elflibauddrv_16.a goto failed
- if exist cssmakefile call css.bat %1
- if not exist mipsel-elflibcss.a goto failed
- 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
- rem 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 fs_krnlmakefile call fs_krnl.bat %1
- if not exist mipsel-elflibfs_krnl_16.a goto failed
- if exist fs_midimakefile call fs_midi.bat %1
- if not exist mipsel-elflibfs_midi_16.a goto failed
- if exist fs_mp4makefile call fs_mp4.bat %1
- if not exist mipsel-elflibfs_mp4_16.a goto failed
- if exist fs_pmpmakefile call fs_pmp.bat %1
- if not exist mipsel-elflibfs_pmp_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
- if exist systemmakefile call sys.bat %1
- if not exist mipsel-elflibsys_16.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