--- ray/src/rt/Rmakefile 1989/06/07 08:35:10 1.7 +++ ray/src/rt/Rmakefile 1990/09/17 18:02:19 1.30 @@ -4,7 +4,10 @@ # Compiles for ray tracing programs. # -CFLAGS = -DBSD -O -DIEEE -f68881 /usr/lib/f68881.il +OPT = -O -pipe +MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/f68881.il +CFLAGS = $(MACH) $(OPT) +CC = cc # # The following are user-definable: @@ -16,21 +19,22 @@ INSTALL = cp # # The following paths must exist and be relative to root: # -DEVDIR = $(LIBDIR)/lib +DEVDIR = $(INSTDIR) LIBDIR = /usr/local/lib/ray # # Library routines: # LIBS = -lm -COMPAT = malloc.o +COMPAT = # # Device drivers for rview (see also devtable.c): # -DOBJS = devtable.o devcomm.o aed.o tty.o editline.o sun.o x10.o xtwind.o -DLIBS = -lX -DRIVERS = $(DEVDIR)/sun.dev $(DEVDIR)/sun.com +DOBJS = devtable.o devcomm.o aed.o tty.o editline.o x10.o xtwind.o \ + colortab.o nwsdev.o +DLIBS = -lX -lcps +DRIVERS = $(DEVDIR)/sundev $(DEVDIR)/sun.com $(DEVDIR)/x11dev # # Standard object files: @@ -58,7 +62,8 @@ MODOBJS = p_func.o t_func.o p_data.o t_data.o text.o m SUPPOBJS = zeroes.o calexpr.o caldefn.o calfunc.o func.o noise3.o data.o -MISCOBJS = misc.o color.o header.o mat4.o xf.o fvect.o savestr.o ealloc.o +MISCOBJS = misc.o color.o header.o mat4.o xf.o fvect.o savestr.o \ + fgetline.o ealloc.o # # What this makefile produces: @@ -79,85 +84,97 @@ clean: # $(DESTDIR)/rtrace: $(RTOBJS) - cc $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS) + $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS) $(DESTDIR)/rpict: $(RPOBJS) - cc $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS) + $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS) $(DESTDIR)/rview: $(RVOBJS) - cc $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS) + $(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS) $(DESTDIR)/lookamb: lookamb.o - cc $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o + $(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o -$(DEVDIR)/sun.dev: sundev.o - cc $(CFLAGS) -o $(DEVDIR)/sun.dev sundev.o \ --lsuntool -lsunwindow -lpixrect $(LIBS) +$(DEVDIR)/sundev: sundev.o devmain.o colortab.o editline.o + $(CC) $(CFLAGS) -o $(DEVDIR)/sundev devmain.o sundev.o colortab.o \ +editline.o -lsuntool -lsunwindow -lpixrect $(LIBS) $(DEVDIR)/sun.com: suncom.o editline.o - cc $(CFLAGS) -o $(DEVDIR)/sun.com suncom.o editline.o + $(CC) $(CFLAGS) -o $(DEVDIR)/sun.com suncom.o editline.o +$(DEVDIR)/x11dev: x11.o x11twind.o colortab.o devmain.o editline.o + $(CC) $(CFLAGS) -o $(DEVDIR)/x11dev x11.o x11twind.o devmain.o \ +colortab.o editline.o -lX11 $(LIBS) + # # Special compiles: # rtmain.o: rmain.c - cc $(CFLAGS) -DRTRACE -DNICE=4 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c + $(CC) $(CFLAGS) -DRTRACE -DNICE=4 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c mv rmain.o rtmain.o rpmain.o: rmain.c - cc $(CFLAGS) -DRPICT -DNICE=6 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c + $(CC) $(CFLAGS) -DRPICT -DNICE=6 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c mv rmain.o rpmain.o rvmain.o: rmain.c - cc $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c + $(CC) $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c mv rmain.o rvmain.o # # Uncomment the following to model dispersion: # #dielectric.o: dielectric.c source.h -# cc $(CFLAGS) -DDISPERSE -c dielectric.c +# $(CC) $(CFLAGS) -DDISPERSE -c dielectric.c # #color.o: color.c color.h -# cc $(CFLAGS) -DSPEC_RGB -c color.c +# $(CC) $(CFLAGS) -DSPEC_RGB -c color.c # # end of dispersion compiles. sundev.o: sundev.c - cc $(CFLAGS) -DTTYPROG=\"$(DEVDIR)/sun.com\" -c sundev.c + $(CC) $(CFLAGS) -Dsun_init=dinit -c sundev.c -devcomm.o: devcomm.c - cc $(CFLAGS) -DDEVPATH=\"$(DEVDIR)\" -c devcomm.c +x11.o: x11.c + $(CC) $(CFLAGS) -Dx11_init=dinit -c x11.c ambient.o: ambient.c - cc $(CFLAGS) -DAMBFLUSH=16 -c ambient.c + $(CC) $(CFLAGS) -DAMBFLUSH=16 -c ambient.c calexpr.o: calexpr.c calcomp.h - cc $(CFLAGS) -DVARIABLE -DFUNCTION -DINCHAN -DRCONST -c calexpr.c + $(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DINCHAN -DRCONST -c calexpr.c caldefn.o: caldefn.c calcomp.h - cc $(CFLAGS) -DFUNCTION -c caldefn.c + $(CC) $(CFLAGS) -DFUNCTION -DREDEFW -c caldefn.c calfunc.o: calfunc.c calcomp.h - cc $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c + $(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c xf.o: xf.c - cc $(CFLAGS) -DINVXF -c xf.c + $(CC) $(CFLAGS) -DINVXF -c xf.c +nwsdev.o: nwsdev.c nwsdev.h newsconstants.h + $(CC) $(CFLAGS) -c nwsdev.c + +nwsdev.h: nwsdev.cps newsconstants.h + cps nwsdev.cps + # # Include dependencies: # caldefn.o calexpr.o calfunc.o: calcomp.h -aed.o color.o data.o devcomm.o lookamb.o rview.o sundev.o x10.o: color.h +aed.o color.o colortab.o data.o devcomm.o \ +devmain.o lookamb.o rview.o sundev.o x10.o x11.o: color.h cone.o o_cone.o source.o: cone.h data.o mx_data.o p_data.o t_data.o: data.h -aed.o devcomm.o devtable.o sun.o sundev.o tty.o x10.o: driver.h +aed.o devcomm.o devmain.o devtable.o \ +editline.o nwsdev.o sundev.o tty.o x10.o x11.o: driver.h face.o o_face.o source.o: face.h @@ -165,20 +182,20 @@ fvect.o: fvect.h cone.o face.o objset.o otypes.o readobj.o readoct.o: object.h -ambient.o objset.o octree.o raytrace.o \ -readoct.o rmain.o rv2.o source.o: octree.h +ambient.o objset.o octree.o raytrace.o readoct.o \ +rpmain.o rtmain.o rtrace.o rvmain.o rv2.o rv3.o source.o: octree.h o_instance.o instance.o: instance.h octree.h -cone.o dielectric.o func.o normal.o o_cone.o otypes.o \ -text.o raytrace.o readobj.o readoct.o rtrace.o \ +ambient.o cone.o dielectric.o func.o normal.o o_cone.o objset.o \ +otypes.o text.o raytrace.o readobj.o readoct.o rtrace.o \ rv2.o source.o sphere.o: otypes.h ambient.o rpict.o rv3.o source.o: random.h -ambient.o dielectric.o func.o glass.o image.o m_clip.o \ +ambient.o dielectric.o func.o glass.o m_clip.o \ mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \ -p_data.o p_func.o text.o raytrace.o rmain.o rpict.o \ +p_data.o p_func.o text.o raytrace.o rpmain.o rtmain.o rvmain.o rpict.o \ rtrace.o rv2.o rv3.o source.o \ sphere.o t_data.o t_func.o: ray.h standard.h fvect.h object.h color.h @@ -186,11 +203,13 @@ rv2.o rv3.o rview.o: rpaint.h driver.h view.h source.o: source.h -cone.o data.o face.o misc.o objset.o octree.o otypes.o \ +cone.o data.o devcomm.o face.o image.o misc.o objset.o octree.o otypes.o \ readobj.o readoct.o rview.o: standard.h fvect.h sundev.o: suntools.icon -image.o rmain.o rpict.o: view.h +image.o rpmain.o rtmain.o rvmain.o rpict.o: view.h x10.o xtwind.o: xtwind.h + +x11.o x11twind.o: x11twind.h