Salome HOME
Small changes
[modules/smesh.git] / Makefile.in
1 #  Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 #
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.
8 #
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.
13 #
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
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 # -* Makefile *- 
21 #
22 # Author : Patrick GOLDBRONN (CEA)
23 # Date : 28/06/2001
24 # $Header$
25 #
26
27 # source path
28 top_srcdir=@top_srcdir@
29 top_builddir=.
30 srcdir=@srcdir@
31 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
32
33
34 @COMMENCE@
35
36 SUBDIRS = idl src doc adm_local
37
38 RESOURCES_FILES = \
39 delete.png  \
40 mesh_add_sub.png \
41 mesh_algo_hexa.png \
42 mesh_algo_mefisto.png \
43 mesh_algo_quad.png \
44 mesh_algo_regular.png \
45 mesh_algo_tetra.png \
46 mesh_angle.png \
47 mesh_area.png \
48 mesh_aspect.png \
49 mesh_aspect_3d.png \
50 mesh_build_compound.png\
51 mesh_compute.png \
52 mesh_connectivity.png \
53 mesh_diagonal.png \
54 mesh_edit.png \
55 mesh_hexa_n.png \
56 mesh_hexa.png \
57 mesh_hypo_area.png \
58 mesh_hypo_length.png \
59 mesh_hypo_segment.png \
60 mesh_hypo_volume.png \
61 mesh_hypo_edit.png \
62 mesh_info.png \
63 advanced_mesh_info.png \
64 standard_mesh_info.png \
65 mesh_init.png \
66 mesh_length.png \
67 mesh_length_2d.png \
68 mesh_free_edges.png \
69 mesh_free_edges_2d.png \
70 mesh_multi_edges.png \
71 mesh_multi_edges_2d.png \
72 mesh_line_n.png \
73 mesh_line.png \
74 mesh_move_node.png \
75 mesh_orientation.png \
76 mesh.png \
77 mesh_polygon.png \
78 mesh_polyhedron.png \
79 mesh_pyramid_n.png \
80 mesh_pyramid.png \
81 mesh_quad_n.png \
82 mesh_quad.png \
83 mesh_rem_element.png \
84 mesh_rem_node.png \
85 mesh_set_algo.png \
86 mesh_set_hypo.png \
87 mesh_shading.png \
88 mesh_shrink.png \
89 mesh_skew.png \
90 mesh_taper.png \
91 mesh_tetra_n.png \
92 mesh_tetra.png \
93 mesh_tree_algo_hexa.png \
94 mesh_tree_algo_mefisto.png \
95 mesh_tree_algo.png \
96 mesh_tree_algo_quad.png \
97 mesh_tree_algo_regular.png \
98 mesh_tree_algo_tetra.png \
99 mesh_tree_algo_netgen_2d3d.png \
100 mesh_tree_algo_netgen_2d.png \
101 mesh_tree_hypo_area.png \
102 mesh_tree_hypo_length.png \
103 mesh_tree_hypo.png \
104 mesh_tree_hypo_segment.png \
105 mesh_tree_hypo_volume.png \
106 mesh_tree_hypo_netgen.png \
107 mesh_tree_hypo_netgen_2d.png \
108 mesh_tree_mesh.png \
109 mesh_tree_importedmesh.png \
110 mesh_tree_mesh_warn.png \
111 mesh_triangle_n.png \
112 mesh_triangle.png \
113 mesh_update.png \
114 mesh_vertex_n.png \
115 mesh_vertex.png \
116 mesh_volume_3d.png \
117 mesh_wireframe.png \
118 mesh_points.png \
119 mesh_wrap.png \
120 mesh_tree_group.png \
121 mesh_edit_group.png \
122 mesh_make_group.png \
123 mesh_union2tri.png \
124 mesh_uniontri.png \
125 mesh_cutquad.png \
126 mesh_smoothing.png \
127 mesh_renumbering_nodes.png \
128 mesh_renumbering_elements.png \
129 mesh_extrusion.png \
130 mesh_extrusionpath.png \
131 mesh_revolution.png \
132 ModuleMesh.png \
133 mesh_unionGroups.png \
134 mesh_intersectGroups.png \
135 mesh_cutGroups.png \
136 mesh_deleteGroups.png \
137 mesh_translation_vector.png \
138 mesh_translation_points.png \
139 mesh_rotation.png \
140 mesh_symmetry_point.png \
141 mesh_symmetry_axis.png \
142 mesh_symmetry_plane.png \
143 mesh_sew_freeborders.png \
144 mesh_sew_conform_freeborders.png \
145 mesh_sew_bordertoside.png \
146 mesh_sew_sideelements.png \
147 mesh_merge_nodes.png \
148 mesh_merge_elements.png \
149 select1.png \
150 SMESH_en.xml \
151 SMESH.config \
152 StdMeshers.xml \
153 SMESHCatalog.xml \
154 SalomeApp.xml \
155 mesh_pattern.png \
156 pattern_sample_2d.png \
157 pattern_sample_3D.png \
158 mesh_add.png \
159 mesh_remove.png \
160 mesh_quad_edge.png \
161 mesh_quad_triangle.png \
162 mesh_quad_quadrangle.png \
163 mesh_quad_tetrahedron.png \
164 mesh_quad_pyramid.png \
165 mesh_quad_pentahedron.png \
166 mesh_quad_hexahedron.png \
167 mesh_conv_to_quad.png \
168 mesh_tree_hypo_layers_distribution.png \
169 mesh_tree_algo_radial_prism.png \
170 mesh_tree_algo_projection_3d.png \
171 mesh_tree_algo_projection_2d.png \
172 mesh_hypo_source_edge.png \
173 mesh_hypo_source_3d.png \
174 mesh_hypo_layer_distribution.png \
175 mesh_hypo_source_face.png \
176 mesh_tree_hypo_source_face.png \
177 mesh_tree_hypo_source_edge.png \
178 mesh_tree_hypo_source_3d_shape.png \
179 mesh_tree_hypo_projection_3d.png \
180 mesh_tree_hypo_projection_2d.png \
181 mesh_node_to_point.png
182
183 BIN_SCRIPT= \
184 VERSION
185
186 # copy header files in common directory
187
188 include_list = include/salome/SALOMEconfig.h \
189                include/salome/SMESH_version.h
190
191 ifneq ($(HAVE_SSTREAM),yes)
192         include_list += include/salome/sstream
193 endif
194
195 inc: idl $(include_list)
196
197 bin: bin/salome/VERSION
198
199 bin/salome/VERSION : bin/VERSION
200         -$(RM) $@
201         $(LN_S) ../../$< $@
202
203 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
204         -$(RM) $@
205         $(LN_S) ../../$< $@
206
207 # test if SALOMEconfig.h has changed (contents)
208 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
209         @if ! [ -a $@ ]; then \
210           cp -p -f $< $@;        \
211         fi;                   \
212         if ! cmp $< $@; then  \
213           cp -p -f $< $@;        \
214         fi;                   \
215
216 include/salome/sstream: salome_adm/unix/sstream
217         -$(RM) $@
218         $(LN_S) ../../$< $@
219
220 include/salome/SMESH_version.h: SMESH_version.h
221         -$(RM) $@
222         $(LN_S) ../../$< $@
223
224 depend: depend_idl
225
226 depend_idl:
227         (cd idl ; $(MAKE) $@) || exit 1
228
229 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
230 #doc:
231 #       (cd doc && $(MAKE) $@) || exit 1
232
233 install-end:
234 # finish libtool install
235 #       @$(LT) --mode=finish $(libdir)
236
237 install-include: $(include_list)
238         $(INSTALL) -d  $(includedir)
239         @for f in X $(include_list); do                         \
240            if test $$f != X; then                               \
241              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
242            fi;                                                  \
243         done
244
245 # install script in $(bindir) :
246 install-bin: $(BIN_SCRIPT)
247         $(INSTALL) -d  $(bindir)
248         if test $(BIN_SCRIPT)X != X; then                       \
249                 $(INSTALL_PROGRAM) $^ $(bindir);                \
250         fi
251
252 uninstall: uninstall-idl
253
254 uninstall-idl:
255         $(RM) $(idldir)/*.idl
256
257 distclean: distclean-other
258
259 distclean-other:
260         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
261         -$(RM) salome_adm/unix/make_* 
262         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
263         -$(RM) config.cache config.log config.status 
264
265 @MODULE@
266
267 install: install-bin install-include install-end
268