home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GRAPHICS / rayshade.lzh / makefile.gcc < prev    next >
Makefile  |  1991-08-18  |  7KB  |  295 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  -V=$(RLEINC)
  49. #LFLAGS= $(CFLAGS) -m=20k -l=../$(RLELIB)
  50. CFLAGS = -mc68020 -m68881 -O -I$(RLEINC) -Dfputc=putc
  51. LFLAGS= $(CFLAGS) -s 20 -l../$(RLELIB)
  52. CC=gcc
  53. RDIR=rels_g
  54. .c.r:
  55.      $(CC) $(CFLAGS) -c -o $(RDIR)/$*.r $*.c
  56. #
  57. # Libraries:
  58. # BSD:          LIBS = $(RLELIB) -lm
  59. # SYSV:         LIBS = $(RLELIB) -lm
  60. # AZTEC C (amiga):
  61. #               LIBS = $(RLELIB) -lUnixl32 -lmal32 -lml32 -lcl32
  62. #
  63. # Multimax:     LIBS = $(RLELIB) -lm -lpp
  64. #
  65. # If you have fast versions of malloc/free available, use them
  66. # (e.g., -lmalloc on MIPS machines).
  67. #
  68. LIBS = -los9lib.l
  69. #
  70. # Uncomment the following line if you want the
  71. # fast malloc routines in malloc.c to be used.
  72. #
  73. #MALLOC.O = malloc.r
  74.  
  75. #
  76. # Change "raytrace.r" to "raytrace.lo" below if using Linda.
  77. #
  78. OBJ =           main.r ray_options.r setup.r input.r input_yacc.r input_lex.r\
  79.                 viewing.r object.r bounds.r voxels.r list.r surface.r\
  80.                 raymath.r matrix.r raytrace.r intersect.r grid.r box.r cone.r
  81. OBJ2 =          cylinder.r hf.r plane.r poly.r sphere.r superq.r triangle.r\
  82.                 texture.r noise.r shade.r atmosphere.r light.r outputp.r\
  83.                 memory.r version.r
  84.  
  85. $(SHADENAME): $(OBJ) $(OBJ2)
  86.         chd $(RDIR);$(CC) $(LFLAGS) -o ../$(SHADENAME) $(OBJ) $(OBJ2) $(LIBS)
  87.  
  88. input_yacc.c:   input_yacc.y
  89.                 yacc -d -l input_yacc.y
  90.                 move -r y.tab.c input_yacc.c
  91.  
  92. input_lex.c:    input_lex.l
  93.                 flex -t -L input_lex.l >-input_lex.c
  94.  
  95. main.r: main.c
  96. main.r: constants.h
  97. main.r: typedefs.h
  98. main.r: datatypes.h
  99. main.r: primobj.h
  100. main.r: defaults.h
  101. ray_options.r: ray_options.c
  102. ray_options.r: constants.h
  103. ray_options.r: typedefs.h
  104. ray_options.r: datatypes.h
  105. ray_options.r: primobj.h
  106. setup.r: setup.c
  107. setup.r: constants.h
  108. setup.r: defaults.h
  109. setup.r: typedefs.h
  110. setup.r: datatypes.h
  111. setup.r: primobj.h
  112. setup.r: funcdefs.h
  113. input.r: input.c
  114. input_yacc.r: input_yacc.c
  115. input_yacc.r: constants.h
  116. input_yacc.r: typedefs.h
  117. input_yacc.r: datatypes.h
  118. input_yacc.r: primobj.h
  119. input_yacc.r: funcdefs.h
  120. input_yacc.r: texture.h
  121. input_yacc.r: atmosphere.h
  122. input_lex.r: input_lex.c
  123. input_lex.r: typedefs.h
  124. input_lex.r: datatypes.h
  125. input_lex.r: primobj.h
  126. input_lex.r: y.tab.h
  127. viewing.r: viewing.c
  128. viewing.r: constants.h
  129. viewing.r: typedefs.h
  130. viewing.r: datatypes.h
  131. viewing.r: primobj.h
  132. viewing.r: funcdefs.h
  133. object.r: object.c
  134. object.r: constants.h
  135. object.r: typedefs.h
  136. object.r: datatypes.h
  137. object.r: primobj.h
  138. object.r: funcdefs.h
  139. object.r: texture.h
  140. bounds.r: bounds.c
  141. bounds.r: constants.h
  142. bounds.r: typedefs.h
  143. bounds.r: datatypes.h
  144. bounds.r: primobj.h
  145. bounds.r: funcdefs.h
  146. voxels.r: voxels.c
  147. voxels.r: constants.h
  148. voxels.r: typedefs.h
  149. voxels.r: datatypes.h
  150. voxels.r: primobj.h
  151. voxels.r: funcdefs.h
  152. list.r: list.c
  153. list.r: constants.h
  154. list.r: typedefs.h
  155. list.r: datatypes.h
  156. list.r: primobj.h
  157. list.r: funcdefs.h
  158. surface.r: surface.c
  159. surface.r: constants.h
  160. surface.r: typedefs.h
  161. surface.r: datatypes.h
  162. surface.r: primobj.h
  163. surface.r: funcdefs.h
  164. raymath.r: raymath.c
  165. raymath.r: typedefs.h
  166. raymath.r: datatypes.h
  167. raymath.r: primobj.h
  168. raymath.r: constants.h
  169. raymath.r: funcdefs.h
  170. matrix.r: matrix.c
  171. matrix.r: typedefs.h
  172. matrix.r: datatypes.h
  173. matrix.r: primobj.h
  174. matrix.r: constants.h
  175. matrix.r: funcdefs.h
  176. raytrace.r: raytrace.c
  177. raytrace.r: typedefs.h
  178. raytrace.r: datatypes.h
  179. raytrace.r: primobj.h
  180. raytrace.r: constants.h
  181. raytrace.r: funcdefs.h
  182. raytrace.r: raytrace.h
  183. intersect.r: intersect.c
  184. intersect.r: typedefs.h
  185. intersect.r: datatypes.h
  186. intersect.r: primobj.h
  187. intersect.r: funcdefs.h
  188. intersect.r: constants.h
  189. grid.r: grid.c
  190. grid.r: constants.h
  191. grid.r: typedefs.h
  192. grid.r: datatypes.h
  193. grid.r: primobj.h
  194. grid.r: funcdefs.h
  195. box.r: box.c
  196. box.r: constants.h
  197. box.r: typedefs.h
  198. box.r: datatypes.h
  199. box.r: primobj.h
  200. box.r: funcdefs.h
  201. cone.r: cone.c
  202. cone.r: typedefs.h
  203. cone.r: datatypes.h
  204. cone.r: primobj.h
  205. cone.r: funcdefs.h
  206. cone.r: constants.h
  207. cylinder.r: cylinder.c
  208. cylinder.r: typedefs.h
  209. cylinder.r: datatypes.h
  210. cylinder.r: primobj.h
  211. cylinder.r: funcdefs.h
  212. cylinder.r: constants.h
  213. hf.r: hf.c
  214. hf.r: typedefs.h
  215. hf.r: datatypes.h
  216. hf.r: primobj.h
  217. hf.r: funcdefs.h
  218. hf.r: constants.h
  219. plane.r: plane.c
  220. plane.r: constants.h
  221. plane.r: typedefs.h
  222. plane.r: datatypes.h
  223. plane.r: primobj.h
  224. plane.r: funcdefs.h
  225. poly.r: poly.c
  226. poly.r: constants.h
  227. poly.r: typedefs.h
  228. poly.r: datatypes.h
  229. poly.r: primobj.h
  230. poly.r: funcdefs.h
  231. sphere.r: sphere.c
  232. sphere.r: constants.h
  233. sphere.r: typedefs.h
  234. sphere.r: datatypes.h
  235. sphere.r: primobj.h
  236. sphere.r: funcdefs.h
  237. superq.r: superq.c
  238. superq.r: constants.h
  239. superq.r: typedefs.h
  240. superq.r: datatypes.h
  241. superq.r: primobj.h
  242. superq.r: funcdefs.h
  243. triangle.r: triangle.c
  244. triangle.r: constants.h
  245. triangle.r: typedefs.h
  246. triangle.r: datatypes.h
  247. triangle.r: primobj.h
  248. triangle.r: funcdefs.h
  249. texture.r: texture.c
  250. texture.r: constants.h
  251. texture.r: typedefs.h
  252. texture.r: datatypes.h
  253. texture.r: primobj.h
  254. texture.r: funcdefs.h
  255. texture.r: texture.h
  256. noise.r: noise.c
  257. noise.r: constants.h
  258. noise.r: typedefs.h
  259. noise.r: datatypes.h
  260. noise.r: primobj.h
  261. noise.r: funcdefs.h
  262. shade.r: shade.c
  263. shade.r: constants.h
  264. shade.r: typedefs.h
  265. shade.r: datatypes.h
  266. shade.r: primobj.h
  267. shade.r: funcdefs.h
  268. shade.r: atmosphere.h
  269. atmosphere.r: atmosphere.c
  270. atmosphere.r: typedefs.h
  271. atmosphere.r: datatypes.h
  272. atmosphere.r: primobj.h
  273. atmosphere.r: constants.h
  274. atmosphere.r: funcdefs.h
  275. atmosphere.r: atmosphere.h
  276. light.r: light.c
  277. light.r: typedefs.h
  278. light.r: datatypes.h
  279. light.r: primobj.h
  280. light.r: funcdefs.h
  281. light.r: constants.h
  282. outputp.r: outputp.c
  283. outputp.r: typedefs.h
  284. outputp.r: datatypes.h
  285. outputp.r: primobj.h
  286. outputp.r: constants.h
  287. outputp.r: funcdefs.h
  288. memory.r: memory.c
  289. memory.r: typedefs.h
  290. memory.r: datatypes.h
  291. memory.r: primobj.h
  292. memory.r: funcdefs.h
  293. version.r: version.c
  294. version.r: patchlevel.h
  295.