1 |
< |
# SCCSid "$SunId$ LBL" |
2 |
< |
|
1 |
> |
# RCSid: $Id$ |
2 |
|
# |
3 |
|
# Makefile for object generation programs |
4 |
|
# |
5 |
|
|
6 |
|
OPT = -O |
7 |
|
MACH = -DBSD |
8 |
< |
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
8 |
> |
CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) |
9 |
|
CC = cc |
10 |
+ |
MLIB = -lm |
11 |
|
|
12 |
|
INSTDIR = /usr/local/bin |
13 |
|
|
14 |
|
LIBDIR = /usr/local/lib/ray |
15 |
|
|
16 |
< |
PROGS = genbox gensky xform genblinds genrev genworm \ |
17 |
< |
gensurf genprism replmarks mkillum |
16 |
> |
PROGS = genbox gensky xform genblinds genrev genworm gendaylit gendaymtx \ |
17 |
> |
gensurf genprism replmarks mkillum mksource genclock |
18 |
|
|
19 |
< |
CALFILES = illum.cal rev.cal skybright.cal surf.cal |
19 |
> |
LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \ |
20 |
> |
glaze1.cal glaze2.cal perezlum.cal coeff_perez.dat defangle.dat |
21 |
|
|
22 |
|
all: $(PROGS) |
23 |
|
|
24 |
< |
install: $(PROGS) $(CALFILES) |
24 |
> |
install: $(PROGS) $(LIBFILES) glaze.csh |
25 |
|
cp $(PROGS) $(INSTDIR) |
26 |
< |
cd $(LIBDIR) ; rm -f $(CALFILES) |
27 |
< |
cp $(CALFILES) $(LIBDIR) |
26 |
> |
cp glaze.csh $(INSTDIR)/glaze |
27 |
> |
chmod 755 $(INSTDIR)/glaze |
28 |
> |
cd $(LIBDIR) && rm -f $(LIBFILES) |
29 |
> |
cp $(LIBFILES) $(LIBDIR) |
30 |
|
|
31 |
|
clean: |
32 |
|
set nonomatch; rm -f $(PROGS) *.o core |
33 |
|
|
34 |
|
genbeads: genbeads.o hermite3.o |
35 |
< |
$(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o -lm |
35 |
> |
$(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o $(MLIB) |
36 |
|
|
37 |
|
genbox: genbox.o |
38 |
|
$(CC) $(CFLAGS) -o genbox genbox.o |
39 |
|
|
40 |
|
genmarble: genmarble.o ../common/random.h |
41 |
< |
$(CC) $(CFLAGS) -o genmarble genmarble.o -lm |
41 |
> |
$(CC) $(CFLAGS) -o genmarble genmarble.o $(MLIB) |
42 |
|
|
43 |
|
gensky: gensky.o sun.o |
44 |
< |
$(CC) $(CFLAGS) -o gensky gensky.o sun.o -lm |
44 |
> |
$(CC) $(CFLAGS) -o gensky gensky.o sun.o $(MLIB) |
45 |
|
|
46 |
+ |
gendaylit: gendaylit.o sun.o |
47 |
+ |
$(CC) $(CFLAGS) -o gendaylit gendaylit.o sun.o -lrtrad $(MLIB) |
48 |
+ |
|
49 |
+ |
gendaymtx: gendaymtx.o sun.o |
50 |
+ |
$(CC) $(CFLAGS) -o gendaymtx gendaymtx.o sun.o -lrtrad $(MLIB) |
51 |
+ |
|
52 |
|
genblinds: genblinds.o |
53 |
< |
$(CC) $(CFLAGS) -o genblinds genblinds.o -lm |
53 |
> |
$(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB) |
54 |
|
|
55 |
|
genprism: genprism.o |
56 |
< |
$(CC) $(CFLAGS) -o genprism genprism.o |
56 |
> |
$(CC) $(CFLAGS) -o genprism genprism.o $(MLIB) |
57 |
|
|
58 |
|
xform: xform.o |
59 |
< |
$(CC) $(CFLAGS) -o xform xform.o -lrt -lm |
59 |
> |
$(CC) $(CFLAGS) -o xform xform.o -lrtrad $(MLIB) |
60 |
|
|
61 |
|
replmarks: replmarks.o |
62 |
< |
$(CC) $(CFLAGS) -o replmarks replmarks.o -lrt -lm |
62 |
> |
$(CC) $(CFLAGS) -o replmarks replmarks.o -lrtrad $(MLIB) |
63 |
|
|
64 |
|
mkillum: mkillum.o mkillum2.o mkillum3.o |
65 |
< |
$(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o -lrt -lm |
65 |
> |
$(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \ |
66 |
> |
-lraycalls -lradiance -lrtrad $(MLIB) |
67 |
|
|
68 |
+ |
mksource: mksource.o |
69 |
+ |
$(CC) $(CFLAGS) -o mksource mksource.o \ |
70 |
+ |
-lraycalls -lradiance -lrtrad $(MLIB) |
71 |
+ |
|
72 |
|
genrev: genrev.o |
73 |
< |
$(CC) $(CFLAGS) -o genrev genrev.o -lrt -lm |
73 |
> |
$(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB) |
74 |
|
|
75 |
+ |
gencatenary: gencat.o |
76 |
+ |
$(CC) $(CFLAGS) -o gencatenary gencat.o -lrtrad $(MLIB) |
77 |
+ |
|
78 |
|
genworm: genworm.o |
79 |
< |
$(CC) $(CFLAGS) -o genworm genworm.o -lrt -lm |
79 |
> |
$(CC) $(CFLAGS) -o genworm genworm.o -lrtrad $(MLIB) |
80 |
|
|
81 |
|
gensurf: gensurf.o |
82 |
< |
$(CC) $(CFLAGS) -o gensurf gensurf.o -lrt -lm |
82 |
> |
$(CC) $(CFLAGS) -o gensurf gensurf.o -lrtrad $(MLIB) |
83 |
|
|
84 |
+ |
genclock: genclock.o |
85 |
+ |
$(CC) $(CFLAGS) -o genclock genclock.o $(MLIB) |
86 |
+ |
|
87 |
|
genbranch: genbranch.o |
88 |
< |
$(CC) $(CFLAGS) -o genbranch genbranch.o -lm |
88 |
> |
$(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) |
89 |
|
|
90 |
< |
gensurf.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
90 |
> |
mksource.o: ../common/random.h ../rt/ray.h ../common/octree.h \ |
91 |
> |
../common/object.h ../common/color.h \ |
92 |
> |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
93 |
> |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
94 |
> |
../common/rterror.h |
95 |
|
|
96 |
|
genworm.o replmarks.o: ../common/fvect.h |
97 |
|
|
98 |
< |
xform.o: ../common/standard.h ../common/mat4.h ../common/fvect.h \ |
99 |
< |
../common/otypes.h ../common/object.h |
98 |
> |
gensurf.o xform.o: ../common/standard.h \ |
99 |
> |
../common/rtmisc.h ../common/rtio.h \ |
100 |
> |
../common/rtmath.h ../common/rterror.h \ |
101 |
> |
../common/mat4.h ../common/fvect.h |
102 |
|
|
103 |
< |
mkillum.o mkillum2.o mkillum3.o: mkillum.h ../common/standard.h \ |
78 |
< |
../common/mat4.h ../common/fvect.h ../common/otypes.h ../common/object.h |
103 |
> |
genworm.o genrev.o gensurf.o: ../common/resolu.h ../common/rterror.h |
104 |
|
|
105 |
+ |
xform.o: ../common/otypes.h ../common/object.h |
106 |
+ |
|
107 |
+ |
mkillum.o mkillum2.o mkillum3.o: mkillum.h \ |
108 |
+ |
../common/otypes.h ../rt/ray.h ../common/octree.h \ |
109 |
+ |
../common/object.h ../common/color.h \ |
110 |
+ |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
111 |
+ |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
112 |
+ |
../common/rterror.h ../common/random.h |
113 |
+ |
|
114 |
+ |
mkillum2.o: ../rt/source.h ../common/face.h ../common/cone.h |
115 |
+ |
|
116 |
+ |
mkillum2.o mkillum3.o: ../common/paths.h |
117 |
+ |
|
118 |
|
gensky.o: ../common/color.h |
119 |
+ |
|
120 |
+ |
gensurf.o genworm.o genrev.o: ../common/calcomp.h |