home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c011 / 1.ddi / MISC / FXMAKE.BAT < prev   
Encoding:
DOS Batch File  |  1989-06-01  |  4.2 KB  |  142 lines

  1. echo off
  2. rem  **********
  3. rem  Display Header
  4. echo ·  
  5. echo · fxMake.BAT                                 
  6. echo · Copyright (c) Genus Microprogramming, Inc. 1988-89  All Rights Reserved.
  7. echo · 
  8. goto OPTIONS
  9. rem  **********
  10. rem  Instructions
  11. rem
  12. rem  This batch file sets the correct parameters for the F/X library make file.
  13. rem  It assumes the following directory structure (cdir = current directory):
  14. rem
  15. rem                cdir\CS               (for MS,Turbo C small  model S)
  16. rem                cdir\CM               (for MS,Turbo C medium model M)
  17. rem                                      (and QuickC                   )
  18. rem                cdir\CL               (for MS,Turbo C large  model L)
  19. rem                cdir\LCS              (for Lattice  C small  model S)
  20. rem                cdir\LCM              (for Lattice  C medium model P)
  21. rem                cdir\LCL              (for Lattice  C large  model L)
  22. rem                cdir\TP               (for Turbo Pascal      unit   )
  23. rem                cdir\QB               (for QuickBasic               )
  24. rem
  25. rem
  26. rem  NOTE: Paths to the 'make' and 'link' programs need to be in the DOS path
  27. rem        for your particular system.
  28. rem
  29. rem
  30. rem                                       Programmer: Chris Howard  3/15/89
  31. rem
  32. rem  **********
  33. :OPTIONS
  34. rem  Determine assembly options
  35. if '%1'=='s'  goto SMALL
  36. if '%1'=='S'  goto SMALL
  37. if '%1'=='m'  goto MEDIUM
  38. if '%1'=='M'  goto MEDIUM
  39. if '%1'=='l'  goto LARGE
  40. if '%1'=='L'  goto LARGE
  41. if '%1'=='ls' goto LSMALL
  42. if '%1'=='LS' goto LSMALL
  43. if '%1'=='lm' goto LMEDIUM
  44. if '%1'=='LM' goto LMEDIUM
  45. if '%1'=='ll' goto LLARGE
  46. if '%1'=='LL' goto LLARGE
  47. if '%1'=='p'  goto PASCAL
  48. if '%1'=='P'  goto PASCAL
  49. if '%1'=='b'  goto BASIC
  50. if '%1'=='B'  goto BASIC
  51. rem  **********
  52. :USAGE
  53. rem  Invalid option, so display message
  54. echo · 
  55. echo · Usage:  fxMake x y
  56. echo ·
  57. echo ·          where x = S      (for SMALL  MS/Turbo C model S)
  58. echo ·                    M      (for MEDIUM MS/Turbo C model M)
  59. echo ·                    L      (for LARGE  MS/Turbo C model L)
  60. echo ·                    LS     (for SMALL  Lattice  C model S)
  61. echo ·                    LM     (for MEDIUM Lattice  C model P)
  62. echo ·                    LL     (for LARGE  Lattice  C model L)
  63. echo ·                    P      (for PASCAL Turbo      model  )
  64. echo ·                    B      (for BASIC  MS Quick   model  )
  65. echo ·
  66. echo ·                y = ?      (any make options: /D /I /N /S)
  67. echo ·
  68. goto DONE
  69. rem  **********
  70. :SMALL
  71. rem  Make the Microsoft/Turbo C small model
  72. echo · 
  73. echo · Making the Microsoft/Turbo C SMALL model S . . . 
  74. echo · 
  75. make %2 %3 model=SMODEL libdir=CS fxLIB > fxMake.MSG
  76. goto END
  77. rem  **********
  78. :MEDIUM
  79. rem  Make the Microsoft/Turbo C medium model
  80. echo · 
  81. echo · Making the Microsoft/Turbo C MEDIUM model M . . .
  82. echo · 
  83. make %2 %3 model=MMODEL libdir=CM fxLIB > fxMake.MSG
  84. goto END
  85. rem  **********
  86. :LARGE
  87. rem  Make the Microsoft/Turbo C large model
  88. echo · 
  89. echo · Making the Microsoft/Turbo C LARGE model L . . .
  90. echo · 
  91. make %2 %3 model=LMODEL libdir=CL fxLIB > fxMake.MSG
  92. goto END
  93. rem  **********
  94. :LSMALL
  95. rem  Make the Lattice C small model
  96. echo · 
  97. echo · Making the Lattice C SMALL model S . . . 
  98. echo · 
  99. make %2 %3 model=SMODEL libdir=LCS compiler=LC fxLIB > fxMake.MSG
  100. goto END
  101. rem  **********
  102. :LMEDIUM
  103. rem  Make the Lattice C medium model
  104. echo · 
  105. echo · Making the Lattice C MEDIUM model P . . .
  106. echo · 
  107. make %2 %3 model=MMODEL libdir=LCP compiler=LC fxLIB > fxMake.MSG
  108. goto END
  109. rem  **********
  110. :LLARGE
  111. rem  Make the Lattice C large model
  112. echo · 
  113. echo · Making the Lattice C LARGE model L . . .
  114. echo · 
  115. make %2 %3 model=LMODEL libdir=LCL compiler=LC fxLIB > fxMake.MSG
  116. goto END
  117. rem  **********
  118. :PASCAL
  119. rem  Make the Turbo pascal model
  120. echo · 
  121. echo · Making the Turbo PASCAL model . . .
  122. echo · 
  123. make %2 %3 model=MMODEL libdir=TP compiler=TURBOP fxLIB > fxMake.MSG
  124. goto END
  125. rem  **********
  126. :BASIC
  127. rem  Make the QuickBasic model
  128. echo · 
  129. echo · Making the QuickBASIC model . . .
  130. echo · 
  131. make %2 %3 model=MMODEL libdir=QB compiler=BASIC fxLIB > fxMake.MSG
  132. goto END
  133. rem  **********
  134. :END
  135. rem  Type out error listing ...
  136. more < fxMake.MSG
  137. :DONE
  138. rem  Done.
  139. echo · 
  140. echo · fxMake Done.  (Messages are stored in fxMake.MSG)
  141. echo · 
  142.