1 |
+ |
# RCSid: $Id$ |
2 |
|
# |
2 |
– |
# SCCSid "$SunId$ LBL" |
3 |
|
# Makefile for ray tracing library routines |
4 |
|
# |
5 |
|
|
7 |
|
MACH = -DBSD |
8 |
|
CFLAGS = $(MACH) $(OPT) |
9 |
|
CC = cc |
10 |
+ |
SPECIAL = |
11 |
|
|
12 |
< |
COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.o |
12 |
> |
COMPAT = erf.o strcmp.o |
13 |
|
|
14 |
|
LIBDIR = /usr/local/lib/ray |
15 |
|
|
16 |
< |
RTOBJ = cone.o face.o instance.o readobj.o readoct.o otypes.o objset.o \ |
17 |
< |
octree.o readfargs.o modobject.o |
16 |
> |
RTOBJ = cone.o face.o free_os.o instance.o readobj.o readoct.o otypes.o \ |
17 |
> |
objset.o octree.o readfargs.o modobject.o getlibpath.o \ |
18 |
> |
addobjnotify.o zeroes.o mesh.o readmesh.o tmesh.o sceneio.o |
19 |
|
|
20 |
|
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ |
21 |
< |
colrops.o font.o |
21 |
> |
colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ |
22 |
> |
tmap16bit.o bmpfile.o falsecolor.o |
23 |
|
|
24 |
< |
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o fvect.o urand.o \ |
25 |
< |
urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.o \ |
23 |
< |
multisamp.o process.o getpath.o error.o savestr.o savqstr.o \ |
24 |
< |
badarg.o fgetword.o words.o wordfile.o cputs.o wputs.o eputs.o quit.o |
24 |
> |
UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o \ |
25 |
> |
disk2square.o hilbert.o |
26 |
|
|
27 |
< |
SYSOBJ = ealloc.o $(COMPAT) |
27 |
> |
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ |
28 |
> |
urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \ |
29 |
> |
unix_process.o process.o gethomedir.o getpath.o error.o savestr.o \ |
30 |
> |
savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ |
31 |
> |
clip.o plocate.o eputs.o wputs.o quit.o lookup.o bmalloc.o \ |
32 |
> |
loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o byteswap.o |
33 |
|
|
34 |
< |
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
29 |
< |
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
30 |
< |
-ranlib librt.a |
34 |
> |
SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) |
35 |
|
|
36 |
< |
install: librt.a |
33 |
< |
mv librt.a ../lib |
36 |
> |
MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o |
37 |
|
|
38 |
+ |
OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o |
39 |
+ |
|
40 |
+ |
LIBFILES = tmesh.cal |
41 |
+ |
|
42 |
+ |
librtrad.a: $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) |
43 |
+ |
rm -f librtrad.a |
44 |
+ |
ar rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) |
45 |
+ |
-ranlib librtrad.a |
46 |
+ |
|
47 |
+ |
libmgf.a: $(MGFOBJ) |
48 |
+ |
rm -f libmgf.a |
49 |
+ |
ar rc libmgf.a $(MGFOBJ) |
50 |
+ |
-ranlib libmgf.a |
51 |
+ |
|
52 |
+ |
install: all |
53 |
+ |
mv -f librtrad.a libmgf.a ../lib |
54 |
+ |
cd $(LIBDIR) && rm -f $(LIBFILES) |
55 |
+ |
cp -f $(LIBFILES) $(LIBDIR) |
56 |
+ |
|
57 |
+ |
all: librtrad.a libmgf.a $(SPECIAL) |
58 |
+ |
|
59 |
|
clean: |
60 |
< |
rm -f *.o librt.a |
60 |
> |
rm -f *.o librtrad.a libmgf.a |
61 |
|
|
62 |
< |
fropen.o: fropen.c |
63 |
< |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c |
62 |
> |
ogl: $(OGLOBJ) |
63 |
> |
rm -f librgl.a |
64 |
> |
ar rc librgl.a $(OGLOBJ) |
65 |
> |
-ranlib librgl.a |
66 |
> |
mv -f librgl.a ../lib |
67 |
|
|
68 |
< |
calexpr.o: calexpr.c calcomp.h |
42 |
< |
$(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c |
68 |
> |
x10: |
69 |
|
|
70 |
< |
caldefn.o: caldefn.c calcomp.h |
45 |
< |
$(CC) $(CFLAGS) -DFUNCTION -c caldefn.c |
70 |
> |
aed: |
71 |
|
|
72 |
< |
calfunc.o: calfunc.c calcomp.h |
48 |
< |
$(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c |
72 |
> |
sgi: |
73 |
|
|
74 |
< |
color.o colrops.o resolu.o spec_rgb.o: color.h |
74 |
> |
sun: |
75 |
|
|
76 |
+ |
getlibpath.o: getlibpath.c |
77 |
+ |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c |
78 |
+ |
|
79 |
+ |
tmapcolrs.o: tmapcolrs.c |
80 |
+ |
$(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c |
81 |
+ |
|
82 |
+ |
color.o colrops.o lamps.o spec_rgb.o: color.h |
83 |
+ |
|
84 |
|
cone.o: cone.h |
85 |
|
|
86 |
|
face.o: face.h |
91 |
|
|
92 |
|
linregr.o: linregr.h |
93 |
|
|
94 |
< |
mat4.o: mat4.h fvect.h |
94 |
> |
mat4.o invmat4.o: mat4.h fvect.h |
95 |
|
|
96 |
|
cone.o face.o instance.o objset.o otypes.o \ |
97 |
< |
modobject.o readfargs.o readobj.o readoct.o: object.h |
97 |
> |
mesh.o modobject.o readfargs.o readmesh.o \ |
98 |
> |
readobj.o readoct.o sceneio.o: object.h |
99 |
|
|
100 |
< |
objset.o octree.o readoct.o: octree.h |
100 |
> |
mesh.o objset.o octree.o readmesh.o readoct.o sceneio.o: octree.h |
101 |
|
|
102 |
< |
cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h |
102 |
> |
cone.o mesh.o modobject.o otypes.o \ |
103 |
> |
readobj.o readoct.o sceneio.o: otypes.h |
104 |
|
|
105 |
< |
urand.o: random.h |
105 |
> |
multisamp.o urand.o: random.h |
106 |
|
|
107 |
< |
cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ |
108 |
< |
otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
107 |
> |
cone.o face.o free_os.o image.o instance.o objset.o \ |
108 |
> |
octree.o modobject.o readfargs.o otypes.o mesh.o \ |
109 |
> |
readmesh.o readobj.o readoct.o sceneio.o: standard.h \ |
110 |
> |
rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tiff.h |
111 |
|
|
76 |
– |
readfargs.o: fvect.h |
77 |
– |
|
112 |
|
image.o: view.h |
113 |
|
|
114 |
< |
calprnt.o: calcomp.h |
114 |
> |
caldefn.o calexpr.o calfunc.o calprnt.o: calcomp.h |
115 |
|
|
116 |
< |
process.o: vfork.h |
116 |
> |
clip.o plocate.o: plocate.h |
117 |
|
|
118 |
|
font.o: font.h |
119 |
+ |
|
120 |
+ |
fropen.o getpath.o image.o: paths.h |
121 |
+ |
|
122 |
+ |
lookup.o: lookup.h |
123 |
+ |
|
124 |
+ |
loadvars.o: vars.h |
125 |
+ |
|
126 |
+ |
mesh.o readmesh.o: mesh.h lookup.h |
127 |
+ |
|
128 |
+ |
tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o: tmprivat.h tonemap.h \ |
129 |
+ |
tiff.h color.h |
130 |
+ |
|
131 |
+ |
tmapluv.o: tiffio.h tmaptiff.h tiff.h |
132 |
+ |
|
133 |
+ |
falsecolor.o: falsecolor.h tmprivat.h tonemap.h color.h tiff.h |
134 |
+ |
|
135 |
+ |
tonemap.o: tmerrmsg.h |
136 |
+ |
|
137 |
+ |
tmaptiff.o: tmprivat.h tmaptiff.h color.h tonemap.h tiff.h |
138 |
+ |
|
139 |
+ |
rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o: radogl.h \ |
140 |
+ |
standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h |
141 |
+ |
|
142 |
+ |
free_os.o: octree.h object.h otypes.h face.h cone.h instance.h |
143 |
+ |
|
144 |
+ |
tmesh.o: tmesh.h fvect.h |
145 |
+ |
|
146 |
+ |
fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \ |
147 |
+ |
byteswap.o expandarg.o badarg.o xf.o: rtio.h |
148 |
+ |
|
149 |
+ |
expandarg.o: rtmisc.h |
150 |
+ |
|
151 |
+ |
dircode.o xf.o: rtmath.h mat4.h fvect.h tiff.h |
152 |
+ |
|
153 |
+ |
error.o: rterror.h |
154 |
+ |
|
155 |
+ |
bmpfile.o: bmpfile.h tiff.h |
156 |
+ |
|
157 |
+ |
header.o readmesh.o readoct.o resolu.o rglinst.o tmapcolrs.o: resolu.h |
158 |
+ |
|
159 |
+ |
ezxml.o bsdf.o bsdf_m.o bsdf_t.o: ezxml.h |
160 |
+ |
|
161 |
+ |
bsdf.o: paths.h |
162 |
+ |
|
163 |
+ |
bsdf.o: bsdf_m.h bsdf_t.h hilbert.h fvect.h |
164 |
+ |
|
165 |
+ |
bsdf.o: bsdf.h standard.h rtmisc.h rtio.h rtmath.h mat4.h rterror.h |
166 |
+ |
|
167 |
+ |
bsdf.o bsdf_m.o bsdf_t.o ccolor.o: ccolor.h |
168 |
+ |
|
169 |
+ |
mgf_parser.o mgf_context.o mgf_xf.o mgf_object.o: mgf_parser.h ccolor.h |
170 |
+ |
|
171 |
+ |
ccyrgb.o: ccolor.h color.h |
172 |
+ |
|
173 |
+ |
mgf_parser.o mgf_context.o: lookup.h |
174 |
+ |
|
175 |
+ |
mgf_parser.o: mgf_mesg.h |
176 |
+ |
|
177 |
+ |
bsdf_m.o: bsdf.h bsdf_m.h |
178 |
+ |
|
179 |
+ |
bsdf_t.o: bsdf.h bsdf_t.h |
180 |
+ |
|
181 |
+ |
hilbert.o: hilbert.h |