home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GRAPHICS / rayshade.lzh / Makefile.orig < prev    next >
Makefile  |  1990-08-31  |  8KB  |  332 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 = /usr/u/utah/lib/librle.a
  16. RLEINC = /usr/u/utah/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 = /usr/u/craig/bin
  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. # If you are not using the Utah Raster toolkit, add -DNORLE
  39. # If your compiler doesn't understand the void type, add -DNOVOID
  40. #
  41. # If your compiler has trouble with the definitions of
  42. # vecadd(), veccomb(), etc. in funcdefs.h, compile with -DDUMB_CPP
  43. #
  44. # Be sure to add any necessary floating-point hardware switches.
  45. CFLAGS = -I$(RLEINC) -O -DSYSV
  46. #
  47. # Libraries:
  48. # BSD:        LIBS = $(RLELIB) -lm
  49. # SYSV:        LIBS = $(RLELIB) -lm
  50. # AZTEC C (amiga):
  51. #        LIBS = $(RLELIB) -lUnixl32 -lmal32 -lml32 -lcl32
  52. #
  53. # Multimax:    LIBS = $(RLELIB) -lm -lpp
  54. #
  55. # If you have fast versions of malloc/free available, use them
  56. # (e.g., -lmalloc on MIPS machines).
  57. #
  58. LIBS = $(RLELIB) -lm -lmalloc
  59. #
  60. # Uncomment the following line if you want the
  61. # fast malloc routines in malloc.c to be used.
  62. #
  63. #MALLOC.O = malloc.o
  64.  
  65. #
  66. # Change "raytrace.o" to "raytrace.lo" below if using Linda.
  67. #
  68. OBJ =         main.o ray_options.o setup.o input.o input_yacc.o input_lex.o \
  69.         viewing.o object.o bounds.o voxels.o list.o surface.o \
  70.         raymath.o matrix.o raytrace.o intersect.o grid.o box.o cone.o \
  71.         cylinder.o hf.o plane.o poly.o sphere.o superq.o triangle.o \
  72.         texture.o noise.o shade.o atmosphere.o light.o outputp.o \
  73.         memory.o version.o $(MALLOC.O)
  74.  
  75. SRC =         main.c ray_options.c setup.c input.c input_yacc.c input_lex.c \
  76.         viewing.c object.c bounds.c voxels.c list.c surface.c \
  77.         raymath.c matrix.c raytrace.c intersect.c grid.c box.c cone.c \
  78.         cylinder.c hf.c plane.c poly.c sphere.c superq.c triangle.c \
  79.         texture.c noise.c shade.c atmosphere.c light.c outputp.c \
  80.         memory.c version.c
  81. #
  82. # Change $(CC) below to $(LCC) if using Linda.
  83. #
  84. $(SHADENAME): $(OBJ)
  85.     $(CC) $(CFLAGS) -o $(SHADENAME) $(OBJ) $(LIBS)
  86.  
  87. #
  88. # Uncomment the following rule if using Linda.
  89. #
  90. #raytrace.lo: raytrace.cl
  91. #    $(LCC) $(CFLAGS) -c raytrace.cl
  92.  
  93. #
  94. # End of configuration section
  95. #
  96. install:    $(SHADENAME)
  97.         mv $(SHADENAME) $(BINDIR)/$(SHADENAME)
  98.  
  99. input_yacc.c:    input_yacc.y
  100.         yacc -d input_yacc.y
  101.         mv y.tab.c input_yacc.c
  102.  
  103. input_lex.c:    input_lex.l
  104.         lex -t input_lex.l > input_lex.c
  105.  
  106. clean:
  107.     @ /bin/rm -f $(OBJ) core
  108.  
  109. realclean:
  110.     @ /bin/rm -f $(OBJ) core input_lex.c input_yacc.c y.tab.h
  111.  
  112. lint:
  113.     lint $(CFLAGS) $(SRC)
  114.  
  115. depend:
  116.     (sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \
  117.      cc -M ${CFLAGS} ${SRC} | sed 's/\.\///; /\//d' \
  118.     ) >Makefile.new
  119.     cp Makefile Makefile.bak
  120.     cp Makefile.new Makefile
  121.     rm -f Makefile.new
  122.  
  123. archive:
  124.     (cd .. ;  tar cvf ../rayshade.arch.tar .)
  125.  
  126. kit:
  127.     (cd .. ; makekit -iPACKING_LIST -oMANIFEST)
  128.  
  129. # DO NOT DELETE THIS LINE
  130. main.o: main.c
  131. main.o: constants.h
  132. main.o: typedefs.h
  133. main.o: datatypes.h
  134. main.o: primobj.h
  135. main.o: defaults.h
  136. ray_options.o: ray_options.c
  137. ray_options.o: constants.h
  138. ray_options.o: typedefs.h
  139. ray_options.o: datatypes.h
  140. ray_options.o: primobj.h
  141. setup.o: setup.c
  142. setup.o: constants.h
  143. setup.o: defaults.h
  144. setup.o: typedefs.h
  145. setup.o: datatypes.h
  146. setup.o: primobj.h
  147. setup.o: funcdefs.h
  148. input.o: input.c
  149. input_yacc.o: input_yacc.c
  150. input_yacc.o: constants.h
  151. input_yacc.o: typedefs.h
  152. input_yacc.o: datatypes.h
  153. input_yacc.o: primobj.h
  154. input_yacc.o: funcdefs.h
  155. input_yacc.o: texture.h
  156. input_yacc.o: atmosphere.h
  157. input_lex.o: input_lex.c
  158. input_lex.o: typedefs.h
  159. input_lex.o: datatypes.h
  160. input_lex.o: primobj.h
  161. input_lex.o: y.tab.h
  162. viewing.o: viewing.c
  163. viewing.o: constants.h
  164. viewing.o: typedefs.h
  165. viewing.o: datatypes.h
  166. viewing.o: primobj.h
  167. viewing.o: funcdefs.h
  168. object.o: object.c
  169. object.o: constants.h
  170. object.o: typedefs.h
  171. object.o: datatypes.h
  172. object.o: primobj.h
  173. object.o: funcdefs.h
  174. object.o: texture.h
  175. bounds.o: bounds.c
  176. bounds.o: constants.h
  177. bounds.o: typedefs.h
  178. bounds.o: datatypes.h
  179. bounds.o: primobj.h
  180. bounds.o: funcdefs.h
  181. voxels.o: voxels.c
  182. voxels.o: constants.h
  183. voxels.o: typedefs.h
  184. voxels.o: datatypes.h
  185. voxels.o: primobj.h
  186. voxels.o: funcdefs.h
  187. list.o: list.c
  188. list.o: constants.h
  189. list.o: typedefs.h
  190. list.o: datatypes.h
  191. list.o: primobj.h
  192. list.o: funcdefs.h
  193. surface.o: surface.c
  194. surface.o: constants.h
  195. surface.o: typedefs.h
  196. surface.o: datatypes.h
  197. surface.o: primobj.h
  198. surface.o: funcdefs.h
  199. raymath.o: raymath.c
  200. raymath.o: typedefs.h
  201. raymath.o: datatypes.h
  202. raymath.o: primobj.h
  203. raymath.o: constants.h
  204. raymath.o: funcdefs.h
  205. matrix.o: matrix.c
  206. matrix.o: typedefs.h
  207. matrix.o: datatypes.h
  208. matrix.o: primobj.h
  209. matrix.o: constants.h
  210. matrix.o: funcdefs.h
  211. raytrace.o: raytrace.c
  212. raytrace.o: typedefs.h
  213. raytrace.o: datatypes.h
  214. raytrace.o: primobj.h
  215. raytrace.o: constants.h
  216. raytrace.o: funcdefs.h
  217. raytrace.o: raytrace.h
  218. intersect.o: intersect.c
  219. intersect.o: typedefs.h
  220. intersect.o: datatypes.h
  221. intersect.o: primobj.h
  222. intersect.o: funcdefs.h
  223. intersect.o: constants.h
  224. grid.o: grid.c
  225. grid.o: constants.h
  226. grid.o: typedefs.h
  227. grid.o: datatypes.h
  228. grid.o: primobj.h
  229. grid.o: funcdefs.h
  230. box.o: box.c
  231. box.o: constants.h
  232. box.o: typedefs.h
  233. box.o: datatypes.h
  234. box.o: primobj.h
  235. box.o: funcdefs.h
  236. cone.o: cone.c
  237. cone.o: typedefs.h
  238. cone.o: datatypes.h
  239. cone.o: primobj.h
  240. cone.o: funcdefs.h
  241. cone.o: constants.h
  242. cylinder.o: cylinder.c
  243. cylinder.o: typedefs.h
  244. cylinder.o: datatypes.h
  245. cylinder.o: primobj.h
  246. cylinder.o: funcdefs.h
  247. cylinder.o: constants.h
  248. hf.o: hf.c
  249. hf.o: typedefs.h
  250. hf.o: datatypes.h
  251. hf.o: primobj.h
  252. hf.o: funcdefs.h
  253. hf.o: constants.h
  254. plane.o: plane.c
  255. plane.o: constants.h
  256. plane.o: typedefs.h
  257. plane.o: datatypes.h
  258. plane.o: primobj.h
  259. plane.o: funcdefs.h
  260. poly.o: poly.c
  261. poly.o: constants.h
  262. poly.o: typedefs.h
  263. poly.o: datatypes.h
  264. poly.o: primobj.h
  265. poly.o: funcdefs.h
  266. sphere.o: sphere.c
  267. sphere.o: constants.h
  268. sphere.o: typedefs.h
  269. sphere.o: datatypes.h
  270. sphere.o: primobj.h
  271. sphere.o: funcdefs.h
  272. superq.o: superq.c
  273. superq.o: constants.h
  274. superq.o: typedefs.h
  275. superq.o: datatypes.h
  276. superq.o: primobj.h
  277. superq.o: funcdefs.h
  278. triangle.o: triangle.c
  279. triangle.o: constants.h
  280. triangle.o: typedefs.h
  281. triangle.o: datatypes.h
  282. triangle.o: primobj.h
  283. triangle.o: funcdefs.h
  284. texture.o: texture.c
  285. texture.o: constants.h
  286. texture.o: typedefs.h
  287. texture.o: datatypes.h
  288. texture.o: primobj.h
  289. texture.o: funcdefs.h
  290. texture.o: texture.h
  291. noise.o: noise.c
  292. noise.o: constants.h
  293. noise.o: typedefs.h
  294. noise.o: datatypes.h
  295. noise.o: primobj.h
  296. noise.o: funcdefs.h
  297. shade.o: shade.c
  298. shade.o: constants.h
  299. shade.o: typedefs.h
  300. shade.o: datatypes.h
  301. shade.o: primobj.h
  302. shade.o: funcdefs.h
  303. shade.o: atmosphere.h
  304. atmosphere.o: atmosphere.c
  305. atmosphere.o: typedefs.h
  306. atmosphere.o: datatypes.h
  307. atmosphere.o: primobj.h
  308. atmosphere.o: constants.h
  309. atmosphere.o: funcdefs.h
  310. atmosphere.o: atmosphere.h
  311. light.o: light.c
  312. light.o: typedefs.h
  313. light.o: datatypes.h
  314. light.o: primobj.h
  315. light.o: funcdefs.h
  316. light.o: constants.h
  317. outputp.o: outputp.c
  318. outputp.o: typedefs.h
  319. outputp.o: datatypes.h
  320. outputp.o: primobj.h
  321. outputp.o: constants.h
  322. outputp.o: funcdefs.h
  323. memory.o: memory.c
  324. memory.o: typedefs.h
  325. memory.o: datatypes.h
  326. memory.o: primobj.h
  327. memory.o: funcdefs.h
  328. version.o: version.c
  329. version.o: patchlevel.h
  330.