home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / pov22f.zip / source / Makefile < prev    next >
Makefile  |  1994-02-28  |  4KB  |  118 lines

  1. # Makefile for Persistence of Vision Raytracer
  2. # This file is released to the public domain.
  3. #
  4. #
  5. # MAKE Macros and Such...
  6. #
  7.  
  8. #***************************************************************
  9. #*
  10. #*                      UNIX Makefile
  11. #*
  12. #***************************************************************
  13.  
  14. # The exact options may depend on your compiler.  Feel free to modify
  15. # these as required.
  16. # The cc compiler on a HP9000 likes the -Aa option for all files except unix.c
  17. # The gcc compiler is usually satisfied with these options.
  18.  
  19. OBJ    = o
  20. MACHINE_OBJ    = unix.$(OBJ)
  21. CFLAGS=        -c -O2 -m486 -finline-functions -fomit-frame-pointer -s
  22. LFLAGS =    -o povray.exe -O2 -m486 -s
  23. CC =            gcc
  24.  
  25. # Make's implicit rules for making a .o file from a .c file...
  26. #
  27. .c.o :
  28.     $(CC) $(CFLAGS) $*.c
  29.  
  30.  
  31. POVOBJS = povray.$(OBJ) bezier.$(OBJ) blob.$(OBJ) bound.$(OBJ) boxes.$(OBJ)  \
  32.       camera.$(OBJ) colour.$(OBJ) cones.$(OBJ) csg.$(OBJ) discs.$(OBJ)   \
  33.       dump.$(OBJ) express.$(OBJ) gif.$(OBJ) gifdecod.$(OBJ)              \
  34.       hfield.$(OBJ) iff.$(OBJ) image.$(OBJ) lighting.$(OBJ)              \
  35.       matrices.$(OBJ) normal.$(OBJ) objects.$(OBJ) parse.$(OBJ)          \
  36.       pigment.$(OBJ) planes.$(OBJ) point.$(OBJ) poly.$(OBJ)              \
  37.       quadrics.$(OBJ) raw.$(OBJ) ray.$(OBJ) render.$(OBJ) spheres.$(OBJ) \
  38.       targa.$(OBJ) texture.$(OBJ) tokenize.$(OBJ) triangle.$(OBJ)        \
  39.       txttest.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  40.  
  41.  
  42. povray:    $(POVOBJS)
  43.     $(CC) $(LFLAGS) $(POVOBJS) -lm
  44.  
  45. povray.$(OBJ) : povray.c povproto.h frame.h vector.h config.h
  46.  
  47. bezier.$(OBJ): config.h frame.h povproto.h vector.h
  48.  
  49. blob.$(OBJ): config.h frame.h povproto.h vector.h
  50.  
  51. bound.$(OBJ): config.h frame.h povproto.h vector.h
  52.  
  53. boxes.$(OBJ): config.h frame.h povproto.h vector.h
  54.  
  55. camera.$(OBJ): config.h frame.h povproto.h vector.h
  56.  
  57. colour.$(OBJ): config.h frame.h povproto.h vector.h
  58.  
  59. cones.$(OBJ): config.h frame.h povproto.h vector.h
  60.  
  61. csg.$(OBJ): config.h frame.h povproto.h vector.h
  62.  
  63. discs.$(OBJ): config.h frame.h povproto.h vector.h
  64.  
  65. dump.$(OBJ): config.h frame.h povproto.h
  66.  
  67. express.$(OBJ): config.h frame.h parse.h povproto.h vector.h
  68.  
  69. gif.$(OBJ): config.h frame.h povproto.h
  70.  
  71. gifdecod.$(OBJ): config.h frame.h povproto.h
  72.  
  73. hfield.$(OBJ): config.h frame.h povproto.h vector.h
  74.  
  75. iff.$(OBJ): config.h frame.h povproto.h
  76.  
  77. image.$(OBJ): config.h frame.h povproto.h texture.h vector.h
  78.  
  79. lighting.$(OBJ): config.h frame.h povproto.h vector.h
  80.  
  81. matrices.$(OBJ): config.h frame.h povproto.h vector.h
  82.  
  83. normal.$(OBJ): config.h frame.h povproto.h texture.h vector.h
  84.  
  85. objects.$(OBJ): config.h frame.h povproto.h vector.h
  86.  
  87. parse.$(OBJ): config.h frame.h parse.h povproto.h vector.h
  88.  
  89. pigment.$(OBJ): config.h frame.h povproto.h texture.h vector.h
  90.  
  91. planes.$(OBJ): config.h frame.h povproto.h vector.h
  92.  
  93. point.$(OBJ): config.h frame.h povproto.h vector.h
  94.  
  95. poly.$(OBJ): config.h frame.h povproto.h vector.h
  96.  
  97. quadrics.$(OBJ): config.h frame.h povproto.h vector.h
  98.  
  99. raw.$(OBJ): config.h frame.h povproto.h
  100.  
  101. ray.$(OBJ): config.h frame.h povproto.h vector.h
  102.  
  103. render.$(OBJ): config.h frame.h povproto.h vector.h
  104.  
  105. spheres.$(OBJ): config.h frame.h povproto.h vector.h
  106.  
  107. targa.$(OBJ): config.h frame.h povproto.h
  108.  
  109. texture.$(OBJ): config.h frame.h povproto.h texture.h vector.h
  110.  
  111. tokenize.$(OBJ): config.h frame.h parse.h povproto.h
  112.  
  113. triangle.$(OBJ): config.h frame.h povproto.h vector.h
  114.  
  115. txttest.$(OBJ): config.h frame.h povproto.h texture.h vector.h
  116.  
  117. vect.$(OBJ): config.h frame.h povproto.h vector.h
  118.