| 1 | 
  | 
# | 
| 2 | 
  | 
# SCCSid "$SunId$ LBL" | 
| 3 | 
+ | 
# Radiance makefile for utility programs | 
| 4 | 
  | 
# | 
| 5 | 
  | 
 | 
| 6 | 
  | 
MACH = -DBSD | 
| 13 | 
  | 
 | 
| 14 | 
  | 
INSTDIR = /usr/local/bin | 
| 15 | 
  | 
 | 
| 16 | 
< | 
PROGS = findglare xglaresrc glarendx rpiece render | 
| 16 | 
> | 
PROGS = findglare xglaresrc glarendx rpiece rad | 
| 17 | 
  | 
 | 
| 18 | 
  | 
all:    $(PROGS) | 
| 19 | 
  | 
 | 
| 20 | 
< | 
install:        all objview.csh objpict.csh proj.csh glare.csh dayfact.csh \ | 
| 21 | 
< | 
rlux.csh | 
| 20 | 
> | 
install:        all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh \ | 
| 21 | 
> | 
raddepend.csh ivprep.csh ivpict.csh | 
| 22 | 
  | 
        cp $(PROGS) $(INSTDIR) | 
| 23 | 
  | 
        cp objview.csh $(INSTDIR)/objview | 
| 24 | 
  | 
        cp objpict.csh $(INSTDIR)/objpict | 
| 26 | 
  | 
        cp dayfact.csh $(INSTDIR)/dayfact | 
| 27 | 
  | 
        cp debugcal.csh $(INSTDIR)/debugcal | 
| 28 | 
  | 
        cp rlux.csh $(INSTDIR)/rlux | 
| 29 | 
+ | 
        cp raddepend.csh $(INSTDIR)/raddepend | 
| 30 | 
+ | 
        cp ivprep.csh $(INSTDIR)/ivprep | 
| 31 | 
+ | 
        cp ivpict.csh $(INSTDIR)/ivpict | 
| 32 | 
  | 
        chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ | 
| 33 | 
  | 
                $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ | 
| 34 | 
< | 
                $(INSTDIR)/rlux | 
| 34 | 
> | 
                $(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/ivprep \ | 
| 35 | 
> | 
                $(INSTDIR)/ivpict | 
| 36 | 
  | 
 | 
| 37 | 
  | 
clean: | 
| 38 | 
  | 
        set nonomatch; rm -f *.o $(PROGS) core | 
| 54 | 
  | 
        $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ | 
| 55 | 
  | 
x11findwind.o -lrt -lX11 -lm | 
| 56 | 
  | 
 | 
| 57 | 
< | 
render: render.o | 
| 58 | 
< | 
        $(CC) $(CFLAGS) -o render render.o -lrt -lm | 
| 57 | 
> | 
rad:    rad.o | 
| 58 | 
> | 
        $(CC) $(CFLAGS) -o rad rad.o -lrt -lm | 
| 59 | 
  | 
 | 
| 60 | 
  | 
rpiece: rpiece.o Version.o | 
| 61 | 
  | 
        $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm | 
| 83 | 
  | 
 | 
| 84 | 
  | 
rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h | 
| 85 | 
  | 
 | 
| 86 | 
< | 
render.o rpiece.o xglaresrc.o:  ../common/standard.h \ | 
| 86 | 
> | 
rad.o rpiece.o xglaresrc.o:     ../common/standard.h \ | 
| 87 | 
  | 
../common/mat4.h ../common/fvect.h | 
| 88 | 
  | 
 | 
| 89 | 
  | 
xglaresrc.o:    ../common/view.h |