| 9 | 
  | 
CC = cc | 
| 10 | 
  | 
SPECIAL = | 
| 11 | 
  | 
 | 
| 12 | 
< | 
COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.o | 
| 12 | 
> | 
COMPAT = erf.o strcmp.o | 
| 13 | 
  | 
 | 
| 14 | 
  | 
LIBDIR = /usr/local/lib/ray | 
| 15 | 
  | 
 | 
| 19 | 
  | 
 | 
| 20 | 
  | 
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ | 
| 21 | 
  | 
        colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ | 
| 22 | 
< | 
        tmap16bit.o | 
| 22 | 
> | 
        tmap16bit.o bmpfile.o falsecolor.o | 
| 23 | 
  | 
 | 
| 24 | 
  | 
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ | 
| 25 | 
  | 
        urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \ | 
| 26 | 
< | 
        unix_process.o process.o getpath.o error.o savestr.o savqstr.o \ | 
| 27 | 
< | 
        badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ | 
| 28 | 
< | 
        clip.o plocate.o eputs.o wputs.o quit.o lookup.o \ | 
| 29 | 
< | 
        loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o | 
| 26 | 
> | 
        unix_process.o process.o gethomedir.o getpath.o error.o savestr.o \ | 
| 27 | 
> | 
        savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ | 
| 28 | 
> | 
        clip.o plocate.o eputs.o wputs.o quit.o lookup.o bmalloc.o \ | 
| 29 | 
> | 
        loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o byteswap.o | 
| 30 | 
  | 
 | 
| 31 | 
  | 
SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) | 
| 32 | 
  | 
 | 
| 34 | 
  | 
 | 
| 35 | 
  | 
LIBFILES = tmesh.cal | 
| 36 | 
  | 
 | 
| 37 | 
< | 
all:    librt.a $(SPECIAL) | 
| 37 | 
> | 
librtrad.a:     $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) | 
| 38 | 
> | 
        rm -f librtrad.a | 
| 39 | 
> | 
        ar rc librtrad.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) | 
| 40 | 
> | 
        -ranlib librtrad.a | 
| 41 | 
  | 
 | 
| 39 | 
– | 
librt.a:        $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) | 
| 40 | 
– | 
        ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) | 
| 41 | 
– | 
        -ranlib librt.a | 
| 42 | 
– | 
 | 
| 42 | 
  | 
install:        all | 
| 43 | 
< | 
        mv librt.a ../lib/librt.a | 
| 44 | 
< | 
        cd $(LIBDIR) ; rm -f $(LIBFILES) | 
| 45 | 
< | 
        cp $(LIBFILES) $(LIBDIR) | 
| 43 | 
> | 
        mv -f librtrad.a ../lib | 
| 44 | 
> | 
        cd $(LIBDIR) && rm -f $(LIBFILES) | 
| 45 | 
> | 
        cp -f $(LIBFILES) $(LIBDIR) | 
| 46 | 
  | 
 | 
| 47 | 
+ | 
all:    librtrad.a $(SPECIAL) | 
| 48 | 
+ | 
 | 
| 49 | 
  | 
clean: | 
| 50 | 
< | 
        rm -f *.o librt.a | 
| 50 | 
> | 
        rm -f *.o librtrad.a | 
| 51 | 
  | 
 | 
| 52 | 
  | 
ogl:    $(OGLOBJ) | 
| 53 | 
+ | 
        rm -f librgl.a | 
| 54 | 
  | 
        ar rc librgl.a $(OGLOBJ) | 
| 55 | 
  | 
        -ranlib librgl.a | 
| 56 | 
< | 
        mv librgl.a ../lib/librgl.a | 
| 56 | 
> | 
        mv -f librgl.a ../lib | 
| 57 | 
  | 
 | 
| 58 | 
  | 
x10: | 
| 59 | 
  | 
 | 
| 97 | 
  | 
cone.o face.o free_os.o image.o instance.o objset.o \ | 
| 98 | 
  | 
octree.o modobject.o readfargs.o otypes.o mesh.o \ | 
| 99 | 
  | 
readmesh.o readobj.o readoct.o sceneio.o:       standard.h \ | 
| 100 | 
< | 
rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h | 
| 100 | 
> | 
rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tiff.h | 
| 101 | 
  | 
 | 
| 102 | 
  | 
image.o:        view.h | 
| 103 | 
  | 
 | 
| 104 | 
  | 
caldefn.o calexpr.o calfunc.o calprnt.o:        calcomp.h | 
| 105 | 
  | 
 | 
| 104 | 
– | 
process.o:      vfork.h | 
| 105 | 
– | 
 | 
| 106 | 
  | 
clip.o plocate.o:       plocate.h | 
| 107 | 
  | 
 | 
| 108 | 
  | 
font.o: font.h | 
| 116 | 
  | 
mesh.o readmesh.o:      mesh.h lookup.h | 
| 117 | 
  | 
 | 
| 118 | 
  | 
tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o:    tmprivat.h tonemap.h \ | 
| 119 | 
< | 
tifftypes.h color.h | 
| 119 | 
> | 
tiff.h color.h | 
| 120 | 
  | 
 | 
| 121 | 
< | 
tmapluv.o:      uvcode.h tiffio.h tmaptiff.h tiff.h | 
| 121 | 
> | 
tmapluv.o:      tiffio.h tmaptiff.h tiff.h | 
| 122 | 
  | 
 | 
| 123 | 
+ | 
falsecolor.o:   falsecolor.h tmprivat.h tonemap.h color.h tiff.h | 
| 124 | 
+ | 
 | 
| 125 | 
  | 
tonemap.o:      tmerrmsg.h | 
| 126 | 
  | 
 | 
| 127 | 
< | 
tmaptiff.o:     tmprivat.h tmaptiff.h color.h tonemap.h tifftypes.h | 
| 127 | 
> | 
tmaptiff.o:     tmprivat.h tmaptiff.h color.h tonemap.h tiff.h | 
| 128 | 
  | 
 | 
| 129 | 
  | 
rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o:     radogl.h \ | 
| 130 | 
  | 
standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h | 
| 133 | 
  | 
 | 
| 134 | 
  | 
tmesh.o:        tmesh.h fvect.h | 
| 135 | 
  | 
 | 
| 136 | 
< | 
fgetword.o fputword.o fgetval.o fgetline.o fdate.o \ | 
| 137 | 
< | 
expandarg.o badarg.o xf.o:      rtio.h | 
| 136 | 
> | 
fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \ | 
| 137 | 
> | 
byteswap.o expandarg.o badarg.o xf.o:   rtio.h | 
| 138 | 
  | 
 | 
| 139 | 
  | 
expandarg.o:    rtmisc.h | 
| 140 | 
  | 
 | 
| 141 | 
< | 
dircode.o xf.o: rtmath.h mat4.h fvect.h | 
| 141 | 
> | 
dircode.o xf.o: rtmath.h mat4.h fvect.h tiff.h | 
| 142 | 
  | 
 | 
| 143 | 
  | 
error.o:        rterror.h | 
| 144 | 
+ | 
 | 
| 145 | 
+ | 
bmpfile.o:      bmpfile.h tiff.h | 
| 146 | 
+ | 
 | 
| 147 | 
+ | 
header.o readmesh.o readoct.o resolu.o rglinst.o tmapcolrs.o:   resolu.h | 
| 148 | 
+ | 
 |