1 # Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
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:@top_srcdir@/resources:./bin:@top_srcdir@/idl
35 SUBDIRS = src doc adm_local
59 view_camera_dump.png \
99 # copy header files in common directory
100 OWN_CONFIG_H=@OWN_CONFIG_H@
102 include_list = include/salome/SALOMEconfig.h \
103 include/salome/GUI_version.h
105 ifeq ($(OWN_CONFIG_H),yes)
106 include_list += include/salome/config.h
109 ifneq ($(HAVE_SSTREAM),yes)
110 include_list += include/salome/sstream
113 inc: idl $(include_list)
115 bin: bin/salome/VERSION
117 bin/salome/VERSION : bin/VERSION
121 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
125 # test if SALOMEconfig.h has changed (contents)
126 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
127 @if ! [ -a $@ ]; then \
130 if ! cmp $< $@; then \
134 include/salome/config.h: salome_adm/unix/config.h
138 include/salome/sstream: salome_adm/unix/sstream
142 include/salome/GUI_version.h: GUI_version.h
149 # (cd idl ; $(MAKE) $@) || exit 1
151 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
153 # (cd doc && $(MAKE) $@) || exit 1
155 # Install make_commence make_conclude ... for other modules
157 ($(INSTALL) -d $(incmakedir) || exit 1);
158 (sed 's/^prefix=/#prefix=/' $(top_builddir)/adm_local/unix/make_commence > $(incmakedir)/make_commence || exit 1);
162 # finish libtool install
163 # @$(LT) --mode=finish $(libdir)
165 install-include: $(include_list)
166 $(INSTALL) -d $(includedir)
167 @for f in X $(include_list); do \
168 if test $$f != X; then \
169 (cp -p $$f $(includedir) || exit 1); \
173 # install script in $(bindir) :
174 install-bin: $(BIN_SCRIPT)
175 $(INSTALL) -d $(bindir)
176 $(INSTALL_PROGRAM) $^ $(bindir)
179 #uninstall: uninstall-idl
181 # $(RM) $(idldir)/*.idl
183 distclean: distclean-other
186 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
187 -$(RM) salome_adm/unix/make_*
188 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h
189 -$(RM) config.cache config.log config.status
193 install: install-bin install-include install-make install-end