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