| 1 | # Compiles for image processing and display programs | 
| 2 | # SCCSid "$SunId$ SGI" | 
| 3 | # | 
| 4 |  | 
| 5 | ARCH = sun | 
| 6 | OPT = -O | 
| 7 | MACH = -DBSD | 
| 8 | SPECIAL = aed | 
| 9 | CFLAGS = $(OPT) $(MACH) -I../common -L../lib | 
| 10 | CC = cc | 
| 11 | MLIB = -lm | 
| 12 |  | 
| 13 | INSTDIR = /usr/local/bin | 
| 14 |  | 
| 15 | LIBDIR = /usr/local/lib/ray | 
| 16 |  | 
| 17 | PIXAR_INCLUDE=  -I/usr/pixar/include | 
| 18 | PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB) | 
| 19 |  | 
| 20 | PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r psign \ | 
| 21 | pvalue pcompos protate ra_pr ra_pr24 ra_avs ra_tiff \ | 
| 22 | ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ | 
| 23 | ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp | 
| 24 |  | 
| 25 | all:    $(PROGS) $(SPECIAL) | 
| 26 |  | 
| 27 | x10:    x10image | 
| 28 | cp x10image $(INSTDIR) | 
| 29 |  | 
| 30 | aed:    aedimage | 
| 31 | cp aedimage $(INSTDIR) | 
| 32 |  | 
| 33 | sgi:    glimage | 
| 34 | cp glimage $(INSTDIR) | 
| 35 |  | 
| 36 | sun: | 
| 37 |  | 
| 38 | install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \ | 
| 39 | pdfblur.csh pmblur.csh xyzimage.csh | 
| 40 | cp $(PROGS) $(INSTDIR) | 
| 41 | cp normpat.csh $(INSTDIR)/normpat | 
| 42 | cp falsecolor.csh $(INSTDIR)/falsecolor | 
| 43 | cp pdfblur.csh $(INSTDIR)/pdfblur | 
| 44 | cp pmblur.csh $(INSTDIR)/pmblur | 
| 45 | cp xyzimage.csh $(INSTDIR)/xyzimage | 
| 46 | cp phisto.csh $(INSTDIR)/phisto | 
| 47 | chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \ | 
| 48 | $(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage $(INSTDIR)/phisto | 
| 49 |  | 
| 50 | clean: | 
| 51 | set nonomatch; rm -f x10image aedimage glimage ra_tiff \ | 
| 52 | $(PROGS) *.o core | 
| 53 |  | 
| 54 | pfilt:  pfilt.o pf2.o pf3.o | 
| 55 | $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB) | 
| 56 |  | 
| 57 | pcond:  pcond.o pcond2.o pcond3.o pcond4.o warp3d.o | 
| 58 | $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \ | 
| 59 | -lrt $(MLIB) | 
| 60 |  | 
| 61 | pcwarp: pcwarp.o warp3d.o | 
| 62 | $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB) | 
| 63 |  | 
| 64 | ttyimage:       ttyimage.o | 
| 65 | $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB) | 
| 66 |  | 
| 67 | t4027:  t4027.o | 
| 68 | $(CC) $(CFLAGS) -o t4027 t4027.o -lrt | 
| 69 |  | 
| 70 | glimage:        glimage.o | 
| 71 | $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB) | 
| 72 |  | 
| 73 | aedimage:       aedimage.o ciq.o cut.o closest.o biq.o | 
| 74 | $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ | 
| 75 | biq.o -lrt $(MLIB) | 
| 76 |  | 
| 77 | oki20c: oki20c.o | 
| 78 | $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB) | 
| 79 |  | 
| 80 | oki20:  oki20.o | 
| 81 | $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB) | 
| 82 |  | 
| 83 | paintjet:       paintjet.o | 
| 84 | $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB) | 
| 85 |  | 
| 86 | mt160r: mt160r.o | 
| 87 | $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB) | 
| 88 |  | 
| 89 | greyscale:      greyscale.o | 
| 90 | $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB) | 
| 91 |  | 
| 92 | colorscale:     colorscale.o | 
| 93 | $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt -lm | 
| 94 |  | 
| 95 | pvalue: pvalue.o | 
| 96 | $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB) | 
| 97 |  | 
| 98 | psum:   psum.o | 
| 99 | $(CC) $(CFLAGS) -o psum psum.o -lrt | 
| 100 |  | 
| 101 | pcompos:        pcompos.o | 
| 102 | $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt | 
| 103 |  | 
| 104 | psign:  psign.o | 
| 105 | $(CC) $(CFLAGS) -o psign psign.o -lrt -lm | 
| 106 |  | 
| 107 | d48c:   d48c.o | 
| 108 | $(CC) $(CFLAGS) -o d48c d48c.o -lrt | 
| 109 |  | 
| 110 | ra_gif: ra_gif.o clrtab.o neuclrtab.o | 
| 111 | $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB) | 
| 112 |  | 
| 113 | ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o | 
| 114 | $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ | 
| 115 | biq.o -lrt $(MLIB) | 
| 116 |  | 
| 117 | ra_pr24:        ra_pr24.o | 
| 118 | $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB) | 
| 119 |  | 
| 120 | ra_avs: ra_avs.o | 
| 121 | $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB) | 
| 122 |  | 
| 123 | ra_ps:  ra_ps.o | 
| 124 | $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB) | 
| 125 |  | 
| 126 | ra_ppm:         ra_ppm.o | 
| 127 | $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB) | 
| 128 |  | 
| 129 | ra_t8:  ra_t8.o clrtab.o neuclrtab.o | 
| 130 | $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB) | 
| 131 |  | 
| 132 | ra_t16: ra_t16.o | 
| 133 | $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB) | 
| 134 |  | 
| 135 | ra_im: ra_im.o | 
| 136 | $(CC) $(CFLAGS) -o ra_im ra_im.o | 
| 137 |  | 
| 138 | ra_bn: ra_bn.o | 
| 139 | $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB) | 
| 140 |  | 
| 141 | ra_rgbe:        ra_rgbe.o | 
| 142 | $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB) | 
| 143 |  | 
| 144 | ra_pict:    ra_pict.o | 
| 145 | $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB) | 
| 146 |  | 
| 147 |  | 
| 148 | x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o | 
| 149 | $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \ | 
| 150 | ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB) | 
| 151 |  | 
| 152 | ximage: x11image.o x11raster.o clrtab.o | 
| 153 | $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ | 
| 154 | clrtab.o -lX11 -lrt $(MLIB) | 
| 155 |  | 
| 156 | protate:                protate.o | 
| 157 | $(CC) $(CFLAGS) -o protate protate.o -lrt -lm | 
| 158 |  | 
| 159 | pextrem:        pextrem.o | 
| 160 | $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt -lm | 
| 161 |  | 
| 162 | pflip:          pflip.o | 
| 163 | $(CC) $(CFLAGS) -o pflip pflip.o -lrt -lm | 
| 164 |  | 
| 165 | panim:  panim.o client/libclient.a | 
| 166 | $(CC) $(CFLAGS) -o panim panim.o \ | 
| 167 | -lrt client/libclient.a -lrpcsvc $(MLIB) | 
| 168 |  | 
| 169 | pcomb:  pcomb.o | 
| 170 | $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB) | 
| 171 |  | 
| 172 | pinterp:        pinterp.o | 
| 173 | $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB) | 
| 174 |  | 
| 175 | ra_xyze:        ra_xyze.o | 
| 176 | $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB) | 
| 177 |  | 
| 178 | ra_tiff:        ra_tiff.o ../lib/libtiff.a | 
| 179 | $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB) | 
| 180 |  | 
| 181 | ../common/tiff.h:       ../lib/libtiff.a | 
| 182 |  | 
| 183 | ../lib/libtiff.a:       tiff/config.local | 
| 184 | cd tiff ; ./configure -quiet -noninteractive ; \ | 
| 185 | cd libtiff ; make install ; | 
| 186 | #       cd .. ; make distclean | 
| 187 |  | 
| 188 | ra_pixar:       ra_pixar.o ra_pixar.c | 
| 189 | $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ | 
| 190 | $(PIXAR_LIB) | 
| 191 |  | 
| 192 | ra_pixar.o:     ra_pixar.c | 
| 193 | $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c | 
| 194 |  | 
| 195 | xshowtrace:     xshowtrace.o x11findwind.o | 
| 196 | $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ | 
| 197 | x11findwind.o -lrt $(MLIB) -lX11 | 
| 198 |  | 
| 199 | macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o | 
| 200 | $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \ | 
| 201 | -lrt $(MLIB) | 
| 202 |  | 
| 203 |  | 
| 204 | macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h | 
| 205 |  | 
| 206 | macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h | 
| 207 |  | 
| 208 | pmapgen.o:      mx3.h pmap.h | 
| 209 |  | 
| 210 | nclrtab.o:      neuclrtab.o | 
| 211 | ln neuclrtab.c nclrtab.c | 
| 212 | $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c | 
| 213 | rm -f nclrtab.c | 
| 214 |  | 
| 215 | pcomb.o:        ../common/calcomp.h | 
| 216 |  | 
| 217 | panim.o:        client/scan.h ../common/color.h ../common/random.h | 
| 218 |  | 
| 219 | pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h | 
| 220 |  | 
| 221 | neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \ | 
| 222 | psum.o psign.o protate.o \ | 
| 223 | pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \ | 
| 224 | pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ | 
| 225 | ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h | 
| 226 |  | 
| 227 | neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \ | 
| 228 | xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \ | 
| 229 | ../common/mat4.h ../common/fvect.h | 
| 230 |  | 
| 231 | ximage.o xraster.o:     xraster.h | 
| 232 |  | 
| 233 | x11image.o x11raster.o: x11raster.h | 
| 234 |  | 
| 235 | x11image.o:     ../common/tonemap.h ../common/color.h | 
| 236 |  | 
| 237 | ra_t8.o:        ../common/targa.h | 
| 238 |  | 
| 239 | ra_tiff.o:      ../common/tiff.h | 
| 240 |  | 
| 241 | aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h | 
| 242 |  | 
| 243 | ciq.o cut.o closest.o biq.o:    pic.h ciq.h | 
| 244 |  | 
| 245 | pinterp.o ximage.o x11showtrace.o image.o:      ../common/view.h | 
| 246 |  | 
| 247 | ra_pict.o:      pict.h | 
| 248 |  | 
| 249 | mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \ | 
| 250 | pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \ | 
| 251 | ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \ | 
| 252 | ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h | 
| 253 |  | 
| 254 | pfilt.o:        ../common/paths.h ../common/view.h | 
| 255 |  | 
| 256 | psign.o:        ../common/font.h | 
| 257 |  | 
| 258 | pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \ | 
| 259 | ../common/mat4.h ../common/fvect.h \ | 
| 260 | ../common/color.h ../common/view.h ../common/resolu.h |