home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / i / iritsm3s.zip / makefile.tc < prev    next >
Makefile  |  1992-03-01  |  3KB  |  148 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.dos' for the exact path names to ne used for libraries and
  8. #    binaries. Also set the C compiler and linker flags.
  9. # 2. Make sure lib_gifl.lib for MSDOS from the lib subdirectory is in the same
  10. #    place as LIB_DIR as set in dirs.dos and that lib_gif.h from the inc
  11. #    subdirectory is in the same place as INC_DIR as set in dirs.dos. This
  12. #    library is provided compiled in large model only. See documentation
  13. #    on how to get its sources.
  14. #
  15. # Only large model is created here.
  16. #
  17. #                Gershon Elber, Nov. 1991
  18. #
  19.  
  20. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  21. .SWAP
  22.  
  23. # Includes generic definitions.
  24. !include "makeflag.dos"
  25.  
  26. all:    cagd_lib misc_lib irit poly3d poly3d-h poly3d-r iritfltr docs
  27.     type &&!
  28. Before executing the test suite and/or any usage of this package
  29. you will have to issue the following command:
  30.  
  31. set path = %path%;$(BIN_DIR)
  32.  
  33. or similar.
  34. !
  35.  
  36. #
  37. # Uncommend the following variable to only see the actions taken.
  38. #
  39. # VIEW_ONLY = -n
  40.  
  41. poly3d:
  42.     cd poly3d
  43.     -make $(VIEW_ONLY) -fmakefile.tc install
  44.     cd ..
  45.  
  46. poly3d-h:
  47.     cd poly3d-h
  48.     -make $(VIEW_ONLY) -fmakefile.tc install
  49.     cd ..
  50.  
  51. poly3d-r:
  52.     cd poly3d-r
  53.     -make $(VIEW_ONLY) -fmakefile.tc install
  54.     cd ..
  55.  
  56. misc_lib:
  57.     cd misc_lib
  58.     -make $(VIEW_ONLY) -fmakefile.tc install
  59.     cd ..
  60.  
  61. cagd_lib:
  62.     cd cagd_lib
  63.     -make $(VIEW_ONLY) -fmakefile.tc install
  64.     cd ..
  65.  
  66. irit:
  67.     cd irit
  68.     -make $(VIEW_ONLY) -fmakefile.tc install
  69.     cd ..\docs
  70.     -make $(VIEW_ONLY) -fmakefile.tc install
  71.     cd ..
  72.  
  73. iritfltr:
  74.     cd iritfltr
  75.     -make $(VIEW_ONLY) -fmakefile.tc install
  76.     cd ..
  77.  
  78.  
  79. clean:
  80.     -rm poly3d\*.map poly3d\*.bak poly3d\*.old poly3d\*.gif poly3d\*.ps poly3d\*.sym
  81.     -rm poly3d\*.map poly3d-h\*.bak poly3d-h\*.old poly3d-h\*.hdn poly3d-h\*.sym
  82.     -rm poly3d\*.map poly3d-r\*.bak poly3d-r\*.old poly3d-r\*.gif poly3d-r\*.sym
  83.     -rm iritfltr\*.map iritfltr\*.bak iritfltr\*.old iritfltr\*.sym
  84.     -rm cagd_lib\*.map cagd_lib\*.bak cagd_lib\*.sym
  85.     -rm misc_lib\*.map misc_lib\*.bak misc_lib\*.sym
  86.     -rm irit\*.map irit\*.bak irit\*.old irit\*.sym irit\*.dat
  87.     -rm docs\irithlp.exe
  88.  
  89. cleanobj:
  90.     -rm poly3d\*.obj poly3d-h\*.obj poly3d-r\*.obj irit\*.obj \
  91.         iritfltr\*.obj cagd_lib\*.obj misc_lib\*.obj docs\*.obj
  92.     -rm docs\irithlp.exe
  93.  
  94. #
  95. # Make hardcopy documentation.
  96. #
  97. docs:
  98.     cd docs
  99.     -make $(VIEW_ONLY) -f makefile.tc irit.tex irit.doc
  100.     cd ..
  101.  
  102. #
  103. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  104. #
  105. test:
  106.     cd irit
  107.     -irit demo
  108.     cd ..\poly3d
  109.     -test
  110.     cd ..\poly3d-h
  111.     -test
  112.     cd ..\poly3d-r
  113.     -test
  114.     cd ..
  115.  
  116. #
  117. # Generate dependencies for the source tree.
  118. #
  119. depend:
  120.     cd irit
  121.     -makedpnd -u -m makefile.unx *.c
  122.     -makedpnd -m makefile.tc *.c
  123.     cd ..\poly3d
  124.     -makedpnd -u -m makefile.unx *.c
  125.     -makedpnd -m makefile.tc *.c
  126.     cd ..\poly3d-h
  127.     -makedpnd -u -m makefile.unx *.c
  128.     -makedpnd -u -m makefile.djg *.c
  129.     -makedpnd -m makefile.tc *.c
  130.     cd ..\poly3d-r
  131.     -makedpnd -u -m makefile.unx *.c
  132.     -makedpnd -u -m makefile.djg *.c
  133.     -makedpnd -m makefile.tc *.c
  134.     cd ..\iritfltr
  135.     -makedpnd -u -m makefile.unx *.c
  136.     -makedpnd -u -m makefile.djg *.c
  137.     -makedpnd -m makefile.tc *.c
  138.     cd ..\cagd_lib
  139.     -makedpnd -u -m makefile.unx *.c
  140.     -makedpnd -u -m makefile.djg *.c
  141.     -makedpnd -m makefile.tc *.c
  142.     cd ..\misc_lib
  143.     -makedpnd -u -m makefile.unx *.c
  144.     -makedpnd -u -m makefile.djg *.c
  145.     -makedpnd -m makefile.tc *.c
  146.     cd ..
  147.  
  148.