home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / DKBOS2.ZOO / os2gcc.mak < prev    next >
Makefile  |  1992-07-18  |  3KB  |  111 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. #*    EXPERIMENTAL OS/2 2.0 Makefile for use with GCC 2.1 
  11. #*
  12. #*       By John G. Ham  and John E. Stone
  13. #*
  14. #*                  7/11/92    
  15. #*
  16. #*       Send questions to: johns@cs.umr.edu
  17. #*
  18. #***************************************************************
  19.  
  20. .SUFFIXES:     .exe .obj .c
  21.  
  22. OBJ     = obj
  23.  
  24. MACHINE_OBJ    = os2.$(OBJ)
  25.  
  26. #* NOTE:  I have used this makefile to successfully compile
  27. #*      dkbtrace version 2.12 with GCC 2.1 
  28. #*      HOWEVER, GCC 2.1 seems to have problems with file I/O 
  29. #*      specifically flushing the buffer in a reasonable amount
  30. #*      of time, or at all.  When the +d option is invoked,
  31. #*      the line messages are not flushed line by line as they 
  32. #*      should be, instead they build up, and all pop out at once.
  33. #*      Also the output .tga file doesn't get flushed before
  34. #*      it is closed most of the time, meaning that you lose
  35. #*      the last part of the picture most of the time.
  36. #*      This could be fixed by adding fflush() calls into 
  37. #*      some of the core parts of dkb, but I'd rather not hack up
  38. #*      David Buck's code, I would rather that someone fixes
  39. #*      The GCC compiler.
  40.  
  41. CFLAGS=    -c
  42. CC=gcc
  43. # Make's implicit rules for making a .o file from a .c file...
  44. #
  45. .c.obj :
  46.     $(CC) $(CFLAGS) $*.c
  47.  
  48.  
  49. DKBOBJS = trace.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  50.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  51.       prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ) dump.$(OBJ) \
  52.       colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) planes.$(OBJ) iff.$(OBJ) \
  53.       gif.$(OBJ) gifdecod.$(OBJ) triangle.$(OBJ) raw.$(OBJ) targa.$(OBJ) \
  54.           quartics.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  55.  
  56.  
  57. dkbtrace: $(DKBOBJS)
  58.     link386 @os2.lnk 
  59.  
  60. trace.$(OBJ) : trace.c dkbproto.h frame.h vector.h config.h
  61.  
  62. tokenize.$(OBJ) : tokenize.c dkbproto.h frame.h config.h
  63.  
  64. parse.$(OBJ) : parse.c dkbproto.h frame.h config.h
  65.  
  66. render.$(OBJ) : render.c dkbproto.h frame.h vector.h config.h
  67.  
  68. lighting.$(OBJ) : lighting.c dkbproto.h frame.h vector.h config.h
  69.  
  70. prioq.$(OBJ) : prioq.c dkbproto.h frame.h config.h
  71.  
  72. texture.$(OBJ) : texture.c dkbproto.h frame.h vector.h config.h
  73.  
  74. objects.$(OBJ) : objects.c dkbproto.h frame.h vector.h config.h
  75.  
  76. spheres.$(OBJ) : spheres.c dkbproto.h frame.h vector.h config.h
  77.  
  78. planes.$(OBJ) : planes.c dkbproto.h frame.h vector.h config.h
  79.  
  80. quartics.$(OBJ) : quartics.c dkbproto.h frame.h vector.h config.h
  81.  
  82. vect.$(OBJ) : vect.c dkbproto.h frame.h config.h
  83.  
  84. quadrics.$(OBJ) : quadrics.c dkbproto.h frame.h vector.h config.h
  85.  
  86. matrices.$(OBJ) : matrices.c dkbproto.h frame.h vector.h config.h
  87.  
  88. csg.$(OBJ) : csg.c dkbproto.h frame.h vector.h config.h
  89.  
  90. colour.$(OBJ) : colour.c dkbproto.h frame.h config.h
  91.  
  92. viewpnt.$(OBJ) : viewpnt.c dkbproto.h frame.h vector.h config.h
  93.  
  94. ray.$(OBJ) : ray.c dkbproto.h frame.h vector.h config.h
  95.  
  96. iff.$(OBJ) : iff.c dkbproto.h frame.h config.h
  97.  
  98. gif.$(OBJ) : gif.c dkbproto.h frame.h config.h
  99.  
  100. gifdecod.$(OBJ) : gifdecod.c dkbproto.h frame.h config.h
  101.  
  102. raw.$(OBJ) :    raw.c dkbproto.h frame.h config.h
  103.  
  104. triangle.$(OBJ) : triangle.c dkbproto.h frame.h vector.h config.h
  105.  
  106. amiga.$(OBJ) :    amiga.c dkbproto.h frame.h config.h
  107.  
  108. dump.$(OBJ) :    dump.c dkbproto.h frame.h config.h
  109.  
  110.  
  111.