home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povsrc20 / ibmgcc.mak < prev    next >
Makefile  |  1993-02-19  |  4KB  |  149 lines

  1. # Makefile for Persistence of Vision Raytracer 
  2. # This file is released to the public domain.
  3. # For use with DJ's GCC on the IBM-PC
  4. #
  5. # MAKE Macros and Such...
  6. #
  7.  
  8. CC      =gcc
  9. OBJ     =o
  10. MACHINE_OBJ     = ibm.$(OBJ)    # gcc.$(OBJ) if your GCC does not support INTs
  11. LD    =gcc
  12.  
  13. #***************************************************************
  14. #*
  15. #*                      IBM Options
  16. #*
  17. #***************************************************************
  18.  
  19. # Uncomment for maximal optimization...
  20. # -m486 is optional i486 coding optimization,
  21. # but -funroll-loops can sometimes break DJGCC...
  22. #
  23. #CFLAGS    =-O2 -fomit-frame-pointer -DGCCDOS -m486
  24. #MORECFLAGS    =-funroll-loops
  25.  
  26. # Uncomment for full optimization
  27. #
  28. CFLAGS    =-O -fomit-frame-pointer -DGCCDOS -fstrength-reduce -finline-functions
  29. MORECFLAGS    =
  30.  
  31. # Uncomment for debugging (no optimization)
  32. #CFLAGS    =-Wall -DGCCDOS
  33. #MORECFLAGS    =
  34.  
  35.  
  36. # NDMAKE's implicit rules for making a .OBJ file from a .C file...
  37. #
  38. .c.$(OBJ) :
  39.     $(CC) $(CFLAGS) $(MORECFLAGS) -c $*.c
  40.  
  41. # Generic "Unix" MAKE's implicit rules for making an .OBJ file from a .C file
  42. #
  43. #*.obj : *.c
  44. # $(CC) $(CFLAGS) $*
  45.  
  46.  
  47. #***************************************************************
  48. #*
  49. #*                          Common  Stuff
  50. #*
  51. #***************************************************************
  52.  
  53. F1 = povray.$(OBJ) bezier.$(OBJ) blob.$(OBJ) bound.$(OBJ) boxes.$(OBJ) 
  54. F2 = camera.$(OBJ) colour.$(OBJ) cones.$(OBJ) csg.$(OBJ) discs.$(OBJ) 
  55. F3 = dump.$(OBJ) express.$(OBJ) gifdecod.$(OBJ) gif.$(OBJ) hfield.$(OBJ) 
  56. F4 = iff.$(OBJ) image.$(OBJ) lighting.$(OBJ) matrices.$(OBJ) normal.$(OBJ) 
  57. F5 = objects.$(OBJ) parse.$(OBJ) pigment.$(OBJ) planes.$(OBJ) point.$(OBJ)
  58. F6 = poly.$(OBJ) quadrics.$(OBJ) raw.$(OBJ) ray.$(OBJ) render.$(OBJ) 
  59. F7 = spheres.$(OBJ) targa.$(OBJ) texture.$(OBJ) tokenize.$(OBJ) 
  60. F8 = triangle.$(OBJ) txttest.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  61.  
  62. PVOBJS = $(F1) $(F2) $(F3) $(F4) $(F5) $(F6) $(F7) $(F8) 
  63.  
  64. #
  65. # DJGCC Linkage...
  66. #
  67. povray.exe : $(PVOBJS)
  68.     $(LD) -o povray @ibmgcc.lnk
  69.     strip povray
  70.     aout2exe povray
  71.  
  72. #
  73. # Specific module/header dependencies for PV-Ray:
  74. #
  75.  
  76. povray.$(OBJ) : povray.c povproto.h frame.h vector.h config.h
  77.  
  78. bezier.$(OBJ) : bezier.c povproto.h frame.h vector.h config.h
  79.  
  80. blob.$(OBJ) : blob.c povproto.h frame.h config.h
  81.  
  82. bound.$(OBJ) : bound.c povproto.h frame.h vector.h config.h
  83.  
  84. boxes.$(OBJ) : boxes.c povproto.h frame.h config.h
  85.  
  86. camera.$(OBJ) : camera.c povproto.h frame.h vector.h config.h
  87.  
  88. colour.$(OBJ) : colour.c povproto.h frame.h config.h
  89.  
  90. cones.$(OBJ) : cones.c povproto.h frame.h vector.h config.h
  91.  
  92. csg.$(OBJ) : csg.c povproto.h frame.h vector.h config.h
  93.  
  94. discs.$(OBJ) : discs.c povproto.h frame.h vector.h config.h
  95.  
  96. express.$(OBJ) : express.c povproto.h frame.h config.h parse.h
  97.  
  98. gifdecod.$(OBJ) : gifdecod.c povproto.h frame.h config.h
  99.  
  100. gif.$(OBJ) : gif.c povproto.h frame.h config.h
  101.  
  102. hfield.$(OBJ) : hfield.c povproto.h frame.h vector.h config.h
  103.  
  104. ibm.$(OBJ) : ibm.c povproto.h frame.h config.h
  105.  
  106. iff.$(OBJ) : iff.c povproto.h frame.h config.h
  107.  
  108. image.$(OBJ) : image.c povproto.h frame.h vector.h config.h texture.h
  109.  
  110. lighting.$(OBJ) : lighting.c povproto.h frame.h vector.h config.h
  111.  
  112. matrices.$(OBJ) : matrices.c povproto.h frame.h vector.h config.h
  113.  
  114. normal.$(OBJ) : normal.c povproto.h frame.h vector.h config.h texture.h
  115.  
  116. objects.$(OBJ) : objects.c povproto.h frame.h vector.h config.h
  117.  
  118. parse.$(OBJ) : parse.c povproto.h frame.h config.h parse.h
  119.  
  120. pigment.$(OBJ) : pigment.c povproto.h frame.h vector.h config.h texture.h
  121.  
  122. planes.$(OBJ) : planes.c povproto.h frame.h vector.h config.h
  123.  
  124. poly.$(OBJ) : poly.c povproto.h frame.h vector.h config.h
  125.  
  126. quadrics.$(OBJ) : quadrics.c povproto.h frame.h vector.h config.h
  127.  
  128. raw.$(OBJ) : raw.c povproto.h frame.h config.h
  129.  
  130. ray.$(OBJ) : ray.c povproto.h frame.h vector.h config.h
  131.  
  132. render.$(OBJ) : render.c povproto.h frame.h vector.h config.h
  133.  
  134. spheres.$(OBJ) : spheres.c povproto.h frame.h vector.h config.h
  135.  
  136. targa.$(OBJ) : targa.c povproto.h frame.h config.h
  137.  
  138. texture.$(OBJ) : texture.c povproto.h frame.h vector.h config.h texture.h
  139.     $(CC) $(CFLAGS) -c $*.c
  140.  
  141. tokenize.$(OBJ) : tokenize.c povproto.h frame.h config.h
  142.  
  143. triangle.$(OBJ) : triangle.c povproto.h frame.h vector.h config.h
  144.  
  145. txttest.$(OBJ) : txttest.c povproto.h frame.h vector.h config.h texture.h
  146.  
  147. vect.$(OBJ) : vect.c povproto.h frame.h config.h
  148.  
  149.