@echo off
set DDPROC=..\ddproc
if ""=="%ROOT%" goto error2
if ""=="%DDPROC%" goto error1
rem touch %DDPROC%\video_core.c
if ""=="%1" goto normal

cd   %DDPROC%
make FINAL=YES
cd   ..\hello_world
copy %DDPROC%\ddproc2.o ddproc.o

goto end

:normal

cd   %DDPROC%
make 
cd   ..\hello_world
copy %DDPROC%\ddproc2.o ddproc.o

goto end
:error1
echo DDPROC environment variable has not been set.
goto end
:error2
echo This is not the N64 program development environment.
goto end
:end
@echo on
