7 |
|
MACH = -DBSD |
8 |
|
CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) |
9 |
|
CC = cc |
10 |
+ |
PTHD = -pthread |
11 |
|
MLIB = -lm |
12 |
|
|
13 |
+ |
INSTALL = cp |
14 |
+ |
|
15 |
|
INSTDIR = /usr/local/bin |
16 |
|
|
17 |
|
LIBDIR = /usr/local/lib/ray |
18 |
|
|
19 |
|
PROGS = genbox gensky xform genblinds genrev genworm gendaylit gendaymtx \ |
20 |
< |
gensurf genprism replmarks mkillum mksource genclock |
20 |
> |
gensurf genprism replmarks mkillum mksource genclock genssky gensdaymtx |
21 |
|
|
22 |
|
LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \ |
23 |
< |
glaze1.cal glaze2.cal perezlum.cal perezlum_c.cal |
23 |
> |
glaze1.cal glaze2.cal perezlum.cal perezlum_c.cal mie_ca.dat |
24 |
|
|
25 |
|
all: $(PROGS) |
26 |
|
|
27 |
|
install: $(PROGS) $(LIBFILES) glaze.csh |
28 |
< |
cp $(PROGS) $(INSTDIR) |
28 |
> |
$(INSTALL) $(PROGS) $(INSTDIR) |
29 |
|
cp glaze.csh $(INSTDIR)/glaze |
30 |
|
chmod 755 $(INSTDIR)/glaze |
31 |
|
cd $(LIBDIR) && rm -f $(LIBFILES) |
38 |
|
$(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o $(MLIB) |
39 |
|
|
40 |
|
genbox: genbox.o |
41 |
< |
$(CC) $(CFLAGS) -o genbox genbox.o -lrtrad -lwfobj |
41 |
> |
$(CC) $(CFLAGS) -o genbox genbox.o -lwfobj -lrtrad $(MLIB) |
42 |
|
|
43 |
|
genmarble: genmarble.o ../common/random.h |
44 |
|
$(CC) $(CFLAGS) -o genmarble genmarble.o $(MLIB) |
72 |
|
$(CC) $(CFLAGS) -o mksource mksource.o \ |
73 |
|
-lraycalls -lradiance -lrtrad $(MLIB) |
74 |
|
|
75 |
< |
genrev: genrev.o |
75 |
> |
genrev: genrev.o |
76 |
|
$(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB) |
77 |
|
|
78 |
|
gencatenary: gencat.o |
90 |
|
genbranch: genbranch.o |
91 |
|
$(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) |
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 \ |
96 |
+ |
-lrtrad $(MLIB) |
97 |
+ |
|
98 |
+ |
gensdaymtx: gensdaymtx.o sun.o atmos.o |
99 |
+ |
$(CC) $(CFLAGS) -o gensdaymtx gensdaymtx.o sun.o atmos.o \ |
100 |
+ |
-lrtrad $(MLIB) |
101 |
+ |
|
102 |
|
mksource.o: ../common/random.h ../rt/ray.h ../common/octree.h \ |
103 |
|
../common/object.h ../common/color.h \ |
104 |
|
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
137 |
|
|
138 |
|
gendaymtx.o: ../common/platform.h ../common/rtmath.h \ |
139 |
|
../common/mat4.h ../common/fvect.h ../common/color.h |
140 |
+ |
|
141 |
+ |
genssky.o: ../common/rtio.h ../common/rtmath.h \ |
142 |
+ |
../common/paths.h ../common/color.h |
143 |
+ |
|
144 |
+ |
genssky.o gensdaymtx.o: atmos.h |
145 |
+ |
|
146 |
+ |
atmos.o: ../common/rtio.h ../common/rtmath.h ../common/color.h \ |
147 |
+ |
../common/data.h sun.h |
148 |
+ |
$(CC) $(CFLAGS) $(PTHD) -c atmos.c |