home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GRAPHICS / rayshade.lzh / makefile < prev    next >
Makefile  |  1991-09-06  |  7KB  |  291 lines

  1. #
  2. # Makefile for rayshade.
  3. #
  4. # Craig Kolb
  5. #
  6. # $Id: Makefile,v 3.0.1.1 90/03/07 21:38:06 craig Exp $
  7. #
  8. # If you are using the Utah Raster Toolkit, you must set RLELIB and RLEINC
  9. # to be the name of the Utah Raster library and include file directory.
  10. #
  11. # If you are not using the Utah Raster Toolkit, you must compile using
  12. # -DNORLE (see below). In this case, you should comment out the next two
  13. # definitions.
  14. #
  15. RLELIB = ../urt/lib/librle.l
  16. RLEINC = ../urt/include
  17. #
  18. # Linda compiler, if appropriate.
  19. #
  20. #LCC = /homes/systems/carriero/linda/v2.2/bin/clc
  21. #
  22. # Bin directory and executable name.
  23. #
  24. BINDIR = /h0/c/ray
  25. SHADENAME = rayshade
  26. #
  27. # Compiler flags.
  28. #
  29. # GENERIC (BSD):        CFLAGS = -I$(RLEINC)
  30. # SYSV:                 add -DSYSV
  31. #
  32. # Multimax (shared memory):
  33. #                       add -DMULTIMAX -DSHAREDMEM
  34. # Linda:                add -DLINDA (and move raytrace.c to raytrace.cl)
  35. #
  36. # Long ago, rayshade was compiled on the Amiga using Aztec C and:
  37. #                       CFLAGS = +fi +C +D +L -DAZTEC
  38. #
  39. # If you are not using the Utah Raster toolkit, add -DNORLE
  40. # If your compiler doesn't understand the void type, add -DNOVOID
  41. #
  42. # If your compiler has trouble with the definitions of
  43. # vecadd(), veccomb(), etc. in funcdefs.h, compile with -DDUMB_CPP
  44. #
  45. # Be sure to add any necessary floating-point hardware switches.
  46. #
  47. #CFLAGS =  -q -t=/r0 -Dfputc=putc -k2wcwf -V=$(RLEINC)
  48. CFLAGS =  -q -t=/r0 -Dfputc=putc -k2wcw   -DNORLE
  49. LFLAGS= $(CFLAGS) -m=20k
  50. CC=cc 
  51. RDIR=rels
  52. #
  53. # Libraries:
  54. # BSD:          LIBS = $(RLELIB) -lm
  55. # SYSV:         LIBS = $(RLELIB) -lm
  56. # AZTEC C (amiga):
  57. #               LIBS = $(RLELIB) -lUnixl32 -lmal32 -lml32 -lcl32
  58. #
  59. # Multimax:     LIBS = $(RLELIB) -lm -lpp
  60. #
  61. # If you have fast versions of malloc/free available, use them
  62. # (e.g., -lmalloc on MIPS machines).
  63. #
  64. LIBS = -l=/dd/lib/os9lib.l
  65. #
  66. # Uncomment the following line if you want the
  67. # fast malloc routines in malloc.c to be used.
  68. #
  69. #MALLOC.O = malloc.r
  70.  
  71. #
  72. # Change "raytrace.r" to "raytrace.lo" below if using Linda.
  73. #
  74. OBJ =           main.r ray_options.r setup.r input.r input_yacc.r input_lex.r\
  75.                 viewing.r object.r bounds.r voxels.r list.r surface.r\
  76.                 raymath.r matrix.r raytrace.r intersect.r grid.r box.r cone.r
  77. OBJ2 =          cylinder.r hf.r plane.r poly.r sphere.r superq.r triangle.r\
  78.                 texture.r noise.r shade.r atmosphere.r light.r outputp.r\
  79.                 memory.r version.r
  80.  
  81. $(SHADENAME): $(OBJ) $(OBJ2)
  82.         chd $(RDIR);$(CC) $(LFLAGS) -fd=../$(SHADENAME) $(OBJ) $(OBJ2) $(LIBS)
  83.  
  84. input_yacc.c:   input_yacc.y
  85.                 yacc -d -l input_yacc.y
  86.                 move -r y.tab.c input_yacc.c
  87.  
  88. input_lex.c:    input_lex.l
  89.                 flex -t -L input_lex.l >-input_lex.c
  90.  
  91. main.r: main.c
  92. main.r: constants.h
  93. main.r: typedefs.h
  94. main.r: datatypes.h
  95. main.r: primobj.h
  96. main.r: defaults.h
  97. ray_options.r: ray_options.c
  98. ray_options.r: constants.h
  99. ray_options.r: typedefs.h
  100. ray_options.r: datatypes.h
  101. ray_options.r: primobj.h
  102. setup.r: setup.c
  103. setup.r: constants.h
  104. setup.r: defaults.h
  105. setup.r: typedefs.h
  106. setup.r: datatypes.h
  107. setup.r: primobj.h
  108. setup.r: funcdefs.h
  109. input.r: input.c
  110. input_yacc.r: input_yacc.c
  111. input_yacc.r: constants.h
  112. input_yacc.r: typedefs.h
  113. input_yacc.r: datatypes.h
  114. input_yacc.r: primobj.h
  115. input_yacc.r: funcdefs.h
  116. input_yacc.r: texture.h
  117. input_yacc.r: atmosphere.h
  118. input_lex.r: input_lex.c
  119. input_lex.r: typedefs.h
  120. input_lex.r: datatypes.h
  121. input_lex.r: primobj.h
  122. input_lex.r: y.tab.h
  123. viewing.r: viewing.c
  124. viewing.r: constants.h
  125. viewing.r: typedefs.h
  126. viewing.r: datatypes.h
  127. viewing.r: primobj.h
  128. viewing.r: funcdefs.h
  129. object.r: object.c
  130. object.r: constants.h
  131. object.r: typedefs.h
  132. object.r: datatypes.h
  133. object.r: primobj.h
  134. object.r: funcdefs.h
  135. object.r: texture.h
  136. bounds.r: bounds.c
  137. bounds.r: constants.h
  138. bounds.r: typedefs.h
  139. bounds.r: datatypes.h
  140. bounds.r: primobj.h
  141. bounds.r: funcdefs.h
  142. voxels.r: voxels.c
  143. voxels.r: constants.h
  144. voxels.r: typedefs.h
  145. voxels.r: datatypes.h
  146. voxels.r: primobj.h
  147. voxels.r: funcdefs.h
  148. list.r: list.c
  149. list.r: constants.h
  150. list.r: typedefs.h
  151. list.r: datatypes.h
  152. list.r: primobj.h
  153. list.r: funcdefs.h
  154. surface.r: surface.c
  155. surface.r: constants.h
  156. surface.r: typedefs.h
  157. surface.r: datatypes.h
  158. surface.r: primobj.h
  159. surface.r: funcdefs.h
  160. raymath.r: raymath.c
  161. raymath.r: typedefs.h
  162. raymath.r: datatypes.h
  163. raymath.r: primobj.h
  164. raymath.r: constants.h
  165. raymath.r: funcdefs.h
  166. matrix.r: matrix.c
  167. matrix.r: typedefs.h
  168. matrix.r: datatypes.h
  169. matrix.r: primobj.h
  170. matrix.r: constants.h
  171. matrix.r: funcdefs.h
  172. raytrace.r: raytrace.c
  173. raytrace.r: typedefs.h
  174. raytrace.r: datatypes.h
  175. raytrace.r: primobj.h
  176. raytrace.r: constants.h
  177. raytrace.r: funcdefs.h
  178. raytrace.r: raytrace.h
  179. intersect.r: intersect.c
  180. intersect.r: typedefs.h
  181. intersect.r: datatypes.h
  182. intersect.r: primobj.h
  183. intersect.r: funcdefs.h
  184. intersect.r: constants.h
  185. grid.r: grid.c
  186. grid.r: constants.h
  187. grid.r: typedefs.h
  188. grid.r: datatypes.h
  189. grid.r: primobj.h
  190. grid.r: funcdefs.h
  191. box.r: box.c
  192. box.r: constants.h
  193. box.r: typedefs.h
  194. box.r: datatypes.h
  195. box.r: primobj.h
  196. box.r: funcdefs.h
  197. cone.r: cone.c
  198. cone.r: typedefs.h
  199. cone.r: datatypes.h
  200. cone.r: primobj.h
  201. cone.r: funcdefs.h
  202. cone.r: constants.h
  203. cylinder.r: cylinder.c
  204. cylinder.r: typedefs.h
  205. cylinder.r: datatypes.h
  206. cylinder.r: primobj.h
  207. cylinder.r: funcdefs.h
  208. cylinder.r: constants.h
  209. hf.r: hf.c
  210. hf.r: typedefs.h
  211. hf.r: datatypes.h
  212. hf.r: primobj.h
  213. hf.r: funcdefs.h
  214. hf.r: constants.h
  215. plane.r: plane.c
  216. plane.r: constants.h
  217. plane.r: typedefs.h
  218. plane.r: datatypes.h
  219. plane.r: primobj.h
  220. plane.r: funcdefs.h
  221. poly.r: poly.c
  222. poly.r: constants.h
  223. poly.r: typedefs.h
  224. poly.r: datatypes.h
  225. poly.r: primobj.h
  226. poly.r: funcdefs.h
  227. sphere.r: sphere.c
  228. sphere.r: constants.h
  229. sphere.r: typedefs.h
  230. sphere.r: datatypes.h
  231. sphere.r: primobj.h
  232. sphere.r: funcdefs.h
  233. superq.r: superq.c
  234. superq.r: constants.h
  235. superq.r: typedefs.h
  236. superq.r: datatypes.h
  237. superq.r: primobj.h
  238. superq.r: funcdefs.h
  239. triangle.r: triangle.c
  240. triangle.r: constants.h
  241. triangle.r: typedefs.h
  242. triangle.r: datatypes.h
  243. triangle.r: primobj.h
  244. triangle.r: funcdefs.h
  245. texture.r: texture.c
  246. texture.r: constants.h
  247. texture.r: typedefs.h
  248. texture.r: datatypes.h
  249. texture.r: primobj.h
  250. texture.r: funcdefs.h
  251. texture.r: texture.h
  252. noise.r: noise.c
  253. noise.r: constants.h
  254. noise.r: typedefs.h
  255. noise.r: datatypes.h
  256. noise.r: primobj.h
  257. noise.r: funcdefs.h
  258. shade.r: shade.c
  259. shade.r: constants.h
  260. shade.r: typedefs.h
  261. shade.r: datatypes.h
  262. shade.r: primobj.h
  263. shade.r: funcdefs.h
  264. shade.r: atmosphere.h
  265. atmosphere.r: atmosphere.c
  266. atmosphere.r: typedefs.h
  267. atmosphere.r: datatypes.h
  268. atmosphere.r: primobj.h
  269. atmosphere.r: constants.h
  270. atmosphere.r: funcdefs.h
  271. atmosphere.r: atmosphere.h
  272. light.r: light.c
  273. light.r: typedefs.h
  274. light.r: datatypes.h
  275. light.r: primobj.h
  276. light.r: funcdefs.h
  277. light.r: constants.h
  278. outputp.r: outputp.c
  279. outputp.r: typedefs.h
  280. outputp.r: datatypes.h
  281. outputp.r: primobj.h
  282. outputp.r: constants.h
  283. outputp.r: funcdefs.h
  284. memory.r: memory.c
  285. memory.r: typedefs.h
  286. memory.r: datatypes.h
  287. memory.r: primobj.h
  288. memory.r: funcdefs.h
  289. version.r: version.c
  290. version.r: patchlevel.h
  291.