| 1 |
|
# |
| 2 |
|
# SCCSid "$SunId$ LBL" |
| 3 |
+ |
# Radiance makefile for utility programs |
| 4 |
|
# |
| 5 |
|
|
| 6 |
|
MACH = -DBSD |
| 9 |
|
|
| 10 |
|
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
| 11 |
|
|
| 12 |
+ |
CC = cc |
| 13 |
+ |
|
| 14 |
|
INSTDIR = /usr/local/bin |
| 15 |
|
|
| 16 |
< |
PROGS = findglare xglaresrc glarendx |
| 16 |
> |
LIBDIR = /usr/local/lib/ray |
| 17 |
|
|
| 18 |
+ |
PROGS = findglare xglaresrc glarendx rpiece rad vwright |
| 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 proj.csh glare.csh dayfact.csh |
| 27 |
> |
install: all objview.csh objpict.csh glare.csh dayfact.csh rlux.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 |
| 32 |
|
cp glare.csh $(INSTDIR)/glare |
| 33 |
|
cp dayfact.csh $(INSTDIR)/dayfact |
| 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 |
|
chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ |
| 40 |
< |
$(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal |
| 40 |
> |
$(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ |
| 41 |
> |
$(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/ivprep \ |
| 42 |
> |
$(INSTDIR)/ivpict |
| 43 |
> |
sed -e "1s|/usr/local/bin/wish|`which wish`|" \ |
| 44 |
> |
-e "s|^set radlib .*|set radlib $(LIBDIR)/tcl|" \ |
| 45 |
> |
trad.wsh > $(INSTDIR)/trad |
| 46 |
> |
chmod 755 $(INSTDIR)/trad |
| 47 |
> |
cd $(LIBDIR)/tcl ; rm -f $(TLIBFILES) |
| 48 |
> |
cp $(TLIBFILES) $(LIBDIR)/tcl |
| 49 |
|
|
| 50 |
|
clean: |
| 51 |
|
set nonomatch; rm -f *.o $(PROGS) core |
| 52 |
|
|
| 53 |
|
scanner: scanner.o |
| 54 |
< |
cc $(CFLAGS) -o scanner scanner.o -lm |
| 54 |
> |
$(CC) $(CFLAGS) -o scanner scanner.o -lm |
| 55 |
|
|
| 56 |
|
makedist: makedist.o setscan.o |
| 57 |
< |
cc $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm |
| 57 |
> |
$(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm |
| 58 |
|
|
| 59 |
|
findglare: findglare.o glareval.o glaresrc.o setscan.o |
| 60 |
< |
cc $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ |
| 60 |
> |
$(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ |
| 61 |
|
setscan.o -lrt -lm |
| 62 |
|
|
| 63 |
|
glarendx: glarendx.o |
| 64 |
< |
cc $(CFLAGS) -o glarendx glarendx.o -lrt -lm |
| 64 |
> |
$(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm |
| 65 |
|
|
| 66 |
|
xglaresrc: xglaresrc.o x11findwind.o |
| 67 |
< |
cc $(CFLAGS) -o xglaresrc xglaresrc.o \ |
| 67 |
> |
$(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ |
| 68 |
|
x11findwind.o -lrt -lX11 -lm |
| 69 |
|
|
| 70 |
+ |
rad: rad.o |
| 71 |
+ |
$(CC) $(CFLAGS) -o rad rad.o -lrt -lm |
| 72 |
+ |
|
| 73 |
+ |
rpiece: rpiece.o Version.o |
| 74 |
+ |
$(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm |
| 75 |
+ |
|
| 76 |
+ |
vwright: vwright.o |
| 77 |
+ |
$(CC) $(CFLAGS) -o vwright vwright.o -lrt -lm |
| 78 |
+ |
|
| 79 |
|
contour: contour.o |
| 80 |
< |
cc $(CFLAGS) -o contour contour.o -lm |
| 80 |
> |
$(CC) $(CFLAGS) -o contour contour.o -lm |
| 81 |
|
|
| 82 |
|
pranim: pranim.o client/libclient.a |
| 83 |
< |
cc $(CFLAGS) -o pranim pranim.o \ |
| 83 |
> |
$(CC) $(CFLAGS) -o pranim pranim.o \ |
| 84 |
|
client/libclient.a -lrpcsvc |
| 85 |
|
|
| 86 |
|
t16anim: t16anim.o client/libclient.a |
| 87 |
< |
cc $(CFLAGS) -o t16anim t16anim.o \ |
| 87 |
> |
$(CC) $(CFLAGS) -o t16anim t16anim.o \ |
| 88 |
|
client/libclient.a -lrpcsvc |
| 89 |
|
|
| 90 |
|
t16anim.o pranim.o: client/clnt.h |
| 97 |
|
|
| 98 |
|
glaresrc.o: ../common/linregr.h |
| 99 |
|
|
| 100 |
< |
image.o xglaresrc.o: ../common/standard.h ../common/mat4.h \ |
| 69 |
< |
../common/fvect.h ../common/view.h |
| 100 |
> |
rpiece.o: ../common/color.h ../common/view.h ../common/resolu.h |
| 101 |
|
|
| 102 |
+ |
rad.o rpiece.o xglaresrc.o: ../common/standard.h \ |
| 103 |
+ |
../common/mat4.h ../common/fvect.h |
| 104 |
+ |
|
| 105 |
+ |
xglaresrc.o: ../common/view.h |
| 106 |
+ |
|
| 107 |
|
swaprasheader.o: ../common/rasterfile.h |
| 108 |
|
|
| 109 |
|
glareval.o xglaresrc.o: ../common/resolu.h |
| 110 |
+ |
|
| 111 |
+ |
xglaresrc.o: ../common/vfork.h |