@REM
@title M13
@call "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
@set PROGNAME=M13
@set PROGPART=COPYNEW
@if not exist Release mkdir Release
@echo ______________________________
@echo Assembling...
@echo ______________________________
ml /c /Fl /Fo"Release\%PROGNAME%_%PROGPART%.obj" /W3 /Zi %PROGNAME%_%PROGPART%.ASM
@if errorlevel 1 goto MLReportError
@echo ______________________________
@echo Compiling C++ source...
@echo ______________________________
cl.exe /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MT /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /c /Wp64 /Zi /TP .\M13_main.cpp .\M13_NEWARRAY.cpp
@if errorlevel 1 goto VCReportError
@echo ______________________________
@echo Linking...
@echo ______________________________
link /OUT:"C:\CIS77\Labs\M13\Release\M13.exe" /INCREMENTAL:NO /MANIFEST:NO /DEBUG /PDB:"c:\cis77\labs\m13\release\M13.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /MACHINE:X86 ".\release\%PROGNAME%_%PROGPART%.obj" ".\release\M13_main.obj" ".\release\M13_NEWARRAY.obj"
@if errorlevel 1 goto LINKReportError
@echo ______________________________
@echo Everything is OK
@echo ______________________________
@goto happy
:LINKReportError
@echo ______________________________
@echo *** Link failed
@echo ______________________________
@goto happy
:VCReportError
@echo ______________________________
@echo *** C++ compiler failed
@echo ______________________________
@goto happy
:MLReportError
@echo ______________________________
@echo *** MASM failed
@echo ______________________________
:happy
@pause
@REM