1
## Copyright 2004,2007-2010 ENSEIRB, INRIA & CNRS
3
## This file is part of the Scotch software package for static mapping,
4
## graph partitioning and sparse matrix ordering.
6
## This software is governed by the CeCILL-C license under French law
7
## and abiding by the rules of distribution of free software. You can
8
## use, modify and/or redistribute the software under the terms of the
9
## CeCILL-C license as circulated by CEA, CNRS and INRIA at the following
10
## URL: "http://www.cecill.info".
12
## As a counterpart to the access to the source code and rights to copy,
13
## modify and redistribute granted by the license, users are provided
14
## only with a limited warranty and the software's author, the holder of
15
## the economic rights, and the successive licensors have only limited
18
## In this respect, the user's attention is drawn to the risks associated
19
## with loading, using, modifying and/or developing or reproducing the
20
## software by the user in light of its specific status of free software,
21
## that may mean that it is complicated to manipulate, and that also
22
## therefore means that it is reserved for developers and experienced
23
## professionals having in-depth computer knowledge. Users are therefore
24
## encouraged to load and test the software's suitability as regards
25
## their requirements in conditions enabling the security of their
26
## systems and/or data to be ensured and, more generally, to use and
27
## operate it in the same conditions as regards security.
29
## The fact that you are presently reading this means that you have had
30
## knowledge of the CeCILL-C license and that you accept its terms.
34
includedir = ../../include
38
## General inference rules.
41
include ../Makefile.inc
44
$(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
47
$(CC) $(CFLAGS) -I$(includedir) -I../libscotch -c $(<) -o $(@)
50
$(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
56
.PHONY : ptscotch scotch ptinstall install clean realclean
59
$(MAKE) CC="$(CCS)" SCOTCHLIB=scotch \
90
$(MAKE) CC="$(CCP)" SCOTCHLIB=ptscotch \
91
LD_LIBRARY_PATH=$(libdir) \
100
-$(CP) acpl$(EXE) amk_ccc$(EXE) amk_fft2$(EXE) amk_grf$(EXE) amk_hy$(EXE) amk_m2$(EXE) amk_p2$(EXE) atst$(EXE) gbase$(EXE) gcv$(EXE) gmap$(EXE) gmk_hy$(EXE) gmk_m2$(EXE) gmk_m3$(EXE) gmk_msh$(EXE) gmk_ub2$(EXE) gmtst$(EXE) gord$(EXE) gotst$(EXE) gout$(EXE) *gtst$(EXE) gscat$(EXE) mcv$(EXE) mmk_m2$(EXE) mmk_m3$(EXE) mord$(EXE) mtst$(EXE) $(bindir)
101
-$(RM) $(bindir)/gpart$(EXE)
102
-$(LN) $(bindir)/gmap$(EXE) $(bindir)/gpart$(EXE)
105
-$(CP) dggath$(EXE) dgmap$(EXE) dgord$(EXE) dgscat$(EXE) dgtst$(EXE) $(bindir)
106
-$(RM) $(bindir)/dgpart$(EXE)
107
-$(LN) $(bindir)/dgmap$(EXE) $(bindir)/dgpart$(EXE)
110
-$(RM) *~ *$(OBJ) acpl$(EXE) amk_ccc$(EXE) amk_fft2$(EXE) amk_grf$(EXE) amk_hy$(EXE) amk_m2$(EXE) amk_p2$(EXE) atst$(EXE) gbase$(EXE) gcv$(EXE) *ggath$(EXE) *gmap$(EXE) gmk_hy$(EXE) gmk_m2$(EXE) gmk_m3$(EXE) gmk_msh$(EXE) gmk_ub2$(EXE) gmtst$(EXE) *gord$(EXE) gotst$(EXE) gout$(EXE) *gpart$(EXE) *gscat$(EXE) *gtst$(EXE) mcv$(EXE) mmk_m2$(EXE) mmk_m3$(EXE) mord$(EXE) mtst$(EXE)
118
acpl$(EXE) : acpl.c \
119
../libscotch/module.h \
120
../libscotch/common.h \
121
$(includedir)/scotch.h \
122
$(libdir)/libscotch$(LIB) \
123
$(libdir)/libscotcherrexit$(LIB) \
126
amk_ccc$(EXE) : amk_ccc.c \
127
../libscotch/module.h \
128
../libscotch/common.h \
129
$(includedir)/scotch.h \
130
$(libdir)/libscotch$(LIB) \
131
$(libdir)/libscotcherrexit$(LIB) \
134
amk_fft2$(EXE) : amk_fft2.c \
135
../libscotch/module.h \
136
../libscotch/common.h \
137
$(includedir)/scotch.h \
138
$(libdir)/libscotch$(LIB) \
139
$(libdir)/libscotcherrexit$(LIB) \
142
amk_grf$(EXE) : amk_grf.c \
143
../libscotch/module.h \
144
../libscotch/common.h \
145
$(includedir)/scotch.h \
146
$(libdir)/libscotch$(LIB) \
147
$(libdir)/libscotcherrexit$(LIB) \
150
amk_hy$(EXE) : amk_hy.c \
151
../libscotch/module.h \
152
../libscotch/common.h \
153
$(includedir)/scotch.h \
154
$(libdir)/libscotch$(LIB) \
155
$(libdir)/libscotcherrexit$(LIB) \
158
amk_m2$(EXE) : amk_m2.c \
159
../libscotch/module.h \
160
../libscotch/common.h \
161
$(includedir)/scotch.h \
162
$(libdir)/libscotch$(LIB) \
163
$(libdir)/libscotcherrexit$(LIB) \
166
amk_p2$(EXE) : amk_p2.c \
167
../libscotch/module.h \
168
../libscotch/common.h \
169
$(includedir)/scotch.h \
170
$(libdir)/libscotch$(LIB) \
171
$(libdir)/libscotcherrexit$(LIB) \
174
atst$(EXE) : atst.c \
175
../libscotch/module.h \
176
../libscotch/common.h \
177
$(includedir)/scotch.h \
178
$(libdir)/libscotch$(LIB) \
179
$(libdir)/libscotcherrexit$(LIB) \
182
dggath$(EXE) : dggath.c \
183
../libscotch/module.h \
184
../libscotch/common.h \
185
$(includedir)/ptscotch.h \
186
$(libdir)/libptscotch$(LIB) \
187
$(libdir)/libptscotcherrexit$(LIB) \
190
dgmap$(EXE) : dgmap.c \
191
../libscotch/module.h \
192
../libscotch/common.h \
193
$(includedir)/ptscotch.h \
194
$(libdir)/libptscotch$(LIB) \
195
$(libdir)/libptscotcherrexit$(LIB) \
198
dgord$(EXE) : dgord.c \
199
../libscotch/module.h \
200
../libscotch/common.h \
201
$(includedir)/ptscotch.h \
202
$(libdir)/libptscotch$(LIB) \
203
$(libdir)/libptscotcherrexit$(LIB) \
206
dgpart$(EXE) : dgmap$(EXE)
208
-$(LN) dgmap$(EXE) dgpart$(EXE)
210
dgscat$(EXE) : dgscat.c \
211
../libscotch/module.h \
212
../libscotch/common.h \
213
$(includedir)/ptscotch.h \
214
$(libdir)/libptscotch$(LIB) \
215
$(libdir)/libptscotcherrexit$(LIB) \
218
dgtst$(EXE) : dgtst.c \
219
../libscotch/module.h \
220
../libscotch/common.h \
221
$(includedir)/ptscotch.h \
222
$(libdir)/libptscotch$(LIB) \
223
$(libdir)/libptscotcherrexit$(LIB) \
226
gbase$(EXE) : gbase.c \
227
../libscotch/module.h \
228
../libscotch/common.h \
229
$(includedir)/scotch.h \
230
$(libdir)/libscotch$(LIB) \
231
$(libdir)/libscotcherrexit$(LIB) \
235
../libscotch/module.h \
236
../libscotch/common.h \
237
$(includedir)/scotch.h \
238
$(libdir)/libscotch$(LIB) \
239
$(libdir)/libscotcherrexit$(LIB) \
242
gmap$(EXE) : gmap.c \
243
../libscotch/module.h \
244
../libscotch/common.h \
245
$(includedir)/scotch.h \
246
$(libdir)/libscotch$(LIB) \
247
$(libdir)/libscotcherrexit$(LIB) \
250
gmk_hy$(EXE) : gmk_hy.c \
251
../libscotch/module.h \
252
../libscotch/common.h \
253
$(includedir)/scotch.h \
254
$(libdir)/libscotch$(LIB) \
255
$(libdir)/libscotcherrexit$(LIB) \
258
gmk_m2$(EXE) : gmk_m2.c \
259
../libscotch/module.h \
260
../libscotch/common.h \
261
$(includedir)/scotch.h \
262
$(libdir)/libscotch$(LIB) \
263
$(libdir)/libscotcherrexit$(LIB) \
266
gmk_m3$(EXE) : gmk_m3.c \
267
../libscotch/module.h \
268
../libscotch/common.h \
269
$(includedir)/scotch.h \
270
$(libdir)/libscotch$(LIB) \
271
$(libdir)/libscotcherrexit$(LIB) \
274
gmk_msh$(EXE) : gmk_msh.c \
275
../libscotch/module.h \
276
../libscotch/common.h \
277
$(includedir)/scotch.h \
278
$(libdir)/libscotch$(LIB) \
279
$(libdir)/libscotcherrexit$(LIB) \
282
gmk_ub2$(EXE) : gmk_ub2.c \
283
../libscotch/module.h \
284
../libscotch/common.h \
285
$(includedir)/scotch.h \
286
$(libdir)/libscotch$(LIB) \
287
$(libdir)/libscotcherrexit$(LIB) \
290
gmtst$(EXE) : gmtst.c \
291
../libscotch/module.h \
292
../libscotch/common.h \
293
$(includedir)/scotch.h \
294
$(libdir)/libscotch$(LIB) \
295
$(libdir)/libscotcherrexit$(LIB) \
298
gord$(EXE) : gord.c \
299
../libscotch/module.h \
300
../libscotch/common.h \
301
$(includedir)/scotch.h \
302
$(libdir)/libscotch$(LIB) \
303
$(libdir)/libscotcherrexit$(LIB) \
306
gotst$(EXE) : gotst.c \
307
../libscotch/module.h \
308
../libscotch/common.h \
309
$(includedir)/scotch.h \
310
$(libdir)/libscotch$(LIB) \
311
$(libdir)/libscotcherrexit$(LIB) \
314
gout$(EXE) : gout_c.c \
316
$(includedir)/scotch.h \
317
$(libdir)/libscotch$(LIB)
318
$(CC) $(CFLAGS) -I../libscotch -I$(includedir) gout_c.c gout_o.c -o $(@) -L$(libdir) -lscotch -lscotcherrexit $(LDFLAGS)
320
gpart$(EXE) : gmap$(EXE)
322
-$(LN) gmap$(EXE) gpart$(EXE)
324
gscat$(EXE) : gscat.c \
325
../libscotch/module.h \
326
../libscotch/common.h \
327
$(includedir)/scotch.h \
328
$(libdir)/libscotch$(LIB) \
329
$(libdir)/libscotcherrexit$(LIB) \
332
gtst$(EXE) : gtst.c \
333
../libscotch/module.h \
334
../libscotch/common.h \
335
$(includedir)/scotch.h \
336
$(libdir)/libscotch$(LIB) \
337
$(libdir)/libscotcherrexit$(LIB) \
341
../libscotch/module.h \
342
../libscotch/common.h \
343
$(includedir)/scotch.h \
344
$(libdir)/libscotch$(LIB) \
345
$(libdir)/libscotcherrexit$(LIB) \
348
mmk_m2$(EXE) : mmk_m2.c \
349
../libscotch/module.h \
350
../libscotch/common.h \
351
$(includedir)/scotch.h \
352
$(libdir)/libscotch$(LIB) \
353
$(libdir)/libscotcherrexit$(LIB) \
356
mmk_m3$(EXE) : mmk_m3.c \
357
../libscotch/module.h \
358
../libscotch/common.h \
359
$(includedir)/scotch.h \
360
$(libdir)/libscotch$(LIB) \
361
$(libdir)/libscotcherrexit$(LIB) \
364
mord$(EXE) : mord.c \
365
../libscotch/module.h \
366
../libscotch/common.h \
367
$(includedir)/scotch.h \
368
$(libdir)/libscotch$(LIB) \
369
$(libdir)/libscotcherrexit$(LIB) \
372
mtst$(EXE) : mtst.c \
373
../libscotch/module.h \
374
../libscotch/common.h \
375
$(includedir)/scotch.h \
376
$(libdir)/libscotch$(LIB) \
377
$(libdir)/libscotcherrexit$(LIB) \