1 # common directories to put headerfiles
2 inc_builddir=$(top_builddir)/include/salome
9 HAVE_SSTREAM=@HAVE_SSTREAM@
14 LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
15 LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
16 # add libstdc++ to link c++ library with libtool !
18 LDFLAGSFORBIN+= -lstdc++
26 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
32 C_DEPEND_FLAG = @C_DEPEND_FLAG@
38 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
42 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
46 JAVA_INCLUDES = @JAVA_INCLUDES@
47 JAVA_LIBS = @JAVA_LIBS@
48 JAVA_LDPATH = @JAVA_LDPATH@
53 PYTHONHOME = @PYTHONHOME@
54 PYTHON_INCLUDES = @PYTHON_INCLUDES@
55 PYTHON_LIBS = @PYTHON_LIBS@
56 PYTHON_VERSION = @PYTHON_VERSION@
57 PYTHON_SITE = @PYTHON_SITE@
58 PYTHON_SITE_INSTALL = @PYTHON_SITE_INSTALL@
63 QT_INCLUDES = @QT_INCLUDES@
64 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
66 QT_MT_LIBS = @QT_MT_LIBS@
74 QWT_INCLUDES=@QWT_INCLUDES@
79 SIP_INCLUDES = @SIP_INCLUDES@
83 PYQT_SIPS = @PYQT_SIPS@
84 PYQT_LIBS = @PYQT_LIBS@
87 OGL_INCLUDES=@OGL_INCLUDES@
91 VTK_INCLUDES=@VTK_INCLUDES@
96 HDF5_INCLUDES=@HDF5_INCLUDES@
98 HDF5_MT_LIBS=@HDF5_MT_LIBS@
102 OCC_INCLUDES=@CAS_CPPFLAGS@
103 OCC_CXXFLAGS=@CAS_CXXFLAGS@
105 OCC_KERNEL_LIBS=@CAS_KERNEL@
106 OCC_OCAF_LIBS=@CAS_OCAF@
107 OCC_VIEWER_LIBS=@CAS_VIEWER@
108 OCC_MODELER_LIBS=@CAS_MODELER@
109 OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
110 OCC_LIBS=@CAS_LDFLAGS@
111 OCC_LDPATH=@CAS_LDPATH@
115 MPICH_INCLUDES=@MPICH_INCLUDES@
116 MPICH_LIBS=@MPICH_LIBS@
121 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
125 OMNIORB_ROOT = @OMNIORB_ROOT@
126 OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
127 OMNIORB_LIBS = @OMNIORB_LIBS@
128 OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
130 OMNIORB_IDL = @OMNIORB_IDL@
131 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
132 OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome \
133 -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome -I$(MED_ROOT_DIR)/idl/salome
135 OMNIORB_IDL_CLN_H = @OMNIORB_IDL_CLN_H@
136 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
137 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
139 OMNIORB_IDL_SRV_H = @OMNIORB_IDL_SRV_H@
140 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
141 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
145 CORBA_ROOT = @CORBA_ROOT@
146 CORBA_INCLUDES = @CORBA_INCLUDES@
147 CORBA_LIBS = @CORBA_LIBS@
148 CORBA_CXXFLAGS = @CORBA_CXXFLAGS@
150 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome \
151 -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome -I$(MED_ROOT_DIR)/idl/salome
152 IDLPYFLAGS = @IDLPYFLAGS@
156 IDL_CLN_H = @IDL_CLN_H@
157 IDL_CLN_CXX = @IDL_CLN_CXX@
158 IDL_CLN_OBJ = @IDL_CLN_OBJ@
160 IDL_SRV_H = @IDL_SRV_H@
161 IDL_SRV_CXX = @IDL_SRV_CXX@
162 IDL_SRV_OBJ = @IDL_SRV_OBJ@
164 CPPFLAGS+= $(CORBA_INCLUDES)
165 CXXFLAGS+= $(CORBA_CXXFLAGS)
167 # add corba libs when link salome application !
168 #LDFLAGS+= $(CORBA_LIBS)
172 DOXYGEN_WITH_PYTHON = @DOXYGEN_WITH_PYTHON@
173 DOXYGEN_WITH_STL = @DOXYGEN_WITH_STL@
176 LT_STATIC_EXEC=@LT_STATIC_EXEC@
177 DYNAMIC_DIRS=@DYNAMIC_DIRS@
179 LT=$(top_builddir)/libtool
180 LT_COMPILE=$(LT) --mode=compile $(CC)
181 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
182 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
183 LT_RUN=$(LT) --mode=execute
184 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
185 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
186 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
189 INSTALL_PROGRAM=@INSTALL_PROGRAM@
190 INSTALL_DATA=@INSTALL_DATA@
192 # create a symbolic link (or a copie ?)
195 ## Installation points
197 exec_prefix=@exec_prefix@
198 bindir=@bindir@/salome
199 libdir=@libdir@/salome
200 # warning : if user give this path in configure we could have salome/salome :-(
201 includedir=@includedir@/salome
202 datadir=@datadir@/salome
203 idldir=$(prefix)/idl/salome
204 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
206 docdir=${prefix}/doc/salome
209 # begin of package rules
212 .PHONY: all lib bin inc resources docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
214 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
225 # add target to build administrative files
228 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
229 cd $(top_builddir) ; ./config.status
231 LOCAL_MAKE = make_commence make_conclude make_omniorb
233 KERNEL_MAKE = make_module depend SALOMEconfig.h F77config.h sstream envScript
235 $(top_builddir)/config.status: $(top_srcdir)/configure \
236 $(LOCAL_MAKE:%=$(top_srcdir)/adm_local/unix/%.in) \
237 $(KERNEL_MAKE:%=$(KERNEL_ROOT_DIR)/salome_adm/unix/%.in)
238 cd $(top_builddir) ; ./config.status --recheck
240 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
241 ifneq ($(top_srcdir),$(srcdir))
242 configure: $(top_srcdir)/configure
245 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
246 cd $(top_srcdir) ; autoconf
248 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
249 cd $(top_srcdir) && ./build_configure
253 ac_cxx_bool.m4 check_corba.m4 \
254 ac_cxx_depend_flag.m4 check_hdf5.m4 enable_pthreads.m4 \
255 ac_cxx_mutable.m4 check_mico.m4 libtool.m4 \
256 ac_cxx_namespaces.m4 check_omniorb.m4 pyembed.m4 \
257 ac_cxx_partial_specialization.m4 python.m4 \
258 ac_cxx_typename.m4 check_pthreads.m4 check_cas.m4 \
259 ac_cc_warnings.m4 check_boost.m4 check_swig.m4
262 check_vtk.m4 check_opengl.m4 check_qt.m4 \
263 check_GUI.m4 check_corba_in_GUI.m4
265 ACLOCAL_MED = check_Med.m4
266 ACLOCAL_GEOM = check_GEOM.m4
268 $(top_srcdir)/aclocal.m4: $(ACLOCAL_KERNEL:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%) \
269 $(ACLOCAL_GUI:%=@GUI_ROOT_DIR@/adm_local/unix/config_files/%) \
270 $(ACLOCAL_MED:%=@MED_ROOT_DIR@/adm_local/unix/config_files/%) \
271 $(ACLOCAL_GEOM:%=@GEOM_ROOT_DIR@/adm_local/unix/config_files/%)
272 cd $(top_srcdir) ; aclocal -I adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files \
273 -I @GUI_ROOT_DIR@/adm_local/unix/config_files \
274 -I @MED_ROOT_DIR@/adm_local/unix/config_files \
275 -I @GEOM_ROOT_DIR@/adm_local/unix/config_files