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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # Author : Patrick GOLDBRONN (CEA)
27 top_srcdir=@top_srcdir@
30 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
37 ifeq ($(MED_WITH_KERNEL),yes)
57 carre_en_quad4_seg2.med \
59 cube_hexa8_quad4.med \
61 maillage_UniSegFam.med \
68 cas_defaut_domaine_fluide.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 \
78 Mistrat_import22.med \
80 TimeStamps_import22.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 \
88 maill.00_nofield.med \
90 maill.00_without_seg2.med \
91 zzzz121b_without_tr6.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 \
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 \
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 \
164 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
165 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
167 # copy header files in common directory
168 include_list = include/salome/SALOMEconfig.h \
169 include/salome/MED_version.h
171 ifeq ($(HAVE_SSTREAM),no)
172 include_list+=include/salome/sstream
175 inc: idl $(include_list)
177 bin: bin/salome/VERSION
179 bin/salome/VERSION : bin/VERSION
183 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
187 # test if SALOMEconfig.h has changed (contents)
188 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
189 @if ! [ -a $@ ]; then \
192 if ! cmp $< $@; then \
196 include/salome/sstream: salome_adm/unix/sstream
200 include/salome/MED_version.h: MED_version.h
207 (cd idl ; $(MAKE) $@) || exit 1
209 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
211 # (cd doc && $(MAKE) $@) || exit 1
214 # finish libtool install
215 # @$(LT) --mode=finish $(libdir)
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); \
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); \
234 uninstall: uninstall-idl
237 $(RM) $(idldir)/*.idl
239 distclean: 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
249 install: install-bin install-include install-end