home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 12.img / ADS3.LIB / TBC3SAMP.BAT < prev   
Encoding:
DOS Batch File  |  1992-06-01  |  5.9 KB  |  123 lines

  1. @echo off
  2. echo --------------------------------------------------------------------
  3. echo (C) Copyright 1990-1991 by Autodesk, Inc.
  4. echo Permission to use, copy, modify, and distribute this software and its
  5. echo documentation for any purpose and without fee is hereby granted.   
  6. echo THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. 
  7. echo ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF 
  8. echo MERCHANTABILITY ARE HEREBY DISCLAIMED.                                 
  9. echo --------------------------------------------------------------------
  10. Rem Notice what goes into an ADS application:  the application's own
  11. Rem code (e.g., GRAVITY.OBJ), the library (ADS.LIB), and the High C 
  12. Rem library.  
  13. Rem
  14. @echo MSDOS batch file to build RADS sample programs
  15.  
  16. Rem set enviroment here.
  17. set saveTBC=%TBC%
  18. if not .%TBC%==. goto TBC12
  19. set TBC=\borlandc
  20. :TBC12
  21. set TBCll=
  22. if not .%RADSLIB%==. goto TBC33
  23. set RADSLIB=tbcads3.lib
  24. set TBCll=Y
  25.  
  26. :TBC33
  27. if .%1 == . goto L4
  28. @echo Compiling %1.c
  29. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -o%1.obj -c %1.c
  30. %TBC%\bin\tlink /Tde /c c0fl.obj %1.obj,%1,,%RADSLIB% fp87 mathl cl
  31. goto done
  32.  
  33. :L4
  34. @echo Compiling geomcal
  35. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocal.obj -c cal.c
  36. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalerr.obj -c calerr.c
  37. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalexpr.obj -c calexpr.c
  38. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocallex.obj -c callex.c
  39. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalmngf.obj -c calmngf.c
  40. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalstdf.obj -c calstdf.c
  41. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalusrf.obj -c calusrf.c
  42. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -outil.obj -c util.c
  43. echo /Tde /c + >geom.rsp
  44. echo c0fl.obj cal.obj calerr.obj calexpr.obj callex.obj calmngf.obj calstdf.obj calusrf.obj util.obj, + >>geom.rsp
  45. echo geomcal,,%RADSLIB% fp87 mathl cl >>geom.rsp
  46. %TBC%\bin\tlink @geom.rsp
  47. del geom.rsp
  48.  
  49. @echo Compiling ads_perr.c
  50. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -oads_perr.obj -c ads_perr.c
  51. %TBC%\bin\tlink /Tde /c c0fl.obj ads_perr.obj,ads_perr,,%RADSLIB% fp87 mathl cl
  52.  
  53. @echo Compiling appmngr.c
  54. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -oappmngr.obj -c appmngr.c
  55. %TBC%\bin\tlink /Tde /c c0fl.obj appmngr.obj,appmngr,,%RADSLIB% fp87 mathl cl
  56.  
  57. @echo Compiling arbmat.c
  58. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -oarbmat.obj -c arbmat.c
  59. %TBC%\bin\tlink /Tde /c c0fl.obj arbmat.obj,arbmat,,%RADSLIB% fp87 mathl cl
  60.  
  61. @echo Compiling colext.c
  62. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocolext.obj -c colext.c
  63. %TBC%\bin\tlink /Tde /c c0fl.obj colext.obj,colext,,%RADSLIB% fp87 mathl cl
  64.  
  65. @echo Compiling dlgtest.c
  66. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -odlgtest.obj -c dlgtest.c
  67. %TBC%\bin\tlink /Tde /c c0fl.obj dlgtest.obj,dlgtest,,%RADSLIB% fp87 mathl cl
  68.  
  69. @echo Compiling dragger.c
  70. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -odragger.obj -c dragger.c
  71. %TBC%\bin\tlink /Tde /c c0fl.obj dragger.obj,dragger,,%RADSLIB% fp87 mathl cl
  72.  
  73. @echo Compiling fact.c
  74. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ofact.obj -c fact.c
  75. %TBC%\bin\tlink /Tde /c c0fl.obj fact.obj,fact,,%RADSLIB% fp87 mathl cl
  76.  
  77. @echo Compiling gpalsym.c
  78. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ogpalsym.obj -c gpalsym.c
  79. %TBC%\bin\tlink /Tde /c c0fl.obj gpalsym.obj,gpalsym,,%RADSLIB% fp87 mathl cl
  80.  
  81. @echo Compiling gravity.c
  82. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ogravity.obj -c gravity.c
  83. %TBC%\bin\tlink /Tde /c c0fl.obj gravity.obj,gravity,,%RADSLIB% fp87 mathl cl
  84.  
  85. @echo Compiling grvecs.c
  86. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ogrvecs.obj -c grvecs.c
  87. %TBC%\bin\tlink /Tde /c c0fl.obj grvecs.obj,grvecs,,%RADSLIB% fp87 mathl cl
  88.  
  89. @echo Compiling magnets.c
  90. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -omagnets.obj -c magnets.c
  91. %TBC%\bin\tlink /Tde /c c0fl.obj magnets.obj,magnets,,%RADSLIB% fp87 mathl cl
  92.  
  93. @echo Compiling mountain.c
  94. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -omountain.obj -c mountain.c
  95. %TBC%\bin\tlink /Tde /c c0fl.obj mountain.obj,mountain,,%RADSLIB% fp87 mathl cl
  96.  
  97. @echo Compiling sld2ps.c
  98. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -osld2ps.obj -c sld2ps.c
  99. %TBC%\bin\tlink /Tde /c c0fl.obj sld2ps.obj,sld2ps,,%RADSLIB% fp87 mathl cl
  100.  
  101. @echo Compiling sqr.c
  102. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -osqr.obj -c sqr.c
  103. %TBC%\bin\tlink /Tde /c c0fl.obj sqr.obj,sqr,,%RADSLIB% fp87 mathl cl
  104.  
  105. @echo Compiling tadc.c
  106. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -otadc.obj -c tadc.c
  107. %TBC%\bin\tlink /Tde /c c0fl.obj tadc.obj,tadc,,%RADSLIB% fp87 mathl cl
  108.  
  109. @echo Compiling tower.c
  110. %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -otower.obj -c tower.c
  111. %TBC%\bin\tlink /Tde /c c0fl.obj tower.obj,tower,,%RADSLIB% fp87 mathl cl
  112.  
  113. :done
  114. Rem clean up here
  115. set TBC=%saveTBC%
  116. set saveTBC=
  117. if .%TBCll%==. goto done1
  118. set RADSLIB=
  119. set TBCll=
  120. :done1
  121. @echo tbcrads3 completed
  122. @echo on
  123.