]> SALOME platform Git repositories - modules/gui.git/blob - src/Style/Makefile.in
Salome HOME
a7ffaf27f7ef6633962c28d8d5b36104a0f4b994
[modules/gui.git] / src / Style / Makefile.in
1 #  Copyright (C) 2005  CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 #  See http://www.salome-platform.org/
18 #
19 #  File   : Makefile.in
20 #  Author : Vladimir Klyachin (OCN)
21 #  Module : SalomeApp
22
23 top_srcdir=@top_srcdir@
24 top_builddir=../..
25 srcdir=@srcdir@
26 VPATH=.:@srcdir@:@srcdir@/resources
27
28
29 @COMMENCE@
30
31 # header files 
32 EXPORT_HEADERS=
33
34 # .po files to transform in .qm
35 PO_FILES =
36
37 # Libraries targets
38 LIB = libSalomeStyle.la
39
40 LIB_SRC= SalomeStyle.cxx
41
42 LIB_MOC =
43
44 LIB_CLIENT_IDL =
45
46 RESOURCES_FILES =
47
48 CPPFLAGS+=$(QT_INCLUDES)
49
50 LDFLAGS+=$(QT_MT_LIBS)
51 LIBS+=
52
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)))
56
57 lib: $(LIB) $(LIB_PLUGINDIR) $(LIB_PLUGINLIB)
58
59 $(LIB_PLUGINDIR):
60         mkdir -p $@
61
62 $(LIB_PLUGINLIB): $(LIB_PLUGINDIR)/%.so: .libs/%.so
63         -$(RM) $@
64         ln -sf $(CURDIR)/$< $@ || true
65
66 # do the same in install step
67 INSTALL_PLUGINDIR = $(bindir)/styles
68 INSTALL_COPYLIB = $(patsubst %.la, $(INSTALL_PLUGINDIR)/%.so, $(filter %.la, $(LIB)))
69
70 install: $(INSTALL_PLUGINDIR) $(INSTALL_COPYLIB)
71
72 $(INSTALL_PLUGINDIR):
73         mkdir -p $@
74
75 $(INSTALL_COPYLIB):
76         (cd $(bindir)/styles; ln -sf $(patsubst %.la, ../../../lib@LIB_LOCATION_SUFFIX@/salome/%.so, $(filter %.la, $(LIB))) $@) || true
77
78 @CONCLUDE@
79