1 |
|
# |
2 |
< |
# SCCSid "$SunId$ LBL" |
2 |
> |
# SCCSid "$SunId$ SGI" |
3 |
|
# Makefile for ray tracing library routines |
4 |
|
# |
5 |
|
|
6 |
|
OPT = -O |
7 |
|
MACH = -DBSD |
8 |
|
CFLAGS = $(MACH) $(OPT) |
9 |
+ |
CC = cc |
10 |
+ |
SPECIAL = |
11 |
|
|
12 |
< |
COMPAT = bmalloc.o erf.o # frexp.o fwrite.o random.o |
12 |
> |
COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.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 |
17 |
> |
octree.o readfargs.o modobject.o getlibpath.o |
18 |
|
|
19 |
|
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ |
20 |
< |
colrops.o |
20 |
> |
colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o |
21 |
|
|
22 |
< |
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o fvect.o urand.o \ |
22 |
> |
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ |
23 |
|
urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.o \ |
24 |
|
multisamp.o process.o getpath.o error.o savestr.o savqstr.o \ |
25 |
< |
badarg.o fgetword.o words.o wordfile.o cputs.o wputs.o eputs.o quit.o |
25 |
> |
badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ |
26 |
> |
clip.o plocate.o eputs.o wputs.o quit.o lookup.o \ |
27 |
> |
loadvars.o |
28 |
|
|
29 |
< |
SYSOBJ = ealloc.o $(COMPAT) |
29 |
> |
SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) |
30 |
|
|
31 |
+ |
OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o |
32 |
+ |
|
33 |
+ |
all: librt.a $(SPECIAL) |
34 |
+ |
|
35 |
|
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
36 |
|
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
37 |
|
-ranlib librt.a |
38 |
|
|
39 |
< |
install: librt.a |
40 |
< |
mv librt.a ../lib |
39 |
> |
install: all |
40 |
> |
mv librt.a ../lib/librt.a |
41 |
|
|
42 |
|
clean: |
43 |
< |
rm -f $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) librt.a |
43 |
> |
rm -f *.o librt.a |
44 |
|
|
45 |
< |
fropen.o: fropen.c |
46 |
< |
cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c |
45 |
> |
ogl: $(OGLOBJ) |
46 |
> |
ar rc librgl.a $(OGLOBJ) |
47 |
> |
-ranlib librgl.a |
48 |
> |
mv librgl.a ../lib/librgl.a |
49 |
|
|
50 |
+ |
x10: |
51 |
+ |
|
52 |
+ |
aed: |
53 |
+ |
|
54 |
+ |
sgi: |
55 |
+ |
|
56 |
+ |
sun: |
57 |
+ |
|
58 |
|
calexpr.o: calexpr.c calcomp.h |
59 |
< |
cc $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c |
59 |
> |
$(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c |
60 |
|
|
61 |
|
caldefn.o: caldefn.c calcomp.h |
62 |
< |
cc $(CFLAGS) -DFUNCTION -c caldefn.c |
62 |
> |
$(CC) $(CFLAGS) -DFUNCTION -c caldefn.c |
63 |
|
|
64 |
|
calfunc.o: calfunc.c calcomp.h |
65 |
< |
cc $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c |
65 |
> |
$(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c |
66 |
|
|
67 |
< |
color.o colrops.o resolu.o spec_rgb.o: color.h |
67 |
> |
getlibpath.o: getlibpath.c |
68 |
> |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c |
69 |
|
|
70 |
+ |
color.o colrops.o lamps.o spec_rgb.o: color.h |
71 |
+ |
|
72 |
|
cone.o: cone.h |
73 |
|
|
74 |
|
face.o: face.h |
79 |
|
|
80 |
|
linregr.o: linregr.h |
81 |
|
|
82 |
< |
mat4.o: mat4.h fvect.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 |
86 |
|
|
87 |
|
objset.o octree.o readoct.o: octree.h |
88 |
|
|
89 |
< |
cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h |
89 |
> |
cone.o modobject.o otypes.o readobj.o readoct.o: otypes.h |
90 |
|
|
91 |
< |
urand.o: random.h |
91 |
> |
multisamp.o urand.o: random.h |
92 |
|
|
93 |
|
cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ |
94 |
< |
otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
94 |
> |
readfargs.o otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
95 |
|
|
75 |
– |
readfargs.o: fvect.h |
76 |
– |
|
96 |
|
image.o: view.h |
97 |
|
|
98 |
|
calprnt.o: calcomp.h |
99 |
|
|
100 |
|
process.o: vfork.h |
101 |
+ |
|
102 |
+ |
clip.o plocate.o: plocate.h |
103 |
+ |
|
104 |
+ |
font.o: font.h |
105 |
+ |
|
106 |
+ |
fropen.o getpath.o image.o: paths.h |
107 |
+ |
|
108 |
+ |
lookup.o: lookup.h |
109 |
+ |
|
110 |
+ |
loadvars.o: vars.h |
111 |
+ |
|
112 |
+ |
tonemap.o tmapcolrs.o tmapluv.o: tmprivat.h tonemap.h color.h |
113 |
+ |
|
114 |
+ |
tmapluv.o: uvcode.h tiffio.h tiff.h |
115 |
+ |
|
116 |
+ |
tonemap.o: tmerrmsg.h |
117 |
+ |
|
118 |
+ |
rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o: radogl.h \ |
119 |
+ |
standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h |