1 # Copyright (C) 2006-2013 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
20 # common directories to put headerfiles
22 inc_builddir=$(top_builddir)/include/salome
29 HAVE_SSTREAM=@HAVE_SSTREAM@
33 LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome
34 # add libstdc++ to link c++ library with libtool !
43 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
49 C_DEPEND_FLAG = @C_DEPEND_FLAG@
55 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
59 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
63 JAVA_INCLUDES = @JAVA_INCLUDES@
64 JAVA_LIBS = @JAVA_LIBS@
65 JAVA_LDPATH = @JAVA_LDPATH@
70 PYTHONHOME = @PYTHONHOME@
71 PYTHON_INCLUDES = @PYTHON_INCLUDES@
72 PYTHON_LIBS = @PYTHON_LIBS@
73 PYTHON_VERSION = @PYTHON_VERSION@
74 PYTHON_SITE = @PYTHON_SITE@
75 PYTHON_SITE_INSTALL = @PYTHON_SITE_INSTALL@
80 QT_INCLUDES = @QT_INCLUDES@
81 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
83 QT_MT_LIBS = @QT_MT_LIBS@
94 QWT_INCLUDES=@QWT_INCLUDES@
99 SIP_INCLUDES = @SIP_INCLUDES@
100 SIP_LIBS = @SIP_LIBS@
103 PYQT_SIPS = @PYQT_SIPS@
104 PYQT_LIBS = @PYQT_LIBS@
107 OGL_INCLUDES=@OGL_INCLUDES@
111 VTK_INCLUDES=@VTK_INCLUDES@
116 HDF5_INCLUDES=@HDF5_INCLUDES@
117 HDF5_LIBS=@HDF5_LIBS@
118 HDF5_MT_LIBS=@HDF5_MT_LIBS@
122 MED2_INCLUDES=@MED2_INCLUDES@
123 MED2_LIBS=@MED2_LIBS@
124 MED2_MT_LIBS=@MED2_MT_LIBS@
128 OCC_INCLUDES=@CAS_CPPFLAGS@
129 OCC_CXXFLAGS=@CAS_CXXFLAGS@
131 OCC_KERNEL_LIBS=@CAS_KERNEL@
132 OCC_OCAF_LIBS=@CAS_OCAF@
133 OCC_VIEWER_LIBS=@CAS_VIEWER@
134 OCC_MODELER_LIBS=@CAS_MODELER@
135 OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
136 OCC_LIBS=@CAS_LDFLAGS@
140 MPICH_INCLUDES=@MPICH_INCLUDES@
141 MPICH_LIBS=@MPICH_LIBS@
146 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
150 OMNIORB_ROOT = @OMNIORB_ROOT@
151 OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
152 OMNIORB_LIBS = @OMNIORB_LIBS@
153 OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
155 OMNIORB_IDL = @OMNIORB_IDL@
156 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
157 OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome
159 OMNIORB_IDL_CLN_H = @OMNIORB_IDL_CLN_H@
160 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
161 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
163 OMNIORB_IDL_SRV_H = @OMNIORB_IDL_SRV_H@
164 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
165 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
169 CORBA_ROOT = @CORBA_ROOT@
170 CORBA_INCLUDES = @CORBA_INCLUDES@
171 CORBA_LIBS = @CORBA_LIBS@
172 CORBA_CXXFLAGS = @CORBA_CXXFLAGS@
174 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome
175 IDLPYFLAGS = @IDLPYFLAGS@
179 IDL_CLN_H = @IDL_CLN_H@
180 IDL_CLN_CXX = @IDL_CLN_CXX@
181 IDL_CLN_OBJ = @IDL_CLN_OBJ@
183 IDL_SRV_H = @IDL_SRV_H@
184 IDL_SRV_CXX = @IDL_SRV_CXX@
185 IDL_SRV_OBJ = @IDL_SRV_OBJ@
187 CPPFLAGS+= $(CORBA_INCLUDES)
188 CXXFLAGS+= $(CORBA_CXXFLAGS)
190 # add corba libs when link salome application !
191 #LDFLAGS+= $(CORBA_LIBS)
195 LT_STATIC_EXEC=@LT_STATIC_EXEC@
196 DYNAMIC_DIRS=@DYNAMIC_DIRS@
198 LT=$(top_builddir)/libtool
199 LT_COMPILE=$(LT) --mode=compile $(CC)
200 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
201 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
202 LT_RUN=$(LT) --mode=execute
203 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
204 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
205 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
208 INSTALL_PROGRAM=@INSTALL_PROGRAM@
209 INSTALL_DATA=@INSTALL_DATA@
211 # create a symbolic link (or a copie ?)
214 ## Installation points
216 exec_prefix=@exec_prefix@
217 bindir=@bindir@/salome
218 libdir=@libdir@/salome
219 # warning : if user give this path in configure we could have salome/salome :-(
220 includedir=@includedir@/salome
221 datadir=@datadir@/salome
222 idldir=$(prefix)/idl/salome
223 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
225 docdir=$(datadir)/doc
228 # begin of package rules
231 .PHONY: all lib bin inc resources tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
233 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
244 # add target to build administrative files
247 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
248 cd $(top_builddir) ; ./config.status
250 $(top_builddir)/config.status: $(top_srcdir)/configure
251 cd $(top_builddir) ; ./config.status --recheck
253 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
254 ifneq ($(top_srcdir),$(srcdir))
255 configure: $(top_srcdir)/configure
258 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
259 cd $(top_srcdir) ; autoconf
261 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
262 cd $(top_srcdir) && ./build_configure
266 ac_cxx_bool.m4 check_corba.m4 \
267 ac_cxx_depend_flag.m4 check_hdf5.m4 enable_pthreads.m4 \
268 ac_cxx_mutable.m4 check_mico.m4 libtool.m4 \
269 ac_cxx_namespaces.m4 check_omniorb.m4 pyembed.m4 \
270 ac_cxx_partial_specialization.m4 check_opengl.m4 python.m4 \
271 ac_cxx_typename.m4 check_pthreads.m4 check_cas.m4 \
272 ac_cc_warnings.m4 check_swig.m4
275 check_vtk.m4 check_qt.m4
277 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%) \
278 $(ACLOCAL_GUI:%=@GUI_ROOT_DIR@/adm_local/unix/config_files/%)
279 cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files \
280 -I @GUI_ROOT_DIR@/adm_local/unix/config_files