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

  1. # IBM Makefile for Persistence of Vision Raytracer 
  2. # This file is released to the public domain.
  3. # For use with the ZORTECH C/C++ protected mode compiler
  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.  PV-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  =x
  17. LIB     =d:\zt\lib
  18. CC      =ztc -c
  19. OBJ     =obj
  20. MACHINE_OBJ = ibm.$(OBJ)
  21.  
  22. LINKER  =blinkx /CO/CH/NOE/MAP
  23.  
  24. # Uncomment for 80268 (ZPM DOS extender) instruction set usage
  25. # Normally, you'll use this:
  26. #
  27. CFLAGS  =-m$(CMODEL) -o+all -bx -f -a2
  28.  
  29.  
  30. .c.obj :
  31.     $(CC) $(CFLAGS) $*.c
  32.  
  33.  
  34. # The option:
  35. #
  36. # /Oaxz
  37. #
  38. # Is purported by Microsoft to produce the fastest possible code.  In fact it
  39. # will break the RGB->HSV->RGB routines in IBM.C, if using the 8087 emulator.
  40. # So, for IBM.C we are using:
  41. #
  42. # /Ogiltaz
  43. #
  44. # This optimization string works for IBM.C and should then have worked for all
  45. # files, but, somehow, it BREAKS the compiler! (Internal compiler error C1001
  46. # on TEXTURE.C!!)  Oh, well...
  47. # Try using /Od to disable optimization if you're having problems.
  48. #
  49.  
  50. O1 = povray.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ)
  51. O2 = objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ)
  52. O3 = prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ)
  53. O4 = hfield.$(OBJ) txtcolor.$(OBJ) txtbump.$(OBJ) txtmap.$(OBJ)
  54. O5 = txttest.$(OBJ) colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ)
  55. O6 = planes.$(OBJ) iff.$(OBJ) gif.$(OBJ) gifdecod.$(OBJ)
  56. O7 = boxes.$(OBJ) point.$(OBJ) blob.$(OBJ)
  57. O8 = triangle.$(OBJ) raw.$(OBJ) dump.$(OBJ) targa.$(OBJ) poly.$(OBJ)
  58. O9 = bezier.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ) ztc386.$(OBJ)
  59.  
  60. PVOBJS = $(O1) $(O2) $(O3) $(O4) $(O5) $(O6) $(O7) $(O8) $(O9)
  61.  
  62. # POV-Ray - Specific Dependencies
  63.  
  64. povray.exe : $(PVOBJS)
  65.     $(LINKER)  @ibmzor3.lnk
  66.  
  67. povray.$(OBJ) : povray.c povproto.h frame.h vector.h config.h
  68.  
  69. tokenize.$(OBJ) : tokenize.c povproto.h frame.h config.h
  70.  
  71. parse.$(OBJ) : parse.c povproto.h frame.h config.h
  72.  
  73. render.$(OBJ) : render.c povproto.h frame.h vector.h config.h
  74.  
  75. lighting.$(OBJ) : lighting.c povproto.h frame.h vector.h config.h
  76.  
  77. prioq.$(OBJ) : prioq.c povproto.h frame.h config.h
  78.  
  79. texture.$(OBJ) : texture.c povproto.h frame.h vector.h config.h texture.h
  80.  
  81. txtcolor.$(OBJ) : txtcolor.c povproto.h frame.h vector.h config.h texture.h
  82.  
  83. txtbump.$(OBJ) : txtbump.c povproto.h frame.h vector.h config.h texture.h
  84.  
  85. txtmap.$(OBJ) : txtmap.c povproto.h frame.h vector.h config.h texture.h
  86.  
  87. txttest.$(OBJ) : txttest.c povproto.h frame.h vector.h config.h texture.h
  88.  
  89. objects.$(OBJ) : objects.c povproto.h frame.h vector.h config.h
  90.  
  91. hfield.$(OBJ) : hfield.c povproto.h frame.h vector.h config.h
  92.  
  93. spheres.$(OBJ) : spheres.c povproto.h frame.h vector.h config.h
  94.  
  95. planes.$(OBJ) : planes.c povproto.h frame.h vector.h config.h
  96.  
  97. quadrics.$(OBJ) : quadrics.c povproto.h frame.h vector.h config.h
  98.  
  99. poly.$(OBJ) : poly.c povproto.h frame.h vector.h config.h
  100.  
  101. bezier.$(OBJ) : bezier.c povproto.h frame.h vector.h config.h
  102.  
  103. vect.$(OBJ) : vect.c povproto.h frame.h config.h
  104.  
  105. blob.$(OBJ) : blob.c povproto.h frame.h config.h
  106.  
  107. boxes.$(OBJ) : boxes.c povproto.h frame.h config.h
  108.  
  109. matrices.$(OBJ) : matrices.c povproto.h frame.h vector.h config.h
  110.  
  111. csg.$(OBJ) : csg.c povproto.h frame.h vector.h config.h
  112.  
  113. colour.$(OBJ) : colour.c povproto.h frame.h config.h
  114.  
  115. viewpnt.$(OBJ) : viewpnt.c povproto.h frame.h vector.h config.h
  116.  
  117. ray.$(OBJ) : ray.c povproto.h frame.h vector.h config.h
  118.  
  119. iff.$(OBJ) : iff.c povproto.h frame.h config.h
  120.  
  121. gif.$(OBJ) : gif.c povproto.h frame.h config.h
  122.  
  123. gifdecod.$(OBJ) : gifdecod.c povproto.h frame.h config.h
  124.  
  125. raw.$(OBJ) : raw.c povproto.h frame.h config.h
  126.  
  127. dump.$(OBJ) : dump.c povproto.h frame.h config.h
  128.  
  129. targa.$(OBJ) : targa.c povproto.h frame.h config.h
  130.  
  131. triangle.$(OBJ) : triangle.c povproto.h frame.h vector.h config.h
  132.  
  133. ibm.$(OBJ) : ibm.c povproto.h frame.h config.h
  134.  
  135. ztc386.$(OBJ) : ztc386.asm
  136.     masm -ml ztc386;
  137.