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
38 SUBDIRS = src adm_local
49 LDFLAGS= -L$(top_builddir)/lib/salome
50 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
52 # copy header files in common directory
53 ifeq ($(HAVE_SSTREAM),yes)
54 include_list=include/salome/SALOMEconfig.h
56 include_list=include/salome/SALOMEconfig.h include/salome/sstream
61 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
65 # test if SALOMEconfig.h has changed (contents)
66 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
67 @if ! [ -a $@ ]; then \
70 if ! cmp $< $@; then \
74 include/salome/sstream: salome_adm/unix/sstream
81 # finish libtool install
82 # @$(LT) --mode=finish $(libdir)
84 install-include: $(include_list)
85 $(INSTALL) -d $(includedir)
86 # @for f in X $(include_list); do \
87 # if test $$f != X; then \
88 # (cp -p $$f $(includedir) || exit 1); \
92 # install script in $(bindir) :
93 install-bin: $(BIN_SCRIPT)
94 $(INSTALL) -d $(bindir)
95 for f in X $(BIN_SCRIPT); do \
96 if test $$f != X; then \
97 (cp -p -f ./bin/salome/$$f $(bindir) || exit 1); \
103 distclean: distclean-other
106 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
107 -$(RM) salome_adm/unix/make_*
108 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
109 -$(RM) config.cache config.log config.status
113 install: install-bin install-include install-end