1 ########################################################################
2 # LIGHT : sample (no-corba-engine) SALOME module
4 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
23 # Author : Julia DOROVSKIKH
27 ########################################################################
30 top_srcdir=@top_srcdir@
33 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
54 LDFLAGS= -L$(top_builddir)/lib/salome
55 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
57 # copy header files in common directory
58 ifeq ($(HAVE_SSTREAM),yes)
59 include_list=include/salome/SALOMEconfig.h
61 include_list=include/salome/SALOMEconfig.h include/salome/sstream
66 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
70 # test if SALOMEconfig.h has changed (contents)
71 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
72 @if ! [ -a $@ ]; then \
75 if ! cmp $< $@; then \
79 include/salome/sstream: salome_adm/unix/sstream
86 # finish libtool install
87 # @$(LT) --mode=finish $(libdir)
89 install-include: $(include_list)
90 $(INSTALL) -d $(includedir)
91 # @for f in X $(include_list); do \
92 # if test $$f != X; then \
93 # (cp -p $$f $(includedir) || exit 1); \
97 # install script in $(bindir) :
98 install-bin: $(BIN_SCRIPT)
99 $(INSTALL) -d $(bindir)
100 for f in X $(BIN_SCRIPT); do \
101 if test $$f != X; then \
102 (cp -p -f ./bin/salome/$$f $(bindir) || exit 1); \
108 distclean: distclean-other
111 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
112 -$(RM) salome_adm/unix/make_*
113 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
114 -$(RM) config.cache config.log config.status
118 install: install-bin install-include install-end