home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / povos2.zip / makefile < prev    next >
Makefile  |  1993-08-09  |  1KB  |  41 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. CC = gcc
  17. OBJ    = o
  18. MACHINE_OBJ    = unix.$(OBJ)
  19. CFLAGS=        -c -O
  20. LFLAGS =    -o povray -O
  21.  
  22. # Make's implicit rules for making a .o file from a .c file...
  23. #
  24. .c.o :
  25.     $(CC) $(CFLAGS) $*.c
  26.  
  27.  
  28. POVOBJS = povray.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  29.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  30.       prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ) hfield.$(OBJ)\
  31.       txtcolor.$(OBJ) txtbump.$(OBJ) txtmap.$(OBJ) txttest.$(OBJ) \
  32.       colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) planes.$(OBJ) iff.$(OBJ) \
  33.       gif.$(OBJ) gifdecod.$(OBJ) triangle.$(OBJ) raw.$(OBJ) dump.$(OBJ) \
  34.       targa.$(OBJ) poly.$(OBJ) bezier.$(OBJ) vect.$(OBJ) \
  35.           blob.$(OBJ) boxes.$(OBJ) point.$(OBJ) $(MACHINE_OBJ)
  36.  
  37.  
  38. povray:    $(POVOBJS)
  39.     gcc $(LFLAGS) $(POVOBJS) -lm
  40.     emxbind povray
  41.