home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GRAPHICS / povosk.lzh / osk.mak < prev    next >
Text File  |  1993-02-03  |  3KB  |  105 lines

  1. -bo
  2. # OSK Makefile for Persistence of Vision Raytracer
  3. #
  4. # The exact options may depend on your compiler and system.  Feel free
  5. # to modify these as required.
  6.  
  7. CC      = cc
  8. OBJ     = r
  9. SYSTEM  = osk
  10. TEMP    = /dd/tmp
  11. RDIR    = RELS
  12. OFILE   = POVRay
  13. ODIR    = /DD/CMDS
  14.  
  15. # MDEFS are defines for the source file osk.c
  16.  
  17. # uncomment the following two lines if you don't have the cgfx.l
  18. #MDEFS   =
  19. #LFILES  =
  20.  
  21. # uncomment the following two lines if you DO have cgfx.l
  22. MDEFS   = -DKWINDOWS
  23. LFILES  = -l=/DD/LIB/cgfx.l
  24.  
  25. LFLAGS  = $(LFILES) -m=16k -I -e=1
  26. CFLAGS  = -qt=$(TEMP) -I
  27.  
  28. POVOBJS = bezier.$(OBJ) blob.$(OBJ) boxes.$(OBJ) colour.$(OBJ) csg.$(OBJ) \
  29.           dump.$(OBJ) gif.$(OBJ) gifdecod.$(OBJ) hfield.$(OBJ) iff.$(OBJ) \
  30.           lighting.$(OBJ) matrices.$(OBJ) objects.$(OBJ) $(SYSTEM).$(OBJ) \
  31.           parse.$(OBJ) planes.$(OBJ) point.$(OBJ) poly.$(OBJ) povray.$(OBJ) \
  32.           prioq.$(OBJ) quadrics.$(OBJ) raw.$(OBJ) ray.$(OBJ) render.$(OBJ) \
  33.           spheres.$(OBJ) targa.$(OBJ) texture.$(OBJ) tokenize.$(OBJ) \
  34.           triangle.$(OBJ) txtbump.$(OBJ) txtcolor.$(OBJ) txtmap.$(OBJ) \
  35.           txttest.$(OBJ) vect.$(OBJ) viewpnt.$(OBJ)
  36.  
  37. std_h   = frame.h config.h povproto.h
  38.  
  39. touch.date      : $(OFILE)
  40.     touch touch.date
  41.  
  42. # Build the POVRay module - OSK Linkage...
  43. $(OFILE)        : $(POVOBJS)
  44.     chd $(RDIR) ; $(CC) $(LFLAGS) $(POVOBJS) -f=$(ODIR)/$(OFILE)
  45.  
  46. # Make the osk.c .r file
  47. $(SYSTEM).$(OBJ): $(SYSTEM).c
  48.     $(CC) $(SYSTEM).c $(CFLAGS) $(MDEFS) -r=$(RDIR)
  49.  
  50. # Set up rule to build other .r files
  51. .c.r            :
  52.    $(CC) $*.c $(CFLAGS) -r=$(RDIR)
  53.  
  54. install         : 
  55.     copy -r MACHINE/oskconf.h  config.h
  56.     copy -r MACHINE/osk.mak    Makefile
  57.     copy -r MACHINE/osk.c      osk.c
  58.     copy -r MACHINE/tokenize.c tokenize.c
  59.  
  60. clean           :
  61.     del config.h touch.date
  62.     chd $(RDIR) ; del *.$(OBJ)
  63.     @echo All Clean now
  64.  
  65. archive         :
  66.     chd MACHINE ; lha -u povosk.lzh osk* tokenize.c Readme.osk
  67.  
  68. # Other file dependancies ...
  69. bezier.$(OBJ)   : bezier.c $(std_h) vector.h
  70. blob.$(OBJ)     : blob.c $(std_h) vector.h
  71. boxes.$(OBJ)    : boxes.c $(std_h) vector.h
  72. colour.$(OBJ)   : colour.c $(std_h) vector.h
  73. csg.$(OBJ)      : csg.c $(std_h) vector.h
  74. dump.$(OBJ)     : dump.c $(std_h)
  75. gif.$(OBJ)      : gif.c $(std_h)
  76. gifdecod.$(OBJ) : gifdecod.c $(std_h)
  77. hfield.$(OBJ)   : hfield.c $(std_h) vector.h
  78. iff.$(OBJ)      : iff.c $(std_h)
  79. lighting.$(OBJ) : lighting.c $(std_h) vector.h
  80. matrices.$(OBJ) : matrices.c $(std_h) vector.h
  81. objects.$(OBJ)  : objects.c $(std_h) vector.h
  82. parse.$(OBJ)    : parse.c $(std_h) vector.h
  83. planes.$(OBJ)   : planes.c $(std_h) vector.h
  84. point.$(OBJ)    : point.c $(std_h) vector.h
  85. poly.$(OBJ)     : poly.c $(std_h) vector.h
  86. povray.$(OBJ)   : povray.c $(std_h)
  87. prioq.$(OBJ)    : prioq.c $(std_h)
  88. quadrics.$(OBJ) : quadrics.c $(std_h) vector.h
  89. raw.$(OBJ)      : raw.c $(std_h)
  90. ray.$(OBJ)      : ray.c $(std_h) vector.h
  91. render.$(OBJ)   : render.c $(std_h) vector.h
  92. spheres.$(OBJ)  : spheres.c $(std_h) vector.h
  93. targa.$(OBJ)    : targa.c $(std_h)
  94. texture.$(OBJ)  : texture.c $(std_h) vector.h texture.h
  95. tokenize.$(OBJ) : tokenize.c $(std_h)
  96. triangle.$(OBJ) : triangle.c $(std_h) vector.h
  97. txtbump.$(OBJ)  : txtbump.c $(std_h) vector.h texture.h
  98. txtcolor.$(OBJ) : txtcolor.c $(std_h) vector.h texture.h
  99. txtmap.$(OBJ)   : txtmap.c $(std_h) vector.h texture.h
  100. txttest.$(OBJ)  : txttest.c $(std_h) vector.h texture.h
  101. vect.$(OBJ)     : vect.c $(std_h) vector.h
  102. viewpnt.$(OBJ)  : viewpnt.c $(std_h) vector.h
  103.  
  104. # end of makefile
  105.