1 #=======================================================================
2 # This section of this makefile comes from the file
3 # 'adm_local/unix/make_commence' which was generated with config.status
4 # from file adm_local/unix/make_commence.in
5 #=======================================================================
7 # common directories to put headerfiles
8 inc_builddir=$(top_builddir)/include/salome
15 HAVE_SSTREAM=@HAVE_SSTREAM@
20 LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
21 LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(KERNEL_ROOT_DIR)/lib/salome
22 # add libstdc++ to link c++ library with libtool !
24 LDFLAGSFORBIN+= -lstdc++
32 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
38 C_DEPEND_FLAG = @C_DEPEND_FLAG@
44 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
48 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
52 JAVA_INCLUDES = @JAVA_INCLUDES@
53 JAVA_LIBS = @JAVA_LIBS@
54 JAVA_LDPATH = @JAVA_LDPATH@
59 PYTHONHOME = @PYTHONHOME@
60 PYTHON_INCLUDES = @PYTHON_INCLUDES@
61 PYTHON_LIBS = @PYTHON_LIBS@
62 PYTHON_VERSION = @PYTHON_VERSION@
63 # Changes from the SalomePro V1.2c
64 #PYTHON_SITE = @PYTHON_SITE@
65 #PYTHON_SITE_INSTALL = @PYTHON_SITE_INSTALL@
66 PYTHON_SITE = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages
67 PYTHON_SITE_INSTALL = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome
72 QT_INCLUDES = @QT_INCLUDES@
73 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
75 QT_MT_LIBS = @QT_MT_LIBS@
86 QWT_INCLUDES=@QWT_INCLUDES@
91 SIP_INCLUDES = @SIP_INCLUDES@
95 PYQT_SIPS = @PYQT_SIPS@
96 PYQT_LIBS = @PYQT_LIBS@
99 OGL_INCLUDES=@OGL_INCLUDES@
103 VTK_INCLUDES=@VTK_INCLUDES@
108 HDF5_INCLUDES=@HDF5_INCLUDES@
109 HDF5_LIBS=@HDF5_LIBS@
110 HDF5_MT_LIBS=@HDF5_MT_LIBS@
114 MED2_INCLUDES=@MED2_INCLUDES@
115 MED2_LIBS=@MED2_LIBS@
116 MED2_MT_LIBS=@MED2_MT_LIBS@
120 OCC_INCLUDES=@CAS_CPPFLAGS@
121 OCC_CXXFLAGS=@CAS_CXXFLAGS@
123 #OCC_KERNEL_LIBS=@CAS_KERNEL@
124 #OCC_OCAF_LIBS=@CAS_OCAF@
125 #OCC_VIEWER_LIBS=@CAS_VIEWER@
126 #OCC_MODELER_LIBS=@CAS_MODELER@
127 #OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
128 #OCC_LIBS=@CAS_LDFLAGS@
129 CAS_KERNEL=@CAS_KERNEL@
131 CAS_VIEWER=@CAS_VIEWER@
132 CAS_MODELER=@CAS_MODELER@
133 CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@
134 CAS_LDPATH=@CAS_LDPATH@
138 MPICH_INCLUDES=@MPICH_INCLUDES@
139 MPICH_LIBS=@MPICH_LIBS@
144 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
148 OMNIORB_ROOT = @OMNIORB_ROOT@
149 OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
150 OMNIORB_LIBS = @OMNIORB_LIBS@
151 OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
153 OMNIORB_IDL = @OMNIORB_IDL@
154 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
155 OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome -I$(KERNEL_ROOT_DIR)/idl/salome \
156 -I$(MED_ROOT_DIR)/idl/salome -I$(VISU_ROOT_DIR)/idl/salome -I$(RANDOMIZER_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/salome -I$(KERNEL_ROOT_DIR)/idl/salome \
174 -I$(MED_ROOT_DIR)/idl/salome -I$(VISU_ROOT_DIR)/idl/salome -I$(RANDOMIZER_ROOT_DIR)/idl/salome
176 IDLPYFLAGS = @IDLPYFLAGS@
180 IDL_CLN_H = @IDL_CLN_H@
181 IDL_CLN_CXX = @IDL_CLN_CXX@
182 IDL_CLN_OBJ = @IDL_CLN_OBJ@
184 IDL_SRV_H = @IDL_SRV_H@
185 IDL_SRV_CXX = @IDL_SRV_CXX@
186 IDL_SRV_OBJ = @IDL_SRV_OBJ@
188 CPPFLAGS+= $(CORBA_INCLUDES)
189 CXXFLAGS+= $(CORBA_CXXFLAGS)
191 # add corba libs when link salome application !
192 #LDFLAGS+= $(CORBA_LIBS)
198 LT_STATIC_EXEC=@LT_STATIC_EXEC@
199 DYNAMIC_DIRS=@DYNAMIC_DIRS@
201 LT=$(top_builddir)/libtool
202 LT_COMPILE=$(LT) --mode=compile $(CC)
203 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
204 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
205 LT_RUN=$(LT) --mode=execute
206 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
207 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
208 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
211 INSTALL_PROGRAM=@INSTALL_PROGRAM@
212 INSTALL_DATA=@INSTALL_DATA@
214 # create a symbolic link (or a copie ?)
217 ## Installation points
219 exec_prefix=@exec_prefix@
220 bindir=@bindir@/salome
221 libdir=@libdir@/salome
222 # warning : if user give this path in configure we could have salome/salome :-(
223 includedir=@includedir@/salome
224 datadir=@datadir@/salome
225 idldir=$(prefix)/idl/salome
226 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
227 incmakedir=${prefix}/salome_adm/unix
229 docdir=$(datadir)/doc
232 # begin of package rules
235 .PHONY: all lib bin inc resources tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
237 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
248 # add target to build administrative files
251 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
252 cd $(top_builddir) ; ./config.status
254 $(top_builddir)/config.status: $(top_srcdir)/configure
255 cd $(top_builddir) ; ./config.status --recheck
257 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
258 ifneq ($(top_srcdir),$(srcdir))
259 configure: $(top_srcdir)/configure
262 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
263 cd $(top_srcdir) ; autoconf
265 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
266 cd $(top_srcdir) && ./build_configure
270 ac_cxx_bool.m4 check_corba.m4 \
271 ac_cxx_depend_flag.m4 check_hdf5.m4 enable_pthreads.m4 \
272 ac_cxx_mutable.m4 check_mico.m4 libtool.m4 \
273 ac_cxx_namespaces.m4 check_omniorb.m4 pyembed.m4 \
274 ac_cxx_partial_specialization.m4 python.m4 \
275 ac_cxx_typename.m4 check_pthreads.m4 check_cas.m4 \
276 ac_cc_warnings.m4 check_swig.m4 check_boost.m4
279 check_vtk.m4 check_opengl.m4 check_qt.m4 \
280 check_GUI.m4 check_corba_in_GUI.m4
282 ACLOCAL_MED = check_Med.m4 check_Med2.m4
283 ACLOCAL_RAND = check_RANDOMIZER.m4
284 ACLOCAL_VISU = check_VISU.m4
285 ACLOCAL_CUR = check_gd.m4
287 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%) \
288 $(ACLOCAL_GUI:%=@GUI_ROOT_DIR@/adm_local/unix/config_files/%) \
289 $(ACLOCAL_MED:%=@MED_ROOT_DIR@/adm_local/unix/config_files/%)
290 $(ACLOCAL_VISU:%=@VISU_ROOT_DIR@/adm_local/unix/config_files/%)
291 cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files \
292 -I @GUI_ROOT_DIR@/adm_local/unix/config_files \
293 -I @MED_ROOT_DIR@/adm_local/unix/config_files \
294 -I @RANDOMIZER_ROOT_DIR@/adm_local/unix/config_files \
295 -I @VISU_ROOT_DIR@/adm_local/unix/config_files