1 |
|
# |
2 |
< |
# SCCSid "$SunId$ LBL" |
2 |
> |
# SCCSid "$SunId$ SGI" |
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 |
13 |
|
|
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 font.o |
20 |
> |
colrops.o font.o tonemap.o tmapcolrs.o |
21 |
|
|
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 expandarg.o wordfile.o \ |
26 |
< |
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 fdate.o portio.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 |
|
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
34 |
|
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
35 |
|
-ranlib librt.a |
36 |
|
|
37 |
|
install: librt.a |
38 |
< |
mv librt.a ../lib |
38 |
> |
mv librt.a ../lib/librt.a |
39 |
|
|
40 |
|
clean: |
41 |
|
rm -f *.o librt.a |
42 |
|
|
43 |
< |
fropen.o: fropen.c |
44 |
< |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c |
43 |
> |
ogl: $(OGLOBJ) |
44 |
> |
ar rc librgl.a $(OGLOBJ) |
45 |
> |
-ranlib librgl.a |
46 |
> |
mv librgl.a ../lib/librgl.a |
47 |
|
|
48 |
|
calexpr.o: calexpr.c calcomp.h |
49 |
|
$(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c |
57 |
|
getlibpath.o: getlibpath.c |
58 |
|
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c |
59 |
|
|
60 |
< |
color.o colrops.o resolu.o spec_rgb.o: color.h |
60 |
> |
color.o colrops.o lamps.o spec_rgb.o: color.h |
61 |
|
|
62 |
|
cone.o: cone.h |
63 |
|
|
76 |
|
|
77 |
|
objset.o octree.o readoct.o: octree.h |
78 |
|
|
79 |
< |
cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h |
79 |
> |
cone.o modobject.o otypes.o readobj.o readoct.o: otypes.h |
80 |
|
|
81 |
< |
urand.o: random.h |
81 |
> |
multisamp.o urand.o: random.h |
82 |
|
|
83 |
|
cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ |
84 |
|
otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
91 |
|
|
92 |
|
process.o: vfork.h |
93 |
|
|
94 |
+ |
clip.o plocate.o: plocate.h |
95 |
+ |
|
96 |
|
font.o: font.h |
97 |
|
|
98 |
|
fropen.o getpath.o image.o: paths.h |
99 |
+ |
|
100 |
+ |
lookup.o: lookup.h |
101 |
+ |
|
102 |
+ |
loadvars.o: vars.h |
103 |
+ |
|
104 |
+ |
tonemap.o tmapcolrs.o: tmprivat.h tonemap.h color.h |
105 |
+ |
|
106 |
+ |
tonemap.o: tmerrmsg.h |
107 |
+ |
|
108 |
+ |
rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o: radogl.h \ |
109 |
+ |
standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h |