home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / nvdc87 / rsv1v1 / new_clib.bat < prev    next >
DOS Batch File  |  1987-08-24  |  3KB  |  112 lines

  1. ECHO OFF
  2. ECHO ***
  3. ECHO *** Building CLIB
  4. ECHO ***
  5. ECHO ***
  6. ECHO *** Step 1:  Compiling Model-Independent Modules
  7. ECHO ***
  8. CD \TURBOC\RUNTIME\CLIB
  9. DEL *.OBJ
  10. DEL ..\OBJ\*.OBJ
  11. masm EMUINIT    /MX;
  12. masm LDIV       /MX;
  13. masm LRSH       /MX;
  14. masm LXMUL      /MX;
  15. masm OVERFLOW   /MX;
  16. masm PADA       /MX;
  17. masm PADD       /MX;
  18. masm PCMP       /MX;
  19. masm PINA       /MX;
  20. masm PSBP       /MX;
  21. masm SCOPY      /MX;
  22. masm SPUSH      /MX;
  23. COPY *.OBJ ..\OBJ
  24. ECHO ***
  25. ECHO *** Step 2:  Building SMALL and TINY Memory Model Library
  26. ECHO ***
  27. masm C0,C0T     /D__TINY__  /MX;
  28. masm C0,C0S     /D__SMALL__ /MX;
  29. COPY C0T.OBJ ..\LIB
  30. COPY C0S.OBJ ..\LIB
  31. masm SETARGV    /D__SMALL__ /MX;
  32. masm SETENVP    /D__SMALL__ /MX;
  33. masm EXEC       /D__SMALL__ /MX;
  34. masm SPAWN      /D__SMALL__ /MX;
  35. masm CVTFAK     /D__SMALL__ /MX;
  36. masm REALCVT    /D__SMALL__ /MX;
  37. masm SCANTOD    /D__SMALL__ /MX;
  38. tcc -I\TURBOC\RUNTIME\INCLUDE -I\TURBOC\INCLUDE -O -Z -c -mt *.C*
  39. DEL ..\LIB\CS.*
  40. lib ..\LIB\CS @CLIB.RSP
  41. ECHO ***
  42. ECHO *** Step 3:  Building MEDIUM Memory Model Library
  43. ECHO ***
  44. DEL *.OBJ
  45. masm C0,C0M     /D__MEDIUM__ /MX;
  46. COPY C0M.OBJ ..\LIB
  47. masm SETARGV    /D__MEDIUM__ /MX;
  48. masm SETENVP    /D__MEDIUM__ /MX;
  49. masm EXEC       /D__MEDIUM__ /MX;
  50. masm SPAWN      /D__MEDIUM__ /MX;
  51. masm CVTFAK     /D__MEDIUM__ /MX;
  52. masm REALCVT    /D__MEDIUM__ /MX;
  53. masm SCANTOD    /D__MEDIUM__ /MX;
  54. tcc -I\TURBOC\RUNTIME\INCLUDE -I\TURBOC\INCLUDE -O -Z -c -mm *.C*
  55. COPY ..\OBJ\*.OBJ
  56. DEL ..\LIB\CM.*
  57. lib ..\LIB\CM @CLIB.RSP
  58. ECHO ***
  59. ECHO *** Step 4:  Building COMPACT Memory Model Library
  60. ECHO ***
  61. DEL *.OBJ
  62. masm C0,C0C     /D__COMPACT__ /MX;
  63. COPY C0C.OBJ ..\LIB
  64. masm SETARGV    /D__COMPACT__ /MX;
  65. masm SETENVP    /D__COMPACT__ /MX;
  66. masm EXEC       /D__COMPACT__ /MX;
  67. masm SPAWN      /D__COMPACT__ /MX;
  68. masm CVTFAK     /D__COMPACT__ /MX;
  69. masm REALCVT    /D__COMPACT__ /MX;
  70. masm SCANTOD    /D__COMPACT__ /MX;
  71. tcc -I\TURBOC\RUNTIME\INCLUDE -I\TURBOC\INCLUDE -O -Z -c -mc *.C*
  72. COPY ..\OBJ\*.OBJ
  73. DEL ..\LIB\CC.*
  74. lib ..\LIB\CC @CLIB.RSP
  75. ECHO ***
  76. ECHO *** Step 5:  Building LARGE Memory Model Library
  77. ECHO ***
  78. DEL *.OBJ
  79. masm C0,C0L     /D__LARGE__ /MX;
  80. COPY C0L.OBJ ..\LIB
  81. masm SETARGV    /D__LARGE__ /MX;
  82. masm SETENVP    /D__LARGE__ /MX;
  83. masm EXEC       /D__LARGE__ /MX;
  84. masm SPAWN      /D__LARGE__ /MX;
  85. masm CVTFAK     /D__LARGE__ /MX;
  86. masm REALCVT    /D__LARGE__ /MX;
  87. masm SCANTOD    /D__LARGE__ /MX;
  88. tcc -I\TURBOC\RUNTIME\INCLUDE -I\TURBOC\INCLUDE -O -Z -c -ml *.C*
  89. COPY ..\OBJ\*.OBJ
  90. DEL ..\LIB\CL.*
  91. lib ..\LIB\CL @CLIB.RSP
  92. ECHO ***
  93. ECHO *** Step 6:  Building HUGE Memory Model Library
  94. ECHO ***
  95. DEL *.OBJ
  96. masm C0,C0H     /D__HUGE__ /MX;
  97. COPY C0H.OBJ ..\LIB
  98. masm SETARGV    /D__HUGE__ /MX;
  99. masm SETENVP    /D__HUGE__ /MX;
  100. masm EXEC       /D__HUGE__ /MX;
  101. masm SPAWN      /D__HUGE__ /MX;
  102. masm CVTFAK     /D__HUGE__ /MX;
  103. masm REALCVT    /D__HUGE__ /MX;
  104. masm SCANTOD    /D__HUGE__ /MX;
  105. tcc -I\TURBOC\RUNTIME\INCLUDE -I\TURBOC\INCLUDE -O -Z -c -mh *.C*
  106. COPY ..\OBJ\*.OBJ
  107. DEL ..\LIB\CH.*
  108. lib ..\LIB\CH @CLIB.RSP
  109. ECHO ***
  110. ECHO *** Finished Building CLIB 
  111. ECHO ***
  112.