xcopy /D m:\annex\ichinose\エメラノレドMIDI\*.mid c:\home\go\poke_emerald\midi

echo off

echo 作成するものを選択してください
echo 1:確認環境用（ミュージックナンバーを詰めない）
echo 2:開発環境用（ミュージックナンバーを詰める）
echo 3:開発環境用（既存の.oファイルを削除、ミュージックナンバーを詰める）

rem choice /c:123

rem if ERRORLEVEL 3 goto KAIHATSUDEL
rem if ERRORLEVEL 2 goto KAIHATSU
rem if ERRORLEVEL 1 goto KAKUNIN

rem GOTO END


goto KAIHATSUDEL



:KAKUNIN
snd_make mks4agb.def pok_mks.ini

defset pok_mks.ini
copy mus_def.h out
del mus_def.h
pok_mks

GOTO END

:KAIHATSU
snd_make mks4agb.def pok_mks.ini 1

defset pok_mks.ini
copy mus_def.h out
del mus_def.h
pok_mks

copy out\mus_def.h c:\home\go\snd_file
copy out\m4alib.o c:\home\go\snd_file
copy out\m4alib.h c:\home\go\snd_file
copy out\soundfiles c:\home\go\snd_file
copy out\sounddat.o c:\home\go\snd_file
copy out\*.o c:\home\go\snd_file

GOTO END

:KAIHATSU
snd_make mks4agb.def pok_mks.ini 1

defset pok_mks.ini
copy mus_def.h out
del mus_def.h
pok_mks

copy out\mus_def.h m:\annex\nohara\pmeme\snd_file
copy out\m4alib.o m:\annex\nohara\pmeme\snd_file
copy out\m4alib.h m:\annex\nohara\pmeme\snd_file
copy out\soundfiles m:\annex\nohara\pmeme\snd_file
copy out\sounddat.o m:\annex\nohara\pmeme\snd_file
copy out\*.o m:\annex\nohara\pmeme\snd_file

GOTO END

:KAIHATSUDEL
del out\*.*
snd_make mks4agb.def pok_mks.ini 1

defset pok_mks.ini
copy mus_def.h out
del mus_def.h
pok_mks

rem del m:\annex\nohara\pmeme\snd_file\*.*

rem copy out\mus_def.h m:\annex\nohara\pmeme\snd_file
rem copy out\m4alib.o m:\annex\nohara\pmeme\snd_file
rem copy out\m4alib.h m:\annex\nohara\pmeme\snd_file
rem copy out\soundfiles m:\annex\nohara\pmeme\snd_file
rem copy out\sounddat.o m:\annex\nohara\pmeme\snd_file
rem copy out\*.o m:\annex\nohara\pmeme\snd_file

del ..\snd_file\*.*
copy out\mus_def.h ..\snd_file
copy out\m4alib.o ..\snd_file
copy out\m4alib.h ..\snd_file
copy out\soundfiles ..\snd_file
copy out\sounddat.o ..\snd_file
copy out\*.o ..\snd_file

:END
:END

