]> SALOME platform Git repositories - samples/pycalculator.git/blob - adm_local/unix/make_commence.in
Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[samples/pycalculator.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 $(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 # MPICH
54
55 MPICH_INCLUDES=@MPICH_INCLUDES@
56 MPICH_LIBS=@MPICH_LIBS@
57
58 # OMNIORB
59
60 OMNIORB_ROOT        = @OMNIORB_ROOT@
61 OMNIORB_INCLUDES    = @OMNIORB_INCLUDES@
62 OMNIORB_LIBS        = @OMNIORB_LIBS@
63 OMNIORB_CXXFLAGS    = @OMNIORB_CXXFLAGS@
64
65 OMNIORB_IDL         = @OMNIORB_IDL@
66 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
67 OMNIORB_IDLPYFLAGS  = @OMNIORB_IDLPYFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome -I$(MED_ROOT_DIR)/idl/salome
68
69 OMNIORB_IDL_CLN_H   = @OMNIORB_IDL_CLN_H@
70 OMNIORB_IDL_CLN_CXX = @OMNIORB_IDL_CLN_CXX@
71 OMNIORB_IDL_CLN_OBJ = @OMNIORB_IDL_CLN_OBJ@
72
73 OMNIORB_IDL_SRV_H   = @OMNIORB_IDL_SRV_H@
74 OMNIORB_IDL_SRV_CXX = @OMNIORB_IDL_SRV_CXX@
75 OMNIORB_IDL_SRV_OBJ = @OMNIORB_IDL_SRV_OBJ@
76
77 # Default ORB
78
79 CORBA_ROOT        = @CORBA_ROOT@
80 CORBA_INCLUDES    = @CORBA_INCLUDES@
81 CORBA_LIBS        = @CORBA_LIBS@
82 CORBA_CXXFLAGS    = @CORBA_CXXFLAGS@
83
84 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome
85 IDLPYFLAGS  = @IDLPYFLAGS@
86
87 IDL = @IDL@
88
89 IDL_CLN_H   = @IDL_CLN_H@
90 IDL_CLN_CXX = @IDL_CLN_CXX@
91 IDL_CLN_OBJ = @IDL_CLN_OBJ@
92
93 IDL_SRV_H   = @IDL_SRV_H@
94 IDL_SRV_CXX = @IDL_SRV_CXX@
95 IDL_SRV_OBJ = @IDL_SRV_OBJ@
96
97 CPPFLAGS+= $(CORBA_INCLUDES) 
98 CXXFLAGS+= $(CORBA_CXXFLAGS)
99
100 # add corba libs when link salome application ! 
101 #LDFLAGS+= $(CORBA_LIBS)
102 LIBS+=$(CORBA_LIBS)
103
104 ## Shared libraries
105 LT_STATIC_EXEC=@LT_STATIC_EXEC@
106 DYNAMIC_DIRS=@DYNAMIC_DIRS@
107 LT_LIB=libtool
108 LT=$(top_builddir)/libtool
109 LT_COMPILE=$(LT) --mode=compile $(CC)
110 LT_LINK_LIB=$(LT_LIB) --mode=link $(CC) -rpath $(libdir)
111 LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS)
112 LT_RUN=$(LT) --mode=execute
113 LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
114 LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)
115 LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
116
117 INSTALL=@INSTALL@
118 INSTALL_PROGRAM=@INSTALL_PROGRAM@
119 INSTALL_DATA=@INSTALL_DATA@
120
121 # create a symbolic link (or a copie ?)
122 LN_S=@LN_S@
123
124 ## Installation points
125 prefix=@prefix@
126 exec_prefix=@exec_prefix@
127 bindir=@bindir@/salome
128 libdir=@libdir@/salome
129 # warning : if user give this path in configure we could have salome/salome :-(
130 includedir=@includedir@/salome
131 datadir=@datadir@/salome
132 idldir=$(prefix)/idl/salome
133 sharedpydir=@libdir@/python$(PYTHON_VERSION)/site-packages/salome/shared_modules
134
135 docdir=$(datadir)/doc
136
137 #
138 # begin of package rules
139 #
140
141 .PHONY: all lib bin inc resources tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
142
143 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
144
145 all:
146         $(MAKE) inc
147         $(MAKE) depend_idl
148         $(MAKE) depend
149         $(MAKE) lib
150         $(MAKE) bin
151         $(MAKE) resources
152
153 #
154 # add target to build administrative files
155 #
156
157 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
158         cd $(top_builddir) ; ./config.status
159
160 LOCAL_MAKE = make_commence make_omniorb
161
162 KERNEL_MAKE = make_module make_conclude depend SALOMEconfig.h F77config.h sstream envScript
163
164 $(top_builddir)/config.status: $(top_srcdir)/configure \
165                                $(LOCAL_MAKE:%=$(top_srcdir)/adm_local/unix/%.in) \
166                                $(KERNEL_MAKE:%=$(KERNEL_ROOT_DIR)/salome_adm/unix/%.in)
167         cd $(top_builddir) ; ./config.status --recheck
168
169 # VPATH contain $(srcdir), so make configure is good in top_srcdir and we must add target configure otherwise :-)
170 ifneq ($(top_srcdir),$(srcdir))
171 configure: $(top_srcdir)/configure
172 endif
173
174 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
175         cd $(top_srcdir) ; autoconf
176
177 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
178         cd $(top_srcdir) && ./build_configure
179
180
181 ACLOCAL_KERNEL = \
182 ac_cxx_bool.m4                          check_corba.m4          \
183 ac_cxx_depend_flag.m4                   enable_pthreads.m4      \
184 ac_cxx_mutable.m4                       check_mico.m4           \
185 libtool.m4                              ac_cxx_namespaces.m4    \
186 check_omniorb.m4                        pyembed.m4              \
187 ac_cxx_partial_specialization.m4        ac_cxx_typename.m4      \
188 check_pthreads.m4                       ac_cc_warnings.m4       \
189 python.m4
190
191 $(top_srcdir)/aclocal.m4: $(ACLOCAL_KERNEL:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%)
192         cd $(top_srcdir) ; aclocal -I adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files