1 |
schorsch |
1.4 |
# RCSid: $Id: Rmakefile,v 1.3 2003/07/14 16:07:41 greg Exp $ |
2 |
greg |
1.1 |
# |
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 |
schorsch |
1.4 |
CFLAGS = -DMDIR=\"$(MLIBDIR)/\" $(OPT) $(MACH) -I../common -L../lib |
23 |
greg |
1.1 |
|
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 |
schorsch |
1.2 |
$(EXEC2)/plotout $(EXEC2)/okimate $(EXEC2)/tbar \ |
40 |
greg |
1.1 |
$(EXEC2)/mx80 $(EXEC2)/t4014 $(EXEC2)/imagew $(EXEC2)/impress \ |
41 |
|
|
$(EXEC2)/aed5 $(EXEC2)/tscat $(EXEC2)/tbar |
42 |
schorsch |
1.2 |
#$(EXEC2)/xmeta |
43 |
greg |
1.1 |
|
44 |
|
|
$(INSTDIR)/meta2tga $(EXEC2)/okimate $(EXEC2)/impress \ |
45 |
|
|
$(EXEC2)/mx80 $(EXEC2)/t4014 $(INSTDIR)/plotout $(INSTDIR)/x11meta \ |
46 |
|
|
$(EXEC2)/mt160l $(EXEC2)/mt160 $(INSTDIR)/pexpand $(INSTDIR)/plot4 \ |
47 |
|
|
$(INSTDIR)/psort $(EXEC2)/imagew $(INSTDIR)/tcurve $(EXEC2)/mtext \ |
48 |
|
|
$(EXEC2)/tscat $(INSTDIR)/plotin $(EXEC2)/tbar $(INSTDIR)/xmeta \ |
49 |
|
|
../lib/libmeta.a $(INSTDIR)/aed5 $(INSTDIR)/psmeta: $(common) |
50 |
|
|
|
51 |
|
|
$(EXEC2)/mt160l: mt160l.o mplot.o plot.o palloc.o |
52 |
|
|
$(CC) $(CFLAGS) -o $(EXEC2)/mt160l mt160l.o mplot.o plot.o \ |
53 |
|
|
$(common) -lrt palloc.o |
54 |
|
|
|
55 |
|
|
$(EXEC2)/okimate: okimate.o mplot.o plot.o palloc.o |
56 |
|
|
$(CC) $(CFLAGS) -o $(EXEC2)/okimate okimate.o mplot.o plot.o \ |
57 |
|
|
$(common) palloc.o -lrt |
58 |
|
|
|
59 |
|
|
$(INSTDIR)/imagew: imagew.o mplot.o plot.o palloc.o |
60 |
|
|
$(CC) $(CFLAGS) imagew.o mplot.o plot.o $(common) \ |
61 |
|
|
palloc.o -lrt $(MLIB) |
62 |
|
|
cp a.out $(INSTDIR)/imagew |
63 |
|
|
|
64 |
|
|
$(EXEC2)/mt160: mt160.o mplot.o plot.o palloc.o |
65 |
|
|
$(CC) $(CFLAGS) -o $(EXEC2)/mt160 mt160.o mplot.o plot.o $(common) \ |
66 |
|
|
palloc.o -lrt |
67 |
|
|
|
68 |
|
|
$(INSTDIR)/meta2tga: meta2tga.o rplot.o plot.o palloc.o |
69 |
|
|
$(CC) $(CFLAGS) meta2tga.o rplot.o plot.o $(common) \ |
70 |
|
|
palloc.o -lrt $(MLIB) |
71 |
|
|
cp a.out $(INSTDIR)/meta2tga |
72 |
|
|
|
73 |
|
|
$(INSTDIR)/mx80: mx80.o mplot.o plot.o palloc.o |
74 |
|
|
$(CC) $(CFLAGS) mx80.o mplot.o plot.o $(common) \ |
75 |
|
|
palloc.o -lrt $(MLIB) |
76 |
|
|
cp a.out $(INSTDIR)/mx80 |
77 |
|
|
|
78 |
|
|
$(INSTDIR)/t4014: plotout.c ../lib/lib4014.a |
79 |
|
|
$(CC) -DFORTEK $(CFLAGS) plotout.c $(common) \ |
80 |
|
|
-l4014 -lrt $(MLIB) |
81 |
|
|
cp a.out $(INSTDIR)/t4014 |
82 |
|
|
rm -f plotout.o |
83 |
|
|
|
84 |
|
|
$(INSTDIR)/impress: impress.o implot.o imPfuncs.o plot.o |
85 |
|
|
$(CC) $(CFLAGS) impress.o implot.o imPfuncs.o \ |
86 |
|
|
plot.o $(common) -lrt $(MLIB) |
87 |
|
|
cp a.out $(INSTDIR)/impress |
88 |
|
|
|
89 |
|
|
$(INSTDIR)/aed5: aed5.o |
90 |
|
|
$(CC) $(CFLAGS) aed5.o $(common) -lrt $(MLIB) |
91 |
|
|
cp a.out $(INSTDIR)/aed5 |
92 |
|
|
|
93 |
|
|
$(INSTDIR)/xmeta: xmeta.o xplot.o plot.o palloc.o |
94 |
|
|
$(CC) $(CFLAGS) xmeta.o xplot.o plot.o palloc.o \ |
95 |
|
|
$(common) -lrt -lX11 $(MLIB) |
96 |
|
|
cp a.out $(INSTDIR)/xmeta |
97 |
|
|
|
98 |
|
|
$(INSTDIR)/x11meta: xmeta.o x11plot.o plot.o palloc.o |
99 |
|
|
$(CC) $(CFLAGS) xmeta.o x11plot.o plot.o palloc.o \ |
100 |
|
|
$(common) -lrt -lX11 $(MLIB) |
101 |
|
|
cp a.out $(INSTDIR)/x11meta |
102 |
|
|
|
103 |
|
|
$(INSTDIR)/psmeta: psmeta.o psplot.o |
104 |
|
|
$(CC) $(CFLAGS) psmeta.o psplot.o $(common) -lrt $(MLIB) |
105 |
|
|
cp a.out $(INSTDIR)/psmeta |
106 |
|
|
|
107 |
schorsch |
1.2 |
$(INSTDIR)/plotout: plotout.o |
108 |
|
|
$(CC) $(CFLAGS) plotout.o $(common) -lplot -lrt -l4014 $(MLIB) |
109 |
greg |
1.1 |
cp a.out $(INSTDIR)/plotout |
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 |
greg |
1.3 |
xmeta.o metacalls.o xplot.o meta2tga.o rplot.o: meta.h ../common/rterror.h |
190 |
greg |
1.1 |
|
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 |