| 3 | 
  | 
#  Compiles for ray tracing programs. | 
| 4 | 
  | 
# | 
| 5 | 
  | 
 | 
| 6 | 
< | 
OPT = -O -pipe | 
| 7 | 
< | 
MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/libm.il | 
| 6 | 
> | 
OPT = -O | 
| 7 | 
> | 
MACH = -DBSD | 
| 8 | 
  | 
CFLAGS = $(MACH) $(OPT) -I../common -L../lib | 
| 9 | 
+ | 
SPECIAL = aed | 
| 10 | 
  | 
CC = cc | 
| 11 | 
  | 
LINT = lint | 
| 12 | 
< | 
LINTFLAGS = -DSTRUCTASSIGN -DBSD -DIEEE -DVARIABLE -DFUNCTION \ | 
| 13 | 
< | 
-DINCHAN -DRCONST -DREDEFW -DBIGLIB | 
| 12 | 
> | 
LINTFLAGS = -DBSD -DVARIABLE -DFUNCTION \ | 
| 13 | 
> | 
-DINCHAN -DRCONST -DREDEFW | 
| 14 | 
  | 
 | 
| 15 | 
  | 
# | 
| 16 | 
  | 
# The following are user-definable: | 
| 17 | 
  | 
# | 
| 18 | 
  | 
DESTDIR = . | 
| 19 | 
< | 
INSTDIR = /lumen/lumen/ray/bin.sun3 | 
| 19 | 
> | 
INSTDIR = /usr/local/bin | 
| 20 | 
  | 
INSTALL = cp | 
| 21 | 
  | 
 | 
| 22 | 
  | 
# | 
| 86 | 
  | 
 | 
| 87 | 
  | 
PROGS = $(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rview $(DESTDIR)/lookamb | 
| 88 | 
  | 
 | 
| 89 | 
< | 
all:    $(PROGS) | 
| 89 | 
> | 
all:    $(PROGS) $(SPECIAL) | 
| 90 | 
  | 
 | 
| 91 | 
< | 
install:        $(PROGS) rayinit.cal | 
| 91 | 
> | 
install:        $(PROGS) $(SPECIAL) rayinit.cal | 
| 92 | 
  | 
        $(INSTALL) $(PROGS) $(INSTDIR) | 
| 93 | 
  | 
        rm -f $(LIBDIR)/rayinit.cal | 
| 94 | 
  | 
        cp rayinit.cal $(LIBDIR) | 
| 99 | 
  | 
 | 
| 100 | 
  | 
aed:    $(DEVDIR)/aed | 
| 101 | 
  | 
 | 
| 102 | 
+ | 
sgi:    $(DEVDIR)/news | 
| 103 | 
+ | 
 | 
| 104 | 
  | 
tiff:    | 
| 105 | 
  | 
 | 
| 106 | 
  | 
clean: | 
| 140 | 
  | 
        $(CC) $(CFLAGS) -s -o $(DEVDIR)/aed aed.o colortab.o \ | 
| 141 | 
  | 
devmain.o tty.o editline.o $(LIBS) | 
| 142 | 
  | 
 | 
| 143 | 
+ | 
$(DEVDIR)/news: nwsdev.o devmain.o editline.o | 
| 144 | 
+ | 
        $(CC) $(CFLAGS) -s -o $(DEVDIR)/news nwsdev.o devmain.o editline.o \ | 
| 145 | 
+ | 
-lcps $(LIBS) | 
| 146 | 
+ | 
 | 
| 147 | 
  | 
# | 
| 148 | 
  | 
# Special compiles: | 
| 149 | 
  | 
# | 
| 196 | 
  | 
        $(CC) $(CFLAGS) -DFUNCTION -DREDEFW -c caldefn.c | 
| 197 | 
  | 
 | 
| 198 | 
  | 
nwsdev.o:       nwsdev.c nwsdev.h newsconstants.h | 
| 199 | 
< | 
        $(CC) $(CFLAGS) -c nwsdev.c | 
| 199 | 
> | 
        $(CC) $(CFLAGS) -Dnws_init=dinit -c nwsdev.c | 
| 200 | 
  | 
 | 
| 201 | 
  | 
nwsdev.h:       nwsdev.cps newsconstants.h | 
| 202 | 
  | 
        cps nwsdev.cps | 
| 239 | 
  | 
ambient.o ambcomp.o dielectric.o func.o glass.o m_clip.o m_mirror.o \ | 
| 240 | 
  | 
m_brdf.o mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \ | 
| 241 | 
  | 
p_data.o p_func.o text.o raytrace.o rpmain.o rtmain.o rvmain.o rpict.o \ | 
| 242 | 
< | 
rtrace.o rview.o rv2.o rv3.o source.o srcsupp.o virtuals.o sphere.o \ | 
| 243 | 
< | 
t_data.o t_func.o:      ray.h ../common/standard.h ../common/mat4.h \ | 
| 244 | 
< | 
../common/fvect.h ../common/object.h ../common/color.h | 
| 242 | 
> | 
rtrace.o rview.o rv2.o rv3.o source.o srcsamp.o srcsupp.o virtuals.o \ | 
| 243 | 
> | 
sphere.o t_data.o t_func.o:     ray.h ../common/standard.h \ | 
| 244 | 
> | 
../common/mat4.h ../common/fvect.h ../common/object.h ../common/color.h | 
| 245 | 
  | 
 | 
| 246 | 
  | 
rv2.o rv3.o rview.o:    rpaint.h driver.h ../common/view.h | 
| 247 | 
  | 
 | 
| 248 | 
  | 
mirror.o source.o srcsamp.o srcsupp.o virtuals.o:       source.h | 
| 249 | 
  | 
 | 
| 243 | 
– | 
srcsamp.o:      ../common/object.h | 
| 244 | 
– | 
 | 
| 250 | 
  | 
cone.o data.o devcomm.o initotypes.o \ | 
| 251 | 
< | 
octree.o srcsamp.o:     ../common/standard.h ../common/mat4.h ../common/fvect.h | 
| 251 | 
> | 
octree.o:       ../common/standard.h ../common/mat4.h ../common/fvect.h | 
| 252 | 
  | 
 | 
| 253 | 
  | 
initotypes.o raytrace.o:        otspecial.h | 
| 254 | 
  | 
 |