| 3 | 
  | 
#  Compiles for image processing and display programs | 
| 4 | 
  | 
# | 
| 5 | 
  | 
 | 
| 6 | 
+ | 
ARCH = sun | 
| 7 | 
  | 
OPT = -O | 
| 8 | 
  | 
MACH = -DSTRUCTASSIGN -f68881 /usr/lib/libm.il -DIEEE -DBSD | 
| 9 | 
< | 
CFLAGS = $(OPT) $(MACH) -I../common | 
| 9 | 
> | 
CFLAGS = $(OPT) $(MACH) -I../common -L../lib | 
| 10 | 
  | 
 | 
| 11 | 
  | 
INSTDIR = /lumen/lumen/ray/bin.sun3 | 
| 12 | 
  | 
 | 
| 17 | 
  | 
 | 
| 18 | 
  | 
PROGS = pfilt ttyimage oki20c paintjet mt160r getinfo psign \ | 
| 19 | 
  | 
greyscale pvalue pcompos colorscale prot ra_pr ra_pr24 \ | 
| 20 | 
< | 
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip | 
| 20 | 
> | 
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm | 
| 21 | 
  | 
 | 
| 22 | 
  | 
all:    $(PROGS) | 
| 23 | 
  | 
 | 
| 27 | 
  | 
aed:    aedimage | 
| 28 | 
  | 
        cp aedimage $(INSTDIR) | 
| 29 | 
  | 
 | 
| 30 | 
+ | 
tiff:   ra_tiff | 
| 31 | 
+ | 
        cp ra_tiff $(INSTDIR) | 
| 32 | 
+ | 
 | 
| 33 | 
  | 
sun: | 
| 34 | 
  | 
 | 
| 35 | 
  | 
install:        $(PROGS) normpat.csh falsecolor.csh | 
| 42 | 
  | 
        set nonomatch; rm -f $(PROGS) *.o core | 
| 43 | 
  | 
 | 
| 44 | 
  | 
pfilt:  pfilt.o pf2.o pf3.o | 
| 45 | 
< | 
        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o ../common/librt.a -lm | 
| 45 | 
> | 
        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm | 
| 46 | 
  | 
 | 
| 47 | 
  | 
ttyimage:       ttyimage.o | 
| 48 | 
< | 
        cc $(CFLAGS) -o ttyimage ttyimage.o ../common/librt.a -lm | 
| 48 | 
> | 
        cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm | 
| 49 | 
  | 
 | 
| 50 | 
  | 
t4027:  t4027.o | 
| 51 | 
< | 
        cc $(CFLAGS) -o t4027 t4027.o ../common/librt.a | 
| 51 | 
> | 
        cc $(CFLAGS) -o t4027 t4027.o -lrt | 
| 52 | 
  | 
 | 
| 53 | 
  | 
glimage:        glimage.o | 
| 54 | 
< | 
        cc $(CFLAGS) -o glimage glimage.o ../common/librt.a -lgl_s -lm | 
| 54 | 
> | 
        cc $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm | 
| 55 | 
  | 
 | 
| 56 | 
  | 
aedimage:       aedimage.o ciq.o cut.o closest.o biq.o | 
| 57 | 
  | 
        cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ | 
| 58 | 
< | 
biq.o ../common/librt.a -lm | 
| 58 | 
> | 
biq.o -lrt -lm | 
| 59 | 
  | 
 | 
| 60 | 
  | 
oki20c: oki20c.o | 
| 61 | 
< | 
        cc $(CFLAGS) -o oki20c oki20c.o ../common/librt.a -lm | 
| 61 | 
> | 
        cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm | 
| 62 | 
  | 
 | 
| 63 | 
  | 
paintjet:       paintjet.o | 
| 64 | 
< | 
        cc $(CFLAGS) -o paintjet paintjet.o ../common/librt.a -lm | 
| 64 | 
> | 
        cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm | 
| 65 | 
  | 
 | 
| 66 | 
  | 
mt160r: mt160r.o | 
| 67 | 
< | 
        cc $(CFLAGS) -o mt160r mt160r.o ../common/librt.a -lm | 
| 67 | 
> | 
        cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm | 
| 68 | 
  | 
 | 
| 69 | 
  | 
getinfo:        getinfo.o | 
| 70 | 
< | 
        cc $(CFLAGS) -n -o getinfo getinfo.o ../common/librt.a | 
| 70 | 
> | 
        cc $(CFLAGS) -n -o getinfo getinfo.o -lrt | 
| 71 | 
  | 
 | 
| 72 | 
  | 
greyscale:      greyscale.o | 
| 73 | 
< | 
        cc $(CFLAGS) -o greyscale greyscale.o ../common/librt.a -lm | 
| 73 | 
> | 
        cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm | 
| 74 | 
  | 
 | 
| 75 | 
  | 
colorscale:     colorscale.o | 
| 76 | 
< | 
        cc $(CFLAGS) -o colorscale colorscale.o ../common/librt.a | 
| 76 | 
> | 
        cc $(CFLAGS) -o colorscale colorscale.o -lrt | 
| 77 | 
  | 
 | 
| 78 | 
  | 
pvalue: pvalue.o | 
| 79 | 
< | 
        cc $(CFLAGS) -o pvalue pvalue.o ../common/librt.a -lm | 
| 79 | 
> | 
        cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm | 
| 80 | 
  | 
 | 
| 81 | 
  | 
psum:   psum.o | 
| 82 | 
< | 
        cc $(CFLAGS) -o psum psum.o ../common/librt.a | 
| 82 | 
> | 
        cc $(CFLAGS) -o psum psum.o -lrt | 
| 83 | 
  | 
 | 
| 84 | 
  | 
pcompos:        pcompos.o | 
| 85 | 
< | 
        cc $(CFLAGS) -o pcompos pcompos.o ../common/librt.a | 
| 85 | 
> | 
        cc $(CFLAGS) -o pcompos pcompos.o -lrt | 
| 86 | 
  | 
 | 
| 87 | 
  | 
psign:  psign.o | 
| 88 | 
< | 
        cc $(CFLAGS) -o psign psign.o ../common/librt.a | 
| 88 | 
> | 
        cc $(CFLAGS) -o psign psign.o -lrt | 
| 89 | 
  | 
 | 
| 90 | 
  | 
d48c:   d48c.o | 
| 91 | 
< | 
        cc $(CFLAGS) -o d48c d48c.o ../common/librt.a | 
| 91 | 
> | 
        cc $(CFLAGS) -o d48c d48c.o -lrt | 
| 92 | 
  | 
 | 
| 93 | 
  | 
ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o | 
| 94 | 
  | 
        cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ | 
| 95 | 
< | 
biq.o ../common/librt.a -lm | 
| 95 | 
> | 
biq.o -lrt -lm | 
| 96 | 
  | 
 | 
| 97 | 
  | 
ra_pr24:        ra_pr24.o | 
| 98 | 
< | 
        cc $(CFLAGS) -o ra_pr24 ra_pr24.o ../common/librt.a -lm | 
| 98 | 
> | 
        cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm | 
| 99 | 
  | 
 | 
| 100 | 
+ | 
ra_ppm:         ra_ppm.o | 
| 101 | 
+ | 
        cc $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm | 
| 102 | 
+ | 
 | 
| 103 | 
  | 
ra_t8:  ra_t8.o ciq.o cut.o closest.o biq.o | 
| 104 | 
  | 
        cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ | 
| 105 | 
< | 
biq.o ../common/librt.a -lm | 
| 105 | 
> | 
biq.o -lrt -lm | 
| 106 | 
  | 
 | 
| 107 | 
  | 
ra_t16: ra_t16.o | 
| 108 | 
< | 
        cc $(CFLAGS) -o ra_t16 ra_t16.o ../common/librt.a -lm | 
| 108 | 
> | 
        cc $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm | 
| 109 | 
  | 
 | 
| 110 | 
  | 
ra_im: ra_im.o | 
| 111 | 
  | 
        cc $(CFLAGS) -n -o ra_im ra_im.o | 
| 112 | 
  | 
 | 
| 113 | 
  | 
ra_bn: ra_bn.o | 
| 114 | 
< | 
        cc $(CFLAGS) -o ra_bn ra_bn.o ../common/librt.a -lm | 
| 114 | 
> | 
        cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm | 
| 115 | 
  | 
 | 
| 116 | 
  | 
x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o | 
| 117 | 
  | 
        cc $(CFLAGS) -o x10image ximage.o xraster.o \ | 
| 118 | 
< | 
ciq.o cut.o closest.o biq.o -lX ../common/librt.a -lm | 
| 118 | 
> | 
ciq.o cut.o closest.o biq.o -lX -lrt -lm | 
| 119 | 
  | 
 | 
| 120 | 
  | 
ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o | 
| 121 | 
  | 
        cc $(CFLAGS) -o ximage x11image.o x11raster.o \ | 
| 122 | 
< | 
ciq.o cut.o closest.o biq.o -lX11 ../common/librt.a -lm | 
| 122 | 
> | 
ciq.o cut.o closest.o biq.o -lX11 -lrt -lm | 
| 123 | 
  | 
 | 
| 124 | 
  | 
prot:           prot.o | 
| 125 | 
< | 
        cc $(CFLAGS) -o prot prot.o ../common/librt.a | 
| 125 | 
> | 
        cc $(CFLAGS) -o prot prot.o -lrt | 
| 126 | 
  | 
 | 
| 127 | 
  | 
pflip:          pflip.o | 
| 128 | 
< | 
        cc $(CFLAGS) -o pflip pflip.o ../common/librt.a | 
| 128 | 
> | 
        cc $(CFLAGS) -o pflip pflip.o -lrt | 
| 129 | 
  | 
 | 
| 130 | 
  | 
panim:  panim.o client/libclient.a | 
| 131 | 
  | 
        cc $(CFLAGS) -o panim panim.o \ | 
| 132 | 
< | 
../common/librt.a client/libclient.a -lrpcsvc -lm | 
| 132 | 
> | 
-lrt client/libclient.a -lrpcsvc -lm | 
| 133 | 
  | 
 | 
| 134 | 
  | 
pcomb:  pcomb.o | 
| 135 | 
< | 
        cc $(CFLAGS) -o pcomb pcomb.o ../common/librt.a -lm | 
| 135 | 
> | 
        cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm | 
| 136 | 
  | 
 | 
| 137 | 
  | 
pinterp:        pinterp.o | 
| 138 | 
< | 
        cc $(CFLAGS) -o pinterp pinterp.o ../common/librt.a -lm | 
| 138 | 
> | 
        cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm | 
| 139 | 
  | 
 | 
| 140 | 
+ | 
ra_tiff:        ra_tiff.o ../lib/libtiff.a | 
| 141 | 
+ | 
        cc $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm | 
| 142 | 
+ | 
 | 
| 143 | 
+ | 
ra_tiff.o:      ra_tiff.c | 
| 144 | 
+ | 
        cc $(CFLAGS) -Ilibtiff -c ra_tiff.c | 
| 145 | 
+ | 
 | 
| 146 | 
+ | 
../lib/libtiff.a: | 
| 147 | 
+ | 
        cd libtiff ; make -f Makefile.$(ARCH) ; \ | 
| 148 | 
+ | 
        mv libtiff.a ../../lib ; make clean | 
| 149 | 
+ | 
 | 
| 150 | 
  | 
ra_pixar:       ra_pixar.o ra_pixar.c | 
| 151 | 
< | 
        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o ../common/librt.a \ | 
| 151 | 
> | 
        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ | 
| 152 | 
  | 
$(PIXAR_LIB) | 
| 153 | 
  | 
 | 
| 154 | 
  | 
ra_pixar.o:     ra_pixar.c | 
| 156 | 
  | 
 | 
| 157 | 
  | 
xshowtrace:     xshowtrace.o x11findwind.o | 
| 158 | 
  | 
        cc $(CFLAGS) -o xshowtrace xshowtrace.o \ | 
| 159 | 
< | 
x11findwind.o ../common/librt.a -lm -lX11 | 
| 159 | 
> | 
x11findwind.o -lrt -lm -lX11 | 
| 160 | 
  | 
 | 
| 161 | 
  | 
xshowtrace.o:   ../common/view.h ../common/standard.h \ | 
| 162 | 
  | 
../common/mat4.h ../common/fvect.h |