home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / MFC / SAMPLES / MKSAMPLE.BA_ / MKSAMPLE.BA
Encoding:
Text File  |  1993-02-08  |  3.1 KB  |  117 lines

  1. @echo off
  2.  
  3. REM This is a part of the Microsoft Foundation Classes C++ library.
  4. REM Copyright (C) 1992 Microsoft Corporation
  5. REM All rights reserved.
  6. REM
  7. REM This source code is only intended as a supplement to the
  8. REM Microsoft Foundation Classes Reference and Microsoft
  9. REM QuickHelp documentation provided with the library.
  10. REM See these sources for detailed information regarding the
  11. REM
  12.  
  13. echo.
  14. echo Microsoft Foundation Classes -- Sample Applications (batch build)
  15. echo.
  16. echo This MS-DOS Batch file will build most of the Windows/MFC sample
  17. echo applications.  Use of the batch file will save time and
  18. echo disk space if you are interested in seeing all of the 
  19. echo working samples as you learn the Microsoft Foundation Classes.
  20. echo If you are modifying a sample or using it as a basis for
  21. echo your own application, then the use of the Visual Workbench
  22. echo is recommended.
  23. echo.
  24. echo.
  25.  
  26. set __DEBUG=1
  27. if "%1"=="DEBUG" goto doit
  28. if "%1"=="debug" goto doit
  29.  
  30. set __DEBUG=0
  31.  
  32. if "%1"=="RETAIL" goto doit
  33. if "%1"=="retail" goto doit
  34.  
  35. if "%1"=="CLEAN" goto doit_clean
  36. if "%1"=="clean" goto doit_clean
  37.  
  38. echo Please specify DEBUG or RETAIL or CLEAN on the command line.
  39. echo.
  40. echo     DEBUG will build executables with symbolic information,
  41. echo         diagnostics, and no optimizations (large and slow).
  42. echo     RETAIL will build ship quality executables that
  43. echo         are fully optimized (small and fast).
  44. echo     CLEAN will remove all compiler generated files (object
  45. echo         files, executables, etc.)  Use this to switch between
  46. echo         DEBUG and RETAIL.
  47. echo.
  48.  
  49. goto end
  50.  
  51. :doit
  52. shift
  53.  
  54. echo.
  55. echo NOTE: Since this builds all the sample programs it could 
  56. echo take a little while.  Type Ctrl-C now if you wish
  57. echo to build them later.  You can stop the build at
  58. echo any time by typing Ctrl-C (several times) and 
  59. echo answer 'Y' to terminate.
  60. echo.
  61. pause
  62.  
  63. :doit_clean
  64.  
  65. if "%1"=="CLEAN" erase STDAFX??.PCH
  66. if "%1"=="CLEAN" erase STDAFX??.OBJ
  67.  
  68. @echo on
  69.  
  70. cd CHKBOOK
  71. nmake /nologo "DEBUG=%__DEBUG%" %1
  72. cd ..\CTRLBARS
  73. nmake /nologo "DEBUG=%__DEBUG%" %1
  74. cd ..\CTRLTEST
  75. nmake /nologo "DEBUG=%__DEBUG%" %1
  76. cd ..\DIBLOOK
  77. nmake /nologo "DEBUG=%__DEBUG%" %1
  78. cd ..\DLLHUSK
  79. nmake /nologo "DEBUG=%__DEBUG%" %1
  80. cd ..\HELLO
  81. nmake /nologo "DEBUG=%__DEBUG%" %1
  82. cd ..\HELLOAPP
  83. nmake /nologo "DEBUG=%__DEBUG%" %1
  84. cd ..\HIERSVR
  85. nmake /nologo "DEBUG=%__DEBUG%" %1
  86. cd ..\MDI
  87. nmake /nologo "DEBUG=%__DEBUG%" %1
  88. cd ..\MINSVR
  89. nmake /nologo "DEBUG=%__DEBUG%" %1
  90. cd ..\MULTIPAD
  91. nmake /nologo "DEBUG=%__DEBUG%" %1
  92. cd ..\OCLIENT
  93. nmake /nologo "DEBUG=%__DEBUG%" %1
  94. cd ..\SPEAKN
  95. nmake /nologo "DEBUG=%__DEBUG%" %1
  96. cd ..\SUPERPAD
  97. nmake /nologo "DEBUG=%__DEBUG%" %1
  98. cd ..\TRACER
  99. nmake /nologo "DEBUG=%__DEBUG%" %1
  100. cd ..\VBCHART
  101. nmake /nologo "DEBUG=%__DEBUG%" %1
  102. cd ..\VBCIRCLE
  103. nmake /nologo "DEBUG=%__DEBUG%" %1
  104. cd ..\VIEWEX
  105. nmake /nologo "DEBUG=%__DEBUG%" %1
  106.  
  107. @echo off
  108. echo Note: You must manually build the DLLTRACE sample
  109. echo Note: You must manually build the MAKEHM tool
  110. echo Note: You must manually build the TEMPLDEF tool
  111.  
  112. cd ..
  113.  
  114. :end
  115. set __DEBUG=
  116. @echo on
  117.