home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / DMAKE37S.ZIP / DMAKE / MAKE.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-05-06  |  5.0 KB  |  156 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.  
  23. rem label the possible DOS variations for dmake here.
  24. :error
  25. echo MSDOS:  You must specify 'make target' where target is one of:
  26. echo -------------
  27. echo    tcc       - Turbo C 2.0 compile.
  28. echo    tccswp    - Turbo C 2.0 compile of swapping dmake.
  29. echo    bcc       - Borland C++ 2.0 compile.
  30. echo    bccswp    - Borland C++ 2.0 compile of swapping dmake.
  31. echo    msc40     - Microsoft C 4.0 compile.
  32. echo    msc50     - Microsoft C 5.0 compile.
  33. echo    msc51     - Microsoft C 5.1 compile.
  34. echo    msc60     - Microsoft C 6.0 compile.
  35. echo    msc40swp  - Microsoft C 4.0, MASM 5.1 compile of swapping dmake.
  36. echo    msc50swp  - Microsoft C 5.0, MASM 5.1 compile of swapping dmake.
  37. echo    msc51swp  - Microsoft C 5.1, MASM 5.1 compile of swapping dmake.
  38. echo    msc60swp  - Microsoft C 6.0, MASM 5.1 compile of swapping dmake.
  39. goto end
  40.  
  41. rem This is the script that makes dmake using Microsoft C 4.0
  42. :mkmsc40
  43. msdos\mscdos\mk40.bat
  44. goto end
  45.  
  46. :mkmsc40swp
  47. msdos\mscdos\mk40swp.bat
  48. goto end
  49.  
  50. rem This is the script that makes dmake using Microsoft C 5.0
  51. :mkmsc50
  52. msdos\mscdos\mk50.bat
  53. goto end
  54.  
  55. :mkmsc50swp
  56. msdos\mscdos\mk50swp.bat
  57. goto end
  58.  
  59. rem This is the script that makes dmake using Microsoft C 5.1
  60. :mkmsc51
  61. msdos\mscdos\mk51.bat
  62. goto end
  63.  
  64. :mkmsc51swp
  65. msdos\mscdos\mk51swp.bat
  66. goto end
  67.  
  68. rem This is the script that makes dmake using Microsoft C 6.0
  69. :mkmsc60
  70. msdos\mscdos\mk60.bat
  71. goto end
  72.  
  73. :mkmsc60swp
  74. msdos\mscdos\mk60swp.bat
  75. goto end
  76.  
  77. rem This is the script that makes dmake using Turbo C 2.0 or higher.
  78. :mktcc
  79. cls
  80. echo WARNING:
  81. echo    The default response files:
  82. echo        msdos\tccdos\obj.rsp
  83. echo        msdos\tccdos\lib.rsp
  84. echo    contain absolute paths to TURBO-C runtime startup objects, and to
  85. echo    the standard libraries.  You should check that these files contain
  86. echo    the correct path names for your installation of Turbo-C before
  87. echo    proceeding further.  Also check that the mkdir command at the start
  88. echo    of the response file and the copy command at the end of the response
  89. echo    file will work on your system.
  90. echo --
  91. echo Continue if ok, or abort and edit the response files.
  92. pause
  93. msdos\tccdos\mk.bat
  94. goto end
  95.  
  96. :mktccswp
  97. cls
  98. echo WARNING:
  99. echo    The default response files:
  100. echo        msdos\tccdos\objswp.rsp
  101. echo        msdos\tccdos\libswp.rsp
  102. echo    contain absolute paths to TURBO-C runtime startup objects, and to
  103. echo    the standard libraries.  You should check that these files contain
  104. echo    the correct path names for your installation of Turbo-C before
  105. echo    proceeding further.  Also check that the mkdir command at the start
  106. echo    of the response file and the copy command at the end of the response
  107. echo    file will work on your system.
  108. echo --
  109. echo Continue if ok, or abort and edit the response files.
  110. pause
  111. msdos\tccdos\mkswp.bat
  112. goto end
  113.  
  114. rem This is the script that makes dmake using Turbo C++ 2.0.
  115. :mkbcc
  116. cls
  117. echo WARNING:
  118. echo    The default response files:
  119. echo        msdos\bccdos\obj.rsp
  120. echo        msdos\bccdos\lib.rsp
  121. echo    contain absolute paths to Borland C++ runtime startup objects, and to
  122. echo    the standard libraries.  You should check that these files contain
  123. echo    the correct path names for your installation of Borland C++ before
  124. echo    proceeding further.  Also check that the mkdir command at the start
  125. echo    of the response file and the copy command at the end of the response
  126. echo    file will work on your system.
  127. echo --
  128. echo Continue if ok, or abort and edit the response files.
  129. pause
  130. msdos\bccdos\mk.bat
  131. goto end
  132.  
  133. :mkbccswp
  134. cls
  135. echo WARNING:
  136. echo    proceeding further.  Also check that the mkdir command at the start
  137. echo    of the response file and the copy command at the end of the response
  138. echo    file will work on your system.
  139. echo    The default response files:
  140. echo        msdos\bccdos\objswp.rsp
  141. echo        msdos\bccdos\libswp.rsp
  142. echo    contain absolute paths to Borland C++ runtime startup objects, and to
  143. echo    the standard libraries.  You should check that these files contain
  144. echo    the correct path names for your installation of Borland C++ before
  145. echo    proceeding further.  Also check that the mkdir command at the start
  146. echo    of the response file and the copy command at the end of the response
  147. echo    file will work on your system.
  148. echo --
  149. echo Continue if ok, or abort and edit the response files.
  150. pause
  151. msdos\bccdos\mkswp.bat
  152. goto end
  153.  
  154. rem All done!
  155. :end
  156.