~ubuntu-branches/ubuntu/trusty/scotch/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/no-extra-clean.patch/src/scotch/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): "Adam C. Powell, IV", Christophe Trophime, Johannes Ring, Adam C. Powell, IV, Angel Abad
  • Date: 2011-03-27 14:55:43 UTC
  • Revision ID: james.westby@ubuntu.com-20110327145543-4z6ls5frctvzodla
Tags: 5.1.11.dfsg-4
[Christophe Trophime]
* Add support for multiple Integer size versions (closes: #619840)
* debian/rules : rewrite to support multiple integer size versions and remove
  cdbs

[Johannes Ring]
* Remove -DSCOTCH_PTHREAD option from debian/Makefile*.inc (closes: #612621)
* Removed no-extra-clean.patch (closes: #612606).

[ Adam C. Powell, IV ]
* Fixed a couple of issues in debian/rules clean target.
* Reinstated debugging package builds after cdbs removal.

[ Angel Abad ]
* Fix FTBFS with binutils-gold (closes: #612170)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## Copyright 2004,2007-2010 ENSEIRB, INRIA & CNRS
2
 
##
3
 
## This file is part of the Scotch software package for static mapping,
4
 
## graph partitioning and sparse matrix ordering.
5
 
##
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".
11
 
## 
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
16
 
## liability.
17
 
## 
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.
28
 
## 
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.
31
 
##
32
 
 
33
 
bindir          = ../../bin
34
 
includedir      = ../../include
35
 
libdir          = ../../lib
36
 
 
37
 
##
38
 
##  General inference rules.
39
 
##
40
 
 
41
 
include ../Makefile.inc
42
 
 
43
 
%$(EXE) :       %$(OBJ)
44
 
                                $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
45
 
 
46
 
%$(OBJ) :       %.c
47
 
                                $(CC) $(CFLAGS) -I$(includedir) -I../libscotch -c $(<) -o $(@)
48
 
 
49
 
%$(EXE) :       %.c
50
 
                                $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit $(LDFLAGS)
51
 
 
52
 
##
53
 
##  Project rules.
54
 
##
55
 
 
56
 
.PHONY                          :       ptscotch        scotch  ptinstall       install clean   realclean
57
 
 
58
 
scotch                          :       clean
59
 
                                        $(MAKE) CC="$(CCS)" SCOTCHLIB=scotch    \
60
 
                                        acpl$(EXE)                              \
61
 
                                        amk_ccc$(EXE)                           \
62
 
                                        amk_fft2$(EXE)                          \
63
 
                                        amk_grf$(EXE)                           \
64
 
                                        amk_hy$(EXE)                            \
65
 
                                        amk_m2$(EXE)                            \
66
 
                                        amk_p2$(EXE)                            \
67
 
                                        atst$(EXE)                              \
68
 
                                        gbase$(EXE)                             \
69
 
                                        gcv$(EXE)                               \
70
 
                                        gmap$(EXE)                              \
71
 
                                        gmk_hy$(EXE)                            \
72
 
                                        gmk_m2$(EXE)                            \
73
 
                                        gmk_m3$(EXE)                            \
74
 
                                        gmk_msh$(EXE)                           \
75
 
                                        gmk_ub2$(EXE)                           \
76
 
                                        gmtst$(EXE)                             \
77
 
                                        gord$(EXE)                              \
78
 
                                        gotst$(EXE)                             \
79
 
                                        gout$(EXE)                              \
80
 
                                        gpart$(EXE)                             \
81
 
                                        gscat$(EXE)                             \
82
 
                                        gtst$(EXE)                              \
83
 
                                        mcv$(EXE)                               \
84
 
                                        mmk_m2$(EXE)                            \
85
 
                                        mmk_m3$(EXE)                            \
86
 
                                        mord$(EXE)                              \
87
 
                                        mtst$(EXE)
88
 
 
89
 
ptscotch                        :       clean
90
 
                                        $(MAKE) CC="$(CCP)" SCOTCHLIB=ptscotch  \
91
 
                                        LD_LIBRARY_PATH=$(libdir)               \
92
 
                                        dggath$(EXE)                            \
93
 
                                        dgmap$(EXE)                             \
94
 
                                        dgord$(EXE)                             \
95
 
                                        dgpart$(EXE)                            \
96
 
                                        dgscat$(EXE)                            \
97
 
                                        dgtst$(EXE)
98
 
 
99
 
install                         :
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)
103
 
 
104
 
ptinstall                       :
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)
108
 
 
109
 
clean                           :
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)
111
 
 
112
 
realclean                       :       clean
113
 
 
114
 
##
115
 
##  Todo list.
116
 
##
117
 
 
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)        \
124
 
                                        acpl.h
125
 
 
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)        \
132
 
                                        amk_ccc.h
133
 
 
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)        \
140
 
                                        amk_fft2.h
141
 
 
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)        \
148
 
                                        amk_grf.h
149
 
 
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)        \
156
 
                                        amk_hy.h
157
 
 
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)        \
164
 
                                        amk_m2.h
165
 
 
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)        \
172
 
                                        amk_p2.h
173
 
 
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)        \
180
 
                                        atst.h
181
 
 
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)      \
188
 
                                        dggath.h
189
 
 
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)      \
196
 
                                        dgmap.h
197
 
 
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)      \
204
 
                                        dgord.h
205
 
 
206
 
dgpart$(EXE)                    :       dgmap$(EXE)
207
 
                                        -$(RM) dgpart$(EXE)
208
 
                                        -$(LN) dgmap$(EXE) dgpart$(EXE)
209
 
 
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)      \
216
 
                                        dgscat.h
217
 
 
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)      \
224
 
                                        dgtst.h
225
 
 
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)        \
232
 
                                        gbase.h
233
 
 
234
 
gcv$(EXE)                       :       gcv.c                                   \
235
 
                                        ../libscotch/module.h                   \
236
 
                                        ../libscotch/common.h                   \
237
 
                                        $(includedir)/scotch.h                  \
238
 
                                        $(libdir)/libscotch$(LIB)               \
239
 
                                        $(libdir)/libscotcherrexit$(LIB)        \
240
 
                                        gcv.h
241
 
 
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)        \
248
 
                                        gmap.h
249
 
 
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)        \
256
 
                                        gmk_hy.h
257
 
 
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)        \
264
 
                                        gmk_m2.h
265
 
 
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)        \
272
 
                                        gmk_m3.h
273
 
 
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)        \
280
 
                                        gmk_msh.h
281
 
 
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)        \
288
 
                                        gmk_ub2.h
289
 
 
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)        \
296
 
                                        gmtst.h
297
 
 
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)        \
304
 
                                        gord.h
305
 
 
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)        \
312
 
                                        gotst.h
313
 
 
314
 
gout$(EXE)                      :       gout_c.c                                \
315
 
                                        gout_o.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)
319
 
 
320
 
gpart$(EXE)                     :       gmap$(EXE)
321
 
                                        -$(RM) gpart$(EXE)
322
 
                                        -$(LN) gmap$(EXE) gpart$(EXE)
323
 
 
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)        \
330
 
                                        gscat.h
331
 
 
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)        \
338
 
                                        gtst.h
339
 
 
340
 
mcv$(EXE)                       :       mcv.c                                   \
341
 
                                        ../libscotch/module.h                   \
342
 
                                        ../libscotch/common.h                   \
343
 
                                        $(includedir)/scotch.h                  \
344
 
                                        $(libdir)/libscotch$(LIB)               \
345
 
                                        $(libdir)/libscotcherrexit$(LIB)        \
346
 
                                        mcv.h
347
 
 
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)        \
354
 
                                        mmk_m2.h
355
 
 
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)        \
362
 
                                        mmk_m3.h
363
 
 
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)        \
370
 
                                        mord.h
371
 
 
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)        \
378
 
                                        mtst.h