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
35 SUBDIRS = src idl adm_local
50 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
51 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
53 # copy header files in common directory
54 include_list = include/salome/SALOMEconfig.h \
55 include/salome/FILTER_version.h
57 ifeq ($(HAVE_SSTREAM),no)
58 include_list+=include/salome/sstream
61 inc: idl $(include_list)
63 bin: bin/salome/VERSION
65 bin/salome/VERSION : bin/VERSION
69 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
73 # test if SALOMEconfig.h has changed (contents)
74 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
75 @if ! [ -a $@ ]; then \
78 if ! cmp $< $@; then \
82 include/salome/sstream: salome_adm/unix/sstream
86 include/salome/FILTER_version.h: FILTER_version.h
93 (cd idl ; $(MAKE) $@) || exit 1
95 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
97 # (cd doc && $(MAKE) $@) || exit 1
100 # finish libtool install
101 # @$(LT) --mode=finish $(libdir)
103 install-include: $(include_list)
104 $(INSTALL) -d $(includedir)
105 @for f in X $(include_list); do \
106 if test $$f != X; then \
107 (cp -p $$f $(includedir) || exit 1); \
111 # install script in $(bindir) :
112 install-bin: $(BIN_SCRIPT)
113 $(INSTALL) -d $(bindir)
114 for f in X $(BIN_SCRIPT); do \
115 if test $$f != X; then \
116 (cp -p -f ./bin/salome/$$f $(bindir) || exit 1); \
120 uninstall: uninstall-idl
123 $(RM) $(idldir)/*.idl
125 distclean: distclean-other
128 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
129 -$(RM) salome_adm/unix/make_*
130 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
131 -$(RM) config.cache config.log config.status
135 install: install-bin install-include install-end