2 rem $Id: build_all.bat,v 1.8 2001/10/20 21:12:34 cwolf Exp $
4 rem Use NMAKE to build/clean
6 rem Invoke as "build_all.bat CLEAN" to clean all targets
8 if ."%SRCROOT%"==."" goto notset
10 if not exist %SRCROOT%\ogg\include\ogg\ogg.h goto noogg
11 if not exist %SRCROOT%\vorbis\include\vorbis\codec.h goto novorbis
13 rem compile execwait utility
14 if not exist execwait.exe (
18 if ."%USENMAKE%"==."" (
19 msdev all.dsw /make "all - ALL"
23 rem If one of the makefiles doesn't exist,
24 rem assume they all need to be generated
26 if not exist %SRCROOT%\vorbis\win32\vorbis_dynamic.mak (
31 nmake /nologo /F .\ogg_dynamic.mak CFG="ogg_dynamic - Win32 Debug" %1
32 nmake /nologo /F .\ogg_dynamic.mak CFG="ogg_dynamic - Win32 Release" %1
33 nmake /nologo /F .\ogg_static.mak CFG="ogg_static - Win32 Debug" %1
34 nmake /nologo /F .\ogg_static.mak CFG="ogg_static - Win32 Release" %1
38 nmake /nologo /F .\vorbis_dynamic.mak CFG="vorbis_dynamic - Win32 Debug" %1
39 nmake /nologo /F .\vorbis_dynamic.mak CFG="vorbis_dynamic - Win32 Release" %1
40 nmake /nologo /F .\vorbis_static.mak CFG="vorbis_static - Win32 Debug" %1
41 nmake /nologo /F .\vorbis_static.mak CFG="vorbis_static - Win32 Release" %1
42 nmake /nologo /F .\vorbisenc_dynamic.mak CFG="vorbisenc_dynamic - Win32 Debug" %1
43 nmake /nologo /F .\vorbisenc_dynamic.mak CFG="vorbisenc_dynamic - Win32 Release" %1
44 nmake /nologo /F .\vorbisenc_static.mak CFG="vorbisenc_static - Win32 Debug" %1
45 nmake /nologo /F .\vorbisenc_static.mak CFG="vorbisenc_static - Win32 Release" %1
46 nmake /nologo /F .\vorbisfile_dynamic.mak CFG="vorbisfile_dynamic - Win32 Debug" %1
47 nmake /nologo /F .\vorbisfile_dynamic.mak CFG="vorbisfile_dynamic - Win32 Release" %1
48 nmake /nologo /F .\vorbisfile_static.mak CFG="vorbisfile_static - Win32 Debug" %1
49 nmake /nologo /F .\vorbisfile_static.mak CFG="vorbisfile_static - Win32 Release" %1
54 echo ***** Need module OGG -- not present
58 echo ***** Need module VORBIS -- not present
62 echo ***** Error: must set SRCROOT