1 |
+ |
# RCSid: $Id$ |
2 |
|
# |
2 |
– |
# SCCSid "$SunId$ SGI" |
3 |
|
# Makefile for ray tracing library routines |
4 |
|
# |
5 |
|
|
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 getlibpath.o addobjnotify.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 tonemap.o tmapcolrs.o tmapluv.o |
21 |
> |
colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ |
22 |
> |
tmap16bit.o bmpfile.o |
23 |
|
|
24 |
|
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ |
25 |
< |
urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.o \ |
26 |
< |
multisamp.o process.o getpath.o error.o savestr.o savqstr.o \ |
27 |
< |
badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ |
25 |
> |
urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \ |
26 |
> |
unix_process.o process.o gethomedir.o getpath.o error.o savestr.o \ |
27 |
> |
savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ |
28 |
|
clip.o plocate.o eputs.o wputs.o quit.o lookup.o \ |
29 |
< |
loadvars.o |
29 |
> |
loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o |
30 |
|
|
31 |
|
SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) |
32 |
|
|
33 |
|
OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o |
34 |
|
|
35 |
+ |
LIBFILES = tmesh.cal |
36 |
+ |
|
37 |
|
all: librt.a $(SPECIAL) |
38 |
|
|
39 |
|
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
40 |
|
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
41 |
|
-ranlib librt.a |
42 |
+ |
mv librt.a ../lib/librt.a |
43 |
|
|
44 |
|
install: all |
45 |
< |
mv librt.a ../lib/librt.a |
45 |
> |
cd $(LIBDIR) && rm -f $(LIBFILES) |
46 |
> |
cp $(LIBFILES) $(LIBDIR) |
47 |
|
|
48 |
|
clean: |
49 |
|
rm -f *.o librt.a |
61 |
|
|
62 |
|
sun: |
63 |
|
|
58 |
– |
calexpr.o: calexpr.c calcomp.h |
59 |
– |
$(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c |
60 |
– |
|
61 |
– |
caldefn.o: caldefn.c calcomp.h |
62 |
– |
$(CC) $(CFLAGS) -DFUNCTION -c caldefn.c |
63 |
– |
|
64 |
– |
calfunc.o: calfunc.c calcomp.h |
65 |
– |
$(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c |
66 |
– |
|
64 |
|
getlibpath.o: getlibpath.c |
65 |
|
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c |
66 |
|
|
67 |
+ |
tmapcolrs.o: tmapcolrs.c |
68 |
+ |
$(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c |
69 |
+ |
|
70 |
|
color.o colrops.o lamps.o spec_rgb.o: color.h |
71 |
|
|
72 |
|
cone.o: cone.h |
82 |
|
mat4.o invmat4.o: mat4.h fvect.h |
83 |
|
|
84 |
|
cone.o face.o instance.o objset.o otypes.o \ |
85 |
< |
modobject.o readfargs.o readobj.o readoct.o: object.h |
85 |
> |
mesh.o modobject.o readfargs.o readmesh.o \ |
86 |
> |
readobj.o readoct.o sceneio.o: object.h |
87 |
|
|
88 |
< |
objset.o octree.o readoct.o: octree.h |
88 |
> |
mesh.o objset.o octree.o readmesh.o readoct.o sceneio.o: octree.h |
89 |
|
|
90 |
< |
cone.o modobject.o otypes.o readobj.o readoct.o: otypes.h |
90 |
> |
cone.o mesh.o modobject.o otypes.o \ |
91 |
> |
readobj.o readoct.o sceneio.o: otypes.h |
92 |
|
|
93 |
|
multisamp.o urand.o: random.h |
94 |
|
|
95 |
< |
cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ |
96 |
< |
readfargs.o otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
95 |
> |
cone.o face.o free_os.o image.o instance.o objset.o \ |
96 |
> |
octree.o modobject.o readfargs.o otypes.o mesh.o \ |
97 |
> |
readmesh.o readobj.o readoct.o sceneio.o: standard.h \ |
98 |
> |
rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h |
99 |
|
|
100 |
|
image.o: view.h |
101 |
|
|
102 |
< |
calprnt.o: calcomp.h |
102 |
> |
caldefn.o calexpr.o calfunc.o calprnt.o: calcomp.h |
103 |
|
|
100 |
– |
process.o: vfork.h |
101 |
– |
|
104 |
|
clip.o plocate.o: plocate.h |
105 |
|
|
106 |
|
font.o: font.h |
111 |
|
|
112 |
|
loadvars.o: vars.h |
113 |
|
|
114 |
< |
tonemap.o tmapcolrs.o tmapluv.o: tmprivat.h tonemap.h color.h |
114 |
> |
mesh.o readmesh.o: mesh.h lookup.h |
115 |
|
|
116 |
< |
tmapluv.o: uvcode.h tiffio.h tiff.h |
116 |
> |
tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o: tmprivat.h tonemap.h \ |
117 |
> |
tifftypes.h color.h |
118 |
|
|
119 |
+ |
tmapluv.o: uvcode.h tiffio.h tmaptiff.h tiff.h |
120 |
+ |
|
121 |
|
tonemap.o: tmerrmsg.h |
122 |
|
|
123 |
+ |
tmaptiff.o: tmprivat.h tmaptiff.h color.h tonemap.h tifftypes.h |
124 |
+ |
|
125 |
|
rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o: radogl.h \ |
126 |
|
standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h |
127 |
+ |
|
128 |
+ |
free_os.o: octree.h object.h otypes.h face.h cone.h instance.h |
129 |
+ |
|
130 |
+ |
tmesh.o: tmesh.h fvect.h |
131 |
+ |
|
132 |
+ |
fgetword.o fputword.o fgetval.o fgetline.o fdate.o \ |
133 |
+ |
expandarg.o badarg.o xf.o: rtio.h |
134 |
+ |
|
135 |
+ |
expandarg.o: rtmisc.h |
136 |
+ |
|
137 |
+ |
dircode.o xf.o: rtmath.h mat4.h fvect.h |
138 |
+ |
|
139 |
+ |
error.o: rterror.h |
140 |
+ |
|
141 |
+ |
bmpfile.o: bmpfile.h tifftypes.h |