]> SALOME platform Git repositories - modules/smesh.git/blob - adm_local/unix/make_commence.in
Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/smesh.git] / adm_local / unix / make_commence.in
1 # common directories to put headerfiles
2 inc_builddir=$(top_builddir)/include/salome
3
4 @SET_MAKE@
5 SHELL=/bin/sh
6
7 # header missing
8
9 HAVE_SSTREAM=@HAVE_SSTREAM@
10
11
12 LIBS=@LIBS@ 
13 LIBSFORBIN=@LIBS@
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 !
17 LDFLAGS+= -lstdc++
18 LDFLAGSFORBIN+= -lstdc++
19
20 CP=@CP@
21
22 # CPP
23
24 CPP=@CPP@
25 CXXCPP=@CXXCPP@
26 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
27
28 # C
29
30 CC = @CC@
31 CFLAGS = @CFLAGS@
32 C_DEPEND_FLAG = @C_DEPEND_FLAG@
33
34 # C++
35
36 CXX = @CXX@
37 CXXFLAGS = @CXXFLAGS@
38 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
39
40 # BOOST Library
41
42 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
43
44 # JAVA
45
46 JAVA_INCLUDES = @JAVA_INCLUDES@
47 JAVA_LIBS = @JAVA_LIBS@
48 JAVA_LDPATH = @JAVA_LDPATH@
49
50 # PYTHON
51
52 PYTHON = @PYTHON@
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@
59
60 # QT
61
62 QT_ROOT = @QT_ROOT@
63 QT_INCLUDES = @QT_INCLUDES@
64 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
65 QT_LIBS = @QT_LIBS@
66 QT_MT_LIBS = @QT_MT_LIBS@
67
68 MOC = @MOC@
69 UIC = @UIC@
70 MSG2QM = @MSG2QM@
71
72 #QWT
73
74 QWT_INCLUDES=@QWT_INCLUDES@
75 QWT_LIBS=@QWT_LIBS@
76
77 # SIP
78 SIP = @SIP@
79 SIP_INCLUDES = @SIP_INCLUDES@
80 SIP_LIBS = @SIP_LIBS@
81
82 # PYQT
83 PYQT_SIPS = @PYQT_SIPS@
84 PYQT_LIBS = @PYQT_LIBS@
85
86 # openGL
87 OGL_INCLUDES=@OGL_INCLUDES@
88 OGL_LIBS=@OGL_LIBS@
89
90 # VTK
91 VTK_INCLUDES=@VTK_INCLUDES@
92 VTK_LIBS=@VTK_LIBS@
93
94 # HDF5
95
96 HDF5_INCLUDES=@HDF5_INCLUDES@
97 HDF5_LIBS=@HDF5_LIBS@
98 HDF5_MT_LIBS=@HDF5_MT_LIBS@
99
100 # OpenCasCade
101
102 OCC_INCLUDES=@CAS_CPPFLAGS@
103 OCC_CXXFLAGS=@CAS_CXXFLAGS@
104
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@
112
113 # MPICH
114
115 MPICH_INCLUDES=@MPICH_INCLUDES@
116 MPICH_LIBS=@MPICH_LIBS@
117
118 # Swig C++ Python
119
120 SWIG       = @SWIG@
121 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
122
123 # OMNIORB
124
125 OMNIORB_ROOT        = @OMNIORB_ROOT@
126 OMNIORB_INCLUDES    = @OMNIORB_INCLUDES@
127 OMNIORB_LIBS        = @OMNIORB_LIBS@
128 OMNIORB_CXXFLAGS    = @OMNIORB_CXXFLAGS@
129
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
134
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@
138
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@
142
143 # Default ORB
144
145 CORBA_ROOT        = @CORBA_ROOT@
146 CORBA_INCLUDES    = @CORBA_INCLUDES@
147 CORBA_LIBS        = @CORBA_LIBS@
148 CORBA_CXXFLAGS    = @CORBA_CXXFLAGS@
149
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@
153
154 IDL = @IDL@
155
156 IDL_CLN_H   = @IDL_CLN_H@
157 IDL_CLN_CXX = @IDL_CLN_CXX@
158 IDL_CLN_OBJ = @IDL_CLN_OBJ@
159
160 IDL_SRV_H   = @IDL_SRV_H@
161 IDL_SRV_CXX = @IDL_SRV_CXX@
162 IDL_SRV_OBJ = @IDL_SRV_OBJ@
163
164 CPPFLAGS+= $(CORBA_INCLUDES) 
165 CXXFLAGS+= $(CORBA_CXXFLAGS)
166
167 # add corba libs when link salome application ! 
168 #LDFLAGS+= $(CORBA_LIBS)
169 LIBS+=$(CORBA_LIBS)
170
171 DOXYGEN = @DOXYGEN@
172 DOXYGEN_WITH_PYTHON = @DOXYGEN_WITH_PYTHON@
173 DOXYGEN_WITH_STL = @DOXYGEN_WITH_STL@
174
175 ## Shared libraries
176 LT_STATIC_EXEC=@LT_STATIC_EXEC@
177 DYNAMIC_DIRS=@DYNAMIC_DIRS@
178 LT_LIB=libtool
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)
187
188 INSTALL=@INSTALL@
189 INSTALL_PROGRAM=@INSTALL_PROGRAM@
190 INSTALL_DATA=@INSTALL_DATA@
191
192 # create a symbolic link (or a copie ?)
193 LN_S=@LN_S@
194
195 ## Installation points
196 prefix=@prefix@
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
205
206 docdir=${prefix}/doc/salome
207
208 #
209 # begin of package rules
210 #
211
212 .PHONY: all lib bin inc resources docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
213
214 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
215
216 all:
217         $(MAKE) inc
218         $(MAKE) depend_idl
219         $(MAKE) depend
220         $(MAKE) lib
221         $(MAKE) bin
222         $(MAKE) resources
223
224 #
225 # add target to build administrative files
226 #
227
228 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
229         cd $(top_builddir) ; ./config.status
230
231 LOCAL_MAKE = make_commence make_conclude make_omniorb
232
233 KERNEL_MAKE = make_module depend SALOMEconfig.h F77config.h sstream envScript
234
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
239
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
243 endif
244
245 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
246         cd $(top_srcdir) ; autoconf
247
248 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
249         cd $(top_srcdir) && ./build_configure
250
251
252 ACLOCAL_KERNEL = \
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                      
260
261 ACLOCAL_GUI = \
262 check_vtk.m4                      check_opengl.m4    check_qt.m4        \
263 check_GUI.m4                      check_corba_in_GUI.m4  
264
265 ACLOCAL_MED =                 check_Med.m4
266 ACLOCAL_GEOM =                check_GEOM.m4                      
267
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
276