home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 12.img / ADS2.LIB / W90SAMP.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-05-26  |  4.0 KB  |  117 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 code
  11. Rem (e.g., GRAVITY.OBJ), the library (WCADS90.LIB), and the WATCOM C/386
  12. Rem libraries.  Each ADS application requires a special version of the startup
  13. Rem module that is contained in the WATCOM C/386 run-time library CLIB3S.LIB.
  14. Rem This special version, ADSSTART.OBJ, is located in the \WATCOM\LIB386\DOS
  15. Rem directory.  The following link directives will properly link your appli-
  16. Rem cation with the new startup module:
  17. Rem
  18. Rem               wlinkp system ads file your_app library wcads90
  19. Rem
  20. @echo MSDOS batch file to build WATCOM C/386 ADS sample programs
  21.  
  22. set savwat=%watcom%
  23. set savpth=%path%
  24. set savinc=%include%
  25.  
  26. set WATCOM=C:\WATCOM
  27. set path=%WATCOM%\bin;%WATCOM%\binb;%path%;
  28. set include=%WATCOM%\h;..
  29.  
  30. if exist %WATCOM%\lib386\dos\clib3s.lib goto L1
  31. echo You must edit w90samp.bat and change the variable WATCOM
  32. goto done 
  33. :L1
  34.  
  35. if .%1 == . goto L2
  36. @echo Compiling %1.c 
  37.   wcc386p %1 -fpi287 -3s -s -oailt -zq
  38.   wlinkp system ads file %1 library wcads90 option quiet
  39. goto done
  40.  
  41. :L2
  42. @echo Compiling ads_perr.c
  43.   wcc386p ads_perr -fpi287 -3s -s -oailt -zq
  44.   wlinkp system ads file ads_perr library wcads90 option quiet
  45.  
  46. @echo Compiling arbmat.c
  47.   wcc386p arbmat -fpi287 -3s -s -oailt -zq
  48.   wlinkp system ads file arbmat library wcads90 option quiet
  49.  
  50. @echo Compiling colext.c
  51.   wcc386p colext -fpi287 -3s -s -oailt -zq
  52.   wlinkp system ads file colext library wcads90 option quiet
  53.  
  54. @echo Compiling dlgtest.c
  55.   wcc386p dlgtest -fpi287 -3s -s -oailt -zq
  56.   wlinkp system ads file dlgtest library wcads90 option quiet
  57.  
  58. @echo Compiling fact.c
  59.   wcc386p fact -fpi287 -3s -s -oailt -zq
  60.   wlinkp system ads file fact library wcads90 option quiet
  61.  
  62. @echo Compiling gravity.c
  63.   wcc386p gravity -fpi287 -3s -s -oailt -zq
  64.   wlinkp system ads file gravity library wcads90 option quiet
  65.  
  66. @echo Compiling magnets.c
  67.   wcc386p magnets -fpi287 -3s -s -oailt -zq
  68.   wlinkp system ads file magnets library wcads90 option quiet
  69.  
  70. @echo Compiling mountain.c
  71.   wcc386p mountain -fpi287 -3s -s -oailt -zq
  72.   wlinkp system ads file mountain library wcads90 option quiet
  73.  
  74. @echo Compiling sld2ps.c
  75.   wcc386p sld2ps -fpi287 -3s -s -oailt -zq
  76.   wlinkp system ads file sld2ps library wcads90 option quiet
  77.  
  78. @echo Compiling sqr.c
  79.   wcc386p sqr -fpi287 -3s -s -oailt -zq
  80.   wlinkp system ads file sqr library wcads90 option quiet
  81.  
  82. @echo Compiling tadc.c
  83.   wcc386p tadc -fpi287 -3s -s -oailt -zq
  84.   wlinkp system ads file tadc library wcads90 option quiet
  85.  
  86. @echo Compiling tower.c
  87.   wcc386p tower -fpi287 -3s -s -oailt -zq
  88.   wlinkp system ads file tower library wcads90 option quiet
  89.  
  90. @echo Building geomcal
  91.   wcc386p cal     -fpi287 -3s -s -oailt -zq
  92.   wcc386p calerr  -fpi287 -3s -s -oailt -zq
  93.   wcc386p calexpr -fpi287 -3s -s -oailt -zq
  94.   wcc386p callex  -fpi287 -3s -s -oailt -zq
  95.   wcc386p calmngf -fpi287 -3s -s -oailt -zq
  96.   wcc386p calstdf -fpi287 -3s -s -oailt -zq
  97.   wcc386p calusrf -fpi287 -3s -s -oailt -zq
  98.   wcc386p util    -fpi287 -3s -s -oailt -zq
  99.   echo system ads file cal file calerr file calexpr file callex > geomcal.lnk
  100.   echo file calmngf file calstdf file calusrf file util >> geomcal.lnk
  101.   echo library wcads90 name geomcal option quiet >> geomcal.lnk
  102.   wlinkp @geomcal.lnk
  103.   del geomcal.lnk
  104.  
  105. :done
  106.  
  107. set include=%savinc%
  108. set path=%savpth%
  109. set WATCOM=%savwat%
  110. set savinc=
  111. set savpth=
  112. set savwat=
  113.  
  114. @echo
  115. @echo W90SAMP completed
  116. @echo on
  117.