ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.1
Committed: Sat Feb 22 02:07:26 2003 UTC (21 years, 9 months ago) by greg
Branch: MAIN
CVS Tags: rad3R5
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

# Content
1 # RCSid: $Id$
2 #
3 # Compiles:
4 #
5
6 OPT = -O
7
8 MACH =
9
10 LIBDIR = /usr/local/lib
11
12 INSTDIR = /usr/local/bin
13
14 MLIBDIR = $(LIBDIR)/meta
15
16 MLIB = -lm
17
18 EXEC2 = $(INSTDIR)
19
20 CC = cc
21
22 CFLAGS = -DUNIX -DMDIR=\"$(MLIBDIR)/\" $(OPT) $(MACH) -I../common -L../lib
23
24 io = mfio.o
25
26 common = $(io) syscalls.o misc.o
27
28 install: general
29
30 clean:
31 set nonomatch; rm -f *.o a.out core
32
33 general: $(INSTDIR)/meta2tga $(INSTDIR)/pexpand $(INSTDIR)/psort \
34 $(INSTDIR)/cv $(INSTDIR)/psmeta $(INSTDIR)/plotin \
35 $(INSTDIR)/x11meta ../lib/libmeta.a $(INSTDIR)/bgraph $(INSTDIR)/igraph \
36 $(INSTDIR)/dgraph $(INSTDIR)/gcomp $(INSTDIR)/plot4
37
38 special: $(EXEC2)/mt160l $(EXEC2)/mt160 $(EXEC2)/mtext \
39 $(EXEC2)/plotout $(EXEC2)/xmeta $(EXEC2)/okimate $(EXEC2)/tbar \
40 $(EXEC2)/mx80 $(EXEC2)/t4014 $(EXEC2)/imagew $(EXEC2)/impress \
41 $(EXEC2)/aed5 $(EXEC2)/tscat $(EXEC2)/tbar
42
43 $(INSTDIR)/meta2tga $(EXEC2)/okimate $(EXEC2)/impress \
44 $(EXEC2)/mx80 $(EXEC2)/t4014 $(INSTDIR)/plotout $(INSTDIR)/x11meta \
45 $(EXEC2)/mt160l $(EXEC2)/mt160 $(INSTDIR)/pexpand $(INSTDIR)/plot4 \
46 $(INSTDIR)/psort $(EXEC2)/imagew $(INSTDIR)/tcurve $(EXEC2)/mtext \
47 $(EXEC2)/tscat $(INSTDIR)/plotin $(EXEC2)/tbar $(INSTDIR)/xmeta \
48 ../lib/libmeta.a $(INSTDIR)/aed5 $(INSTDIR)/psmeta: $(common)
49
50 $(EXEC2)/mt160l: mt160l.o mplot.o plot.o palloc.o
51 $(CC) $(CFLAGS) -o $(EXEC2)/mt160l mt160l.o mplot.o plot.o \
52 $(common) -lrt palloc.o
53
54 $(EXEC2)/okimate: okimate.o mplot.o plot.o palloc.o
55 $(CC) $(CFLAGS) -o $(EXEC2)/okimate okimate.o mplot.o plot.o \
56 $(common) palloc.o -lrt
57
58 $(INSTDIR)/imagew: imagew.o mplot.o plot.o palloc.o
59 $(CC) $(CFLAGS) imagew.o mplot.o plot.o $(common) \
60 palloc.o -lrt $(MLIB)
61 cp a.out $(INSTDIR)/imagew
62
63 $(EXEC2)/mt160: mt160.o mplot.o plot.o palloc.o
64 $(CC) $(CFLAGS) -o $(EXEC2)/mt160 mt160.o mplot.o plot.o $(common) \
65 palloc.o -lrt
66
67 $(INSTDIR)/meta2tga: meta2tga.o rplot.o plot.o palloc.o
68 $(CC) $(CFLAGS) meta2tga.o rplot.o plot.o $(common) \
69 palloc.o -lrt $(MLIB)
70 cp a.out $(INSTDIR)/meta2tga
71
72 $(INSTDIR)/mx80: mx80.o mplot.o plot.o palloc.o
73 $(CC) $(CFLAGS) mx80.o mplot.o plot.o $(common) \
74 palloc.o -lrt $(MLIB)
75 cp a.out $(INSTDIR)/mx80
76
77 $(INSTDIR)/t4014: plotout.c ../lib/lib4014.a
78 $(CC) -DFORTEK $(CFLAGS) plotout.c $(common) \
79 -l4014 -lrt $(MLIB)
80 cp a.out $(INSTDIR)/t4014
81 rm -f plotout.o
82
83 $(INSTDIR)/impress: impress.o implot.o imPfuncs.o plot.o
84 $(CC) $(CFLAGS) impress.o implot.o imPfuncs.o \
85 plot.o $(common) -lrt $(MLIB)
86 cp a.out $(INSTDIR)/impress
87
88 $(INSTDIR)/aed5: aed5.o
89 $(CC) $(CFLAGS) aed5.o $(common) -lrt $(MLIB)
90 cp a.out $(INSTDIR)/aed5
91
92 $(INSTDIR)/xmeta: xmeta.o xplot.o plot.o palloc.o
93 $(CC) $(CFLAGS) xmeta.o xplot.o plot.o palloc.o \
94 $(common) -lrt -lX11 $(MLIB)
95 cp a.out $(INSTDIR)/xmeta
96
97 $(INSTDIR)/x11meta: xmeta.o x11plot.o plot.o palloc.o
98 $(CC) $(CFLAGS) xmeta.o x11plot.o plot.o palloc.o \
99 $(common) -lrt -lX11 $(MLIB)
100 cp a.out $(INSTDIR)/x11meta
101
102 $(INSTDIR)/psmeta: psmeta.o psplot.o
103 $(CC) $(CFLAGS) psmeta.o psplot.o $(common) -lrt $(MLIB)
104 cp a.out $(INSTDIR)/psmeta
105
106 $(INSTDIR)/plotout: plotout.c
107 $(CC) $(CFLAGS) plotout.c $(common) -lplot $(MLIB)
108 cp a.out $(INSTDIR)/plotout
109 rm -f plotout.o
110
111 $(INSTDIR)/plotin: plotin.o primout.o
112 $(CC) $(CFLAGS) plotin.o primout.o $(common) -lrt $(MLIB)
113 cp a.out $(INSTDIR)/plotin
114
115 $(INSTDIR)/pexpand: pexpand.o expand.o segment.o palloc.o
116 $(CC) $(CFLAGS) pexpand.o expand.o segment.o \
117 $(common) palloc.o -lrt $(MLIB)
118 cp a.out $(INSTDIR)/pexpand
119
120 $(INSTDIR)/psort: psort.o sort.o palloc.o
121 $(CC) $(CFLAGS) psort.o sort.o $(common) palloc.o -lrt $(MLIB)
122 cp a.out $(INSTDIR)/psort
123
124 $(INSTDIR)/cv: cv.o mfio.o cvhfio.o syscalls.o misc.o
125 $(CC) $(CFLAGS) cv.o mfio.o cvhfio.o syscalls.o misc.o \
126 -lrt $(MLIB)
127 cp a.out $(INSTDIR)/cv
128
129 $(INSTDIR)/plot4: plot4.o primout.o
130 $(CC) $(CFLAGS) plot4.o primout.o $(common) -lrt $(MLIB)
131 cp a.out $(INSTDIR)/plot4
132
133 $(INSTDIR)/tcurve: tcurve.o tgraph.o primout.o
134 $(CC) $(CFLAGS) tcurve.o tgraph.o primout.o \
135 $(common) $(MLIB)
136 cp a.out $(INSTDIR)/tcurve
137
138 $(INSTDIR)/tscat: tscat.o tgraph.o primout.o
139 $(CC) $(CFLAGS) tscat.o tgraph.o primout.o \
140 $(common) -lrt $(MLIB)
141 cp a.out $(INSTDIR)/tscat
142
143 $(INSTDIR)/tbar: tbar.o tgraph.o primout.o
144 $(CC) $(CFLAGS) tbar.o tgraph.o primout.o $(common) -lrt $(MLIB)
145 cp a.out $(INSTDIR)/tbar
146
147 $(EXEC2)/mtext: mtext.o primout.o
148 $(CC) $(CFLAGS) mtext.o primout.o $(common) -lrt
149 cp a.out $(EXEC2)/mtext
150
151 ../lib/libmeta.a: metacalls.o primout.o progname.o
152 ar rc ../lib/libmeta.a metacalls.o primout.o \
153 $(common) progname.o
154 -ranlib ../lib/libmeta.a
155
156 ../lib/lib4014.a:
157 cd lib4014; make INSTDIR=../../lib "CFLAGS=$(OPT)" install clean
158
159 $(INSTDIR)/bgraph: bgraph.o mgvars.o mgraph.o ../lib/libmeta.a
160 $(CC) $(CFLAGS) bgraph.o mgvars.o mgraph.o \
161 -lmeta -lrt $(MLIB)
162 cp a.out $(INSTDIR)/bgraph
163
164 $(INSTDIR)/igraph: igraph.o mgvars.o mgraph.o ../lib/libmeta.a \
165 gcalc.o cgraph.o
166 $(CC) $(CFLAGS) igraph.o mgvars.o mgraph.o \
167 cgraph.o gcalc.o -lmeta -lrt $(MLIB)
168 cp a.out $(INSTDIR)/igraph
169
170 $(INSTDIR)/dgraph: dgraph.o cgraph.o mgvars.o
171 $(CC) $(CFLAGS) dgraph.o cgraph.o mgvars.o \
172 -lrt $(MLIB)
173 cp a.out $(INSTDIR)/dgraph
174
175 $(INSTDIR)/gcomp: gcomp.o gcalc.o mgvars.o
176 $(CC) $(CFLAGS) gcomp.o gcalc.o mgvars.o \
177 -lrt $(MLIB)
178 cp a.out $(INSTDIR)/gcomp
179
180 cvhfio.o: cvhfio.c hfio.c
181
182 mgvars.o igraph.o mgraph.o cgraph.o gcalc.o: mgvars.h
183
184 mgraph.o: mgraph.h
185
186 misc.o syscalls.o mfio.o hfio.o cvhfio.o palloc.o segment.o sort.o expand.o \
187 plot.o mplot.o primout.o tgraph.o mt160l.o mt160.o mx80.o plotout.o \
188 psort.o pexpand.o cv.o tcurve.o tscat.o mtext.o tbar.o plot4.o \
189 xmeta.o metacalls.o xplot.o meta2tga.o rplot.o: meta.h
190
191 plot.o mplot.o mt160l.o mt160.o mx80.o xmeta.o xplot.o \
192 meta2tga.o rplot.o implot.o: plot.h
193
194 mplot.o mt160l.o mt160.o mx80.o: span.h
195
196 tgraph.o tcurve.o tscat.o tbar.o: tgraph.h
197
198 impress.o implot.o imPfuncs.o: imPfuncs.h
199
200 rplot.o meta2tga.o: rast.h