1 # common directories to put headerfiles
2 inc_builddir=$(top_builddir)/include/salome
9 HAVE_SSTREAM=@HAVE_SSTREAM@
13 LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
14 # add libstdc++ to link c++ library with libtool !
23 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
29 C_DEPEND_FLAG = @C_DEPEND_FLAG@
35 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
39 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
43 JAVA_INCLUDES = @JAVA_INCLUDES@
44 JAVA_LIBS = @JAVA_LIBS@
45 JAVA_LDPATH = @JAVA_LDPATH@
50 PYTHONHOME = @PYTHONHOME@
51 PYTHON_INCLUDES = @PYTHON_INCLUDES@
52 PYTHON_LIBS = @PYTHON_LIBS@
53 PYTHON_VERSION = @PYTHON_VERSION@
54 PYTHON_SITE = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages
55 PYTHON_SITE_INSTALL = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome
59 QT_INCLUDES = @QT_INCLUDES@
60 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
62 QT_MT_LIBS = @QT_MT_LIBS@
70 QWT_INCLUDES=@QWT_INCLUDES@
75 SIP_INCLUDES = @SIP_INCLUDES@
79 PYQT_SIPS = @PYQT_SIPS@
80 PYQT_LIBS = @PYQT_LIBS@
83 OGL_INCLUDES=@OGL_INCLUDES@
87 VTK_INCLUDES=@VTK_INCLUDES@
92 HDF5_INCLUDES=@HDF5_INCLUDES@
94 HDF5_MT_LIBS=@HDF5_MT_LIBS@
98 MED2_INCLUDES=@MED2_INCLUDES@
100 MED2_MT_LIBS=@MED2_MT_LIBS@
104 OCC_INCLUDES=@CAS_CPPFLAGS@
105 OCC_CXXFLAGS=@CAS_CXXFLAGS@
107 #OCC_KERNEL_LIBS=@CAS_KERNEL@
108 #OCC_OCAF_LIBS=@CAS_OCAF@
109 #OCC_VIEWER_LIBS=@CAS_VIEWER@
110 #OCC_MODELER_LIBS=@CAS_MODELER@
111 #OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
112 #OCC_LIBS=@CAS_LDFLAGS@
113 CAS_KERNEL=@CAS_KERNEL@
115 CAS_VIEWER=@CAS_VIEWER@
116 CAS_MODELER=@CAS_MODELER@
117 CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@
118 CAS_LDPATH=@CAS_LDPATH@
121 MPICH_INCLUDES=@MPICH_INCLUDES@
122 MPICH_LIBS=@MPICH_LIBS@
127 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
131 OMNIORB_ROOT = @OMNIORB_ROOT@
132 OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
133 OMNIORB_LIBS = @OMNIORB_LIBS@
134 OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
136 OMNIORB_IDL = @OMNIORB_IDL@
137 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
138 OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome -I$(KERNEL_ROOT_DIR)/idl/salome
140 OMNIORB_IDL_CLN_H = @OMNIORB_IDL_CLN_H@
141 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
142 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
144 OMNIORB_IDL_SRV_H = @OMNIORB_IDL_SRV_H@
145 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
146 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
150 CORBA_ROOT = @CORBA_ROOT@
151 CORBA_INCLUDES = @CORBA_INCLUDES@
152 CORBA_LIBS = @CORBA_LIBS@
153 CORBA_CXXFLAGS = @CORBA_CXXFLAGS@
155 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome -I$(KERNEL_ROOT_DIR)/idl/salome
156 IDLPYFLAGS = @IDLPYFLAGS@
160 IDL_CLN_H = @IDL_CLN_H@
161 IDL_CLN_CXX = @IDL_CLN_CXX@
162 IDL_CLN_OBJ = @IDL_CLN_OBJ@
164 IDL_SRV_H = @IDL_SRV_H@
165 IDL_SRV_CXX = @IDL_SRV_CXX@
166 IDL_SRV_OBJ = @IDL_SRV_OBJ@
168 CPPFLAGS+= $(CORBA_INCLUDES)
169 CXXFLAGS+= $(CORBA_CXXFLAGS)
171 # add corba libs when link salome application !
172 #LDFLAGS+= $(CORBA_LIBS)
178 LT_STATIC_EXEC=@LT_STATIC_EXEC@
179 DYNAMIC_DIRS=@DYNAMIC_DIRS@
181 LT=$(top_builddir)/libtool
182 LT_COMPILE=$(LT) --mode=compile $(CC)
183 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
184 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
185 LT_RUN=$(LT) --mode=execute
186 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
187 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
188 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
191 INSTALL_PROGRAM=@INSTALL_PROGRAM@
192 INSTALL_DATA=@INSTALL_DATA@
194 # create a symbolic link (or a copie ?)
197 ## Installation points
199 exec_prefix=@exec_prefix@
200 bindir=@bindir@/salome
201 libdir=@libdir@/salome
202 # warning : if user give this path in configure we could have salome/salome :-(
203 includedir=@includedir@/salome
204 datadir=@datadir@/salome
205 idldir=${prefix}/idl/salome
206 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
207 incmakedir=${prefix}/salome_adm/unix
209 docdir=${prefix}/doc/salome
212 # begin of package rules
215 .PHONY: all lib bin inc resources data docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
217 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
229 # add target to build administrative files
232 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
233 cd $(top_builddir) ; ./config.status
235 $(top_builddir)/config.status: $(top_srcdir)/configure
236 cd $(top_builddir) ; ./config.status --recheck
238 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
239 ifneq ($(top_srcdir),$(srcdir))
240 configure: $(top_srcdir)/configure
243 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
244 cd $(top_srcdir) ; autoconf
246 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
247 cd $(top_srcdir) && ./build_configure
251 ac_cxx_bool.m4 check_corba.m4 check_vtk.m4 \
252 ac_cxx_depend_flag.m4 check_hdf5.m4 enable_pthreads.m4 \
253 ac_cxx_mutable.m4 check_mico.m4 libtool.m4 \
254 ac_cxx_namespaces.m4 check_omniorb.m4 pyembed.m4 \
255 ac_cxx_partial_specialization.m4 check_opengl.m4 python.m4 \
256 ac_cxx_typename.m4 check_pthreads.m4 check_cas.m4 \
257 ac_cc_warnings.m4 check_qt.m4 check_swig.m4
259 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%)
260 cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files