home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / povsrc.sit / MACHINE / IBMPC.ZIP / IBMWAT.MAK < prev    next >
Encoding:
Makefile  |  1992-03-22  |  4.5 KB  |  144 lines

  1. # IBM Makefile for Persistence of Vision Raytracer
  2. # This file is released to the public domain.
  3. # For use with the Watcom C compiler on the IBM-PC
  4. # Note for the IBM Version:
  5. # Uses system environment variable LIB for the linker's .LIB file path.
  6. # (Example:  Set LIB=C:\LIB)  if you change this the two .LNK files will also
  7. # need to be changed as well.  The system environment variable CMODEL also
  8. # may be defined for the memory model of the compiler.  POV-Ray requires
  9. # the "Large" memory model.  (Example Set CMODEL=l)  If you don't want to
  10. # use the DOS environment variables, uncomment the following two lines:
  11. #
  12. #
  13. # MAKE Macros and Such...
  14. #
  15.  
  16. CMODEL  =l
  17. #LIB    =c:\lib
  18. CC      =wccp
  19. OBJ     =obj
  20. MACHINE_OBJ     = ibm.$(OBJ)
  21.  
  22. LINKER  =wlink8
  23.  
  24. # Uncomment for 8086/8088 instruction set usage
  25. #
  26. #CFLAGS =-m$(CMODEL) -fpi -d2 -s -zc
  27.  
  28. # Uncomment for 80186/80268 (incl. V20!) instruction set usage  [/Gmsr2]
  29. #
  30. CFLAGS  =-m$(CMODEL) -7 -2 -d2 -s -zc -D__NO_MATH_OPS
  31.  
  32. # If you have OS/2 to compile under, fix directory name and add this option
  33. # to CFLAGS above...
  34. #
  35. # /B2 C:\msc\c2l.exe
  36. #
  37.  
  38. # MS's NMAKE implicit rules for making an .OBJ file from a .C file...
  39. #
  40. # The second command converts debugging info from Watcom's to Turbo Debugger's
  41. #
  42. .c.obj :
  43.     $(CC) $(CFLAGS) -oxat $*.c
  44. #       w2td $*.obj
  45.  
  46. # The option:
  47. #
  48. # /Oaxz
  49. #
  50. # Is purported by Microsoft to produce the fastest possible code.  In fact it
  51. # will break the RGB->HSV->RGB routines in IBM.C, if using the 8087 emulator.
  52. # So, for IBM.C we are using:
  53. #
  54. # /Ogiltaz
  55. #
  56. # This optimization string works for IBM.C and should then have worked for all
  57. # files, but, somehow, it BREAKS the compiler! (Internal compiler error C1001
  58. # on TEXTURE.C!!)  Oh, well...
  59. #
  60.  
  61. POVOBJS = povray.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  62.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  63.       texture.$(OBJ) txtcolor.$(OBJ) txtbump.$(OBJ) txtmap.$(OBJ) \
  64.       txttest.$(OBJ) prioq.$(OBJ) matrices.$(OBJ) csg.$(OBJ) hfield.$(OBJ) \
  65.       colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) planes.$(OBJ) \
  66.       point.$(OBJ) boxes.$(OBJ) iff.$(OBJ) blob.$(OBJ)\
  67.       gif.$(OBJ) gifdecod.$(OBJ) triangle.$(OBJ) raw.$(OBJ) dump.$(OBJ) \
  68.       targa.$(OBJ) poly.$(OBJ) bezier.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  69.  
  70. # POV-Ray Specific Dependencies
  71. #
  72. povray.exe : $(POVOBJS)
  73.     $(LINKER) @ibmwat.lnk
  74.  
  75. povray.$(OBJ) : povray.c povproto.h frame.h vector.h config.h
  76.  
  77. tokenize.$(OBJ) : tokenize.c povproto.h frame.h config.h
  78.  
  79. parse.$(OBJ) : parse.c povproto.h frame.h config.h
  80.  
  81. render.$(OBJ) : render.c povproto.h frame.h vector.h config.h
  82.  
  83. lighting.$(OBJ) : lighting.c povproto.h frame.h vector.h config.h
  84.  
  85. prioq.$(OBJ) : prioq.c povproto.h frame.h config.h
  86.  
  87. texture.$(OBJ) : texture.c povproto.h frame.h vector.h config.h texture.h
  88.  
  89. txtcolor.$(OBJ) : txtcolor.c povproto.h frame.h vector.h config.h texture.h
  90.  
  91. txtbump.$(OBJ) : txtbump.c povproto.h frame.h vector.h config.h texture.h
  92.  
  93. txtmap.$(OBJ) : txtmap.c povproto.h frame.h vector.h config.h texture.h
  94.  
  95. txttest.$(OBJ) : txttest.c povproto.h frame.h vector.h config.h texture.h
  96.  
  97. objects.$(OBJ) : objects.c povproto.h frame.h vector.h config.h
  98.  
  99. spheres.$(OBJ) : spheres.c povproto.h frame.h vector.h config.h
  100.  
  101. planes.$(OBJ) : planes.c povproto.h frame.h vector.h config.h
  102.  
  103. point.$(OBJ) : point.c povproto.h frame.h vector.h config.h
  104.  
  105. boxes.$(OBJ) : boxes.c povproto.h frame.h vector.h config.h
  106.  
  107. blob.$(OBJ) : blob.c povproto.h frame.h vector.h config.h
  108.  
  109. quadrics.$(OBJ) : quadrics.c povproto.h frame.h vector.h config.h
  110.  
  111. hfield.$(OBJ) : hfield.c povproto.h frame.h vector.h config.h
  112.  
  113. poly.$(OBJ) : poly.c povproto.h frame.h vector.h config.h
  114.  
  115. bezier.$(OBJ) : bezier.c povproto.h frame.h vector.h config.h
  116.  
  117. vect.$(OBJ) : vect.c povproto.h frame.h config.h
  118.  
  119. matrices.$(OBJ) : matrices.c povproto.h frame.h vector.h config.h
  120.  
  121. csg.$(OBJ) : csg.c povproto.h frame.h vector.h config.h
  122.  
  123. colour.$(OBJ) : colour.c povproto.h frame.h config.h
  124.  
  125. viewpnt.$(OBJ) : viewpnt.c povproto.h frame.h vector.h config.h
  126.  
  127. ray.$(OBJ) : ray.c povproto.h frame.h vector.h config.h
  128.  
  129. iff.$(OBJ) : iff.c povproto.h frame.h config.h
  130.  
  131. gif.$(OBJ) : gif.c povproto.h frame.h config.h
  132.  
  133. gifdecod.$(OBJ) : gifdecod.c povproto.h frame.h config.h
  134.  
  135. raw.$(OBJ) : raw.c povproto.h frame.h config.h
  136.  
  137. dump.$(OBJ) : dump.c povproto.h frame.h config.h
  138.  
  139. targa.$(OBJ) : targa.c povproto.h frame.h config.h
  140.  
  141. triangle.$(OBJ) : triangle.c povproto.h frame.h vector.h config.h
  142.  
  143. ibm.$(OBJ) : ibm.c povproto.h frame.h config.h
  144.