home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / formats / uray / code / makefile < prev    next >
Makefile  |  1994-06-20  |  5KB  |  175 lines

  1. #/************************************************************************
  2. # *                                    *
  3. # *            Copyright (c) 1988, David B. Wecker            *
  4. # *                All Rights Reserved                *
  5. # *                                    *
  6. # * This file is part of DBW_uRAY                    *
  7. # *                                    *
  8. # * DBW_uRAY is distributed in the hope that it will be useful, but    *
  9. # * WITHOUT ANY WARRANTY. No author or distributor accepts        *
  10. # * responsibility to anyone for the consequences of using it or for    *
  11. # * whether it serves any particular purpose or works at all, unless    *
  12. # * he says so in writing. Refer to the DBW_uRAY General Public        *
  13. # * License for full details.                        *
  14. # *                                    *
  15. # * Everyone is granted permission to copy, modify and redistribute    *
  16. # * DBW_uRAY, but only under the conditions described in the        *
  17. # * DBW_uRAY General Public License. A copy of this license is        *
  18. # * supposed to have been given to you along with DBW_uRAY so you    *
  19. # * can know your rights and responsibilities. It should be in a file    *
  20. # * named LICENSE. Among other things, the copyright notice and this    *
  21. # * notice must be preserved on all copies.                *
  22. # ************************************************************************
  23. # *                                    *
  24. # * Authors:                                *
  25. # *    DBW - David B. Wecker                        *
  26. # *                                    *
  27. # * Versions:                                *
  28. # *    V1.0 881023 DBW    - First released version            *
  29. # *    V1.1 881110 DBW - Fixed scan coherence code            *
  30. # *    V1.2 881125 DBW - Removed ALL scan coherence code (useless)    *
  31. # *              added "fat" extent boxes            *
  32. # *    V1.3 881203 DBW - Fixed single precision TOLerances        *
  33. # *                                    *
  34. # ************************************************************************/
  35.  
  36.  
  37.  
  38. ############################################################################
  39. # Amiga floating point definitions (uncomment one set of FFLG,DBL,MLIB)
  40. ############################################################################
  41.  
  42. # Amiga 68000 single precision:
  43. FFLG    = +ff
  44. DBL    = 0
  45. MLIB    = -lm32
  46.  
  47. # Amiga 68000 double precision:
  48.  
  49. #FFLG    = +fi
  50. #DBL    = 1
  51. #MLIB    = -lma32
  52.  
  53. # Amiga 68000 68881:
  54.  
  55. #FFLG    = +f8
  56. #DBL    = 1
  57. #MLIB    = -lm832
  58.  
  59. # Amiga 68020 single precision:
  60.  
  61. #FFLG    = +2 +ff
  62. #DBL    = 0
  63. #MLIB    = -lm32
  64.  
  65. # Amiga 68020 double precision:
  66.  
  67. #FFLG    = +2 +fi
  68. #DBL    = 1
  69. #MLIB    = -lma32
  70.  
  71. # Amiga 68020 68881:
  72.  
  73. #FFLG    = +2 +f8
  74. #DBL    = 1
  75. #MLIB    = -lm832
  76.  
  77.  
  78. ############################################################################
  79. # Uncomment either the Amiga or Vax/Ultrix or Vax/VMS  definitions:
  80. ############################################################################
  81.  
  82.  
  83.  
  84. #############################################################################
  85. # Amiga:
  86. #############################################################################
  87.  
  88. #CC    = cc
  89. #LN    = ln
  90. #BFLAGS    = -E200 +L -n $(FFLG) -DDODOUBLE=$(DBL) -DAMIGA
  91. #IFLAGS    = +Iuray.pre
  92. #HFLAGS    = +Huray.pre
  93. #LFLAGS    = -g
  94. #CLIB    = -lc32
  95. #OBJS    = uray.o trace.o intersect.o texture.o support.o extent.o rkm.o \
  96. #      output.o random.o
  97. #CFLAGS    = $(BFLAGS) $(IFLAGS)
  98. #SRCS    = uray.c trace.c intersect.c texture.c support.c extent.c rkm.c \
  99. #      output.c random.c
  100. #
  101. #all : uray display
  102. #
  103. #uray : $(OBJS)
  104. #    $(LN) $(LFLAGS) -o $@ $(OBJS) $(MLIB) $(CLIB)
  105. #
  106. #uray.o : uray.c
  107. #    $(CC) $(BFLAGS) $(HFLAGS) $*.c
  108. #
  109. #display : display.c
  110. #    $(CC) $(BFLAGS) -o $*.o $*.c
  111. #    $(LN) $(LFLAGS) -o $@ $*.o $(MLIB) $(CLIB)
  112.  
  113. ############################################################################
  114. # Vax/Ultrix:
  115. ############################################################################
  116.  
  117. CC    = cc
  118. LN    = cc
  119. CFLAGS    = -g -DDODOUBLE=1 -DU__X -DVAXBYTES
  120. LFLAGS    = -g
  121. MLIB    = -lm
  122. KITDIR    = /usr/users/wecker/kits/uray
  123. OBJS    = uray.o trace.o intersect.o texture.o support.o extent.o rkm.o \
  124.       output.o random.o
  125. SRCS    = uray.c trace.c intersect.c texture.c support.c extent.c rkm.c \
  126.       output.c random.c
  127.  
  128. uray : $(OBJS)
  129.     $(LN) $(LFLAGS) -o $@ $(OBJS) $(MLIB)
  130.  
  131. kit :    version tar arc shar uuencode
  132.     mv uray.tar   $(KITDIR)
  133.     mv uray.arc   $(KITDIR)
  134.     mv uray.shar  $(KITDIR)
  135.     mv uray_??.uu $(KITDIR)
  136.  
  137. version :
  138.     csh -fe Make.version LICENSE uray.h $(SRCS) display.c uray.dat
  139.  
  140. tar :
  141.     tar cvf uray.tar README LICENSE Makefile Make.version uray.h $(SRCS) \
  142.         display.c uray.dat uray_??
  143.     compress uray.tar
  144.  
  145. arc :
  146.     arc a uray  README LICENSE Makefile Make.version uray.h $(SRCS) \
  147.         display.c uray.dat uray_??
  148.  
  149. shar :
  150.     shar README LICENSE Makefile Make.version uray.h $(SRCS) display.c \
  151.         uray.dat > uray.shar
  152.  
  153. uuencode :
  154.     uuencode uray_2c uray_2c > uray_2c.uu
  155.     uuencode uray_2d uray_2d > uray_2d.uu
  156.     uuencode uray_2s uray_2s > uray_2s.uu
  157.     uuencode uray_cp uray_cp > uray_cp.uu
  158.     uuencode uray_dp uray_dp > uray_dp.uu
  159.     uuencode uray_sp uray_sp > uray_sp.uu
  160.  
  161. #############################################################################
  162. # Vax/VMS:
  163. #############################################################################
  164.  
  165. #CC    = cc
  166. #LN    = link
  167. #CFLAGS    = /debug/define=(DDODOUBLE=1,VMS,VAXBYTES)
  168. #LFLAGS    =
  169. #CLIB    = ,SYS$LIBRARY:VAXCRTL/LIB
  170. #OBJS    = uray.obj,trace.obj,intersect.obj,texture.obj,support.obj,-
  171. #      extent.obj,rkm.obj,output.obj,random.obj
  172. #uray.exe : $(OBJS)
  173. #    $(LN)$(LFLAGS)/exe=$@ $(OBJS)$(CLIB)
  174.  
  175.