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
51 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
52 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
54 # copy header files in common directory
55 include_list = include/salome/SALOMEconfig.h \
56 include/salome/FILTER_version.h
58 ifeq ($(HAVE_SSTREAM),no)
59 include_list+=include/salome/sstream
62 inc: idl $(include_list)
64 bin: bin/salome/VERSION
66 bin/salome/VERSION : bin/VERSION
70 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
74 # test if SALOMEconfig.h has changed (contents)
75 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
76 @if ! [ -a $@ ]; then \
79 if ! cmp $< $@; then \
83 include/salome/sstream: salome_adm/unix/sstream
87 include/salome/FILTER_version.h: FILTER_version.h
94 (cd idl ; $(MAKE) $@) || exit 1
96 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
98 # (cd doc && $(MAKE) $@) || exit 1
101 # finish libtool install
102 # @$(LT) --mode=finish $(libdir)
104 install-include: $(include_list)
105 $(INSTALL) -d $(includedir)
106 @for f in X $(include_list); do \
107 if test $$f != X; then \
108 (cp -p $$f $(includedir) || exit 1); \
112 # install script in $(bindir) :
113 install-bin: $(BIN_SCRIPT)
114 $(INSTALL) -d $(bindir)
115 for f in X $(BIN_SCRIPT); do \
116 if test $$f != X; then \
117 (cp -p -f ./bin/salome/$$f $(bindir) || exit 1); \
121 uninstall: uninstall-idl
124 $(RM) $(idldir)/*.idl
126 distclean: distclean-other
129 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
130 -$(RM) salome_adm/unix/make_*
131 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
132 -$(RM) config.cache config.log config.status
136 install: install-bin install-include install-end