| 1 | 
  | 
# | 
| 2 | 
  | 
# SCCSid "$SunId$ LBL" | 
| 3 | 
– | 
# | 
| 3 | 
  | 
# Radiance makefile for utility programs | 
| 4 | 
  | 
# | 
| 5 | 
  | 
 | 
| 13 | 
  | 
 | 
| 14 | 
  | 
INSTDIR = /usr/local/bin | 
| 15 | 
  | 
 | 
| 16 | 
+ | 
LIBDIR = /usr/local/lib/ray | 
| 17 | 
+ | 
 | 
| 18 | 
  | 
PROGS = findglare xglaresrc glarendx rpiece rad | 
| 19 | 
  | 
 | 
| 20 | 
+ | 
TLIBFILES = do_action.tcl do_file.tcl do_options.tcl do_results.tcl \ | 
| 21 | 
+ | 
                do_scene.tcl do_views.tcl do_zone.tcl \ | 
| 22 | 
+ | 
                getfile.tcl gethelp.tcl util.tcl tclIndex \ | 
| 23 | 
+ | 
                trad.hlp help.hlp file.hlp trad.icon | 
| 24 | 
+ | 
 | 
| 25 | 
  | 
all:    $(PROGS) | 
| 26 | 
  | 
 | 
| 27 | 
  | 
install:        all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh \ | 
| 28 | 
< | 
raddepend.csh | 
| 28 | 
> | 
raddepend.csh ivprep.csh ivpict.csh trad.wsh | 
| 29 | 
  | 
        cp $(PROGS) $(INSTDIR) | 
| 30 | 
  | 
        cp objview.csh $(INSTDIR)/objview | 
| 31 | 
  | 
        cp objpict.csh $(INSTDIR)/objpict | 
| 34 | 
  | 
        cp debugcal.csh $(INSTDIR)/debugcal | 
| 35 | 
  | 
        cp rlux.csh $(INSTDIR)/rlux | 
| 36 | 
  | 
        cp raddepend.csh $(INSTDIR)/raddepend | 
| 37 | 
+ | 
        cp ivprep.csh $(INSTDIR)/ivprep | 
| 38 | 
+ | 
        cp ivpict.csh $(INSTDIR)/ivpict | 
| 39 | 
+ | 
        sed "s|^set radlib .*|set radlib $(LIBDIR)/tcl|" trad.wsh > $(INSTDIR)/trad | 
| 40 | 
  | 
        chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ | 
| 41 | 
  | 
                $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ | 
| 42 | 
< | 
                $(INSTDIR)/rlux $(INSTDIR)/raddepend | 
| 42 | 
> | 
                $(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/ivprep \ | 
| 43 | 
> | 
                $(INSTDIR)/ivpict $(INSTDIR)/trad | 
| 44 | 
> | 
        cd $(LIBDIR)/tcl ; rm -f $(TLIBFILES) | 
| 45 | 
> | 
        cp $(TLIBFILES) $(LIBDIR)/tcl | 
| 46 | 
  | 
 | 
| 47 | 
  | 
clean: | 
| 48 | 
  | 
        set nonomatch; rm -f *.o $(PROGS) core |