home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povsrc20 / ibmbc.mak < prev    next >
Makefile  |  1993-08-15  |  3KB  |  121 lines

  1. # Makefile for Persistence of Vision Raytracing Program
  2. # This file is released to the public domain.
  3. #
  4. # This make file requires a Borland MAKE utility which supports
  5. # conditional directives and supports the .autodepend directive.
  6. # it should work for most any Turbo or Borland C or C++
  7. #
  8. # Written by Chris Young CIS:[76702,1655]
  9.  
  10. #***************************************************************
  11. #*
  12. #*                      User Defined Options
  13. #*
  14. #***************************************************************
  15. #
  16. # Enable each option below with MAKE -DOPTION or by uncommenting
  17. # the appropriate line.
  18. #
  19. # Select only one CPU type
  20. #CPU86    =1
  21. #CPU186    =1
  22. CPU286    =1
  23. #
  24. # Select only one FPU type
  25. #FPU87    =1
  26. FPU287    =1
  27. #
  28. # Debug info included
  29. #DEBUG    =1
  30. #
  31.  
  32. # Select compiler by commenting or uncommenting
  33. #  Switches
  34. #   -P-C        Turns C++ off, uses .C extension, not .CPP
  35. #CC    =TCC
  36. #CC    =BCCX -P-C
  37. CC    =BCC -P-C
  38.  
  39. #***************************************************************
  40. #*  Compiler & Linker Options set automatically from User
  41. #*  Defined Switches above
  42. #***************************************************************
  43.  
  44. # NOTE: -a is word align
  45. !if $d(CPU86)
  46. CPU    =-1-
  47. !elif $d(CPU186)
  48. CPU    =-1 -a
  49. !elif $d(CPU286)
  50. CPU    =-2 -a
  51. !else
  52. !error Must define a cpu type
  53. !endif
  54.  
  55. !if $d(FPU287)
  56. FPU    =-f287
  57. FPULIB    =fp87
  58. !elif $d(FPU87)
  59. FPU    =-f87
  60. FPULIB    =fp87
  61. !else
  62. FPU    =-f
  63. FPULIB    =emu
  64. !endif
  65.  
  66. !if $d(DEBUG)
  67. CDEBUG    =-v
  68. LDEBUG    =-llv
  69. !else
  70. CDEBUG    =-v-
  71. LDEBUG    =
  72. !endif
  73.  
  74. # Compiler flags common to all CPUs & FPUs
  75. #
  76. #  -ml  large memory model
  77. #  -r   use registers
  78. #  -K   default character unsigned
  79. #  -G   optimize for speed rather than size
  80. #  -O   optimize jumps
  81. #  -Z   optimize register use
  82. #  -d   merge duplicate strings
  83. #  -c   compile only
  84. #  -N-  stack overflow check off
  85. #  -B   compile via assembly
  86. #  -k-  standard stack on all calls off
  87.  
  88. FIXED    =$(CC) -ml -r -K -G -O -Z -d -c -N- -k-
  89.  
  90. CFLAGS    =$(FIXED) $(CDEBUG) $(CPU) $(FPU)
  91.  
  92. #***************************************************************
  93. #*
  94. #*                          Common  Stuff
  95. #*
  96. #***************************************************************
  97.  
  98. POVOBJS    = povray.obj bezier.obj blob.obj bound.obj boxes.obj camera.obj \
  99.           colour.obj cones.obj csg.obj discs.obj dump.obj express.obj \
  100.           gifdecod.obj gif.obj hfield.obj ibm.obj iff.obj image.obj \
  101.           lighting.obj matrices.obj normal.obj objects.obj parse.obj \
  102.           pigment.obj planes.obj point.obj poly.obj quadrics.obj raw.obj \
  103.           ray.obj render.obj spheres.obj targa.obj texture.obj tokenize.obj \
  104.           triangle.obj txttest.obj vect.obj ai.lib
  105.  
  106. # Linkage: Use BCC to invoke TLINK
  107. # NOTE: AUTODEPEND doesn't work here.
  108. #
  109. povray.exe : $(POVOBJS)
  110.     $(CFLAGS) -c- $(LDEBUG) @ibmbc.lnk
  111. #
  112. # Specific module/header dependencies for POV-Ray are not shown because
  113. # the .autodepend feature takes care of it.
  114. #
  115.  
  116. .AUTODEPEND
  117.  
  118. .c.obj :
  119.  $(CFLAGS) $*
  120.  
  121.