| 7 | 
  | 
MACH = -DBSD | 
| 8 | 
  | 
CFLAGS = $(MACH) $(OPT) | 
| 9 | 
  | 
CC = cc | 
| 10 | 
+ | 
AR = ar | 
| 11 | 
  | 
SPECIAL = | 
| 12 | 
  | 
 | 
| 13 | 
  | 
COMPAT = erf.o strcmp.o strlcpy.o | 
| 20 | 
  | 
 | 
| 21 | 
  | 
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ | 
| 22 | 
  | 
        colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ | 
| 23 | 
< | 
        tmap16bit.o bmpfile.o falsecolor.o | 
| 23 | 
> | 
        tmap16bit.o bmpfile.o falsecolor.o depthcodec.o normcodec.o \ | 
| 24 | 
> | 
        idmap.o fltdepth.o jitteraperture.o | 
| 25 | 
  | 
 | 
| 26 | 
  | 
UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \ | 
| 27 | 
  | 
        disk2square.o hilbert.o interp2d.o triangulate.o | 
| 38 | 
  | 
 | 
| 39 | 
  | 
MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o | 
| 40 | 
  | 
 | 
| 41 | 
+ | 
WFOBJ = objutil.o objtriangulate.o readwfobj.o convertobj.o writewfobj.o | 
| 42 | 
+ | 
 | 
| 43 | 
  | 
REETZOBJ = g3affine.o g3flist.o g3sphere.o g3vector.o gbasic.o muc_randvar.o | 
| 44 | 
  | 
 | 
| 45 | 
  | 
OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o | 
| 48 | 
  | 
 | 
| 49 | 
  | 
librtrad.a:     $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) | 
| 50 | 
  | 
        rm -f librtrad.a | 
| 51 | 
< | 
        ar rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) | 
| 51 | 
> | 
        $(AR) rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) | 
| 52 | 
  | 
        -ranlib librtrad.a | 
| 53 | 
  | 
 | 
| 54 | 
  | 
libmgf.a:       $(MGFOBJ) | 
| 55 | 
  | 
        rm -f libmgf.a | 
| 56 | 
< | 
        ar rc libmgf.a $(MGFOBJ) | 
| 56 | 
> | 
        $(AR) rc libmgf.a $(MGFOBJ) | 
| 57 | 
  | 
        -ranlib libmgf.a | 
| 58 | 
  | 
 | 
| 59 | 
+ | 
libwfobj.a:     $(WFOBJ) | 
| 60 | 
+ | 
        rm -f libwfobj.a | 
| 61 | 
+ | 
        $(AR) rc libwfobj.a $(WFOBJ) | 
| 62 | 
+ | 
        -ranlib libwfobj.a | 
| 63 | 
+ | 
 | 
| 64 | 
  | 
libreetz.a:     $(REETZOBJ) | 
| 65 | 
  | 
        rm -f libreetz.a | 
| 66 | 
< | 
        ar rc libreetz.a $(REETZOBJ) | 
| 66 | 
> | 
        $(AR) rc libreetz.a $(REETZOBJ) | 
| 67 | 
  | 
        -ranlib libreetz.a | 
| 68 | 
  | 
 | 
| 69 | 
  | 
install:        all | 
| 70 | 
< | 
        mv -f librtrad.a libmgf.a libreetz.a ../lib | 
| 70 | 
> | 
        mv -f librtrad.a libmgf.a libwfobj.a libreetz.a ../lib | 
| 71 | 
  | 
        cd $(LIBDIR) && rm -f $(LIBFILES) | 
| 72 | 
  | 
        cp -f $(LIBFILES) $(LIBDIR) | 
| 73 | 
  | 
 | 
| 74 | 
< | 
all:    librtrad.a libmgf.a libreetz.a $(SPECIAL) | 
| 74 | 
> | 
all:    librtrad.a libmgf.a libwfobj.a libreetz.a $(SPECIAL) | 
| 75 | 
  | 
 | 
| 76 | 
  | 
clean: | 
| 77 | 
< | 
        rm -f *.o librtrad.a libmgf.a | 
| 77 | 
> | 
        rm -f *.o *.a | 
| 78 | 
  | 
 | 
| 79 | 
  | 
ogl:    $(OGLOBJ) | 
| 80 | 
  | 
        rm -f librgl.a | 
| 81 | 
< | 
        ar rc librgl.a $(OGLOBJ) | 
| 81 | 
> | 
        $(AR) rc librgl.a $(OGLOBJ) | 
| 82 | 
  | 
        -ranlib librgl.a | 
| 83 | 
  | 
        mv -f librgl.a ../lib | 
| 84 | 
  | 
 | 
| 124 | 
  | 
 | 
| 125 | 
  | 
multisamp.o urand.o:    random.h | 
| 126 | 
  | 
 | 
| 127 | 
< | 
cone.o face.o free_os.o image.o instance.o objset.o \ | 
| 127 | 
> | 
cone.o face.o free_os.o instance.o objset.o \ | 
| 128 | 
  | 
octree.o modobject.o readfargs.o otypes.o mesh.o \ | 
| 129 | 
  | 
readmesh.o readobj.o readoct.o sceneio.o:       standard.h \ | 
| 130 | 
  | 
rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tiff.h | 
| 131 | 
  | 
 | 
| 132 | 
< | 
image.o:        view.h | 
| 132 | 
> | 
image.o:        view.h rtio.h rtmath.h mat4.h fvect.h rtio.h paths.h | 
| 133 | 
  | 
 | 
| 134 | 
+ | 
jitteraperture.o:       view.h rtmath.h mat4.h fvect.h rtio.h | 
| 135 | 
+ | 
 | 
| 136 | 
  | 
caldefn.o calexpr.o calfunc.o calprnt.o:        calcomp.h | 
| 137 | 
  | 
 | 
| 138 | 
  | 
clip.o plocate.o:       plocate.h | 
| 139 | 
  | 
 | 
| 140 | 
  | 
font.o: font.h | 
| 141 | 
  | 
 | 
| 142 | 
< | 
cvtcmd.o fropen.o getpath.o image.o:    paths.h | 
| 142 | 
> | 
cvtcmd.o font.o fropen.o getpath.o image.o:     paths.h | 
| 143 | 
  | 
 | 
| 144 | 
  | 
lookup.o:       lookup.h | 
| 145 | 
  | 
 | 
| 165 | 
  | 
 | 
| 166 | 
  | 
tmesh.o:        tmesh.h fvect.h | 
| 167 | 
  | 
 | 
| 168 | 
< | 
fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \ | 
| 169 | 
< | 
byteswap.o expandarg.o badarg.o xf.o:   rtio.h | 
| 168 | 
> | 
fgetword.o fputword.o fgetval.o fgetline.o fdate.o font.o \ | 
| 169 | 
> | 
unix_process.o byteswap.o expandarg.o badarg.o xf.o:    rtio.h | 
| 170 | 
  | 
 | 
| 171 | 
  | 
expandarg.o:    rtmisc.h | 
| 172 | 
  | 
 | 
| 222 | 
  | 
maxheap.o:      maxheap.h | 
| 223 | 
  | 
 | 
| 224 | 
  | 
ezxml.o readmesh.o readobj.o readoct.o rglinst.o wordfile.o:    platform.h | 
| 225 | 
+ | 
 | 
| 226 | 
+ | 
depthcodec.o:   depthcodec.h view.h fvect.h resolu.h rtio.h | 
| 227 | 
+ | 
 | 
| 228 | 
+ | 
normcodec.o:    normcodec.h rtmath.h mat4.h fvect.h resolu.h rtio.h | 
| 229 | 
+ | 
 | 
| 230 | 
+ | 
idmap.o:        idmap.h resolu.h platform.h rtio.h | 
| 231 | 
+ | 
 | 
| 232 | 
+ | 
rcode_ident.o:  lookup.h | 
| 233 | 
+ | 
 | 
| 234 | 
+ | 
convertobj.o:   paths.h rterror.h objutil.h | 
| 235 | 
+ | 
 | 
| 236 | 
+ | 
objutil.o:      objutil.h rterror.h rtio.h rtmath.h mat4.h fvect.h lookup.h | 
| 237 | 
+ | 
 | 
| 238 | 
+ | 
objtriangulate.o:       objutil.h rterror.h triangulate.h | 
| 239 | 
+ | 
 | 
| 240 | 
+ | 
readwfobj.o:    objutil.h rtio.h rterror.h fvect.h | 
| 241 | 
+ | 
 | 
| 242 | 
+ | 
writewfobj.o:   objutil.h rterror.h |