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

« back to all changes in this revision

Viewing changes to .pc/esmumps-fix.patch/src/esmumps/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2010-03-15 16:25:41 UTC
  • Revision ID: james.westby@ubuntu.com-20100315162541-8xyt96m0c37vhblf
Tags: 5.1.7.dfsg-3
Uses chrpath to remove rpath from ptscotch and libptscotch5.1 binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Copyright 2004,2007-2009 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
%$(OBJ) :       %.c
 
44
                                $(CC) $(CFLAGS) -I$(includedir) -c $(<) -o $(@)
 
45
 
 
46
%$(EXE) :       %.c
 
47
                                $(CC) $(CFLAGS) -I$(includedir) $(<) -o $(@) -L$(libdir) $(LDFLAGS) -L. -l$(ESMUMPSLIB) -l$(SCOTCHLIB) -l$(SCOTCHLIB)errexit
 
48
 
 
49
##
 
50
##  Project rules.
 
51
##
 
52
 
 
53
.PHONY                          :       ptscotch        scotch  ptinstall       install clean   realclean
 
54
 
 
55
scotch                          :       clean
 
56
                                        $(MAKE) CC="$(CCS)" CCD="$(CCS)" SCOTCHLIB=scotch ESMUMPSLIB=esmumps    \
 
57
                                        libesmumps$(LIB)                                                        \
 
58
                                        main_esmumps$(EXE)
 
59
 
 
60
ptscotch                        :       clean
 
61
                                        $(MAKE) CFLAGS="$(CFLAGS) -DSCOTCH_PTSCOTCH" "CC=$(CCP)" SCOTCHLIB=ptscotch ESMUMPSLIB=ptesmumps        \
 
62
                                        libesmumps$(LIB)                                                                                        \
 
63
                                        main_esmumps$(EXE)
 
64
 
 
65
install                         :
 
66
                                        -$(CP) esmumps.h $(includedir)
 
67
                                        -$(CP) libesmumps$(LIB) $(libdir)
 
68
 
 
69
ptinstall                       :
 
70
                                        -$(CP) esmumps.h $(includedir)
 
71
                                        -$(CP) libptesmumps$(LIB) $(libdir)
 
72
 
 
73
clean                           :
 
74
                                        -$(RM) *~ common.h *$(OBJ) lib*$(LIB) main_esmumps$(EXE)
 
75
 
 
76
realclean                       :       clean
 
77
 
 
78
##
 
79
##  Todo list.
 
80
##
 
81
 
 
82
common.h                        :       ../libscotch/common.h                   \
 
83
                                        module.h
 
84
                                        $(CAT) $(^) > $(@)
 
85
 
 
86
graph_graph$(OBJ)               :       graph_graph.c                           \
 
87
                                        common.h                                \
 
88
                                        $(includedir)/$(SCOTCHLIB).h            \
 
89
                                        graph.h
 
90
 
 
91
order$(OBJ)                     :       order.c                                 \
 
92
                                        order.h                                 \
 
93
                                        common.h                                \
 
94
                                        graph.h
 
95
 
 
96
order_scotch_graph$(OBJ)        :       order_scotch_graph.c                    \
 
97
                                        order.h                                 \
 
98
                                        common.h                                \
 
99
                                        graph.h                                 \
 
100
                                        $(includedir)/$(SCOTCHLIB).h
 
101
 
 
102
dof$(OBJ)                       :       dof.c                                   \
 
103
                                        dof.h                                   \
 
104
                                        common.h                                \
 
105
                                        graph.h                                 \
 
106
                                        $(includedir)/$(SCOTCHLIB).h
 
107
 
 
108
symbol$(OBJ)                    :       symbol.c                                \
 
109
                                        symbol.h                                \
 
110
                                        common.h
 
111
 
 
112
symbol_fax$(OBJ)                :       symbol_fax.c                            \
 
113
                                        common.h                                \
 
114
                                        graph.h                                 \
 
115
                                        symbol.h                                \
 
116
                                        order.h                                 \
 
117
                                        fax.h
 
118
 
 
119
symbol_fax_graph$(OBJ)          :       symbol_fax_graph.c                      \
 
120
                                        symbol_fax.c                            \
 
121
                                        common.h                                \
 
122
                                        graph.h                                 \
 
123
                                        symbol.h                                \
 
124
                                        order.h                                 \
 
125
                                        fax.h                                   \
 
126
                                        $(includedir)/$(SCOTCHLIB).h
 
127
 
 
128
esmumps$(OBJ)                   :       esmumps.c                               \
 
129
                                        common.h                                \
 
130
                                        graph.h                                 \
 
131
                                        symbol.h                                \
 
132
                                        order.h                                 \
 
133
                                        fax.h                                   \
 
134
                                        esmumps.h                               \
 
135
                                        $(includedir)/$(SCOTCHLIB).h
 
136
 
 
137
esmumps_f$(OBJ)                 :       esmumps_f.c                             \
 
138
                                        common.h                                \
 
139
                                        esmumps.h
 
140
 
 
141
esmumps_strats$(OBJ)            :       esmumps_strats.c                        \
 
142
                                        common.h                                \
 
143
                                        esmumps.h
 
144
 
 
145
libesmumps$(LIB)                :       graph_graph$(OBJ)                       \
 
146
                                        order$(OBJ)                             \
 
147
                                        order_scotch_graph$(OBJ)                \
 
148
                                        dof$(OBJ)                               \
 
149
                                        symbol$(OBJ)                            \
 
150
                                        symbol_fax_graph$(OBJ)                  \
 
151
                                        esmumps$(OBJ)                           \
 
152
                                        esmumps_f$(OBJ)                         \
 
153
                                        esmumps_strats$(OBJ)
 
154
                                        $(CC) -shared -Wl,-soname,lib$(ESMUMPSLIB)-5.1.so -L../libscotch -lscotch -lscotcherr -o lib$(ESMUMPSLIB)-5.1.so $^
 
155
                                        ln -s lib$(ESMUMPSLIB)-5.1.so lib$(ESMUMPSLIB).so
 
156
                                        $(AR) $(ARFLAGS) lib$(ESMUMPSLIB)$(LIB) $(?)
 
157
                                        -$(RANLIB) lib$(ESMUMPSLIB)$(LIB)
 
158
 
 
159
main_esmumps$(EXE)              :       main_esmumps.c                          \
 
160
                                        common.h                                \
 
161
                                        graph.h                                 \
 
162
                                        order.h                                 \
 
163
                                        symbol.h                                \
 
164
                                        esmumps.h                               \
 
165
                                        lib$(ESMUMPSLIB)$(LIB)                  \
 
166
                                        $(libdir)/lib$(SCOTCHLIB)$(LIB)         \
 
167
                                        $(libdir)/lib$(SCOTCHLIB)errexit$(LIB)