]> SALOME platform Git repositories - modules/med.git/blob - adm_local/unix/make_commence.in
Salome HOME
update after merging trhe branches CEA_V3_0_x, OCC_V3_1_0_a1_x, and the main
[modules/med.git] / adm_local / unix / make_commence.in
1 # common directories to put headerfiles
2 inc_builddir=$(top_builddir)/include/salome
3
4 MED_WITH_KERNEL=@MED_WITH_KERNEL@
5 @SET_MAKE@
6 SHELL=@SHELL@
7
8 # header missing
9
10 HAVE_SSTREAM=@HAVE_SSTREAM@
11
12
13 LIBS=@LIBS@
14 LIBSFORBIN=@LIBS@
15 LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome
16 LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib/salome
17 # add libstdc++ to link c++ library with libtool !
18 LDFLAGS+= @STDLIB@
19 LDFLAGSFORBIN+= @STDLIB@
20
21 CP=@CP@
22
23 # CPP
24
25 CPP=@CPP@
26 CXXCPP=@CXXCPP@
27 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
28
29 # C
30
31 CC = @CC@
32 CFLAGS = @CFLAGS@
33 C_DEPEND_FLAG = @C_DEPEND_FLAG@
34
35 # C++
36
37 CXX = @CXX@
38 CXXFLAGS = @CXXFLAGS@ 
39 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
40
41 # BOOST Library
42
43 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
44
45 # JAVA
46
47 JAVA_INCLUDES = @JAVA_INCLUDES@
48 JAVA_LIBS = @JAVA_LIBS@
49 JAVA_LDPATH = @JAVA_LDPATH@
50
51 # PYTHON
52
53 PYTHON = @PYTHON@
54 PYTHONHOME = @PYTHONHOME@
55 PYTHON_INCLUDES = @PYTHON_INCLUDES@
56 PYTHON_LIBS = @PYTHON_LIBS@
57 PYTHON_VERSION = @PYTHON_VERSION@
58 # Changes from the SalomePro V1.2c
59 #PYTHON_SITE = @PYTHON_SITE@
60 #PYTHON_SITE_INSTALL = @PYTHON_SITE_INSTALL@
61 PYTHON_SITE = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages
62 PYTHON_SITE_INSTALL = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome
63
64 # QT
65
66 QT_ROOT = @QT_ROOT@
67 QT_INCLUDES = @QT_INCLUDES@
68 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
69 QT_LIBS = @QT_LIBS@
70 QT_MT_LIBS = @QT_MT_LIBS@
71
72 MOC = @MOC@
73 UIC = @UIC@
74 MSG2QM = @MSG2QM@
75
76 #QWT
77
78 QWT_INCLUDES=@QWT_INCLUDES@
79 QWT_LIBS=@QWT_LIBS@
80
81 # SIP
82 SIP = @SIP@
83 SIP_INCLUDES = @SIP_INCLUDES@
84 SIP_LIBS = @SIP_LIBS@
85
86 # PYQT
87 PYQT_SIPS = @PYQT_SIPS@
88 PYQT_LIBS = @PYQT_LIBS@
89
90 # openGL
91 OGL_INCLUDES=@OGL_INCLUDES@
92 OGL_LIBS=@OGL_LIBS@
93
94 # VTK
95 VTK_INCLUDES=@VTK_INCLUDES@
96 VTK_LIBS=@VTK_LIBS@
97
98 # HDF5
99
100 HDF5_INCLUDES=@HDF5_INCLUDES@
101 HDF5_LIBS=@HDF5_LIBS@
102 HDF5_MT_LIBS=@HDF5_MT_LIBS@
103
104 # MED2
105
106 MED2_INCLUDES=@MED2_INCLUDES@
107 MED2_LIBS=@MED2_LIBS@
108 MED2_MT_LIBS=@MED2_MT_LIBS@
109
110 # OpenCasCade
111
112 OCC_INCLUDES=@CAS_CPPFLAGS@
113 OCC_CXXFLAGS=@CAS_CXXFLAGS@
114
115 #OCC_KERNEL_LIBS=@CAS_KERNEL@
116 #OCC_OCAF_LIBS=@CAS_OCAF@
117 #OCC_VIEWER_LIBS=@CAS_VIEWER@
118 #OCC_MODELER_LIBS=@CAS_MODELER@
119 #OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
120 #OCC_LIBS=@CAS_LDFLAGS@
121 CAS_KERNEL=@CAS_KERNEL@
122 CAS_OCAF=@CAS_OCAF@
123 CAS_VIEWER=@CAS_VIEWER@
124 CAS_MODELER=@CAS_MODELER@
125 CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@
126 CAS_LDPATH=@CAS_LDPATH@
127
128 # MPICH
129
130 MPICH_INCLUDES=@MPICH_INCLUDES@
131 MPICH_LIBS=@MPICH_LIBS@
132
133 # Swig C++ Python
134
135 SWIG       = @SWIG@
136 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
137
138 # OMNIORB
139
140 OMNIORB_ROOT        = @OMNIORB_ROOT@
141 OMNIORB_INCLUDES    = @OMNIORB_INCLUDES@
142 OMNIORB_LIBS        = @OMNIORB_LIBS@
143 OMNIORB_CXXFLAGS    = @OMNIORB_CXXFLAGS@
144
145 OMNIORB_IDL         = @OMNIORB_IDL@
146 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
147 OMNIORB_IDLPYFLAGS  = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/salome/idl -I$(KERNEL_ROOT_DIR)/idl/salome
148
149 OMNIORB_IDL_CLN_H   = @OMNIORB_IDL_CLN_H@
150 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
151 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
152
153 OMNIORB_IDL_SRV_H   = @OMNIORB_IDL_SRV_H@
154 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
155 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
156
157 # Default ORB
158
159 CORBA_ROOT        = @CORBA_ROOT@
160 CORBA_INCLUDES    = @CORBA_INCLUDES@
161 CORBA_LIBS        = @CORBA_LIBS@
162 CORBA_CXXFLAGS    = @CORBA_CXXFLAGS@
163
164 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome -I$(KERNEL_ROOT_DIR)/idl/salome
165 IDLPYFLAGS  = @IDLPYFLAGS@
166
167 IDL = @IDL@
168
169 IDL_CLN_H   = @IDL_CLN_H@
170 IDL_CLN_CXX = @IDL_CLN_CXX@
171 IDL_CLN_OBJ = @IDL_CLN_OBJ@
172
173 IDL_SRV_H   = @IDL_SRV_H@
174 IDL_SRV_CXX = @IDL_SRV_CXX@
175 IDL_SRV_OBJ = @IDL_SRV_OBJ@
176
177 ifeq ($(MED_WITH_KERNEL),yes)
178   CPPFLAGS+= $(CORBA_INCLUDES) 
179   CXXFLAGS+= $(CORBA_CXXFLAGS)
180
181   # add corba libs when link salome application ! 
182   #LDFLAGS+= $(CORBA_LIBS)
183   LIBS+=$(CORBA_LIBS)
184 endif
185
186 DOXYGEN = @DOXYGEN@
187
188 ## Shared libraries
189 LT_STATIC_EXEC=@LT_STATIC_EXEC@
190 DYNAMIC_DIRS=@DYNAMIC_DIRS@
191 LT_LIB=libtool
192 LT=$(top_builddir)/libtool
193 LT_COMPILE=$(LT) --mode=compile $(CC)
194 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
195 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
196 LT_RUN=$(LT) --mode=execute
197 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
198 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
199 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
200
201 INSTALL=@INSTALL@
202 INSTALL_PROGRAM=@INSTALL_PROGRAM@
203 INSTALL_DATA=@INSTALL_DATA@
204
205 # create a symbolic link (or a copie ?)
206 LN_S=@LN_S@
207
208 ## Installation points
209 prefix=@prefix@
210 exec_prefix=@exec_prefix@
211 bindir=@bindir@/salome
212 libdir=@libdir@/salome
213 # warning : if user give this path in configure we could have salome/salome :-(
214 includedir=@includedir@/salome
215 datadir=@datadir@/salome
216 idldir=$(prefix)/idl/salome
217 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
218 incmakedir=${prefix}/salome_adm/unix
219
220 docdir=${prefix}/doc/salome
221
222 #
223 # begin of package rules
224 #
225
226 .PHONY: all lib bin inc resources docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
227
228 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
229
230 all:
231         $(MAKE) inc
232         $(MAKE) depend_idl
233         $(MAKE) depend
234         $(MAKE) lib
235         $(MAKE) bin
236         $(MAKE) resources
237
238 #
239 # add target to build administrative files
240 #
241
242 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
243         cd $(top_builddir) ; ./config.status
244
245 $(top_builddir)/config.status: $(top_srcdir)/configure
246         cd $(top_builddir) ; ./config.status --recheck
247
248 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
249 ifneq ($(top_srcdir),$(srcdir))
250 configure: $(top_srcdir)/configure
251 endif
252
253 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
254         cd $(top_srcdir) ; autoconf
255
256 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
257         cd $(top_srcdir) && ./build_configure
258
259
260 # ACLOCAL_SRC = \
261 # ac_cxx_depend_flag.m4 check_hdf5.m4      enable_pthreads.m4   \
262 # ac_cxx_namespaces.m4  libtool.m4         python.m4            \
263 # check_pthreads.m4     check_swig.m4 
264
265 ifeq ($(MED_WITH_KERNEL),yes)
266 ACLOCAL_SRC = \
267 ac_cxx_bool.m4                    check_corba.m4     check_vtk.m4       \
268 ac_cxx_depend_flag.m4             check_hdf5.m4      enable_pthreads.m4 \
269 ac_cxx_mutable.m4                 check_mico.m4      libtool.m4         \
270 ac_cxx_namespaces.m4              check_omniorb.m4   pyembed.m4         \
271 ac_cxx_partial_specialization.m4  check_opengl.m4    python.m4          \
272 ac_cxx_typename.m4                check_pthreads.m4  check_cas.m4       \
273 ac_cc_warnings.m4                 check_qt.m4        check_swig.m4 
274 endif
275
276 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=$(top_srcdir)/salome_adm/unix/config_files/%)
277         cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I $(top_srcdir)/salome_adm/unix/config_files