| 1 |
greg |
2.37 |
# RCSid: $Id: Rmakefile,v 2.36 2003/11/10 16:52:24 greg Exp $ |
| 2 |
greg |
1.1 |
# |
| 3 |
greg |
2.10 |
# Radiance makefile for utility programs |
| 4 |
|
|
# |
| 5 |
greg |
1.1 |
|
| 6 |
greg |
1.16 |
MACH = -DBSD |
| 7 |
greg |
1.1 |
|
| 8 |
|
|
OPT = -O |
| 9 |
|
|
|
| 10 |
greg |
2.31 |
CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) |
| 11 |
greg |
1.1 |
|
| 12 |
greg |
2.3 |
CC = cc |
| 13 |
|
|
|
| 14 |
gwlarson |
2.28 |
SPECIAL = |
| 15 |
|
|
|
| 16 |
greg |
1.14 |
INSTDIR = /usr/local/bin |
| 17 |
greg |
1.1 |
|
| 18 |
greg |
2.12 |
LIBDIR = /usr/local/lib/ray |
| 19 |
|
|
|
| 20 |
greg |
2.31 |
PROGS = findglare glarendx rpiece rad ranimate ranimove vwright getinfo \ |
| 21 |
|
|
vwrays xglaresrc |
| 22 |
greg |
1.1 |
|
| 23 |
gwlarson |
2.30 |
all: $(PROGS) |
| 24 |
greg |
1.1 |
|
| 25 |
gwlarson |
2.30 |
install: all $(SPECIAL) objview.csh objpict.csh glare.csh dayfact.csh \ |
| 26 |
|
|
rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh |
| 27 |
greg |
1.1 |
cp $(PROGS) $(INSTDIR) |
| 28 |
|
|
cp objview.csh $(INSTDIR)/objview |
| 29 |
greg |
2.17 |
cp objline.csh $(INSTDIR)/objline |
| 30 |
greg |
1.1 |
cp objpict.csh $(INSTDIR)/objpict |
| 31 |
greg |
1.9 |
cp glare.csh $(INSTDIR)/glare |
| 32 |
greg |
1.11 |
cp dayfact.csh $(INSTDIR)/dayfact |
| 33 |
greg |
1.15 |
cp debugcal.csh $(INSTDIR)/debugcal |
| 34 |
greg |
2.6 |
cp rlux.csh $(INSTDIR)/rlux |
| 35 |
greg |
2.10 |
cp raddepend.csh $(INSTDIR)/raddepend |
| 36 |
gregl |
2.25 |
cp compamb.csh $(INSTDIR)/compamb |
| 37 |
greg |
2.31 |
cp vinfo.csh $(INSTDIR)/vinfo |
| 38 |
greg |
2.37 |
cp genambpos.csh $(INSTDIR)/genambpos |
| 39 |
greg |
2.15 |
chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ |
| 40 |
|
|
$(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ |
| 41 |
gregl |
2.25 |
$(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/objline \ |
| 42 |
greg |
2.37 |
$(INSTDIR)/compamb $(INSTDIR)/vinfo $(INSTDIR)/genambpos |
| 43 |
greg |
2.16 |
csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl |
| 44 |
greg |
1.1 |
|
| 45 |
|
|
clean: |
| 46 |
greg |
2.31 |
set nonomatch; rm -f *.o $(PROGS) glrad core |
| 47 |
greg |
1.1 |
|
| 48 |
gwlarson |
2.27 |
ogl: glrad |
| 49 |
|
|
cp glrad $(INSTDIR) |
| 50 |
gwlarson |
2.28 |
|
| 51 |
|
|
x10: |
| 52 |
|
|
|
| 53 |
|
|
aed: |
| 54 |
|
|
|
| 55 |
|
|
sgi: |
| 56 |
|
|
|
| 57 |
|
|
sun: |
| 58 |
gwlarson |
2.27 |
|
| 59 |
greg |
1.1 |
scanner: scanner.o |
| 60 |
greg |
2.10 |
$(CC) $(CFLAGS) -o scanner scanner.o -lm |
| 61 |
greg |
1.1 |
|
| 62 |
greg |
1.12 |
makedist: makedist.o setscan.o |
| 63 |
greg |
2.10 |
$(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm |
| 64 |
greg |
1.1 |
|
| 65 |
greg |
1.12 |
findglare: findglare.o glareval.o glaresrc.o setscan.o |
| 66 |
greg |
2.3 |
$(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ |
| 67 |
greg |
2.10 |
setscan.o -lrt -lm |
| 68 |
greg |
1.7 |
|
| 69 |
greg |
1.12 |
glarendx: glarendx.o |
| 70 |
greg |
2.10 |
$(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm |
| 71 |
greg |
1.3 |
|
| 72 |
greg |
1.12 |
xglaresrc: xglaresrc.o x11findwind.o |
| 73 |
greg |
2.3 |
$(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ |
| 74 |
greg |
2.10 |
x11findwind.o -lrt -lX11 -lm |
| 75 |
greg |
1.4 |
|
| 76 |
greg |
2.23 |
rad: rad.o |
| 77 |
|
|
$(CC) $(CFLAGS) -o rad rad.o -lrt -lm |
| 78 |
greg |
2.19 |
|
| 79 |
greg |
2.23 |
ranimate: ranimate.o netproc.o |
| 80 |
|
|
$(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrt -lm |
| 81 |
greg |
2.6 |
|
| 82 |
greg |
2.34 |
ranimove: ranimove.o ranimove1.o ranimove2.o |
| 83 |
greg |
2.31 |
$(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \ |
| 84 |
greg |
2.34 |
-lraycalls -lradiance -lrt -lm |
| 85 |
greg |
2.31 |
|
| 86 |
greg |
2.5 |
rpiece: rpiece.o Version.o |
| 87 |
greg |
2.10 |
$(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm |
| 88 |
greg |
2.14 |
|
| 89 |
|
|
vwright: vwright.o |
| 90 |
|
|
$(CC) $(CFLAGS) -o vwright vwright.o -lrt -lm |
| 91 |
gregl |
2.24 |
|
| 92 |
|
|
vwrays: vwrays.o |
| 93 |
|
|
$(CC) $(CFLAGS) -o vwrays vwrays.o -lrt -lm |
| 94 |
greg |
2.22 |
|
| 95 |
|
|
getinfo: getinfo.o |
| 96 |
|
|
$(CC) $(CFLAGS) -o getinfo getinfo.o -lrt |
| 97 |
greg |
2.4 |
|
| 98 |
gwlarson |
2.27 |
glrad: glrad.o |
| 99 |
gwlarson |
2.29 |
$(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrt -lGLU -lGL \ |
| 100 |
|
|
-lX11 -lXext -lm |
| 101 |
gwlarson |
2.27 |
|
| 102 |
greg |
1.1 |
contour: contour.o |
| 103 |
greg |
2.10 |
$(CC) $(CFLAGS) -o contour contour.o -lm |
| 104 |
greg |
1.1 |
|
| 105 |
|
|
pranim: pranim.o client/libclient.a |
| 106 |
greg |
2.3 |
$(CC) $(CFLAGS) -o pranim pranim.o \ |
| 107 |
greg |
1.1 |
client/libclient.a -lrpcsvc |
| 108 |
|
|
|
| 109 |
|
|
t16anim: t16anim.o client/libclient.a |
| 110 |
greg |
2.3 |
$(CC) $(CFLAGS) -o t16anim t16anim.o \ |
| 111 |
greg |
1.1 |
client/libclient.a -lrpcsvc |
| 112 |
|
|
|
| 113 |
|
|
t16anim.o pranim.o: client/clnt.h |
| 114 |
|
|
|
| 115 |
greg |
1.3 |
setscan.o makedist.o: setscan.h |
| 116 |
|
|
|
| 117 |
|
|
findglare.o glareval.o \ |
| 118 |
greg |
2.35 |
glaresrc.o: glare.h ../common/standard.h \ |
| 119 |
|
|
../common/rtmisc.h ../common/rtio.h \ |
| 120 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
| 121 |
|
|
../common/rterror.h \ |
| 122 |
|
|
../common/view.h ../common/color.h setscan.h |
| 123 |
greg |
1.10 |
|
| 124 |
greg |
1.12 |
glaresrc.o: ../common/linregr.h |
| 125 |
greg |
1.3 |
|
| 126 |
greg |
2.4 |
rpiece.o: ../common/color.h ../common/view.h ../common/resolu.h |
| 127 |
|
|
|
| 128 |
greg |
2.20 |
rad.o ranimate.o rpiece.o xglaresrc.o: ../common/standard.h \ |
| 129 |
greg |
2.35 |
../common/rtmisc.h ../common/rtio.h \ |
| 130 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
| 131 |
|
|
../common/rterror.h |
| 132 |
greg |
2.4 |
|
| 133 |
|
|
xglaresrc.o: ../common/view.h |
| 134 |
greg |
1.3 |
|
| 135 |
greg |
1.12 |
swaprasheader.o: ../common/rasterfile.h |
| 136 |
greg |
1.17 |
|
| 137 |
greg |
1.18 |
glareval.o xglaresrc.o: ../common/resolu.h |
| 138 |
greg |
2.18 |
|
| 139 |
greg |
2.23 |
rad.o ranimate.o: ../common/vars.h |
| 140 |
greg |
2.20 |
|
| 141 |
greg |
2.31 |
ranimove1.o ranimove2.o: ../common/random.h |
| 142 |
|
|
|
| 143 |
greg |
2.20 |
rad.o: ../common/paths.h |
| 144 |
|
|
|
| 145 |
|
|
ranimate.o netproc.o: netproc.h |
| 146 |
|
|
|
| 147 |
greg |
2.31 |
ranimove1.o: ../common/otypes.h |
| 148 |
|
|
|
| 149 |
greg |
2.21 |
netproc.o: ../common/paths.h |
| 150 |
|
|
|
| 151 |
greg |
2.31 |
rad.o ranimate.o ranimove.o: ../common/view.h ../common/resolu.h |
| 152 |
gwlarson |
2.27 |
|
| 153 |
|
|
glrad.o: ../common/radogl.h \ |
| 154 |
greg |
2.35 |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
| 155 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
| 156 |
|
|
../common/rterror.h \ |
| 157 |
gwlarson |
2.27 |
../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h |
| 158 |
|
|
|
| 159 |
|
|
glrad.o: glradicon.h ../common/view.h ../common/paths.h |
| 160 |
greg |
2.31 |
|
| 161 |
|
|
ranimove.o ranimove1.o ranimove2.o: ranimove.h \ |
| 162 |
|
|
../common/vars.h ../common/view.h \ |
| 163 |
greg |
2.35 |
../rt/ray.h ../common/octree.h \ |
| 164 |
|
|
../common/object.h ../common/color.h \ |
| 165 |
|
|
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
| 166 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
| 167 |
|
|
../common/rterror.h |
| 168 |
greg |
2.31 |
|
| 169 |
|
|
Version.c: ../rt/Version.c |
| 170 |
|
|
cp ../rt/Version.c . |
| 171 |
|
|
|
| 172 |
|
|
x11findwind.c: ../common/x11findwind.c |
| 173 |
|
|
cp ../common/x11findwind.c . |