]> SALOME platform Git repositories - modules/kernel.git/blob - salome_adm/unix/DEPRECATED/make_commence.in
Salome HOME
57aac4e5ae0bf68a8a7c9123a9b01526f8147bfc
[modules/kernel.git] / salome_adm / unix / DEPRECATED / make_commence.in
1 # Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
2 #
3 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
10 #
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 # common directories to put headerfiles
24 #
25 inc_builddir=$(top_builddir)/include/salome
26
27 @SET_MAKE@
28 # Modifcation B. Secher portage sur osf
29 SHELL=@SHELL@
30
31 # header missing
32
33 HAVE_SSTREAM=@HAVE_SSTREAM@
34
35 MODULE_NAME=@MODULE_NAME@
36
37 LIBS=@LIBS@ 
38 LIBSFORBIN=@LIBS@
39 LDFLAGS=@LDFLAGS@  -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
40 LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
41 # add libstdc++ to link c++ library with libtool !
42 LDFLAGS+= @STDLIB@
43 LDFLAGSFORBIN+= @STDLIB@
44
45 #CP=@CP@
46
47 # CPP
48
49 CPP=@CPP@
50 CXXCPP=@CXXCPP@
51 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
52
53 # C
54
55 CC = @CC@
56 CFLAGS = @CFLAGS@
57 C_DEPEND_FLAG = @C_DEPEND_FLAG@
58
59 # C++
60
61 CXX = @CXX@
62 CXXFLAGS = @CXXFLAGS@
63 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
64
65 # BOOST Library
66
67 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
68 BOOST_LIBSUFFIX = @BOOST_LIBSUFFIX@
69 BOOST_LIBS = @BOOST_LIBS@
70
71 # OpenPBS
72
73 OPENPBS_INCLUDES = @OPENPBS_INCLUDES@
74 OPENPBS_LIBDIR   = @OPENPBS_LIBDIR@
75 OPENPBS_LIBS     = @OPENPBS_LIBS@
76
77 # LSF
78
79 LSF_INCLUDES = @LSF_INCLUDES@
80 LSF_LIBDIR   = @LSF_LDFLAGS@
81 LSF_LIBS     = @LSF_LIBS@
82
83 # CPPUNIT
84
85 CPPUNIT_INCLUDES = @CPPUNIT_INCLUDES@
86 CPPUNIT_LIBS = @CPPUNIT_LIBS@
87
88 # PYTHON
89
90 PYTHON = @PYTHON@
91 PYTHONHOME = @PYTHONHOME@
92 PYTHON_INCLUDES = @PYTHON_INCLUDES@
93 PYTHON_LIBS = @PYTHON_LIBS@
94 PYTHON_VERSION = @PYTHON_VERSION@
95 PYTHON_SITE = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages
96 PYTHON_SITE_INSTALL = $(prefix)/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome
97
98 # QT
99 QT_ROOT = @QT_ROOT@
100 QT_INCLUDES = @QT_INCLUDES@
101 QT_MT_INCLUDES = @QT_INCLUDES@ -DQT_THREAD_SUPPORT
102 QT_LIBS = @QT_LIBS@
103 QT_MT_LIBS = @QT_MT_LIBS@
104 QT_VERS = @QT_VERS@
105
106 MOC = @MOC@
107 UIC = @UIC@
108
109 # msg2qm
110 MSG2QM = @MSG2QM@
111
112 #QWT
113
114 QWT_INCLUDES=@QWT_INCLUDES@
115 QWT_LIBS=@QWT_LIBS@
116
117 # SIP
118 SIP = @SIP@
119 SIP_INCLUDES = @SIP_INCLUDES@
120 SIP_LIBS = @SIP_LIBS@
121 SIP_VERS = @SIP_VERS@
122
123 # PYQT
124 PYQT_SIPS = @PYQT_SIPS@
125 PYQT_LIBS = @PYQT_LIBS@
126 PYQT_INCLUDES = @PYQT_INCLUDES@
127 PYUIC = @PYUIC@
128 PYQT_SIPFLAGS = @PYQT_SIPFLAGS@
129
130 # openGL
131 OGL_INCLUDES=@OGL_INCLUDES@
132 OGL_LIBS=@OGL_LIBS@
133
134 # VTK
135 VTK_INCLUDES=@VTK_INCLUDES@
136 VTK_LIBS=@VTK_LIBS@
137
138 # HDF5
139
140 HDF5_INCLUDES=@HDF5_INCLUDES@
141 HDF5_LIBS=@HDF5_LIBS@
142 HDF5_MT_LIBS=@HDF5_MT_LIBS@
143
144 # OpenCasCade
145
146 OCC_INCLUDES=@CAS_CPPFLAGS@
147 OCC_CXXFLAGS=@CAS_CXXFLAGS@
148
149 CAS_KERNEL=@CAS_KERNEL@
150 CAS_MATH=@CAS_MATH@
151 CAS_OCAF=@CAS_OCAF@
152 CAS_OCAFVIS=@CAS_OCAFVIS@
153 CAS_TKTopAlgo=@CAS_TKTopAlgo@
154 CAS_VIEWER=@CAS_VIEWER@
155 CAS_MODELER=@CAS_MODELER@
156 CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@
157 CAS_LDPATH=@CAS_LDPATH@
158
159 # MPI
160
161 MPI_INCLUDES=@MPI_INCLUDES@
162 MPI_LIBS=@MPI_LIBS@
163
164 # Swig C++ Python
165
166 SWIG       = @SWIG@
167 SWIG_FLAGS = @SWIG_FLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
168
169 # OMNIORB
170
171 OMNIORB_ROOT        = @OMNIORB_ROOT@
172 OMNIORB_INCLUDES    = @OMNIORB_INCLUDES@
173 OMNIORB_LIBS        = @OMNIORB_LIBS@
174 OMNIORB_CXXFLAGS    = @OMNIORB_CXXFLAGS@
175
176 OMNIORB_IDL         = @OMNIORB_IDL@
177 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
178 OMNIORB_IDLPYFLAGS  = @OMNIORB_IDLPYFLAGS@ -I$(top_builddir)/salome/idl
179
180 OMNIORB_IDL_CLN_H   = @OMNIORB_IDL_CLN_H@
181 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
182 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
183
184 OMNIORB_IDL_SRV_H   = @OMNIORB_IDL_SRV_H@
185 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
186 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
187
188 # Default ORB
189
190 CORBA_ROOT        = @CORBA_ROOT@
191 CORBA_INCLUDES    = @CORBA_INCLUDES@
192 CORBA_LIBS        = @CORBA_LIBS@
193 CORBA_CXXFLAGS    = @CORBA_CXXFLAGS@
194
195 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_builddir)/salome/idl
196 IDLPYFLAGS  = @IDLPYFLAGS@
197
198 IDL = @IDL@
199
200 IDL_CLN_H   = @IDL_CLN_H@
201 IDL_CLN_CXX = @IDL_CLN_CXX@
202 IDL_CLN_OBJ = @IDL_CLN_OBJ@
203
204 IDL_SRV_H   = @IDL_SRV_H@
205 IDL_SRV_CXX = @IDL_SRV_CXX@
206 IDL_SRV_OBJ = @IDL_SRV_OBJ@
207
208 CPPFLAGS+= $(CORBA_INCLUDES) 
209 CXXFLAGS+= $(CORBA_CXXFLAGS)
210
211 # add corba libs when link salome application ! 
212 #LDFLAGS+= $(CORBA_LIBS)
213 LIBS+=$(CORBA_LIBS)
214 LIBSFORBIN+=$(CORBA_LIBS)
215
216 DOXYGEN = @DOXYGEN@
217
218 ## Shared libraries
219 #LT_STATIC_EXEC=@LT_STATIC_EXEC@
220 #DYNAMIC_DIRS=@DYNAMIC_DIRS@
221 LT_LIB=libtool
222 LT=$(top_builddir)/libtool
223 LT_COMPILE=$(LT) --mode=compile $(CC)
224 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
225 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
226 LT_RUN=$(LT) --mode=execute
227 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
228 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
229 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
230
231 INSTALL=@INSTALL@
232 INSTALL_PROGRAM=@INSTALL_PROGRAM@
233 INSTALL_DATA=@INSTALL_DATA@
234
235 # create a symbolic link (or a copie ?)
236 LN_S=@LN_S@
237
238 KERNEL_ROOT_DIR=@KERNEL_ROOT_DIR@
239 KERNEL_SITE_DIR=@KERNEL_SITE_DIR@
240 KERNEL_LDFLAGS=@KERNEL_LDFLAGS@
241 KERNEL_CXXFLAGS=@KERNEL_CXXFLAGS@
242
243 ## Installation points
244 prefix=@prefix@
245 exec_prefix=@exec_prefix@
246 bindir=@exec_prefix@/bin/salome
247 libdir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/salome
248 # warning : if user give this path in configure we could have salome/salome :-(
249 includedir=@includedir@/salome
250 datadir=@datadir@/salome
251 idldir=${prefix}/idl/salome
252 sharedpydir=@exec_prefix@/lib@LIB_LOCATION_SUFFIX@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
253 incmakedir=${prefix}/salome_adm/unix
254
255 docdir=${prefix}/doc/salome
256
257 #
258 # begin of package rules
259 #
260
261 .PHONY: all lib bin inc resources data docs tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
262
263 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
264
265 all:
266         $(MAKE) inc
267         $(MAKE) depend_idl
268         $(MAKE) depend
269         $(MAKE) lib
270         $(MAKE) bin
271         $(MAKE) resources
272         $(MAKE) data
273
274 #
275 # add target to build administrative files
276 #
277
278 # Building html from restructured text files
279 STYLESHEET=rst.css
280 RST2HTML=@RST2HTML@
281 #RSTOPTS=--output-encoding=latin1 --stylesheet=$(STYLESHEET)
282 RSTOPTS=--output-encoding=latin1
283
284 %.html: $(srcdir)/%.txt
285         $(RST2HTML) $(RSTOPTS) $< $@