home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / DKBOS2.ZOO / os2ibmc.mak < prev    next >
Makefile  |  1992-07-18  |  3KB  |  107 lines

  1. # Makefile for DKB Ray Tracing Program by David Buck and Aaron Collins
  2. # This file is released to the public domain.
  3. #
  4. #
  5. # MAKE Macros and Such...
  6. #
  7.  
  8. #***************************************************************
  9. #*
  10. #*       OS/2 2.0 Makefile for use with IBM CSet/2 
  11. #*
  12. #*       By John G. Ham  and John E. Stone
  13. #*
  14. #*                  7/10/92    
  15. #*
  16. #*       Send questions to: johns@cs.umr.edu
  17. #*
  18. #***************************************************************
  19.  
  20. OBJ     = obj
  21.  
  22. MACHINE_OBJ    = os2.$(OBJ)
  23.  
  24. #* C compiler options, use /G3 for 386, /G4 for 486
  25. #* NOTE: code generated with /G3, /G4 will still run on either
  26. #* processor, but runs optimally on the one that the code is generated for.
  27. #* Use /Gf+ with care, make sure that you have enough stack for it,
  28. #* otherwise you'll get Fp-stack overflows..
  29. #* /Gf+ may also decrease fp accuracy.
  30. #* Do NOT use /O+ with this makefile, for some reason /O causes
  31. #* the compiler to bomb on quadrics.c   
  32. #* In addition to this, /O+ seems to cause a General Protection Fault
  33. #* during the parse of the input file(s).  This could possibly be
  34. #* avoided by compiling the .c files in a more individual fashion
  35. #* using /O+ only where it is safe.
  36.  
  37. CFLAGS=         /G4  -c
  38. CC=icc
  39. # Make's implicit rules for making a .o file from a .c file...
  40. #
  41. .c.obj :
  42.     $(CC) $(CFLAGS) $*.c
  43.  
  44.  
  45. DKBOBJS = trace.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  46.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  47.       prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ) dump.$(OBJ) \
  48.       colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) planes.$(OBJ) iff.$(OBJ) \
  49.       gif.$(OBJ) gifdecod.$(OBJ) triangle.$(OBJ) raw.$(OBJ) targa.$(OBJ) \
  50.           quartics.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  51.  
  52.  
  53. dkbtrace: $(DKBOBJS)
  54.           link386 @os2.lnk 
  55.  
  56. trace.$(OBJ) : trace.c dkbproto.h frame.h vector.h config.h
  57.  
  58. tokenize.$(OBJ) : tokenize.c dkbproto.h frame.h config.h
  59.  
  60. parse.$(OBJ) : parse.c dkbproto.h frame.h config.h
  61.  
  62. render.$(OBJ) : render.c dkbproto.h frame.h vector.h config.h
  63.  
  64. lighting.$(OBJ) : lighting.c dkbproto.h frame.h vector.h config.h
  65.  
  66. prioq.$(OBJ) : prioq.c dkbproto.h frame.h config.h
  67.  
  68. texture.$(OBJ) : texture.c dkbproto.h frame.h vector.h config.h
  69.  
  70. objects.$(OBJ) : objects.c dkbproto.h frame.h vector.h config.h
  71.  
  72. spheres.$(OBJ) : spheres.c dkbproto.h frame.h vector.h config.h
  73.  
  74. planes.$(OBJ) : planes.c dkbproto.h frame.h vector.h config.h
  75.  
  76. quartics.$(OBJ) : quartics.c dkbproto.h frame.h vector.h config.h
  77.  
  78. vect.$(OBJ) : vect.c dkbproto.h frame.h config.h
  79.  
  80. quadrics.$(OBJ) : quadrics.c dkbproto.h frame.h vector.h config.h
  81.  
  82. matrices.$(OBJ) : matrices.c dkbproto.h frame.h vector.h config.h
  83.  
  84. csg.$(OBJ) : csg.c dkbproto.h frame.h vector.h config.h
  85.  
  86. colour.$(OBJ) : colour.c dkbproto.h frame.h config.h
  87.  
  88. viewpnt.$(OBJ) : viewpnt.c dkbproto.h frame.h vector.h config.h
  89.  
  90. ray.$(OBJ) : ray.c dkbproto.h frame.h vector.h config.h
  91.  
  92. iff.$(OBJ) : iff.c dkbproto.h frame.h config.h
  93.  
  94. gif.$(OBJ) : gif.c dkbproto.h frame.h config.h
  95.  
  96. gifdecod.$(OBJ) : gifdecod.c dkbproto.h frame.h config.h
  97.  
  98. raw.$(OBJ) :    raw.c dkbproto.h frame.h config.h
  99.  
  100. triangle.$(OBJ) : triangle.c dkbproto.h frame.h vector.h config.h
  101.  
  102. amiga.$(OBJ) :    amiga.c dkbproto.h frame.h config.h
  103.  
  104. dump.$(OBJ) :    dump.c dkbproto.h frame.h config.h
  105.  
  106.  
  107.