Salome HOME
Apply patch from Paul Rascle (correction of make procedure)
[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 -L$(top_builddir)/lib/salome
15 LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(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
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
112 # MPICH
113
114 MPICH_INCLUDES=@MPICH_INCLUDES@
115 MPICH_LIBS=@MPICH_LIBS@
116
117 # Swig C++ Python
118
119 SWIG       = @SWIG@
120 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
121
122 # OMNIORB
123
124 OMNIORB_ROOT        = @OMNIORB_ROOT@
125 OMNIORB_INCLUDES    = @OMNIORB_INCLUDES@
126 OMNIORB_LIBS        = @OMNIORB_LIBS@
127 OMNIORB_CXXFLAGS    = @OMNIORB_CXXFLAGS@
128
129 OMNIORB_IDL         = @OMNIORB_IDL@
130 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
131 OMNIORB_IDLPYFLAGS  = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome \
132         -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome -I$(MED_ROOT_DIR)/idl/salome
133
134 OMNIORB_IDL_CLN_H   = @OMNIORB_IDL_CLN_H@
135 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
136 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
137
138 OMNIORB_IDL_SRV_H   = @OMNIORB_IDL_SRV_H@
139 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
140 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
141
142 # Default ORB
143
144 CORBA_ROOT        = @CORBA_ROOT@
145 CORBA_INCLUDES    = @CORBA_INCLUDES@
146 CORBA_LIBS        = @CORBA_LIBS@
147 CORBA_CXXFLAGS    = @CORBA_CXXFLAGS@
148
149 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome \
150         -I$(KERNEL_ROOT_DIR)/idl/salome -I$(GEOM_ROOT_DIR)/idl/salome -I$(MED_ROOT_DIR)/idl/salome
151 IDLPYFLAGS  = @IDLPYFLAGS@
152
153 IDL = @IDL@
154
155 IDL_CLN_H   = @IDL_CLN_H@
156 IDL_CLN_CXX = @IDL_CLN_CXX@
157 IDL_CLN_OBJ = @IDL_CLN_OBJ@
158
159 IDL_SRV_H   = @IDL_SRV_H@
160 IDL_SRV_CXX = @IDL_SRV_CXX@
161 IDL_SRV_OBJ = @IDL_SRV_OBJ@
162
163 CPPFLAGS+= $(CORBA_INCLUDES) 
164 CXXFLAGS+= $(CORBA_CXXFLAGS)
165
166 # add corba libs when link salome application ! 
167 #LDFLAGS+= $(CORBA_LIBS)
168 LIBS+=$(CORBA_LIBS)
169
170 ## Shared libraries
171 LT_STATIC_EXEC=@LT_STATIC_EXEC@
172 DYNAMIC_DIRS=@DYNAMIC_DIRS@
173 LT_LIB=libtool
174 LT=$(top_builddir)/libtool
175 LT_COMPILE=$(LT) --mode=compile $(CC)
176 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
177 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
178 LT_RUN=$(LT) --mode=execute
179 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
180 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
181 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
182
183 INSTALL=@INSTALL@
184 INSTALL_PROGRAM=@INSTALL_PROGRAM@
185 INSTALL_DATA=@INSTALL_DATA@
186
187 # create a symbolic link (or a copie ?)
188 LN_S=@LN_S@
189
190 ## Installation points
191 prefix=@prefix@
192 exec_prefix=@exec_prefix@
193 bindir=@bindir@/salome
194 libdir=@libdir@/salome
195 # warning : if user give this path in configure we could have salome/salome :-(
196 includedir=@includedir@/salome
197 datadir=@datadir@/salome
198 idldir=$(prefix)/idl/salome
199 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
200
201 docdir=${prefix}/doc/salome
202
203 #
204 # begin of package rules
205 #
206
207 .PHONY: all lib bin inc resources docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
208
209 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
210
211 all:
212         $(MAKE) inc
213         $(MAKE) depend_idl
214         $(MAKE) depend
215         $(MAKE) lib
216         $(MAKE) bin
217         $(MAKE) resources
218
219 #
220 # add target to build administrative files
221 #
222
223 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
224         cd $(top_builddir) ; ./config.status
225
226 $(top_builddir)/config.status: $(top_srcdir)/configure
227         cd $(top_builddir) ; ./config.status --recheck
228
229 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
230 ifneq ($(top_srcdir),$(srcdir))
231 configure: $(top_srcdir)/configure
232 endif
233
234 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
235         cd $(top_srcdir) ; autoconf
236
237 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
238         cd $(top_srcdir) && ./build_configure
239
240
241 ACLOCAL_SRC = \
242 ac_cxx_bool.m4                    check_corba.m4     check_vtk.m4       \
243 ac_cxx_depend_flag.m4             check_hdf5.m4      enable_pthreads.m4 \
244 ac_cxx_mutable.m4                 check_mico.m4      libtool.m4         \
245 ac_cxx_namespaces.m4              check_omniorb.m4   pyembed.m4         \
246 ac_cxx_partial_specialization.m4  check_opengl.m4    python.m4          \
247 ac_cxx_typename.m4                check_pthreads.m4  check_cas.m4       \
248 ac_cc_warnings.m4                 check_qt.m4        check_boost.m4     \
249 check_swig.m4                      
250
251 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%)
252         cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files