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