]> SALOME platform Git repositories - modules/superv.git/blob - adm_local/unix/make_commence.in
Salome HOME
04d424ab24ec4b02ccf15a575fda577296344440
[modules/superv.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
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 = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages
58 PYTHON_SITE_INSTALL = $(prefix)/lib/python$(PYTHON_VERSION)/site-packages/salome
59 # QT
60
61 QT_ROOT = @QT_ROOT@
62 QT_INCLUDES = @QT_INCLUDES@
63 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
64 QT_LIBS = @QT_LIBS@
65 QT_MT_LIBS = @QT_MT_LIBS@
66
67 MOC = @MOC@
68 UIC = @UIC@
69 MSG2QM = @MSG2QM@
70
71 #QWT
72
73 QWT_INCLUDES=@QWT_INCLUDES@
74 QWT_LIBS=@QWT_LIBS@
75
76 # SIP
77 SIP = @SIP@
78 SIP_INCLUDES = @SIP_INCLUDES@
79 SIP_LIBS = @SIP_LIBS@
80
81 # PYQT
82 PYQT_SIPS = @PYQT_SIPS@
83 PYQT_LIBS = @PYQT_LIBS@
84
85 # openGL
86 OGL_INCLUDES=@OGL_INCLUDES@
87 OGL_LIBS=@OGL_LIBS@
88
89 # VTK
90 VTK_INCLUDES=@VTK_INCLUDES@
91 VTK_LIBS=@VTK_LIBS@
92
93 # HDF5
94
95 HDF5_INCLUDES=@HDF5_INCLUDES@
96 HDF5_LIBS=@HDF5_LIBS@
97 HDF5_MT_LIBS=@HDF5_MT_LIBS@
98
99 # MED2
100
101 MED2_INCLUDES=@MED2_INCLUDES@
102 MED2_LIBS=@MED2_LIBS@
103 MED2_MT_LIBS=@MED2_MT_LIBS@
104
105 # OpenCasCade
106
107 OCC_INCLUDES=@CAS_CPPFLAGS@
108 OCC_CXXFLAGS=@CAS_CXXFLAGS@
109
110 #OCC_KERNEL_LIBS=@CAS_KERNEL@
111 #OCC_OCAF_LIBS=@CAS_OCAF@
112 #OCC_VIEWER_LIBS=@CAS_VIEWER@
113 #OCC_MODELER_LIBS=@CAS_MODELER@
114 #OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
115 #OCC_LIBS=@CAS_LDFLAGS@
116 CAS_KERNEL=@CAS_KERNEL@
117 CAS_OCAF=@CAS_OCAF@
118 CAS_VIEWER=@CAS_VIEWER@
119 CAS_MODELER=@CAS_MODELER@
120 CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@
121 CAS_LDPATH=@CAS_LDPATH@
122 # MPICH
123
124 MPICH_INCLUDES=@MPICH_INCLUDES@
125 MPICH_LIBS=@MPICH_LIBS@
126
127 # Swig C++ Python
128
129 SWIG       = @SWIG@
130 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
131
132 # OMNIORB
133
134 OMNIORB_ROOT        = @OMNIORB_ROOT@
135 OMNIORB_INCLUDES    = @OMNIORB_INCLUDES@
136 OMNIORB_LIBS        = @OMNIORB_LIBS@
137 OMNIORB_CXXFLAGS    = @OMNIORB_CXXFLAGS@
138
139 OMNIORB_IDL         = @OMNIORB_IDL@
140 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
141 OMNIORB_IDLPYFLAGS  = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome -I$(KERNEL_ROOT_DIR)/idl/salome
142
143 OMNIORB_IDL_CLN_H   = @OMNIORB_IDL_CLN_H@
144 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
145 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
146
147 OMNIORB_IDL_SRV_H   = @OMNIORB_IDL_SRV_H@
148 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
149 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
150
151 # Default ORB
152
153 CORBA_ROOT        = @CORBA_ROOT@
154 CORBA_INCLUDES    = @CORBA_INCLUDES@
155 CORBA_LIBS        = @CORBA_LIBS@
156 CORBA_CXXFLAGS    = @CORBA_CXXFLAGS@
157
158 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl/salome -I$(KERNEL_ROOT_DIR)/idl/salome
159 IDLPYFLAGS  = @IDLPYFLAGS@
160
161 IDL = @IDL@
162
163 IDL_CLN_H   = @IDL_CLN_H@
164 IDL_CLN_CXX = @IDL_CLN_CXX@
165 IDL_CLN_OBJ = @IDL_CLN_OBJ@
166
167 IDL_SRV_H   = @IDL_SRV_H@
168 IDL_SRV_CXX = @IDL_SRV_CXX@
169 IDL_SRV_OBJ = @IDL_SRV_OBJ@
170
171 CPPFLAGS+= $(CORBA_INCLUDES) 
172 CXXFLAGS+= $(CORBA_CXXFLAGS)
173
174 # add corba libs when link salome application ! 
175 #LDFLAGS+= $(CORBA_LIBS)
176 LIBS+=$(CORBA_LIBS)
177 LIBSFORBIN+=$(CORBA_LIBS)
178
179 DOXYGEN = @DOXYGEN@
180
181 ## Shared libraries
182 LT_STATIC_EXEC=@LT_STATIC_EXEC@
183 DYNAMIC_DIRS=@DYNAMIC_DIRS@
184 LT_LIB=libtool
185 LT=$(top_builddir)/libtool
186 LT_COMPILE=$(LT) --mode=compile $(CC)
187 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
188 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
189 LT_RUN=$(LT) --mode=execute
190 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
191 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
192 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
193
194 INSTALL=@INSTALL@
195 INSTALL_PROGRAM=@INSTALL_PROGRAM@
196 INSTALL_DATA=@INSTALL_DATA@
197
198 # create a symbolic link (or a copie ?)
199 LN_S=@LN_S@
200
201 ## Installation points
202 prefix=@prefix@
203 exec_prefix=@exec_prefix@
204 bindir=@bindir@/salome
205 libdir=@libdir@/salome
206 # warning : if user give this path in configure we could have salome/salome :-(
207 includedir=@includedir@/salome
208 datadir=@datadir@/salome
209 idldir=${prefix}/idl/salome
210 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
211 incmakedir=${prefix}/salome_adm/unix
212
213 docdir=${prefix}/doc/salome
214
215 #
216 # begin of package rules
217 #
218
219 .PHONY: all lib bin inc resources data docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
220
221 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
222
223 all:
224         $(MAKE) inc
225         $(MAKE) depend_idl
226         $(MAKE) depend
227         $(MAKE) lib
228         $(MAKE) bin
229         $(MAKE) resources
230         $(MAKE) data
231
232 #
233 # add target to build administrative files
234 #
235
236 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
237         cd $(top_builddir) ; ./config.status
238
239 $(top_builddir)/config.status: $(top_srcdir)/configure
240         cd $(top_builddir) ; ./config.status --recheck
241
242 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
243 ifneq ($(top_srcdir),$(srcdir))
244 configure: $(top_srcdir)/configure
245 endif
246
247 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
248         cd $(top_srcdir) ; autoconf
249
250 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
251         cd $(top_srcdir) && ./build_configure
252
253
254 ACLOCAL_SRC = \
255 ac_cxx_bool.m4                    check_corba.m4     check_vtk.m4       \
256 ac_cxx_depend_flag.m4             check_hdf5.m4      enable_pthreads.m4 \
257 ac_cxx_mutable.m4                 check_mico.m4      libtool.m4         \
258 ac_cxx_namespaces.m4              check_omniorb.m4   pyembed.m4         \
259 ac_cxx_partial_specialization.m4  check_opengl.m4    python.m4          \
260 ac_cxx_typename.m4                check_pthreads.m4  check_cas.m4       \
261 ac_cc_warnings.m4                 check_qt.m4        check_swig.m4 
262
263 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%)
264         cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files