ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/Rmakefile
(Generate patch)

Comparing ray/src/common/Rmakefile (file contents):
Revision 1.10 by greg, Wed Jul 24 12:06:34 1991 UTC vs.
Revision 2.62 by greg, Wed Jun 17 20:41:47 2009 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines