######################################################################## # LIGHT : sample (no-corba-engine) SALOME module # # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org # # Author : Julia DOROVSKIKH # Date : 01/06/2005 # $Header$ # ######################################################################## # source path top_srcdir=@top_srcdir@ top_builddir=. srcdir=@srcdir@ VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome @COMMENCE@ ifeq (@WITHIHM@,no) SUBDIRS = src endif ifeq (@WITHIHM@,yes) SUBDIRS = src endif RESOURCES_FILES = \ LIGHT.png \ line_icon.png \ paragraph_icon.png \ queen.txt BIN_SCRIPT= \ VERSION LDFLAGS= -L$(top_builddir)/lib/salome LDFLAGSFORBIN= -L$(top_builddir)/lib/salome # copy header files in common directory ifeq ($(HAVE_SSTREAM),yes) include_list=include/salome/SALOMEconfig.h else include_list=include/salome/SALOMEconfig.h include/salome/sstream endif inc: $(include_list) include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref -$(RM) $@ $(LN_S) ../../$< $@ # test if SALOMEconfig.h has changed (contents) salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h @if ! [ -a $@ ]; then \ cp -p -f $< $@; \ fi; \ if ! cmp $< $@; then \ cp -p -f $< $@; \ fi; \ include/salome/sstream: salome_adm/unix/sstream -$(RM) $@ $(LN_S) ../../$< $@ depend: install-end: # finish libtool install # @$(LT) --mode=finish $(libdir) install-include: $(include_list) $(INSTALL) -d $(includedir) # @for f in X $(include_list); do \ # if test $$f != X; then \ # (cp -p $$f $(includedir) || exit 1); \ # fi; \ done # install script in $(bindir) : install-bin: $(BIN_SCRIPT) $(INSTALL) -d $(bindir) for f in X $(BIN_SCRIPT); do \ if test $$f != X; then \ (cp -p -f ./bin/salome/$$f $(bindir) || exit 1); \ fi; \ done uninstall: distclean: distclean-other distclean-other: -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old -$(RM) salome_adm/unix/make_* -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h -$(RM) config.cache config.log config.status @MODULE@ install: install-bin install-include install-end