| 1 | greg | 2.56 | # RCSid: $Id: Rmakefile,v 2.55 2005/02/25 06:39:44 greg Exp $ | 
| 2 | greg | 1.1 | # | 
| 3 |  |  | # Makefile for ray tracing library routines | 
| 4 |  |  | # | 
| 5 |  |  |  | 
| 6 | greg | 1.17 | OPT = -O | 
| 7 | greg | 1.19 | MACH = -DBSD | 
| 8 | greg | 1.1 | CFLAGS = $(MACH) $(OPT) | 
| 9 | greg | 2.5 | CC = cc | 
| 10 | gwlarson | 2.27 | SPECIAL = | 
| 11 | greg | 1.1 |  | 
| 12 | greg | 2.54 | COMPAT = erf.o strcmp.o | 
| 13 | greg | 1.16 |  | 
| 14 | greg | 1.3 | LIBDIR = /usr/local/lib/ray | 
| 15 |  |  |  | 
| 16 | greg | 2.35 | RTOBJ = cone.o face.o free_os.o instance.o readobj.o readoct.o otypes.o \ | 
| 17 |  |  | objset.o octree.o readfargs.o modobject.o getlibpath.o \ | 
| 18 | greg | 2.38 | addobjnotify.o zeroes.o mesh.o readmesh.o tmesh.o sceneio.o | 
| 19 | greg | 1.1 |  | 
| 20 |  |  | PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ | 
| 21 | greg | 2.43 | colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ | 
| 22 | greg | 2.56 | tmap16bit.o bmpfile.o falsecolor.o | 
| 23 | greg | 1.1 |  | 
| 24 | greg | 2.12 | STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ | 
| 25 | schorsch | 2.41 | urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \ | 
| 26 | greg | 2.47 | unix_process.o process.o gethomedir.o getpath.o error.o savestr.o \ | 
| 27 | schorsch | 2.46 | savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ | 
| 28 | greg | 2.54 | clip.o plocate.o eputs.o wputs.o quit.o lookup.o bmalloc.o \ | 
| 29 | schorsch | 2.40 | loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o | 
| 30 | greg | 1.1 |  | 
| 31 | greg | 2.20 | SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) | 
| 32 | greg | 1.1 |  | 
| 33 | gwlarson | 2.27 | OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o | 
| 34 |  |  |  | 
| 35 | greg | 2.37 | LIBFILES = tmesh.cal | 
| 36 |  |  |  | 
| 37 | gwlarson | 2.28 | all:    librt.a $(SPECIAL) | 
| 38 |  |  |  | 
| 39 | greg | 1.1 | librt.a:        $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) | 
| 40 |  |  | ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) | 
| 41 | greg | 1.14 | -ranlib librt.a | 
| 42 | schorsch | 2.44 | mv librt.a ../lib/librt.a | 
| 43 | greg | 1.16 |  | 
| 44 | gwlarson | 2.28 | install:        all | 
| 45 | greg | 2.45 | cd $(LIBDIR) && rm -f $(LIBFILES) | 
| 46 | greg | 2.37 | cp $(LIBFILES) $(LIBDIR) | 
| 47 | greg | 1.5 |  | 
| 48 |  |  | clean: | 
| 49 | greg | 2.7 | rm -f *.o librt.a | 
| 50 | greg | 1.3 |  | 
| 51 | gwlarson | 2.27 | ogl:    $(OGLOBJ) | 
| 52 |  |  | ar rc librgl.a $(OGLOBJ) | 
| 53 |  |  | -ranlib librgl.a | 
| 54 |  |  | mv librgl.a ../lib/librgl.a | 
| 55 | gwlarson | 2.28 |  | 
| 56 |  |  | x10: | 
| 57 |  |  |  | 
| 58 |  |  | aed: | 
| 59 |  |  |  | 
| 60 |  |  | sgi: | 
| 61 |  |  |  | 
| 62 |  |  | sun: | 
| 63 | gwlarson | 2.27 |  | 
| 64 | greg | 2.13 | getlibpath.o:   getlibpath.c | 
| 65 |  |  | $(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c | 
| 66 | greg | 1.4 |  | 
| 67 | gwlarson | 2.32 | tmapcolrs.o:    tmapcolrs.c | 
| 68 |  |  | $(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c | 
| 69 |  |  |  | 
| 70 | greg | 2.19 | color.o colrops.o lamps.o spec_rgb.o:   color.h | 
| 71 | greg | 1.1 |  | 
| 72 |  |  | cone.o:         cone.h | 
| 73 |  |  |  | 
| 74 |  |  | face.o:         face.h | 
| 75 |  |  |  | 
| 76 |  |  | fvect.o:        fvect.h | 
| 77 |  |  |  | 
| 78 |  |  | instance.o:     instance.h | 
| 79 |  |  |  | 
| 80 |  |  | linregr.o:      linregr.h | 
| 81 |  |  |  | 
| 82 | greg | 2.12 | mat4.o invmat4.o:               mat4.h fvect.h | 
| 83 | greg | 1.1 |  | 
| 84 |  |  | cone.o face.o instance.o objset.o otypes.o \ | 
| 85 | greg | 2.37 | mesh.o modobject.o readfargs.o readmesh.o \ | 
| 86 | greg | 2.38 | readobj.o readoct.o sceneio.o:  object.h | 
| 87 | greg | 1.1 |  | 
| 88 | greg | 2.38 | mesh.o objset.o octree.o readmesh.o readoct.o sceneio.o:        octree.h | 
| 89 | greg | 1.1 |  | 
| 90 | greg | 2.38 | cone.o mesh.o modobject.o otypes.o \ | 
| 91 |  |  | readobj.o readoct.o sceneio.o:  otypes.h | 
| 92 | greg | 1.1 |  | 
| 93 | gregl | 2.26 | multisamp.o urand.o:    random.h | 
| 94 | greg | 1.1 |  | 
| 95 | greg | 2.42 | cone.o face.o free_os.o image.o instance.o objset.o \ | 
| 96 |  |  | octree.o modobject.o readfargs.o otypes.o mesh.o \ | 
| 97 |  |  | readmesh.o readobj.o readoct.o sceneio.o:       standard.h \ | 
| 98 | greg | 2.50 | rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tifftypes.h | 
| 99 | greg | 1.1 |  | 
| 100 |  |  | image.o:        view.h | 
| 101 | greg | 1.4 |  | 
| 102 | greg | 2.39 | caldefn.o calexpr.o calfunc.o calprnt.o:        calcomp.h | 
| 103 | greg | 2.17 |  | 
| 104 |  |  | clip.o plocate.o:       plocate.h | 
| 105 | greg | 2.4 |  | 
| 106 |  |  | font.o: font.h | 
| 107 | greg | 2.9 |  | 
| 108 |  |  | fropen.o getpath.o image.o:     paths.h | 
| 109 | greg | 2.16 |  | 
| 110 | greg | 2.38 | lookup.o:       lookup.h | 
| 111 | greg | 2.23 |  | 
| 112 |  |  | loadvars.o:     vars.h | 
| 113 | greg | 2.24 |  | 
| 114 | greg | 2.38 | mesh.o readmesh.o:      mesh.h lookup.h | 
| 115 | greg | 2.37 |  | 
| 116 | greg | 2.43 | tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o:    tmprivat.h tonemap.h \ | 
| 117 |  |  | tifftypes.h color.h | 
| 118 | gwlarson | 2.30 |  | 
| 119 | greg | 2.55 | tmapluv.o:      tiffio.h tmaptiff.h tiff.h | 
| 120 | greg | 2.24 |  | 
| 121 | greg | 2.56 | falsecolor.o:   falsecolor.h tmprivat.h tonemap.h color.h tifftypes.h | 
| 122 |  |  |  | 
| 123 | greg | 2.24 | tonemap.o:      tmerrmsg.h | 
| 124 | gwlarson | 2.27 |  | 
| 125 | greg | 2.43 | tmaptiff.o:     tmprivat.h tmaptiff.h color.h tonemap.h tifftypes.h | 
| 126 | greg | 2.35 |  | 
| 127 | gwlarson | 2.27 | rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o:     radogl.h \ | 
| 128 |  |  | standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h | 
| 129 | greg | 2.35 |  | 
| 130 |  |  | free_os.o:      octree.h object.h otypes.h face.h cone.h instance.h | 
| 131 | greg | 2.37 |  | 
| 132 |  |  | tmesh.o:        tmesh.h fvect.h | 
| 133 | greg | 2.42 |  | 
| 134 | greg | 2.53 | fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \ | 
| 135 | greg | 2.42 | expandarg.o badarg.o xf.o:      rtio.h | 
| 136 |  |  |  | 
| 137 |  |  | expandarg.o:    rtmisc.h | 
| 138 |  |  |  | 
| 139 | greg | 2.51 | dircode.o xf.o: rtmath.h mat4.h fvect.h tifftypes.h | 
| 140 | greg | 2.42 |  | 
| 141 |  |  | error.o:        rterror.h | 
| 142 | greg | 2.49 |  | 
| 143 |  |  | bmpfile.o:      bmpfile.h tifftypes.h |