1 # Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS, L3S, LJLL, MENSI
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:@top_srcdir@/resources:./bin:@top_srcdir@/idl
36 SUBDIRS = idl src adm_local
40 mesh_hypo_netgen.png \
41 mesh_hypo_netgen_2d.png \
42 mesh_algo_netgen_2d3d.png \
43 mesh_algo_netgen_2d.png \
44 mesh_tree_hypo_netgen.png \
45 mesh_tree_hypo_netgen_2d.png \
46 mesh_tree_algo_netgen_2d3d.png \
47 mesh_tree_algo_netgen_2d.png
51 # copy header files in common directory ------------
53 include_list = include/salome/SALOMEconfig.h \
54 include/salome/NETGENPLUGIN_version.h
56 ifneq ($(HAVE_SSTREAM),yes)
57 include_list += include/salome/sstream
60 inc: idl $(include_list)
62 bin: bin/salome/VERSION
64 bin/salome/VERSION : bin/VERSION
68 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
72 # test if SALOMEconfig.h has changed (contents)
73 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
74 @if ! [ -a $@ ]; then \
77 if ! cmp $< $@; then \
81 include/salome/sstream: salome_adm/unix/sstream
85 include/salome/NETGENPLUGIN_version.h: NETGENPLUGIN_version.h
89 install-include: $(include_list)
90 $(INSTALL) -d $(includedir)
91 @for f in X $(include_list); do \
92 if test $$f != X; then \
93 ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1); \
97 # install script in $(bindir) :
98 install-bin: $(BIN_SCRIPT)
99 $(INSTALL) -d $(bindir)
100 if test $(BIN_SCRIPT)X != X; then \
101 $(INSTALL_PROGRAM) $^ $(bindir); \
104 # CLEAN --------------------
106 distclean: distclean-other
109 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
110 -$(RM) salome_adm/unix/make_*
111 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
112 -$(RM) config.cache config.log config.status
116 install: install-bin install-include