home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / make.bat < prev    next >
DOS Batch File  |  1994-10-23  |  5KB  |  167 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 ** Seem to be broken for dmake release 4.0 (not sure why) use Borland C++
  32. echo    bcc       - Borland C++ 2.0,3.0,4.0 compile.
  33. echo    bccswp    - Borland C++ 2.0,3.0,4.0 compile of swapping dmake.
  34. echo    msc40     - Microsoft C 4.0 compile.
  35. echo    msc50     - Microsoft C 5.0 compile.
  36. echo    msc51     - Microsoft C 5.1 compile.
  37. echo    msc60     - Microsoft C 6.0 compile.
  38. echo    msc40swp  - Microsoft C 4.0, MASM 5.1 compile of swapping dmake.
  39. echo    msc50swp  - Microsoft C 5.0, MASM 5.1 compile of swapping dmake.
  40. echo    msc51swp  - Microsoft C 5.1, MASM 5.1 compile of swapping dmake.
  41. echo    msc60swp  - Microsoft C 6.0, MASM 5.1 compile of swapping dmake.
  42. echo    ztc       - Zortech C++ 2.1 compile.
  43. echo    ztcswp    - Zortech C++ 2.1 compile of swapping dmake.
  44. goto end
  45.  
  46. rem This is the script that makes dmake using Microsoft C 4.0
  47. :mkmsc40
  48. msdos\mscdos\mk40.bat
  49. goto end
  50.  
  51. :mkmsc40swp
  52. msdos\mscdos\mk40swp.bat
  53. goto end
  54.  
  55. rem This is the script that makes dmake using Microsoft C 5.0
  56. :mkmsc50
  57. msdos\mscdos\mk50.bat
  58. goto end
  59.  
  60. :mkmsc50swp
  61. msdos\mscdos\mk50swp.bat
  62. goto end
  63.  
  64. rem This is the script that makes dmake using Microsoft C 5.1
  65. :mkmsc51
  66. msdos\mscdos\mk51.bat
  67. goto end
  68.  
  69. :mkmsc51swp
  70. msdos\mscdos\mk51swp.bat
  71. goto end
  72.  
  73. rem This is the script that makes dmake using Microsoft C 6.0
  74. :mkmsc60
  75. msdos\mscdos\mk60.bat
  76. goto end
  77.  
  78. :mkmsc60swp
  79. msdos\mscdos\mk60swp.bat
  80. goto end
  81.  
  82. rem This is the script that makes dmake using Zortech C++ 2.1
  83. :mkztc
  84. msdos\ztcdos\mk.bat
  85. goto end
  86.  
  87. :mkztcswp
  88. msdos\ztcdos\mkswp.bat
  89. goto end
  90.  
  91. rem This is the script that makes dmake using Turbo C 2.0 or higher.
  92. :mktcc
  93. cls
  94. echo WARNING:
  95. echo    The default response files:
  96. echo        msdos\tccdos\obj.rsp
  97. echo        msdos\tccdos\lib.rsp
  98. echo    contain absolute paths to TURBO-C runtime startup objects, and to
  99. echo    the standard libraries.  You should check that these files contain
  100. echo    the correct path names for your installation of Turbo-C before
  101. echo    proceeding further.  Also check that the mkdir command at the start
  102. echo    of the response file and the copy command at the end of the response
  103. echo    file will work on your system.
  104. echo --
  105. echo Continue if ok, or abort and edit the response files.
  106. pause
  107. msdos\tccdos\mk.bat
  108. goto end
  109.  
  110. :mktccswp
  111. cls
  112. echo WARNING:
  113. echo    The default response files:
  114. echo        msdos\tccdos\objswp.rsp
  115. echo        msdos\tccdos\libswp.rsp
  116. echo    contain absolute paths to TURBO-C runtime startup objects, and to
  117. echo    the standard libraries.  You should check that these files contain
  118. echo    the correct path names for your installation of Turbo-C before
  119. echo    proceeding further.  Also check that the mkdir command at the start
  120. echo    of the response file and the copy command at the end of the response
  121. echo    file will work on your system.
  122. echo --
  123. echo Continue if ok, or abort and edit the response files.
  124. pause
  125. msdos\tccdos\mkswp.bat
  126. goto end
  127.  
  128. rem This is the script that makes dmake using Turbo C++ 2.0.
  129. :mkbcc
  130. cls
  131. echo WARNING:
  132. echo    The default response files:
  133. echo        msdos\bccdos\obj.rsp
  134. echo        msdos\bccdos\lib.rsp
  135. echo    contain absolute paths to Borland C++ runtime startup objects, and to
  136. echo    the standard libraries.  You should check that these files contain
  137. echo    the correct path names for your installation of Borland C++ before
  138. echo    proceeding further.  Also check that the mkdir command at the start
  139. echo    of the response file and the copy command at the end of the response
  140. echo    file will work on your system.
  141. echo --
  142. echo Continue if ok, or abort and edit the response files.
  143. pause
  144. msdos\bccdos\mk.bat
  145. goto end
  146.  
  147. :mkbccswp
  148. cls
  149. echo WARNING:
  150. echo    The default response files:
  151. echo        msdos\bccdos\objswp.rsp
  152. echo        msdos\bccdos\libswp.rsp
  153. echo    contain absolute paths to Borland C++ runtime startup objects, and to
  154. echo    the standard libraries.  You should check that these files contain
  155. echo    the correct path names for your installation of Borland C++ before
  156. echo    proceeding further.  Also check that the mkdir command at the start
  157. echo    of the response file and the copy command at the end of the response
  158. echo    file will work on your system.
  159. echo --
  160. echo Continue if ok, or abort and edit the response files.
  161. pause
  162. msdos\bccdos\mkswp.bat
  163. goto end
  164.  
  165. rem All done!
  166. :end
  167.