home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / RADIANCE / SRC / OT / RMAKEFIL < prev    next >
Text File  |  1993-10-07  |  2KB  |  68 lines

  1. # SCCSid "@(#)Rmakefile 2.2 7/1/92 LBL"
  2.  
  3. #
  4. #  Compiles for octree conversion program
  5. #
  6. #     The compile define "STRICT" enforces strict intersection calculations
  7. #  so that no cube which does not intersect an object contains that object.
  8. #  Otherwise, a somewhat faster more lax approach is taken by certain routines.
  9. #
  10.  
  11. OPT = -O
  12. MACH = -DBSD
  13. CFLAGS = -DSTRICT $(OPT) $(MACH) -I../common -L../lib
  14. CC = cc
  15.  
  16. LIBDIR = /usr/local/lib/ray
  17.  
  18. INSTDIR = /usr/local/bin
  19.  
  20. all:    oconv getbbox
  21.  
  22. oconv:    oconv.o sphere.o writeoct.o o_face.o plocate.o \
  23. clip.o o_cone.o o_instance.o bbox.o initotypes.o readfargs.o malloc.o
  24.     $(CC) $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \
  25. plocate.o clip.o o_cone.o o_instance.o bbox.o readfargs.o \
  26. initotypes.o malloc.o -lrt -lm
  27.  
  28. getbbox:    getbbox.o readobj2.o bbox.o initotypes2.o
  29.     $(CC) $(CFLAGS) -o getbbox getbbox.o readobj2.o \
  30. bbox.o initotypes2.o -lrt -lm
  31.  
  32. install:    oconv getbbox
  33.     cp oconv getbbox $(INSTDIR)
  34.  
  35. clean:
  36.     set nonomatch; rm -f oconv getbbox *.o core
  37.  
  38. oconv.o:    oconv.c
  39.     $(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c oconv.c
  40.  
  41. readfargs.o:    readfargs.c ../common/object.h
  42.     $(CC) $(CFLAGS) -DMEMHOG -c readfargs.c
  43.  
  44. bbox.o initotypes.o o_cone.o o_face.o \
  45. o_instance.o oconv.o sphere.o \
  46. writeoct.o:    ../common/standard.h ../common/mat4.h ../common/fvect.h
  47.  
  48. initotypes.o o_cone.o o_face.o oconv.o \
  49. sphere.o writeoct.o:    ../common/octree.h
  50.  
  51. bbox.o o_cone.o o_face.o o_instance.o oconv.o \
  52. sphere.o writeoct.o:    ../common/object.h
  53.  
  54. bbox.o initotypes.o oconv.o \
  55. sphere.o writeoct.o:    ../common/otypes.h
  56.  
  57. bbox.o o_cone.o:    ../common/cone.h
  58.  
  59. bbox.o o_face.o:    ../common/face.h
  60.  
  61. bbox.o o_instance.o:    ../common/instance.h ../common/octree.h
  62.  
  63. clip.o o_face.o plocate.o:    plocate.h
  64.  
  65. clip.o plocate.o:    ../common/fvect.h
  66.  
  67. initotypes.o initotypes2.o:    ../common/otypes.h
  68.