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 gendaylit gendaymtx \ |
19 |
< |
gensurf genprism replmarks mkillum mksource genclock |
19 |
> |
gensurf genprism replmarks mkillum mksource genclock genssky gensdaymtx |
20 |
|
|
21 |
|
LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \ |
22 |
< |
glaze1.cal glaze2.cal perezlum.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) |
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) |
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) |
71 |
|
$(CC) $(CFLAGS) -o mksource mksource.o \ |
72 |
|
-lraycalls -lradiance -lrtrad $(MLIB) |
73 |
|
|
74 |
< |
genrev: genrev.o |
74 |
> |
genrev: genrev.o |
75 |
|
$(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB) |
76 |
|
|
77 |
|
gencatenary: gencat.o |
89 |
|
genbranch: genbranch.o |
90 |
|
$(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) |
91 |
|
|
92 |
+ |
|
93 |
+ |
# Assume rt is built before this |
94 |
+ |
genssky: genssky.o sun.o atmos.o |
95 |
+ |
$(CC) $(CFLAGS) -o genssky genssky.o sun.o atmos.o -lrtrad $(MLIB) |
96 |
+ |
|
97 |
+ |
gensdaymtx: gensdaymtx.o sun.o atmos.o |
98 |
+ |
$(CC) $(CFLAGS) -o gensdaymtx gensdaymtx.o sun.o atmos.o -lrtrad $(MLIB) |
99 |
+ |
|
100 |
+ |
|
101 |
|
mksource.o: ../common/random.h ../rt/ray.h ../common/octree.h \ |
102 |
|
../common/object.h ../common/color.h \ |
103 |
|
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
111 |
|
../common/rtmath.h ../common/rterror.h \ |
112 |
|
../common/mat4.h ../common/fvect.h |
113 |
|
|
114 |
+ |
genbox.o: ../common/fvect.h ../common/objutil.h ../common/rtio.h |
115 |
+ |
|
116 |
|
genworm.o genrev.o gensurf.o: ../common/resolu.h ../common/rterror.h |
117 |
|
|
118 |
|
xform.o: ../common/otypes.h ../common/object.h |
136 |
|
|
137 |
|
gendaymtx.o: ../common/platform.h ../common/rtmath.h \ |
138 |
|
../common/mat4.h ../common/fvect.h ../common/color.h |
139 |
+ |
|
140 |
+ |
genssky.o: ../common/rtio.h ../common/rtmath.h \ |
141 |
+ |
../common/paths.h ../common/color.h |
142 |
+ |
|
143 |
+ |
atmos.o: ../common/rtio.h ../common/rtmath.h ../common/color.h \ |
144 |
+ |
../common/data.h sun.h |