@echo off

REM This is a part of the Microsoft Foundation Classes C++ library.
REM Copyright (C) 1994-1996 WATCOM International Corporation
REM All rights reserved.
REM
REM This source code is only intended as a supplement to the
REM Microsoft Foundation Classes Reference and Microsoft
REM documentation provided with the library.

echo.
echo Microsoft Foundation Classes -- Sample Applications (batch build)
echo.
echo This batch file will build most of the Windows/MFC sample
echo applications.  Use of the batch file will save time and
echo disk space if you are interested in seeing all of the
echo working samples as you learn the Microsoft Foundation Classes.
echo.
echo.

set __DEBUG=debug#1
if "%1"=="DEBUG" goto doit
if "%1"=="debug" goto doit

set __DEBUG=debug#0

if "%1"=="RETAIL" goto doit
if "%1"=="retail" goto doit

if "%1"=="CLEAN" goto doit_clean
if "%1"=="clean" goto doit_clean

echo Please specify DEBUG or RETAIL or CLEAN on the command line.
echo.
echo     DEBUG will build executables with symbolic information,
echo         diagnostics, and no optimizations (large and slow).
echo     RETAIL will build ship quality executables that
echo         are fully optimized (small and fast).
echo     CLEAN will remove all compiler generated files (object
echo         files, executables, etc.)  Use this to switch between
echo         DEBUG and RETAIL.
echo.

goto end

:doit
shift

echo.
echo NOTE: Since this builds all the sample programs it could
echo take a little while.  Type Ctrl-C now if you wish
echo to build them later.  You can stop the build at
echo any time by typing Ctrl-C (several times) and
echo answer 'Y' to terminate.
echo.
pause

:doit_clean

@echo on

cd AUTOCLIK\STEP1
wmake.exe /h %__DEBUG% %1
cd ..\STEP2
wmake.exe /h %__DEBUG% %1
cd ..\STEP3
wmake.exe /h %__DEBUG% %1
cd ..\..\CALCDRIV
wmake.exe /h %__DEBUG% %1
cd ..\CATALOG
wmake.exe /h %__DEBUG% %1
cd ..\CHATTER
wmake.exe /h %__DEBUG% %1
cd ..\CHATSRVR
wmake.exe /h %__DEBUG% %1
cd ..\CHKBOOK
wmake.exe /h %__DEBUG% %1
cd ..\CONTAIN\STEP1
wmake.exe /h %__DEBUG% %1
cd ..\STEP2
wmake.exe /h %__DEBUG% %1
cd ..\..\CTRLBARS
wmake.exe /h %__DEBUG% %1
cd ..\CTRLTEST
wmake.exe /h %__DEBUG% %1
cd ..\DIBLOOK
wmake.exe /h %__DEBUG% %1
rem Must be built debug.
cd ..\DLLHUSK
wmake.exe /h debug#1 %1
rem Must be built debug.
cd ..\DLLTRACE
wmake.exe /h debug#1 %1
cd ..\DRAWCLI
wmake.exe /h %__DEBUG% %1
cd ..\DYNABIND
wmake.exe /h %__DEBUG% %1
cd ..\ENROLL\STEP1
wmake.exe /h %__DEBUG% %1
cd ..\STEP2
wmake.exe /h %__DEBUG% %1
cd ..\STEP3
wmake.exe /h %__DEBUG% %1
cd ..\STEP4
wmake.exe /h %__DEBUG% %1
cd ..\..\HELLO
wmake.exe /h %__DEBUG% %1
cd ..\HELLOAPP
wmake.exe /h %__DEBUG% %1
cd ..\HIERSVR
wmake.exe /h %__DEBUG% %1
cd ..\INPROC
wmake.exe /h %__DEBUG% %1
cd ..\IPDRIVE
wmake.exe /h %__DEBUG% %1
cd ..\MAKEHM
wmake.exe /h %__DEBUG% %1
cd ..\MDI
wmake.exe /h %__DEBUG% %1
cd ..\MULTIPAD
wmake.exe /h %__DEBUG% %1
cd ..\OCLIENT
wmake.exe /h %__DEBUG% %1
cd ..\PROPDLG
wmake.exe /h %__DEBUG% %1
cd ..\SCRIBBLE\STEP0
wmake.exe /h %__DEBUG% %1
cd ..\STEP1
wmake.exe /h %__DEBUG% %1
cd ..\STEP2
wmake.exe /h %__DEBUG% %1
cd ..\STEP3
wmake.exe /h %__DEBUG% %1
cd ..\STEP4
wmake.exe /h %__DEBUG% %1
cd ..\STEP5
wmake.exe /h %__DEBUG% %1
cd ..\STEP6
wmake.exe /h %__DEBUG% %1
cd ..\STEP7
wmake.exe /h %__DEBUG% %1
cd ..\..\SPEAKN
wmake.exe /h %__DEBUG% %1
cd ..\SUPERPAD
wmake.exe /h %__DEBUG% %1
cd ..\TEMPLDEF
wmake.exe /h %__DEBUG% %1
cd ..\TRACER
wmake.exe /h %__DEBUG% %1
cd ..\TRACKER
wmake.exe /h %__DEBUG% %1
cd ..\VIEWEX
wmake.exe /h %__DEBUG% %1

@echo off

cd ..

:end
set __DEBUG=
@echo on
