]> SALOME platform Git repositories - modules/yacs.git/blob - src/runtime/Makefile.am
Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / src / runtime / Makefile.am
1 #  Copyright (C) 2006-2008  CEA/DEN, EDF 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/ or email : webmaster.salome@opencascade.com
18 #
19 include $(top_srcdir)/adm/unix/make_begin.am
20
21 SUBDIRS = Test
22
23
24
25 lib_LTLIBRARIES = libYACSRuntimeSALOME.la
26
27 libYACSRuntimeSALOME_la_SOURCES =      \
28         TypeConversions.cxx            \
29         CORBACORBAConv.cxx             \
30         CORBAPythonConv.cxx            \
31         CORBAXMLConv.cxx               \
32         CORBANeutralConv.cxx           \
33         XMLCORBAConv.cxx               \
34         XMLPythonConv.cxx              \
35         XMLNeutralConv.cxx             \
36         CORBANode.cxx                  \
37         CORBAPorts.cxx                 \
38         CppNode.cxx                    \
39         CppPorts.cxx                   \
40         NeutralPythonConv.cxx          \
41         NeutralCORBAConv.cxx           \
42         NeutralXMLConv.cxx             \
43         NeutralInitConv.cxx            \
44         PythonCORBAConv.cxx            \
45         PythonNeutralConv.cxx          \
46         PythonXMLConv.cxx              \
47         PythonInitConv.cxx             \
48         PythonNode.cxx                 \
49         SalomePythonNode.cxx           \
50         SalomePythonComponent.cxx      \
51         SalomeContainer.cxx            \
52         PythonPorts.cxx                \
53         XMLNode.cxx                    \
54         XMLPorts.cxx                   \
55         RuntimeSALOME.cxx              \
56         SALOMEDispatcher.cxx           \
57         SalomeProc.cxx                 \
58         CalStreamPort.cxx              \
59         CORBAComponent.cxx             \
60         SalomeComponent.cxx            \
61         CppComponent.cxx               \
62         CppContainer.cxx               \
63         CppCORBAConv.cxx               \
64         CppNeutralConv.cxx             \
65         CppXMLConv.cxx                 \
66         CppCppConv.cxx                 \
67         CppPythonConv.cxx              \
68         CORBACppConv.cxx               \
69         NeutralCppConv.cxx             \
70         XMLCppConv.cxx                 \
71         PythonCppConv.cxx              \
72         SessionCataLoader.cxx          \
73         PresetPorts.cxx                \
74         PresetNode.cxx                 \
75         OutNode.cxx                    \
76         StudyNodes.cxx                 \
77         StudyPorts.cxx                 \
78         VisitorSaveSalomeSchema.cxx    \
79         PyStdout.cxx                   \
80         $(__dummy__)
81
82 salomeinclude_HEADERS = \
83 CalStreamPort.hxx            CORBAComponent.hxx   CORBACORBAConv.hxx         CORBACppConv.hxx \
84 CORBANeutralConv.hxx         CORBANode.hxx        CORBAPorts.hxx             CORBAPythonConv.hxx \
85 CORBAXMLConv.hxx             CppComponent.hxx     CppContainer.hxx           CppCORBAConv.hxx \
86 CppCppConv.hxx               CppNeutralConv.hxx   CppNode.hxx                CppPorts.hxx \
87 CppPythonConv.hxx            CppXMLConv.hxx       NeutralCORBAConv.hxx       NeutralCppConv.hxx \
88 NeutralPythonConv.hxx        NeutralXMLConv.hxx   OutNode.hxx                PresetNode.hxx \
89 PresetPorts.hxx              PyStdout.hxx         PythonCORBAConv.hxx        PythonCppConv.hxx \
90 PythonNeutralConv.hxx        PythonNode.hxx       PythonPorts.hxx            PythonXMLConv.hxx \
91 RuntimeSALOME.hxx            SalomeComponent.hxx  SALOMEconfig.h             SalomeContainer.hxx \
92 SALOMEDispatcher.hxx         SalomeProc.hxx       SalomePythonComponent.hxx  SalomePythonNode.hxx \
93 SessionCataLoader.hxx        StudyNodes.hxx       StudyPorts.hxx             TypeConversions.hxx \
94 VisitorSaveSalomeSchema.hxx  XMLCORBAConv.hxx     XMLCppConv.hxx             XMLNeutralConv.hxx \
95 XMLNode.hxx                  XMLPorts.hxx         XMLPythonConv.hxx          PythonInitConv.hxx \
96 NeutralInitConv.hxx
97
98 EXTRA_libYACSRuntimeSALOME_la_SOURCES =  \
99         $(__dummy__)
100
101 if SALOME_KERNEL
102 libYACSRuntimeSALOME_la_SOURCES += ../../idl/yacsguiSK.cc
103 SALOME_LIBS=-L$(KERNEL_ROOT_DIR)/lib$(LIB_LOCATION_SUFFIX)/salome -lSalomeLifeCycleCORBA
104 SALOME_INCL_PATH=-I$(KERNEL_ROOT_DIR)/include/salome 
105 endif
106
107 if DSC_PORTS
108 DSC_LIBS=-L$(KERNEL_ROOT_DIR)/lib$(LIB_LOCATION_SUFFIX)/salome -lSalomeDSCContainer
109 endif
110
111 # --- build libYACSRuntimeSALOME library before swig libraries (problem with make -j)
112
113 BUILT_SOURCES=SALOMERuntimeWRAP.cxx libYACSRuntimeSALOME.la
114
115 libYACSRuntimeSALOME_la_LIBADD = \
116         $(DSC_LIBS) $(SALOME_LIBS) $(OMNIORB_LIBS) \
117         ../engine/libYACSlibEngine.la
118
119 AM_CXXFLAGS = \
120         $(THREAD_DEF) \
121         $(PYTHON_CPPFLAGS) \
122         $(OMNIORB_INCLUDES) \
123         -I$(OMNIORB_ROOT)/include/omniORB4/internal \
124         $(OMNIORB_CXXFLAGS) \
125         $(SALOME_INCL_PATH) \
126         -I$(srcdir)/../bases \
127         -I$(srcdir)/../engine \
128         -I../../idl \
129         $(LIBXML_INCLUDES)
130
131 ############################################################
132
133 salomepython_PYTHON = SALOMERuntime.py
134 salomepyexec_LTLIBRARIES = _SALOMERuntime.la
135
136 _SALOMERuntime_la_SOURCES =   \
137         SALOMERuntimeWRAP.cxx
138
139 MYSWIG_FLAGS = -noexcept -I$(srcdir)/../bases -I$(srcdir)/../engine
140
141 SWIGINCLUDES= RuntimeSALOME.hxx SALOMEDispatcher.hxx SalomeProc.hxx PythonNode.hxx PythonPorts.hxx \
142                                                         CORBANode.hxx CORBAPorts.hxx TypeConversions.hxx \
143                                                         ../engine/pilot.i ../engine/engtypemaps.i
144
145 SALOMERuntimeWRAP.cxx: SALOMERuntime.i $(SWIGINCLUDES)
146         $(SWIG) $(SWIG_PYTHON_OPT) $(SWIG_PYTHON_INCLUDES) $(MYSWIG_FLAGS) -o $@ $(srcdir)/SALOMERuntime.i
147
148 _SALOMERuntime_la_CXXFLAGS = \
149         $(THREAD_DEF) \
150         $(PYTHON_CPPFLAGS) \
151         $(OMNIORB_INCLUDES) \
152         $(OMNIORB_CXXFLAGS) \
153         -I$(KERNEL_ROOT_DIR)/include/salome \
154         -I$(srcdir)/../bases \
155         -I$(srcdir)/../engine \
156         -I../../idl \
157         $(LIBXML_INCLUDES)
158
159 _SALOMERuntime_la_LDFLAGS  = -module
160
161 _SALOMERuntime_la_LIBADD = libYACSRuntimeSALOME.la 
162
163 EXTRA_DIST = SALOMERuntime.i
164
165 include $(top_srcdir)/adm/unix/make_end.am