1 |
< |
# SCCSid "$SunId$ LBL" |
2 |
< |
|
1 |
> |
# RCSid: $Id$ |
2 |
|
# |
3 |
|
# Makefile for object generation programs |
4 |
|
# |
5 |
|
|
6 |
|
OPT = -O |
7 |
< |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/libm.il -DIEEE |
8 |
< |
CFLAGS = $(MACH) $(OPT) -I../common |
7 |
> |
MACH = -DBSD |
8 |
> |
CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) |
9 |
> |
CC = cc |
10 |
> |
MLIB = -lm |
11 |
|
|
12 |
< |
INSTDIR = /lumen/lumen/ray/bin.sun3 |
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 |
17 |
> |
gensurf genprism replmarks mkillum mksource genclock |
18 |
|
|
19 |
+ |
LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \ |
20 |
+ |
glaze1.cal glaze2.cal |
21 |
+ |
|
22 |
|
all: $(PROGS) |
23 |
|
|
24 |
< |
install: $(PROGS) genpine.csh genwindow.csh |
24 |
> |
install: $(PROGS) $(LIBFILES) glaze.csh |
25 |
|
cp $(PROGS) $(INSTDIR) |
26 |
< |
cp genwindow.csh $(INSTDIR)/genwindow |
27 |
< |
chmod 755 $(INSTDIR)/genwindow |
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 |
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 |
|
genblinds: genblinds.o |
47 |
< |
cc $(CFLAGS) -o genblinds genblinds.o -lm |
47 |
> |
$(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB) |
48 |
|
|
49 |
|
genprism: genprism.o |
50 |
< |
cc $(CFLAGS) -o genprism genprism.o |
50 |
> |
$(CC) $(CFLAGS) -o genprism genprism.o $(MLIB) |
51 |
|
|
52 |
|
xform: xform.o |
53 |
< |
cc $(CFLAGS) -o xform xform.o ../common/librt.a -lm |
53 |
> |
$(CC) $(CFLAGS) -o xform xform.o -lrtrad $(MLIB) |
54 |
|
|
55 |
|
replmarks: replmarks.o |
56 |
< |
cc $(CFLAGS) -o replmarks replmarks.o ../common/librt.a -lm |
56 |
> |
$(CC) $(CFLAGS) -o replmarks replmarks.o -lrtrad $(MLIB) |
57 |
|
|
58 |
< |
mkillum: mkillum.o mkillum2.o mkillum3.o |
59 |
< |
cc $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \ |
60 |
< |
../common/librt.a -lm |
58 |
> |
mkillum: mkillum.o mkillum2.o mkillum3.o mkillum4.o |
59 |
> |
$(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \ |
60 |
> |
mkillum4.o -lraycalls -lradiance -lrtrad $(MLIB) |
61 |
|
|
62 |
+ |
mksource: mksource.o |
63 |
+ |
$(CC) $(CFLAGS) -o mksource mksource.o \ |
64 |
+ |
-lraycalls -lradiance -lrtrad $(MLIB) |
65 |
+ |
|
66 |
|
genrev: genrev.o |
67 |
< |
cc $(CFLAGS) -o genrev genrev.o ../common/librt.a -lm |
67 |
> |
$(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB) |
68 |
|
|
69 |
+ |
gencatenary: gencat.o |
70 |
+ |
$(CC) $(CFLAGS) -o gencatenary gencat.o -lrtrad $(MLIB) |
71 |
+ |
|
72 |
|
genworm: genworm.o |
73 |
< |
cc $(CFLAGS) -o genworm genworm.o ../common/librt.a -lm |
73 |
> |
$(CC) $(CFLAGS) -o genworm genworm.o -lrtrad $(MLIB) |
74 |
|
|
75 |
|
gensurf: gensurf.o |
76 |
< |
cc $(CFLAGS) -o gensurf gensurf.o ../common/librt.a -lm |
76 |
> |
$(CC) $(CFLAGS) -o gensurf gensurf.o -lrtrad $(MLIB) |
77 |
|
|
78 |
+ |
genclock: genclock.o |
79 |
+ |
$(CC) $(CFLAGS) -o genclock genclock.o $(MLIB) |
80 |
+ |
|
81 |
|
genbranch: genbranch.o |
82 |
< |
cc $(CFLAGS) -o genbranch genbranch.o -lm |
82 |
> |
$(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) |
83 |
|
|
84 |
< |
gensurf.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
84 |
> |
mksource.o: ../common/random.h ../rt/ray.h ../common/octree.h \ |
85 |
> |
../common/object.h ../common/color.h \ |
86 |
> |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
87 |
> |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
88 |
> |
../common/rterror.h ../common/tifftypes.h |
89 |
|
|
90 |
|
genworm.o replmarks.o: ../common/fvect.h |
91 |
|
|
92 |
< |
xform.o: ../common/standard.h ../common/mat4.h ../common/fvect.h \ |
93 |
< |
../common/otypes.h ../common/object.h |
92 |
> |
gensurf.o xform.o: ../common/standard.h \ |
93 |
> |
../common/rtmisc.h ../common/rtio.h \ |
94 |
> |
../common/rtmath.h ../common/rterror.h \ |
95 |
> |
../common/mat4.h ../common/fvect.h ../common/tifftypes.h |
96 |
|
|
97 |
< |
mkillum.o mkillum2.o mkillum3.o: mkillum.h ../common/standard.h \ |
98 |
< |
../common/mat4.h ../common/fvect.h ../common/otypes.h ../common/object.h |
97 |
> |
genworm.o genrev.o gensurf.o: ../common/resolu.h ../common/rterror.h |
98 |
> |
|
99 |
> |
xform.o: ../common/otypes.h ../common/object.h |
100 |
> |
|
101 |
> |
mkillum.o mkillum2.o mkillum3.o: mkillum.h ../common/otypes.h \ |
102 |
> |
../rt/ray.h ../common/octree.h \ |
103 |
> |
../common/object.h ../common/color.h \ |
104 |
> |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
105 |
> |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
106 |
> |
../common/rterror.h ../common/tifftypes.h |
107 |
> |
|
108 |
> |
gensky.o: ../common/color.h |
109 |
> |
|
110 |
> |
gensurf.o genworm.o genrev.o: ../common/calcomp.h |