1 # Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
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/
20 # Author : Vladimir Klyachin (OCN)
23 top_srcdir=@top_srcdir@
26 VPATH=.:@srcdir@:@srcdir@/resources
34 # .po files to transform in .qm
38 LIB = libSalomeStyle.la
40 LIB_SRC= SalomeStyle.cxx
48 CPPFLAGS+=$(QT_INCLUDES)
50 LDFLAGS+=$(QT_MT_LIBS)
53 # create $(top_builddir)/src/Session/styles directory and copy libSalomeStyle.so there
54 LIB_PLUGINDIR = $(top_builddir)/src/Session/styles
55 LIB_PLUGINLIB = $(patsubst %.la, $(LIB_PLUGINDIR)/%.so, $(filter %.la, $(LIB)))
57 lib: $(LIB) $(LIB_PLUGINDIR) $(LIB_PLUGINLIB)
62 $(LIB_PLUGINLIB): $(LIB_PLUGINDIR)/%.so: .libs/%.so
64 ln -sf $(CURDIR)/$< $@ || true
66 # do the same in install step
67 INSTALL_PLUGINDIR = $(bindir)/styles
68 INSTALL_COPYLIB = $(patsubst %.la, $(INSTALL_PLUGINDIR)/%.so, $(filter %.la, $(LIB)))
70 install: $(INSTALL_PLUGINDIR) $(INSTALL_COPYLIB)
76 (cd $(bindir)/styles; ln -sf $(patsubst %.la, ../../../lib@LIB_LOCATION_SUFFIX@/salome/%.so, $(filter %.la, $(LIB))) $@) || true