blob: 399fb8db327e772f65035da391dc986a69d7bf12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
$NetBSD: patch-bu,v 1.3 2011/01/29 20:37:35 markd Exp $
--- examples/Makefile.aimk.orig Wed Feb 16 21:49:35 2000
+++ examples/Makefile.aimk Thu Mar 25 03:43:25 2004
@@ -85,5 +85,5 @@
inherit2$(EXESFX) inherit3$(EXESFX)
-MBPROGS = taskf.o task0$(EXESFX) task1$(EXESFX) \
+MBPROGS = taskf.lo task0$(EXESFX) task1$(EXESFX) \
task_end$(EXESFX) rme$(EXESFX) \
lmbi$(EXESFX) gmbi$(EXESFX)
@@ -108,172 +108,177 @@
- mkdir $(XDIR)
+LTCC= ${LIBTOOL} --mode=compile ${CC}
+LTCC_LINK= ${LIBTOOL} --mode=link ${CC} ${PVM_STATIC} ${COMPILER_RPATH_FLAG}${PVM_DIR}/lib/${PVM_ARCH}
+LTFORT= ${LIBTOOL} --mode=compile --tag=F77 ${FC}
+LTFORT_LINK= ${LIBTOOL} --mode=link --tag=F77 ${FC} ${PVM_STATIC} ${COMPILER_RPATH_FLAG}${PVM_DIR}/lib/${PVM_ARCH}
+
hello$(EXESFX): $(SDIR)/hello.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/hello.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/hello.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
helloh: $(SDIR)/hello.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/hello.c $(LDFLAGS) $(HLIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/hello.c $(LDFLAGS) $(HLIBS)
+ cp $@ $(XDIR)
hello_other$(EXESFX): $(SDIR)/hello_other.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/hello_other.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/hello_other.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
dbwtest$(EXESFX): $(SDIR)/bwtest.c $(XDIR)
- $(CC) $(CFLAGS) -DENCODE=PvmDataDefault -DPACK -o $@ \
+ $(LTCC_LINK) $(CFLAGS) -DENCODE=PvmDataDefault -DPACK -o $@ \
$(SDIR)/bwtest.c $(LDFLAGS) $(GLIBS) $(LIBS)
- mv $@ $(XDIR)
+ cp $@ $(XDIR)
ibwtest$(EXESFX): $(SDIR)/bwtest.c $(XDIR)
- $(CC) $(CFLAGS) -DPACK -DENCODE=PvmDataInPlace -o $@ \
+ $(LTCC_LINK) $(CFLAGS) -DPACK -DENCODE=PvmDataInPlace -o $@ \
$(SDIR)/bwtest.c $(LDFLAGS) $(GLIBS) $(LIBS)
- mv $@ $(XDIR)
+ cp $@ $(XDIR)
pbwtest$(EXESFX): $(SDIR)/bwtest.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/bwtest.c $(LDFLAGS) $(GLIBS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/bwtest.c $(LDFLAGS) $(GLIBS) $(LIBS)
+ cp $@ $(XDIR)
rbwtest$(EXESFX): $(SDIR)/bwtest.c $(XDIR)
- $(CC) $(CFLAGS) -DPACK -DENCODE=PvmDataRaw -o $@ \
+ $(LTCC_LINK) $(CFLAGS) -DPACK -DENCODE=PvmDataRaw -o $@ \
$(SDIR)/bwtest.c $(LDFLAGS) $(GLIBS) $(LIBS)
- mv $@ $(XDIR)
+ cp $@ $(XDIR)
timing$(EXESFX): $(SDIR)/timing.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/timing.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/timing.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
timingh: $(SDIR)/timing.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/timing.c $(LDFLAGS) $(HLIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/timing.c $(LDFLAGS) $(HLIBS)
+ cp $@ $(XDIR)
timing_slave$(EXESFX): $(SDIR)/timing_slave.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/timing_slave.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/timing_slave.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
spmd$(EXESFX): $(SDIR)/spmd.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/spmd.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/spmd.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
fspmd$(EXESFX): $(SDIR)/spmd.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/spmd.f $(LDFLAGS) $(FLIBS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/spmd.f $(LDFLAGS) $(FLIBS) $(GLIBS) $(LIBS)
+ cp $@ $(XDIR)
master1$(EXESFX): $(SDIR)/master1.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/master1.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/master1.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
master1h: $(SDIR)/master1.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/master1.c $(LDFLAGS) $(HLIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/master1.c $(LDFLAGS) $(HLIBS)
+ cp $@ $(XDIR)
slave1$(EXESFX): $(SDIR)/slave1.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/slave1.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/slave1.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
fmaster1$(EXESFX): $(SDIR)/master1.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/master1.f \
- $(LDFLAGS) $(FLIBS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/master1.f \
+ $(LDFLAGS) $(FLIBS) $(GLIBS) $(LIBS)
+ cp $@ $(XDIR)
fmaster1h: $(SDIR)/master1.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/master1.f \
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/master1.f \
$(LDFLAGS) $(FLIBS) $(HLIBS)
- mv $@ $(XDIR)
+ cp $@ $(XDIR)
fslave1$(EXESFX): $(SDIR)/slave1.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/slave1.f $(LDFLAGS) $(FLIBS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/slave1.f $(LDFLAGS) $(FLIBS) $(GLIBS) $(LIBS)
+ cp $@ $(XDIR)
hitc$(EXESFX): $(SDIR)/hitc.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/hitc.f $(LDFLAGS) $(FLIBS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/hitc.f $(LDFLAGS) $(FLIBS) $(GLIBS) $(LIBS)
+ cp $@ $(XDIR)
hitch: $(SDIR)/hitc.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/hitc.f $(LDFLAGS) $(FLIBS) $(HLIBS)
- mv $@ $(XDIR)
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/hitc.f $(LDFLAGS) $(FLIBS) $(HLIBS)
+ cp $@ $(XDIR)
hitc_slave$(EXESFX): $(SDIR)/hitc_slave.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/hitc_slave.f \
- $(LDFLAGS) $(FLIBS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/hitc_slave.f \
+ $(LDFLAGS) $(FLIBS) $(GLIBS) $(LIBS)
+ cp $@ $(XDIR)
gexample$(EXESFX): $(SDIR)/gexample.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/gexample.c $(LDFLAGS) $(GLIBS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/gexample.c $(LDFLAGS) $(GLIBS) $(LIBS)
+ cp $@ $(XDIR)
gexampleh: $(SDIR)/gexample.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/gexample.c \
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/gexample.c \
$(LDFLAGS) $(GLIBS) $(HLIBS)
- mv $@ $(XDIR)
+ cp $@ $(XDIR)
fgexample$(EXESFX): $(SDIR)/gexample.f $(XDIR)
- $(FORT) $(FFLAGS) -o $@ $(SDIR)/gexample.f \
+ $(LTFORT_LINK) $(FFLAGS) -o $@ $(SDIR)/gexample.f \
$(LDFLAGS) $(FLIBS) $(GLIBS) $(LIBS)
- mv $@ $(XDIR)
+ cp $@ $(XDIR)
mbox$(EXESFX): $(SDIR)/mbox.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/mbox.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/mbox.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
inherita$(EXESFX): $(SDIR)/inherita.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/inherita.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/inherita.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
inheritb$(EXESFX): $(SDIR)/inheritb.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/inheritb.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/inheritb.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
inherit1$(EXESFX): $(SDIR)/inherit1.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/inherit1.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/inherit1.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
inherit2$(EXESFX): $(SDIR)/inherit2.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/inherit2.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/inherit2.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
inherit3$(EXESFX): $(SDIR)/inherit3.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/inherit3.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/inherit3.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
-taskf.o: $(SDIR)/taskf.c
- $(CC) $(CFLAGS) -c $(SDIR)/taskf.c
+taskf.lo: $(SDIR)/taskf.c
+ $(LTCC) $(CFLAGS) -c $(SDIR)/taskf.c
task0$(EXESFX): $(SDIR)/task0.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/task0.c taskf.o $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/task0.c taskf.lo $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
task1$(EXESFX): $(SDIR)/task1.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/task1.c taskf.o $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/task1.c taskf.lo $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
task_end$(EXESFX): $(SDIR)/task_end.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/task_end.c taskf.o $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/task_end.c taskf.lo $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
rme$(EXESFX): $(SDIR)/rme.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/rme.c taskf.o $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/rme.c taskf.lo $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
lmbi$(EXESFX): $(SDIR)/lmbi.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/lmbi.c taskf.o $(LDFLAGS) $(HLIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/lmbi.c taskf.lo $(LDFLAGS) $(HLIBS)
+ cp $@ $(XDIR)
-gmbi$(EXESFX): $(SDIR)/gmbi.c taskf.o $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/gmbi.c taskf.o $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
-
-gmbih: $(SDIR)/gmbi.c taskf.o $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/gmbi.c taskf.o $(LDFLAGS) $(HLIBS)
- mv $@ $(XDIR)
+gmbi$(EXESFX): $(SDIR)/gmbi.c taskf.lo $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/gmbi.c taskf.lo $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
+
+gmbih: $(SDIR)/gmbi.c taskf.lo $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/gmbi.c taskf.lo $(LDFLAGS) $(HLIBS)
+ cp $@ $(XDIR)
mhf_server$(EXESFX): $(SDIR)/mhf_server.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/mhf_server.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/mhf_server.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
mhf_tickle$(EXESFX): $(SDIR)/mhf_tickle.c $(XDIR)
- $(CC) $(CFLAGS) -o $@ $(SDIR)/mhf_tickle.c $(LDFLAGS) $(LIBS)
- mv $@ $(XDIR)
+ $(LTCC_LINK) $(CFLAGS) -o $@ $(SDIR)/mhf_tickle.c $(LDFLAGS) $(LIBS)
+ cp $@ $(XDIR)
|