home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / DMAKE38A.ZIP / MAKE.BAT < prev    next >
DOS Batch File  |  1991-06-24  |  5KB  |  166 lines

  1. echo off
  2. cls
  3. rem  *** This is the make batchfile that is used under MSDOS to make the
  4. rem  *** first version of dmake.  It isn't pretty but it does work, assuming
  5. rem  *** the compilers have been correctly setup.  See the warning below
  6. rem  *** concerning tlink, if you are making the Turbo C version.
  7. rem
  8.  
  9. if %0%1 == %0 goto error
  10. if %1 == tcc goto mktcc
  11. if %1 == tccswp goto mktccswp
  12. if %1 == bcc goto mkbcc
  13. if %1 == bccswp goto mkbccswp
  14. if %1 == msc40 goto mkmsc40
  15. if %1 == msc40swp goto mkmsc40swp
  16. if %1 == msc50 goto mkmsc50
  17. if %1 == msc50swp goto mkmsc50swp
  18. if %1 == msc51 goto mkmsc51
  19. if %1 == msc51swp goto mkmsc51swp
  20. if %1 == msc60 goto mkmsc60
  21. if %1 == msc60swp goto mkmsc60swp
  22. if %1 == ztc goto mkztc
  23. if %1 == ztcswp goto mkztcswp
  24.  
  25. rem label the possible DOS variations for dmake here.
  26. :error
  27. echo MSDOS:  You must specify 'make target' where target is one of:
  28. echo -------------
  29. echo    tcc       - Turbo C 2.0 compile.
  30. echo    tccswp    - Turbo C 2.0 compile of swapping dmake.
  31. echo    bcc       - Borland C++ 2.0 compile.
  32. echo    bccswp    - Borland C++ 2.0 compile of swapping dmake.
  33. echo    msc40     - Microsoft C 4.0 compile.
  34. echo    msc50     - Microsoft C 5.0 compile.
  35. echo    msc51     - Microsoft C 5.1 compile.
  36. echo    msc60     - Microsoft C 6.0 compile.
  37. echo    msc40swp  - Microsoft C 4.0, MASM 5.1 compile of swapping dmake.
  38. echo    msc50swp  - Microsoft C 5.0, MASM 5.1 compile of swapping dmake.
  39. echo    msc51swp  - Microsoft C 5.1, MASM 5.1 compile of swapping dmake.
  40. echo    msc60swp  - Microsoft C 6.0, MASM 5.1 compile of swapping dmake.
  41. echo    ztc       - Zortech C++ 2.1 compile.
  42. echo    ztcswp    - Zortech C++ 2.1 compile of swapping dmake.
  43. goto end
  44.  
  45. rem This is the script that makes dmake using Microsoft C 4.0
  46. :mkmsc40
  47. msdos\mscdos\mk40.bat
  48. goto end
  49.  
  50. :mkmsc40swp
  51. msdos\mscdos\mk40swp.bat
  52. goto end
  53.  
  54. rem This is the script that makes dmake using Microsoft C 5.0
  55. :mkmsc50
  56. msdos\mscdos\mk50.bat
  57. goto end
  58.  
  59. :mkmsc50swp
  60. msdos\mscdos\mk50swp.bat
  61. goto end
  62.  
  63. rem This is the script that makes dmake using Microsoft C 5.1
  64. :mkmsc51
  65. msdos\mscdos\mk51.bat
  66. goto end
  67.  
  68. :mkmsc51swp
  69. msdos\mscdos\mk51swp.bat
  70. goto end
  71.  
  72. rem This is the script that makes dmake using Microsoft C 6.0
  73. :mkmsc60
  74. msdos\mscdos\mk60.bat
  75. goto end
  76.  
  77. :mkmsc60swp
  78. msdos\mscdos\mk60swp.bat
  79. goto end
  80.  
  81. rem This is the script that makes dmake using Zortech C++ 2.1
  82. :mkztc
  83. msdos\ztcdos\mk.bat
  84. goto end
  85.  
  86. :mkztcswp
  87. msdos\ztcdos\mkswp.bat
  88. goto end
  89.  
  90. rem This is the script that makes dmake using Turbo C 2.0 or higher.
  91. :mktcc
  92. cls
  93. echo WARNING:
  94. echo    The default response files:
  95. echo        msdos\tccdos\obj.rsp
  96. echo        msdos\tccdos\lib.rsp
  97. echo    contain absolute paths to TURBO-C runtime startup objects, and to
  98. echo    the standard libraries.  You should check that these files contain
  99. echo    the correct path names for your installation of Turbo-C before
  100. echo    proceeding further.  Also check that the mkdir command at the start
  101. echo    of the response file and the copy command at the end of the response
  102. echo    file will work on your system.
  103. echo --
  104. echo Continue if ok, or abort and edit the response files.
  105. pause
  106. msdos\tccdos\mk.bat
  107. goto end
  108.  
  109. :mktccswp
  110. cls
  111. echo WARNING:
  112. echo    The default response files:
  113. echo        msdos\tccdos\objswp.rsp
  114. echo        msdos\tccdos\libswp.rsp
  115. echo    contain absolute paths to TURBO-C runtime startup objects, and to
  116. echo    the standard libraries.  You should check that these files contain
  117. echo    the correct path names for your installation of Turbo-C before
  118. echo    proceeding further.  Also check that the mkdir command at the start
  119. echo    of the response file and the copy command at the end of the response
  120. echo    file will work on your system.
  121. echo --
  122. echo Continue if ok, or abort and edit the response files.
  123. pause
  124. msdos\tccdos\mkswp.bat
  125. goto end
  126.  
  127. rem This is the script that makes dmake using Turbo C++ 2.0.
  128. :mkbcc
  129. cls
  130. echo WARNING:
  131. echo    The default response files:
  132. echo        msdos\bccdos\obj.rsp
  133. echo        msdos\bccdos\lib.rsp
  134. echo    contain absolute paths to Borland C++ runtime startup objects, and to
  135. echo    the standard libraries.  You should check that these files contain
  136. echo    the correct path names for your installation of Borland C++ before
  137. echo    proceeding further.  Also check that the mkdir command at the start
  138. echo    of the response file and the copy command at the end of the response
  139. echo    file will work on your system.
  140. echo --
  141. echo Continue if ok, or abort and edit the response files.
  142. pause
  143. msdos\bccdos\mk.bat
  144. goto end
  145.  
  146. :mkbccswp
  147. cls
  148. echo WARNING:
  149. echo    The default response files:
  150. echo        msdos\bccdos\objswp.rsp
  151. echo        msdos\bccdos\libswp.rsp
  152. echo    contain absolute paths to Borland C++ runtime startup objects, and to
  153. echo    the standard libraries.  You should check that these files contain
  154. echo    the correct path names for your installation of Borland C++ before
  155. echo    proceeding further.  Also check that the mkdir command at the start
  156. echo    of the response file and the copy command at the end of the response
  157. echo    file will work on your system.
  158. echo --
  159. echo Continue if ok, or abort and edit the response files.
  160. pause
  161. msdos\bccdos\mkswp.bat
  162. goto end
  163.  
  164. rem All done!
  165. :end
  166.