1 # Copyright (C) 2006-2008 CEA/DEN, EDF 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/ or email : webmaster.salome@opencascade.com
19 # common directories to put headerfiles
21 inc_builddir=$(top_builddir)/include/salome
28 HAVE_SSTREAM=@HAVE_SSTREAM@
32 LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome
33 # add libstdc++ to link c++ library with libtool !
42 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
48 C_DEPEND_FLAG = @C_DEPEND_FLAG@
54 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
58 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
62 JAVA_INCLUDES = @JAVA_INCLUDES@
63 JAVA_LIBS = @JAVA_LIBS@
64 JAVA_LDPATH = @JAVA_LDPATH@
69 PYTHONHOME = @PYTHONHOME@
70 PYTHON_INCLUDES = @PYTHON_INCLUDES@
71 PYTHON_LIBS = @PYTHON_LIBS@
72 PYTHON_VERSION = @PYTHON_VERSION@
73 PYTHON_SITE = @PYTHON_SITE@
74 PYTHON_SITE_INSTALL = @PYTHON_SITE_INSTALL@
79 QT_INCLUDES = @QT_INCLUDES@
80 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
82 QT_MT_LIBS = @QT_MT_LIBS@
93 QWT_INCLUDES=@QWT_INCLUDES@
98 SIP_INCLUDES = @SIP_INCLUDES@
102 PYQT_SIPS = @PYQT_SIPS@
103 PYQT_LIBS = @PYQT_LIBS@
106 OGL_INCLUDES=@OGL_INCLUDES@
110 VTK_INCLUDES=@VTK_INCLUDES@
115 HDF5_INCLUDES=@HDF5_INCLUDES@
116 HDF5_LIBS=@HDF5_LIBS@
117 HDF5_MT_LIBS=@HDF5_MT_LIBS@
121 MED2_INCLUDES=@MED2_INCLUDES@
122 MED2_LIBS=@MED2_LIBS@
123 MED2_MT_LIBS=@MED2_MT_LIBS@
127 OCC_INCLUDES=@CAS_CPPFLAGS@
128 OCC_CXXFLAGS=@CAS_CXXFLAGS@
130 OCC_KERNEL_LIBS=@CAS_KERNEL@
131 OCC_OCAF_LIBS=@CAS_OCAF@
132 OCC_VIEWER_LIBS=@CAS_VIEWER@
133 OCC_MODELER_LIBS=@CAS_MODELER@
134 OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
135 OCC_LIBS=@CAS_LDFLAGS@
139 MPICH_INCLUDES=@MPICH_INCLUDES@
140 MPICH_LIBS=@MPICH_LIBS@
145 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
149 OMNIORB_ROOT = @OMNIORB_ROOT@
150 OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
151 OMNIORB_LIBS = @OMNIORB_LIBS@
152 OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
154 OMNIORB_IDL = @OMNIORB_IDL@
155 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
156 OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome
158 OMNIORB_IDL_CLN_H = @OMNIORB_IDL_CLN_H@
159 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
160 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
162 OMNIORB_IDL_SRV_H = @OMNIORB_IDL_SRV_H@
163 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
164 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
168 CORBA_ROOT = @CORBA_ROOT@
169 CORBA_INCLUDES = @CORBA_INCLUDES@
170 CORBA_LIBS = @CORBA_LIBS@
171 CORBA_CXXFLAGS = @CORBA_CXXFLAGS@
173 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome
174 IDLPYFLAGS = @IDLPYFLAGS@
178 IDL_CLN_H = @IDL_CLN_H@
179 IDL_CLN_CXX = @IDL_CLN_CXX@
180 IDL_CLN_OBJ = @IDL_CLN_OBJ@
182 IDL_SRV_H = @IDL_SRV_H@
183 IDL_SRV_CXX = @IDL_SRV_CXX@
184 IDL_SRV_OBJ = @IDL_SRV_OBJ@
186 CPPFLAGS+= $(CORBA_INCLUDES)
187 CXXFLAGS+= $(CORBA_CXXFLAGS)
189 # add corba libs when link salome application !
190 #LDFLAGS+= $(CORBA_LIBS)
194 LT_STATIC_EXEC=@LT_STATIC_EXEC@
195 DYNAMIC_DIRS=@DYNAMIC_DIRS@
197 LT=$(top_builddir)/libtool
198 LT_COMPILE=$(LT) --mode=compile $(CC)
199 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
200 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
201 LT_RUN=$(LT) --mode=execute
202 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
203 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
204 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
207 INSTALL_PROGRAM=@INSTALL_PROGRAM@
208 INSTALL_DATA=@INSTALL_DATA@
210 # create a symbolic link (or a copie ?)
213 ## Installation points
215 exec_prefix=@exec_prefix@
216 bindir=@bindir@/salome
217 libdir=@libdir@/salome
218 # warning : if user give this path in configure we could have salome/salome :-(
219 includedir=@includedir@/salome
220 datadir=@datadir@/salome
221 idldir=$(prefix)/idl/salome
222 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
224 docdir=$(datadir)/doc
227 # begin of package rules
230 .PHONY: all lib bin inc resources tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
232 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
243 # add target to build administrative files
246 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
247 cd $(top_builddir) ; ./config.status
249 $(top_builddir)/config.status: $(top_srcdir)/configure
250 cd $(top_builddir) ; ./config.status --recheck
252 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
253 ifneq ($(top_srcdir),$(srcdir))
254 configure: $(top_srcdir)/configure
257 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
258 cd $(top_srcdir) ; autoconf
260 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
261 cd $(top_srcdir) && ./build_configure
265 ac_cxx_bool.m4 check_corba.m4 \
266 ac_cxx_depend_flag.m4 check_hdf5.m4 enable_pthreads.m4 \
267 ac_cxx_mutable.m4 check_mico.m4 libtool.m4 \
268 ac_cxx_namespaces.m4 check_omniorb.m4 pyembed.m4 \
269 ac_cxx_partial_specialization.m4 check_opengl.m4 python.m4 \
270 ac_cxx_typename.m4 check_pthreads.m4 check_cas.m4 \
271 ac_cc_warnings.m4 check_swig.m4
274 check_vtk.m4 check_qt.m4
276 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%) \
277 $(ACLOCAL_GUI:%=@GUI_ROOT_DIR@/adm_local/unix/config_files/%)
278 cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files \
279 -I @GUI_ROOT_DIR@/adm_local/unix/config_files