9 |
|
CC = cc |
10 |
|
MLIB = -lm |
11 |
|
|
12 |
+ |
INSTALL = cp |
13 |
+ |
|
14 |
|
INSTDIR = /usr/local/bin |
15 |
|
|
16 |
|
LIBDIR = /usr/local/lib/ray |
17 |
|
|
18 |
< |
PROGS = genbox gensky xform genblinds genrev genworm \ |
18 |
> |
PROGS = genbox gensky xform genblinds genrev genworm gendaylit gendaymtx \ |
19 |
|
gensurf genprism replmarks mkillum mksource genclock |
20 |
|
|
21 |
|
LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \ |
22 |
< |
glaze1.cal glaze2.cal |
22 |
> |
glaze1.cal glaze2.cal perezlum.cal perezlum_c.cal |
23 |
|
|
24 |
|
all: $(PROGS) |
25 |
|
|
26 |
|
install: $(PROGS) $(LIBFILES) glaze.csh |
27 |
< |
cp $(PROGS) $(INSTDIR) |
27 |
> |
$(INSTALL) $(PROGS) $(INSTDIR) |
28 |
|
cp glaze.csh $(INSTDIR)/glaze |
29 |
|
chmod 755 $(INSTDIR)/glaze |
30 |
|
cd $(LIBDIR) && rm -f $(LIBFILES) |
31 |
|
cp $(LIBFILES) $(LIBDIR) |
32 |
|
|
33 |
|
clean: |
34 |
< |
set nonomatch; rm -f $(PROGS) *.o core |
34 |
> |
set nonomatch; rm -f $(PROGS) *.o |
35 |
|
|
36 |
|
genbeads: genbeads.o hermite3.o |
37 |
|
$(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o $(MLIB) |
38 |
|
|
39 |
|
genbox: genbox.o |
40 |
< |
$(CC) $(CFLAGS) -o genbox genbox.o |
40 |
> |
$(CC) $(CFLAGS) -o genbox genbox.o -lwfobj -lrtrad $(MLIB) |
41 |
|
|
42 |
|
genmarble: genmarble.o ../common/random.h |
43 |
|
$(CC) $(CFLAGS) -o genmarble genmarble.o $(MLIB) |
44 |
|
|
45 |
|
gensky: gensky.o sun.o |
46 |
< |
$(CC) $(CFLAGS) -o gensky gensky.o sun.o $(MLIB) |
46 |
> |
$(CC) $(CFLAGS) -o gensky gensky.o sun.o -lrtrad $(MLIB) |
47 |
|
|
48 |
+ |
gendaylit: gendaylit.o sun.o |
49 |
+ |
$(CC) $(CFLAGS) -o gendaylit gendaylit.o sun.o -lrtrad $(MLIB) |
50 |
+ |
|
51 |
+ |
gendaymtx: gendaymtx.o sun.o |
52 |
+ |
$(CC) $(CFLAGS) -o gendaymtx gendaymtx.o sun.o -lrtrad $(MLIB) |
53 |
+ |
|
54 |
|
genblinds: genblinds.o |
55 |
< |
$(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB) |
55 |
> |
$(CC) $(CFLAGS) -o genblinds genblinds.o -lrtrad $(MLIB) |
56 |
|
|
57 |
|
genprism: genprism.o |
58 |
< |
$(CC) $(CFLAGS) -o genprism genprism.o $(MLIB) |
58 |
> |
$(CC) $(CFLAGS) -o genprism genprism.o -lrtrad $(MLIB) |
59 |
|
|
60 |
|
xform: xform.o |
61 |
|
$(CC) $(CFLAGS) -o xform xform.o -lrtrad $(MLIB) |
63 |
|
replmarks: replmarks.o |
64 |
|
$(CC) $(CFLAGS) -o replmarks replmarks.o -lrtrad $(MLIB) |
65 |
|
|
66 |
< |
mkillum: mkillum.o mkillum2.o mkillum3.o mkillum4.o ezxml.o |
66 |
> |
mkillum: mkillum.o mkillum2.o mkillum3.o |
67 |
|
$(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \ |
68 |
< |
mkillum4.o ezxml.o -lraycalls -lradiance -lrtrad $(MLIB) |
68 |
> |
-lraycalls -lradiance -lrtrad $(MLIB) |
69 |
|
|
70 |
|
mksource: mksource.o |
71 |
|
$(CC) $(CFLAGS) -o mksource mksource.o \ |
93 |
|
../common/object.h ../common/color.h \ |
94 |
|
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
95 |
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
96 |
< |
../common/rterror.h ../common/tifftypes.h |
96 |
> |
../common/rterror.h |
97 |
|
|
98 |
|
genworm.o replmarks.o: ../common/fvect.h |
99 |
|
|
100 |
|
gensurf.o xform.o: ../common/standard.h \ |
101 |
|
../common/rtmisc.h ../common/rtio.h \ |
102 |
|
../common/rtmath.h ../common/rterror.h \ |
103 |
< |
../common/mat4.h ../common/fvect.h ../common/tifftypes.h |
103 |
> |
../common/mat4.h ../common/fvect.h |
104 |
|
|
105 |
+ |
genbox.o: ../common/fvect.h ../common/objutil.h ../common/rtio.h |
106 |
+ |
|
107 |
|
genworm.o genrev.o gensurf.o: ../common/resolu.h ../common/rterror.h |
108 |
|
|
109 |
|
xform.o: ../common/otypes.h ../common/object.h |
110 |
|
|
111 |
< |
mkillum.o mkillum2.o mkillum3.o mkillum4.o: mkillum.h \ |
111 |
> |
mkillum.o mkillum2.o mkillum3.o: mkillum.h \ |
112 |
|
../common/otypes.h ../rt/ray.h ../common/octree.h \ |
113 |
|
../common/object.h ../common/color.h \ |
114 |
|
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
115 |
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
116 |
< |
../common/rterror.h ../common/tifftypes.h |
116 |
> |
../common/rterror.h ../common/random.h |
117 |
|
|
118 |
< |
ezxml.o mkillum4.o: ezxml.h |
118 |
> |
mkillum2.o: ../rt/source.h ../common/face.h ../common/cone.h |
119 |
|
|
120 |
+ |
mkillum2.o mkillum3.o: ../common/paths.h |
121 |
+ |
|
122 |
|
gensky.o: ../common/color.h |
123 |
|
|
124 |
|
gensurf.o genworm.o genrev.o: ../common/calcomp.h |
125 |
+ |
|
126 |
+ |
gendaylit.o gensky.o sun.o: sun.h |
127 |
+ |
|
128 |
+ |
gendaymtx.o: ../common/platform.h ../common/rtmath.h \ |
129 |
+ |
../common/mat4.h ../common/fvect.h ../common/color.h |