home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem Compile a C++ source file with the Microsoft 32-bit C/C++ compiler
- rem %1 Name of .CPP file, without an extension
- rem %2-%9 Any additional compiler switches
- rem Set INCLUDE variable as appropriate for your installation
-
- if x%1==x goto usage
- set saveinc=%include%
- set include=c:\mstools\h;c:\mstools\mfc\include;c:\phar386\include
- cl386 /c /Di386=1 /DWIN32 /D_NTWIN %2 %3 %4 %5 %6 %7 %8 %9 %1.cpp
- set include=%saveinc%
- set saveinc=
- goto exit
- :usage
- echo Usage: mscpp sourcefile [switches]
- :exit
-