]> SALOME platform Git repositories - modules/med.git/blob - Makefile.in
Salome HOME
6c65e20a0ea84f2ff821802f87156e4c61da6f94
[modules/med.git] / Makefile.in
1 # Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
2 #           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either 
6 # version 2.1 of the License.
7
8 # This library is distributed in the hope that it will be useful 
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 # Lesser General Public License for more details.
12
13 # You should have received a copy of the GNU Lesser General Public  
14 # License along with this library; if not, write to the Free Software 
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
19 # -* Makefile *- 
20 #
21 # Author : Patrick GOLDBRONN (CEA)
22 # Date : 28/06/2001
23 # $Header$
24 #
25
26 # source path
27 top_srcdir=@top_srcdir@
28 top_builddir=.
29 srcdir=@srcdir@
30 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
31
32
33 @COMMENCE@
34
35 SUBDIRS = src
36
37 ifeq ($(MED_WITH_KERNEL),yes)
38       SUBDIRS+= idl
39 endif
40
41 ifeq (@WITHIHM@,yes)
42       SUBDIRS+= doc
43 endif
44
45 SUBDIRS+= adm_local
46
47 RESOURCES_FILES = \
48 MEDCatalog.xml \
49 MED_en.xml \
50 MED.config \
51 SalomeApp.xml \
52 Data.png \
53 Infos.png \
54 Structure.png \
55 ModuleMed.png \
56 carre_en_quad4.med \
57 carre_en_quad4_seg2.med \
58 cube_hexa8.med \
59 cube_hexa8_quad4.med \
60 maill.0.med \
61 maillage_UniSegFam.med \
62 mesh.med \
63 pointe.med \
64 test19.med \
65 zzzz121b.med \
66 Mistrat.med \
67 TimeStamps.med \
68 cas_defaut_domaine_fluide.med \
69 polyedres.med \
70 polygones.med \
71 recoll_bord.med \
72 carre_en_quad4_import22.med \
73 carre_en_quad4_seg2_import22.med \
74 cube_hexa8_import22.med \
75 cube_hexa8_quad4_import22.med \
76 maillage_UniSegFam_import22.med \
77 mesh_import22.med \
78 Mistrat_import22.med \
79 pointe_import22.med \
80 TimeStamps_import22.med \
81 poly3D.med \
82 Darcy3_3D_H_10x10x10_2.med \
83 elle_3D_HPr_10x10x10_2.med \
84 elle_3D_HPr_2x2x2_2.med \
85 elle_3D_HPr_4x4x4_2.med \
86 test_2D.med \
87 maill.00.med \
88 maill.00_nofield.med \
89 maill.00_nomesh.med \
90 maill.00_without_seg2.med \
91 zzzz121b_without_tr6.med \
92 geomMesh21.med \
93 geomMesh22.med \
94 ChampsDarcy.med \
95 darcy_1.1_res.med \
96 darcy_1.3_resCASTEM.med \
97 darcy_1.3_resPORFLOW.med \
98 darcy_1.3_resTRACES.med \
99 darcy2_Castem_EFMH.med \
100 darcy2_Castem_qua_EFMH.med \
101 darcy2_Castem_qua_VF.med \
102 Deff_fdt_5.8_castem_efmh_diff_conc_dom.med \
103 Deff_fdt_5.8_castem_vf_diff_conc_dom.med \
104 extendedtransport53_triangles.med \
105 H_CastCast_EFMH_I129_COUPLEX1.med \
106 H_CastCast_VF_I129_COUPLEX1.med \
107 H_CastCast_VF_Se79_COUPLEX1.med \
108 H_CastPorf_I129_COUPLEX1.med \
109 H_CastPorf_Se79_COUPLEX1.med \
110 H_PorfCast_EFMH_I129_COUPLEX1.med \
111 H_PorfCast_EFMH_Se79_COUPLEX1.med \
112 H_PorfPorf_I129_COUPLEX1.med \
113 H_Traces_I129_COUPLEX1.med \
114 H_Traces_Se79_COUPLEX1.med \
115 maillage_5_5_5.med \
116 maillage_chemvalIV_cas1_40elts.med \
117 Darcy3_3D_H_10x10x10.sauve \
118 dx200_dy1_avec_2couches.sauve \
119 elle_2D_QT_10x10.sauve \
120 elle_2D_QT_2x2.sauve \
121 elle_2D_QT_40x40.sauve \
122 elle_2D_QT_4x4.sauve \
123 elle_3D_HPr_10x10x10.sauve \
124 elle_3D_HPr_2x2x2.sauve \
125 elle_3D_HPr_4x4x4.sauve \
126 inclusion_2d_raf.sauve \
127 inclusion_2d.sauve \
128 mail_ktest1-3-hexa.sauve \
129 mail_ktest1-3-tetra.sauve \
130 mail_ktest3-1.sauve \
131 mail_ktest3-2.sauve \
132 maillage_andra2_100elts.sauve \
133 maillage_cas2_2d.sauve \
134 maillage_cas4_234elts.sauve \
135 maillage_CHEMVAL_100elts.sauve \
136 maillage_CHEMVAL_40elts.sauve \
137 maillage_chemvalIV_cas1_100elts.sauve \
138 maillage_chemvalIV_cas1_40elts.sauve \
139 mail_test1-1-qua.sauve \
140 mail_test1-1-tri.sauve \
141 mail_test1-2-qua.sauve \
142 mail_test1-2-tri.sauve \
143 mail-test1-4-1.sauve \
144 mail-test1-4-2.sauve \
145 boitenew.inp \
146 Case1.inp \
147 cube.inp \
148 test3.inp \
149 titi.inp \
150 boitenew.cnc \
151 Case1.cnc \
152 cube.cnc \
153 test3.cnc \
154 titi.cnc \
155 boitenew.xyz \
156 Case1.xyz \
157 cube.xyz \
158 test3.xyz \
159 titi.xyz
160
161 BIN_SCRIPT= \
162 VERSION
163
164 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome 
165 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
166
167 # copy header files in common directory
168 include_list = include/salome/SALOMEconfig.h \
169                include/salome/MED_version.h
170
171 ifeq ($(HAVE_SSTREAM),no)
172   include_list+=include/salome/sstream
173 endif
174
175 inc: idl $(include_list)
176
177 bin: bin/salome/VERSION
178
179 bin/salome/VERSION : bin/VERSION
180         -$(RM) $@
181         $(LN_S) ../../$< $@
182
183 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
184         -$(RM) $@
185         $(LN_S) ../../$< $@
186
187 # test if SALOMEconfig.h has changed (contents)
188 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
189         @if ! [ -a $@ ]; then \
190           cp -p -f $< $@;        \
191         fi;                   \
192         if ! cmp $< $@; then  \
193           cp -p -f $< $@;        \
194         fi;                   \
195
196 include/salome/sstream: salome_adm/unix/sstream
197         -$(RM) $@
198         $(LN_S) ../../$< $@
199
200 include/salome/MED_version.h: MED_version.h
201         -$(RM) $@
202         $(LN_S) ../../$< $@
203
204 depend: depend_idl
205
206 depend_idl:
207         (cd idl ; $(MAKE) $@) || exit 1
208
209 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
210 #doc:
211 #       (cd doc && $(MAKE) $@) || exit 1
212
213 install-end:
214 # finish libtool install
215 #       @$(LT) --mode=finish $(libdir)
216
217 install-include: $(include_list)
218         $(INSTALL) -d  $(includedir)
219         @for f in X $(include_list); do                         \
220            if test $$f != X; then                               \
221              (cp -p $$f $(includedir) || exit 1);               \
222            fi;                                                  \
223         done
224
225 # install script in $(bindir) :
226 install-bin: $(BIN_SCRIPT)
227         $(INSTALL) -d  $(bindir)
228         for f in X $(BIN_SCRIPT); do                            \
229            if test $$f != X; then                               \
230              (cp -p -f ./bin/salome/$$f $(bindir) || exit 1);   \
231            fi;                                                  \
232         done
233
234 uninstall: uninstall-idl
235
236 uninstall-idl:
237         $(RM) $(idldir)/*.idl
238
239 distclean: distclean-other
240
241 distclean-other:
242         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
243         -$(RM) salome_adm/unix/make_* 
244         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
245         -$(RM) config.cache config.log config.status 
246
247 @MODULE@
248
249 install: install-bin install-include install-end
250