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

  1. # Makefile for Persistence of Vision Raytracing Program
  2. # This file is released to the public domain.
  3. # For use with Borland and Turbo C/C++ on the IBM-PC
  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. #       -1 enables 80186
  46. #       -2 enables 80286
  47. !if $d(CPU86)
  48. CPU    =-1-
  49. !elif $d(CPU186)
  50. CPU    =-1 -a
  51. !elif $d(CPU286)
  52. CPU    =-2 -a
  53. !else
  54. !error Must define a cpu type
  55. !endif
  56.  
  57. !if $d(FPU287)
  58. FPU    =-f287
  59. FPULIB    =fp87
  60. !elif $d(FPU87)
  61. FPU    =-f87
  62. FPULIB    =fp87
  63. !else
  64. FPU    =-f
  65. FPULIB    =emu
  66. !endif
  67.  
  68. !if $d(DEBUG)
  69. CDEBUG    =-v
  70. LDEBUG    =-llv
  71. !else
  72. CDEBUG    =-v-
  73. LDEBUG    =
  74. !endif
  75.  
  76. # Compiler flags common to all CPUs & FPUs
  77. #
  78. #  -ml  large memory model
  79. #  -r   use registers
  80. #  -K   default character unsigned
  81. #  -G   optimize for speed rather than size
  82. #  -O   optimize jumps
  83. #  -Z   optimize register use
  84. #  -d   merge duplicate strings
  85. #  -c   compile only
  86. #  -N-  stack overflow check off
  87. #  -B   compile via assembly
  88. #  -k-  standard stack on all calls off
  89.  
  90. FIXED    =$(CC) -ml -r -K -G -O -Z -d -c -N- -k-
  91.  
  92. CFLAGS    =$(FIXED) $(CDEBUG) $(CPU) $(FPU)
  93.  
  94. #***************************************************************
  95. #*
  96. #*                          Common  Stuff
  97. #*
  98. #***************************************************************
  99.  
  100. POVOBJS = povray.obj render.obj tokenize.obj parse.obj \
  101.       spheres.obj quadrics.obj lighting.obj \
  102.       prioq.obj texture.obj matrices.obj csg.obj hfield.obj \
  103.       txtcolor.obj txtbump.obj txtmap.obj txttest.obj \
  104.       colour.obj viewpnt.obj ray.obj planes.obj iff.obj \
  105.       gif.obj gifdecod.obj triangle.obj raw.obj dump.obj \
  106.       targa.obj poly.obj bezier.obj vect.obj objects.obj \
  107.           point.obj boxes.obj blob.obj ibm.obj ai.lib
  108.  
  109. # Linkage: Use compiler to invoke TLINK
  110. # NOTE: AUTODEPEND doesn't work here. Only on compile.
  111. #
  112. povray.exe : $(POVOBJS)
  113.     $(CFLAGS) -c- $(LDEBUG) @ibmbc.lnk
  114. #
  115. # Specific module/header dependencies for POV-Ray are not shown because
  116. # the .autodepend feature takes care of it.
  117. #
  118.  
  119. .AUTODEPEND
  120.  
  121. .c.obj :
  122.  $(CFLAGS) $*
  123.  
  124.