@echo off rem $Id: build_all.bat,v 1.8 2001/10/20 21:12:34 cwolf Exp $ rem rem Use NMAKE to build/clean rem rem Invoke as "build_all.bat CLEAN" to clean all targets rem if ."%SRCROOT%"==."" goto notset if not exist %SRCROOT%\ogg\include\ogg\ogg.h goto noogg if not exist %SRCROOT%\vorbis\include\vorbis\codec.h goto novorbis rem compile execwait utility if not exist execwait.exe ( cl /nologo execwait.c ) if ."%USENMAKE%"==."" ( msdev all.dsw /make "all - ALL" goto done ) rem If one of the makefiles doesn't exist, rem assume they all need to be generated rem if not exist %SRCROOT%\vorbis\win32\vorbis_dynamic.mak ( call mkmak.bat ) cd "..\ogg\win32" nmake /nologo /F .\ogg_dynamic.mak CFG="ogg_dynamic - Win32 Debug" %1 nmake /nologo /F .\ogg_dynamic.mak CFG="ogg_dynamic - Win32 Release" %1 nmake /nologo /F .\ogg_static.mak CFG="ogg_static - Win32 Debug" %1 nmake /nologo /F .\ogg_static.mak CFG="ogg_static - Win32 Release" %1 cd "..\..\win32sdk" cd "..\vorbis\win32" nmake /nologo /F .\vorbis_dynamic.mak CFG="vorbis_dynamic - Win32 Debug" %1 nmake /nologo /F .\vorbis_dynamic.mak CFG="vorbis_dynamic - Win32 Release" %1 nmake /nologo /F .\vorbis_static.mak CFG="vorbis_static - Win32 Debug" %1 nmake /nologo /F .\vorbis_static.mak CFG="vorbis_static - Win32 Release" %1 nmake /nologo /F .\vorbisenc_dynamic.mak CFG="vorbisenc_dynamic - Win32 Debug" %1 nmake /nologo /F .\vorbisenc_dynamic.mak CFG="vorbisenc_dynamic - Win32 Release" %1 nmake /nologo /F .\vorbisenc_static.mak CFG="vorbisenc_static - Win32 Debug" %1 nmake /nologo /F .\vorbisenc_static.mak CFG="vorbisenc_static - Win32 Release" %1 nmake /nologo /F .\vorbisfile_dynamic.mak CFG="vorbisfile_dynamic - Win32 Debug" %1 nmake /nologo /F .\vorbisfile_dynamic.mak CFG="vorbisfile_dynamic - Win32 Release" %1 nmake /nologo /F .\vorbisfile_static.mak CFG="vorbisfile_static - Win32 Debug" %1 nmake /nologo /F .\vorbisfile_static.mak CFG="vorbisfile_static - Win32 Release" %1 cd "..\..\win32sdk" goto done :noogg echo ***** Need module OGG -- not present goto done :novorbis echo ***** Need module VORBIS -- not present goto done :notset echo ***** Error: must set SRCROOT goto done :done