home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo --------------------------------------------------------------------
- echo (C) Copyright 1990-1991 by Autodesk, Inc.
- echo Permission to use, copy, modify, and distribute this software and its
- echo documentation for any purpose and without fee is hereby granted.
- echo THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
- echo ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
- echo MERCHANTABILITY ARE HEREBY DISCLAIMED.
- echo --------------------------------------------------------------------
- Rem Notice what goes into an ADS application: the application's own
- Rem code (e.g., GRAVITY.OBJ), the library (ADS.LIB), and the High C
- Rem library.
- Rem
- @echo MSDOS batch file to build RADS sample programs
-
- Rem set enviroment here.
- set saveTBC=%TBC%
- if not .%TBC%==. goto TBC12
- set TBC=\borlandc
- :TBC12
- set TBCll=
- if not .%RADSLIB%==. goto TBC33
- set RADSLIB=tbcads3.lib
- set TBCll=Y
-
- :TBC33
- if .%1 == . goto L4
- @echo Compiling %1.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -o%1.obj -c %1.c
- %TBC%\bin\tlink /Tde /c c0fl.obj %1.obj,%1,,%RADSLIB% fp87 mathl cl
- goto done
-
- :L4
- @echo Compiling geomcal
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocal.obj -c cal.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalerr.obj -c calerr.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalexpr.obj -c calexpr.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocallex.obj -c callex.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalmngf.obj -c calmngf.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalstdf.obj -c calstdf.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocalusrf.obj -c calusrf.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -outil.obj -c util.c
- echo /Tde /c + >geom.rsp
- echo c0fl.obj cal.obj calerr.obj calexpr.obj callex.obj calmngf.obj calstdf.obj calusrf.obj util.obj, + >>geom.rsp
- echo geomcal,,%RADSLIB% fp87 mathl cl >>geom.rsp
- %TBC%\bin\tlink @geom.rsp
- del geom.rsp
-
- @echo Compiling ads_perr.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -oads_perr.obj -c ads_perr.c
- %TBC%\bin\tlink /Tde /c c0fl.obj ads_perr.obj,ads_perr,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling appmngr.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -oappmngr.obj -c appmngr.c
- %TBC%\bin\tlink /Tde /c c0fl.obj appmngr.obj,appmngr,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling arbmat.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -oarbmat.obj -c arbmat.c
- %TBC%\bin\tlink /Tde /c c0fl.obj arbmat.obj,arbmat,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling colext.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ocolext.obj -c colext.c
- %TBC%\bin\tlink /Tde /c c0fl.obj colext.obj,colext,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling dlgtest.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -odlgtest.obj -c dlgtest.c
- %TBC%\bin\tlink /Tde /c c0fl.obj dlgtest.obj,dlgtest,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling dragger.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -odragger.obj -c dragger.c
- %TBC%\bin\tlink /Tde /c c0fl.obj dragger.obj,dragger,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling fact.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ofact.obj -c fact.c
- %TBC%\bin\tlink /Tde /c c0fl.obj fact.obj,fact,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling gpalsym.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ogpalsym.obj -c gpalsym.c
- %TBC%\bin\tlink /Tde /c c0fl.obj gpalsym.obj,gpalsym,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling gravity.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ogravity.obj -c gravity.c
- %TBC%\bin\tlink /Tde /c c0fl.obj gravity.obj,gravity,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling grvecs.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -ogrvecs.obj -c grvecs.c
- %TBC%\bin\tlink /Tde /c c0fl.obj grvecs.obj,grvecs,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling magnets.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -omagnets.obj -c magnets.c
- %TBC%\bin\tlink /Tde /c c0fl.obj magnets.obj,magnets,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling mountain.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -omountain.obj -c mountain.c
- %TBC%\bin\tlink /Tde /c c0fl.obj mountain.obj,mountain,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling sld2ps.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -osld2ps.obj -c sld2ps.c
- %TBC%\bin\tlink /Tde /c c0fl.obj sld2ps.obj,sld2ps,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling sqr.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -osqr.obj -c sqr.c
- %TBC%\bin\tlink /Tde /c c0fl.obj sqr.obj,sqr,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling tadc.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -otadc.obj -c tadc.c
- %TBC%\bin\tlink /Tde /c c0fl.obj tadc.obj,tadc,,%RADSLIB% fp87 mathl cl
-
- @echo Compiling tower.c
- %TBC%\bin\bcc -I%ADS% -AT -1 -ml -f287 -N- -G -ml -DTURBOC -DPROTOTYPES=1 -DRMADS -DADS -otower.obj -c tower.c
- %TBC%\bin\tlink /Tde /c c0fl.obj tower.obj,tower,,%RADSLIB% fp87 mathl cl
-
- :done
- Rem clean up here
- set TBC=%saveTBC%
- set saveTBC=
- if .%TBCll%==. goto done1
- set RADSLIB=
- set TBCll=
- :done1
- @echo tbcrads3 completed
- @echo on
-