Salome HOME
Merge from V6_main 11/02/2013
[modules/gui.git] / src / Session / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
10 #
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 #  SALOME Session : implementation of Session.idl
24 #  File   : Makefile.in
25 #  Author : Paul RASCLE, EDF
26 #  Module : SALOME
27
28 include $(top_srcdir)/adm_local/unix/make_common_starter.am
29
30 lib_LTLIBRARIES = libSalomeSession.la
31
32 salomeinclude_HEADERS =                 \
33         Session_Session_i.hxx           \
34         SALOME_Session.hxx              \
35         Session_ServerLauncher.hxx      \
36         Session_ServerThread.hxx        \
37         Session_ServerCheck.hxx
38
39 # Libraries targets
40
41 dist_libSalomeSession_la_SOURCES =      \
42         Session_Session_i.cxx           \
43         Session_ServerThread.cxx        \
44         Session_ServerLauncher.cxx      \
45         Session_ServerCheck.cxx
46
47 libSalomeSession_la_CPPFLAGS = $(QT_MT_INCLUDES) $(PYTHON_INCLUDES)             \
48         $(HDF5_INCLUDES) $(BOOST_CPPFLAGS) @KERNEL_CXXFLAGS@ $(CAS_CPPFLAGS)    \
49         @CORBA_CXXFLAGS@ @CORBA_INCLUDES@                                       \
50         -I$(top_builddir)/idl                                                   \
51         -I$(srcdir)/../Qtx -I$(srcdir)/../SUIT -I$(srcdir)/../Event             \
52         -I$(srcdir)/../Style -I$(srcdir)/../CASCatch @LIBXML_INCLUDES@
53
54 if ENABLE_TESTRECORDER
55   libSalomeSession_la_CPPFLAGS+= -DENABLE_TESTRECORDER $(TESTRECORDER_INCLUDES)
56 endif
57
58 libSalomeSession_la_LDFLAGS = $(KERNEL_LDFLAGS) -lSalomeNS                      \
59         -lSalomeLifeCycleCORBA -lOpUtil -lSALOMELocalTrace -lSalomeCatalog      \
60         -lSalomeDSClient $(CAS_KERNEL) -lwith_loggerTraceCollector              \
61         -lSalomeIDLKernel -lSalomeContainer -lTOOLSDS -lSalomeLauncher          \
62         -lRegistry -lSALOMEBasics                                               \
63         ../SUIT/libsuit.la ../Event/libEvent.la ../../idl/libSalomeIDLGUI.la    \
64         ../Style/libSalomeStyle.la $(QT_MT_LIBS) 
65
66 if ENABLE_TESTRECORDER
67   libSalomeSession_la_LDFLAGS+= $(TESTRECORDER_LIBS)
68 endif
69
70 # Executable
71 bin_PROGRAMS = SALOME_Session_Server
72
73 dist_SALOME_Session_Server_SOURCES = SALOME_Session_Server.cxx
74
75 SALOME_Session_Server_CPPFLAGS = $(libSalomeSession_la_CPPFLAGS)
76 SALOME_Session_Server_LDADD    = $(libSalomeSession_la_LDFLAGS)                 \
77         -lSalomeContainer -lSalomeResourcesManager -lTOOLSDS                    \
78         -lSalomeHDFPersist -lSalomeDSImpl -lSalomeGenericObj -lRegistry         \
79         -lSalomeNotification -lSALOMEBasics -lSalomeLauncher ../Qtx/libqtx.la   \
80         $(top_builddir)/idl/libSalomeIDLGUI.la libSalomeSession.la              \
81         $(HDF5_LIBS) $(PYTHON_LIBS) $(OMNIORB_LIBS)
82
83 if ENABLE_TESTRECORDER
84   SALOME_Session_Server_LDADD+= $(TESTRECORDER_LIBS)
85 endif