home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / CLASEXAM.PAK / BUILDALL.BAT
Encoding:
DOS Batch File  |  1997-05-06  |  2.4 KB  |  144 lines

  1. @echo off
  2.  
  3. REM -------------------------------------------------------------------------
  4. REM  Explicitly remove environment variables which would be possibly
  5. REM  (mis)interpreted by the MAKEFILE.GEN setup as build parameters.
  6. REM -------------------------------------------------------------------------
  7. set DEBUG=
  8. set DIAGS=
  9. set MODEL=
  10. set SYSTEM=
  11. set TARGET=
  12.  
  13. set BIDS_EX_ERR=
  14.  
  15. if /%MK%/ == // set MK=MAKE.EXE
  16.  
  17. cd labels
  18. %MK% %1 %2 %3 %4 MODEL=m
  19. if errorlevel 1 set BIDS_EX_ERR=1
  20. cd ..
  21.  
  22. cd lookup  
  23. %MK% %1 %2 %3 %4 MODEL=m
  24. if errorlevel 1 set BIDS_EX_ERR=1
  25. cd ..
  26.  
  27. cd pstream
  28. %MK% %1 %2 %3 %4
  29. if errorlevel 1 set BIDS_EX_ERR=1
  30. cd ..
  31.  
  32. cd queuetst
  33. %MK% %1 %2 %3 %4 MODEL=m
  34. if errorlevel 1 set BIDS_EX_ERR=1
  35. cd ..
  36.  
  37. cd reverse
  38. %MK% %1 %2 %3 %4 MODEL=m
  39. if errorlevel 1 set BIDS_EX_ERR=1
  40. cd ..
  41.  
  42. cd strngmax
  43. %MK% %1 %2 %3 %4 MODEL=m
  44. if errorlevel 1 set BIDS_EX_ERR=1
  45. cd ..
  46.  
  47. cd testdir
  48. %MK% %1 %2 %3 %4 MODEL=m
  49. if errorlevel 1 set BIDS_EX_ERR=1
  50. cd ..
  51.  
  52. cd todo
  53. %MK% %1 %2 %3 %4
  54. if errorlevel 1 set BIDS_EX_ERR=1
  55. cd ..
  56.  
  57. cd xref
  58. %MK% %1 %2 %3 %4 MODEL=m
  59. if errorlevel 1 set BIDS_EX_ERR=1
  60. cd ..
  61.  
  62. REM Build bidsapi examples
  63. cd BIDSAPI
  64.  
  65. cd arrays
  66. %MK% %1 %2 %3 %4 MODEL=l
  67. if errorlevel 1 set BIDS_EX_ERR=1
  68. cd ..
  69.  
  70. cd assocs
  71. %MK% %1 %2 %3 %4 MODEL=l
  72. if errorlevel 1 set BIDS_EX_ERR=1
  73. cd ..
  74.  
  75. cd bags
  76. %MK% %1 %2 %3 %4 MODEL=l
  77. if errorlevel 1 set BIDS_EX_ERR=1
  78. cd ..
  79.  
  80. cd bintrees
  81. %MK% %1 %2 %3 %4 MODEL=l
  82. if errorlevel 1 set BIDS_EX_ERR=1
  83. cd ..
  84.  
  85. cd dates
  86. %MK% %1 %2 %3 %4 MODEL=l
  87. if errorlevel 1 set BIDS_EX_ERR=1
  88. cd ..
  89.  
  90. cd deques
  91. %MK% %1 %2 %3 %4 MODEL=l
  92. if errorlevel 1 set BIDS_EX_ERR=1
  93. cd ..
  94.  
  95. cd hashtbls
  96. %MK% %1 %2 %3 %4 MODEL=l
  97. if errorlevel 1 set BIDS_EX_ERR=1
  98. cd ..
  99.  
  100. cd lists
  101. %MK% %1 %2 %3 %4 MODEL=l
  102. if errorlevel 1 set BIDS_EX_ERR=1
  103. cd ..
  104.  
  105. cd queues
  106. %MK% %1 %2 %3 %4 MODEL=l
  107. if errorlevel 1 set BIDS_EX_ERR=1
  108. cd ..
  109.  
  110. cd sets
  111. %MK% %1 %2 %3 %4 MODEL=l
  112. if errorlevel 1 set BIDS_EX_ERR=1
  113. cd ..
  114.  
  115. cd stacks
  116. %MK% %1 %2 %3 %4 MODEL=l
  117. if errorlevel 1 set BIDS_EX_ERR=1
  118. cd ..
  119.  
  120. cd streams
  121. %MK% %1 %2 %3 %4 MODEL=l
  122. if errorlevel 1 set BIDS_EX_ERR=1
  123. cd ..
  124.  
  125. cd threads
  126. %MK% %1 %2 %3 %4 -DCON32 MODEL=f
  127. if errorlevel 1 set BIDS_EX_ERR=1
  128. cd ..
  129.  
  130. cd vectors
  131. %MK% %1 %2 %3 %4 MODEL=l
  132. if errorlevel 1 set BIDS_EX_ERR=1
  133. cd ..
  134.  
  135. REM Back to examples from BIDSAPI
  136. cd..
  137.  
  138. if /%BIDS_EX_ERR%/ == //  echo Build succeeded!
  139. if /%BIDS_EX_ERR%/ == /1/ echo Build failed!
  140.  
  141.  
  142. :END
  143. 
  144.