1 # Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # Author : Patrick GOLDBRONN (CEA)
28 top_srcdir=@top_srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
36 SUBDIRS = idl src doc adm_local
42 mesh_algo_mefisto.png \
44 mesh_algo_regular.png \
50 mesh_build_compound.png\
52 mesh_connectivity.png \
58 mesh_hypo_length.png \
59 mesh_hypo_segment.png \
60 mesh_hypo_volume.png \
63 advanced_mesh_info.png \
64 standard_mesh_info.png \
70 mesh_free_edges_2d.png \
71 mesh_multi_edges.png \
72 mesh_multi_edges_2d.png \
76 mesh_orientation.png \
84 mesh_rem_element.png \
94 mesh_tree_algo_hexa.png \
95 mesh_tree_algo_mefisto.png \
97 mesh_tree_algo_quad.png \
98 mesh_tree_algo_regular.png \
99 mesh_tree_algo_tetra.png \
100 mesh_tree_algo_netgen_2d3d.png \
101 mesh_tree_algo_netgen_2d.png \
102 mesh_tree_hypo_area.png \
103 mesh_tree_hypo_length.png \
105 mesh_tree_hypo_segment.png \
106 mesh_tree_hypo_volume.png \
107 mesh_tree_hypo_netgen.png \
108 mesh_tree_hypo_netgen_2d.png \
110 mesh_tree_importedmesh.png \
111 mesh_tree_mesh_warn.png \
112 mesh_tree_mesh_partial.png \
113 mesh_triangle_n.png \
122 mesh_tree_group.png \
123 mesh_edit_group.png \
124 mesh_make_group.png \
129 mesh_renumbering_nodes.png \
130 mesh_renumbering_elements.png \
132 mesh_extrusionpath.png \
133 mesh_revolution.png \
135 mesh_unionGroups.png \
136 mesh_intersectGroups.png \
138 mesh_deleteGroups.png \
139 mesh_translation_vector.png \
140 mesh_translation_points.png \
142 mesh_symmetry_point.png \
143 mesh_symmetry_axis.png \
144 mesh_symmetry_plane.png \
145 mesh_sew_freeborders.png \
146 mesh_sew_conform_freeborders.png \
147 mesh_sew_bordertoside.png \
148 mesh_sew_sideelements.png \
149 mesh_merge_nodes.png \
150 mesh_merge_elements.png \
158 pattern_sample_2d.png \
159 pattern_sample_3D.png \
163 mesh_quad_triangle.png \
164 mesh_quad_quadrangle.png \
165 mesh_quad_tetrahedron.png \
166 mesh_quad_pyramid.png \
167 mesh_quad_pentahedron.png \
168 mesh_quad_hexahedron.png \
169 mesh_conv_to_quad.png \
170 mesh_tree_hypo_layers_distribution.png \
171 mesh_tree_algo_radial_prism.png \
172 mesh_tree_algo_projection_3d.png \
173 mesh_tree_algo_projection_2d.png \
174 mesh_hypo_source_edge.png \
175 mesh_hypo_source_3d.png \
176 mesh_hypo_layer_distribution.png \
177 mesh_hypo_source_face.png \
178 mesh_tree_hypo_source_face.png \
179 mesh_tree_hypo_source_edge.png \
180 mesh_tree_hypo_source_3d_shape.png \
181 mesh_tree_hypo_projection_3d.png \
182 mesh_tree_hypo_projection_2d.png \
183 mesh_node_to_point.png
188 # copy header files in common directory
190 include_list = include/salome/SALOMEconfig.h \
191 include/salome/SMESH_version.h
193 ifneq ($(HAVE_SSTREAM),yes)
194 include_list += include/salome/sstream
197 inc: idl $(include_list)
199 bin: bin/salome/VERSION
201 bin/salome/VERSION : bin/VERSION
205 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
209 # test if SALOMEconfig.h has changed (contents)
210 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
211 @if ! [ -a $@ ]; then \
214 if ! cmp $< $@; then \
218 include/salome/sstream: salome_adm/unix/sstream
222 include/salome/SMESH_version.h: SMESH_version.h
229 (cd idl ; $(MAKE) $@) || exit 1
231 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
233 # (cd doc && $(MAKE) $@) || exit 1
236 # finish libtool install
237 # @$(LT) --mode=finish $(libdir)
239 install-include: $(include_list)
240 $(INSTALL) -d $(includedir)
241 @for f in X $(include_list); do \
242 if test $$f != X; then \
243 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
247 # install script in $(bindir) :
248 install-bin: $(BIN_SCRIPT)
249 $(INSTALL) -d $(bindir)
250 if test $(BIN_SCRIPT)X != X; then \
251 $(INSTALL_PROGRAM) $^ $(bindir); \
254 uninstall: uninstall-idl
257 $(RM) $(idldir)/*.idl
259 distclean: distclean-other
262 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
263 -$(RM) salome_adm/unix/make_*
264 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
265 -$(RM) config.cache config.log config.status
269 install: install-bin install-include install-end