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.djg < prev    next >
Makefile  |  1992-03-08  |  3KB  |  113 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools. Uses DJGCC gcc port form 386 machines.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.djg' for the exact path names to ne used for libraries and
  8. #    binaries. Also set the C compiler and linker flags.
  9. # 2. You will have to build libgif.a from the giflibxx.zip file (see readme.1st
  10. #    for ftp location). Otherwise you would not be able to build poly3d-r.
  11. #
  12. # Only large model is created here.
  13. #
  14. #                Gershon Elber, Nov. 1991
  15. #
  16.  
  17. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  18. .SWAP
  19.  
  20. # Includes generic definitions.
  21. !include "makeflag.djg"
  22.  
  23. all:    cagd_lib misc_lib irit poly3d poly3d-h poly3d-r iritfltr docs
  24.     type &&!
  25. Before executing the test suite and/or any usage of this package
  26. you will have to issue the following commands:
  27.  
  28. set IRIT_PATH=$(BIN_DIR)/
  29. set path = %path%;$(BIN_DIR)
  30.  
  31. or similar.
  32. !
  33.  
  34. #
  35. # Uncommend the following variable to only see the actions taken.
  36. #
  37. # VIEW_ONLY = -n
  38.  
  39. poly3d:
  40.     cd poly3d
  41.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  42.     cd ..
  43.  
  44. poly3d-h:
  45.     cd poly3d-h
  46.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  47.     cd ..
  48.  
  49. poly3d-r:
  50.     cd poly3d-r
  51.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  52.     cd ..
  53.  
  54. misc_lib:
  55.     cd misc_lib
  56.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  57.     cd ..
  58.  
  59. cagd_lib:
  60.     cd cagd_lib
  61.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  62.     cd ..
  63.  
  64. irit:
  65.     cd irit
  66.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  67.     cd ..\docs
  68.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  69.     cd ..
  70.  
  71. iritfltr:
  72.     cd iritfltr
  73.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg install
  74.     cd ..
  75.  
  76.  
  77. clean:
  78.     -rm poly3d\*.map poly3d\*.bak poly3d\*.old poly3d\*.gif poly3d\*.ps poly3d\*.sym
  79.     -rm poly3d\*.map poly3d-h\*.bak poly3d-h\*.old poly3d-h\*.hdn poly3d-h\*.sym
  80.     -rm poly3d\*.map poly3d-r\*.bak poly3d-r\*.old poly3d-r\*.gif poly3d-r\*.sym
  81.     -rm iritfltr\*.map iritfltr\*.bak iritfltr\*.old iritfltr\*.sym
  82.     -rm cagd_lib\*.map cagd_lib\*.bak cagd_lib\*.sym
  83.     -rm misc_lib\*.map misc_lib\*.bak misc_lib\*.sym
  84.     -rm irit\*.map irit\*.bak irit\*.old irit\*.sym irit\*.dat
  85.     -rm docs\irithlp.exe
  86.  
  87. cleanobj:
  88.     -rm poly3d\*.o poly3d-h\*.o poly3d-r\*.o irit\*.o \
  89.         iritfltr\*.o cagd_lib\*.o misc_lib\*.o docs\*.o
  90.     -rm docs\irithlp.exe
  91.  
  92. #
  93. # Make hardcopy documentation.
  94. #
  95. docs:
  96.     cd docs
  97.     -$(MAKE) $(VIEW_ONLY) -fmakefile.djg irit.tex irit.doc
  98.     cd ..
  99.  
  100. #
  101. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  102. #
  103. test:
  104.     cd irit
  105.     -irit demo
  106.     cd ..\poly3d
  107.     -test
  108.     cd ..\poly3d-h
  109.     -test
  110.     cd ..\poly3d-r
  111.     -test
  112.     cd ..
  113.