--- ray/src/util/Rmakefile 1993/07/09 09:08:54 2.8 +++ ray/src/util/Rmakefile 1994/11/04 17:40:46 2.13 @@ -1,5 +1,6 @@ # # SCCSid "$SunId$ LBL" +# Radiance makefile for utility programs # MACH = -DBSD @@ -12,11 +13,19 @@ CC = cc INSTDIR = /usr/local/bin +LIBDIR = /usr/local/lib/ray + PROGS = findglare xglaresrc glarendx rpiece rad +TLIBFILES = do_action.tcl do_file.tcl do_options.tcl do_results.tcl \ + do_scene.tcl do_views.tcl do_zone.tcl \ + getfile.tcl gethelp.tcl util.tcl tclIndex \ + trad.hlp help.hlp file.hlp trad.icon + all: $(PROGS) -install: all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh +install: all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh \ +raddepend.csh ivprep.csh ivpict.csh trad.wsh cp $(PROGS) $(INSTDIR) cp objview.csh $(INSTDIR)/objview cp objpict.csh $(INSTDIR)/objpict @@ -24,9 +33,18 @@ install: all objview.csh objpict.csh glare.csh dayfact cp dayfact.csh $(INSTDIR)/dayfact cp debugcal.csh $(INSTDIR)/debugcal cp rlux.csh $(INSTDIR)/rlux + cp raddepend.csh $(INSTDIR)/raddepend + cp ivprep.csh $(INSTDIR)/ivprep + cp ivpict.csh $(INSTDIR)/ivpict + sed -e "1s|/usr/local/bin/wish|`which wish`|" \ + -e "s|^set radlib .*|set radlib $(LIBDIR)/tcl|" \ + trad.wsh > $(INSTDIR)/trad chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ - $(INSTDIR)/rlux + $(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/ivprep \ + $(INSTDIR)/ivpict $(INSTDIR)/trad + cd $(LIBDIR)/tcl ; rm -f $(TLIBFILES) + cp $(TLIBFILES) $(LIBDIR)/tcl clean: set nonomatch; rm -f *.o $(PROGS) core