1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # common directories to put headerfiles
25 inc_builddir=$(top_builddir)/include/salome
28 # Modifcation B. Secher portage sur osf
33 HAVE_SSTREAM=@HAVE_SSTREAM@
35 MODULE_NAME=@MODULE_NAME@
39 LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
40 LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
41 # add libstdc++ to link c++ library with libtool !
43 LDFLAGSFORBIN+= @STDLIB@
51 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
57 C_DEPEND_FLAG = @C_DEPEND_FLAG@
63 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
67 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
68 BOOST_LIBSUFFIX = @BOOST_LIBSUFFIX@
69 BOOST_LIBS = @BOOST_LIBS@
73 OPENPBS_INCLUDES = @OPENPBS_INCLUDES@
74 OPENPBS_LIBDIR = @OPENPBS_LIBDIR@
75 OPENPBS_LIBS = @OPENPBS_LIBS@
79 LSF_INCLUDES = @LSF_INCLUDES@
80 LSF_LIBDIR = @LSF_LDFLAGS@
85 CPPUNIT_INCLUDES = @CPPUNIT_INCLUDES@
86 CPPUNIT_LIBS = @CPPUNIT_LIBS@
91 PYTHONHOME = @PYTHONHOME@
92 PYTHON_INCLUDES = @PYTHON_INCLUDES@
93 PYTHON_LIBS = @PYTHON_LIBS@
94 PYTHON_VERSION = @PYTHON_VERSION@
95 PYTHON_SITE = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages
96 PYTHON_SITE_INSTALL = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome
100 QT_INCLUDES = @QT_INCLUDES@
101 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
103 QT_MT_LIBS = @QT_MT_LIBS@
114 QWT_INCLUDES=@QWT_INCLUDES@
119 SIP_INCLUDES = @SIP_INCLUDES@
120 SIP_LIBS = @SIP_LIBS@
121 SIP_VERS = @SIP_VERS@
124 PYQT_SIPS = @PYQT_SIPS@
125 PYQT_LIBS = @PYQT_LIBS@
126 PYQT_INCLUDES = @PYQT_INCLUDES@
128 PYQT_SIPFLAGS = @PYQT_SIPFLAGS@
131 OGL_INCLUDES=@OGL_INCLUDES@
135 VTK_INCLUDES=@VTK_INCLUDES@
140 HDF5_INCLUDES=@HDF5_INCLUDES@
141 HDF5_LIBS=@HDF5_LIBS@
142 HDF5_MT_LIBS=@HDF5_MT_LIBS@
146 OCC_INCLUDES=@CAS_CPPFLAGS@
147 OCC_CXXFLAGS=@CAS_CXXFLAGS@
149 CAS_KERNEL=@CAS_KERNEL@
152 CAS_OCAFVIS=@CAS_OCAFVIS@
153 CAS_TKTopAlgo=@CAS_TKTopAlgo@
154 CAS_VIEWER=@CAS_VIEWER@
155 CAS_MODELER=@CAS_MODELER@
156 CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@
157 CAS_LDPATH=@CAS_LDPATH@
161 MPI_INCLUDES=@MPI_INCLUDES@
167 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
171 OMNIORB_ROOT = @OMNIORB_ROOT@
172 OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
173 OMNIORB_LIBS = @OMNIORB_LIBS@
174 OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
176 OMNIORB_IDL = @OMNIORB_IDL@
177 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
178 OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(top_builddir)/salome/idl
180 OMNIORB_IDL_CLN_H = @OMNIORB_IDL_CLN_H@
181 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
182 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
184 OMNIORB_IDL_SRV_H = @OMNIORB_IDL_SRV_H@
185 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
186 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
190 CORBA_ROOT = @CORBA_ROOT@
191 CORBA_INCLUDES = @CORBA_INCLUDES@
192 CORBA_LIBS = @CORBA_LIBS@
193 CORBA_CXXFLAGS = @CORBA_CXXFLAGS@
195 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_builddir)/salome/idl
196 IDLPYFLAGS = @IDLPYFLAGS@
200 IDL_CLN_H = @IDL_CLN_H@
201 IDL_CLN_CXX = @IDL_CLN_CXX@
202 IDL_CLN_OBJ = @IDL_CLN_OBJ@
204 IDL_SRV_H = @IDL_SRV_H@
205 IDL_SRV_CXX = @IDL_SRV_CXX@
206 IDL_SRV_OBJ = @IDL_SRV_OBJ@
208 CPPFLAGS+= $(CORBA_INCLUDES)
209 CXXFLAGS+= $(CORBA_CXXFLAGS)
211 # add corba libs when link salome application !
212 #LDFLAGS+= $(CORBA_LIBS)
214 LIBSFORBIN+=$(CORBA_LIBS)
219 #LT_STATIC_EXEC=@LT_STATIC_EXEC@
220 #DYNAMIC_DIRS=@DYNAMIC_DIRS@
222 LT=$(top_builddir)/libtool
223 LT_COMPILE=$(LT) --mode=compile $(CC)
224 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
225 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
226 LT_RUN=$(LT) --mode=execute
227 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
228 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
229 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
232 INSTALL_PROGRAM=@INSTALL_PROGRAM@
233 INSTALL_DATA=@INSTALL_DATA@
235 # create a symbolic link (or a copie ?)
238 KERNEL_ROOT_DIR=@KERNEL_ROOT_DIR@
239 KERNEL_SITE_DIR=@KERNEL_SITE_DIR@
240 KERNEL_LDFLAGS=@KERNEL_LDFLAGS@
241 KERNEL_CXXFLAGS=@KERNEL_CXXFLAGS@
243 ## Installation points
245 exec_prefix=@exec_prefix@
246 bindir=@exec_prefix@/bin/salome
247 libdir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/salome
248 # warning : if user give this path in configure we could have salome/salome :-(
249 includedir=@includedir@/salome
250 datadir=@datadir@/salome
251 idldir=${prefix}/idl/salome
252 sharedpydir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
253 incmakedir=${prefix}/salome_adm/unix
255 docdir=${prefix}/doc/salome
258 # begin of package rules
261 .PHONY: all lib bin inc resources data docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
263 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
275 # add target to build administrative files
278 # Building html from restructured text files
281 #RSTOPTS=--output-encoding=latin1 --stylesheet=$(STYLESHEET)
282 RSTOPTS=--output-encoding=latin1
284 %.html: $(srcdir)/%.txt
285 $(RST2HTML) $(RSTOPTS) $< $@