1 # common directories to put headerfiles
2 inc_builddir=$(top_builddir)/include/salome
9 HAVE_SSTREAM=@HAVE_SSTREAM@
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 !
23 CPPFLAGS=@CPPFLAGS@ -I$(inc_builddir) -I$(srcdir) -I.
29 C_DEPEND_FLAG = @C_DEPEND_FLAG@
35 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
39 JAVA_INCLUDES = @JAVA_INCLUDES@
40 JAVA_LIBS = @JAVA_LIBS@
41 JAVA_LDPATH = @JAVA_LDPATH@
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@
55 MPICH_INCLUDES=@MPICH_INCLUDES@
56 MPICH_LIBS=@MPICH_LIBS@
60 OMNIORB_ROOT = @OMNIORB_ROOT@
61 OMNIORB_INCLUDES = @OMNIORB_INCLUDES@
62 OMNIORB_LIBS = @OMNIORB_LIBS@
63 OMNIORB_CXXFLAGS = @OMNIORB_CXXFLAGS@
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
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@
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@
79 CORBA_ROOT = @CORBA_ROOT@
80 CORBA_INCLUDES = @CORBA_INCLUDES@
81 CORBA_LIBS = @CORBA_LIBS@
82 CORBA_CXXFLAGS = @CORBA_CXXFLAGS@
84 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_srcdir)/idl -I$(top_builddir)/idl -I$(KERNEL_ROOT_DIR)/idl/salome
85 IDLPYFLAGS = @IDLPYFLAGS@
89 IDL_CLN_H = @IDL_CLN_H@
90 IDL_CLN_CXX = @IDL_CLN_CXX@
91 IDL_CLN_OBJ = @IDL_CLN_OBJ@
93 IDL_SRV_H = @IDL_SRV_H@
94 IDL_SRV_CXX = @IDL_SRV_CXX@
95 IDL_SRV_OBJ = @IDL_SRV_OBJ@
97 CPPFLAGS+= $(CORBA_INCLUDES)
98 CXXFLAGS+= $(CORBA_CXXFLAGS)
100 # add corba libs when link salome application !
101 #LDFLAGS+= $(CORBA_LIBS)
105 LT_STATIC_EXEC=@LT_STATIC_EXEC@
106 DYNAMIC_DIRS=@DYNAMIC_DIRS@
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)
118 INSTALL_PROGRAM=@INSTALL_PROGRAM@
119 INSTALL_DATA=@INSTALL_DATA@
121 # create a symbolic link (or a copie ?)
124 ## Installation points
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
135 docdir=$(datadir)/doc
138 # begin of package rules
141 .PHONY: all lib bin inc resources tests install uninstall dep depend depend_idl cleandep mostlyclean clean distclean
143 .SUFFIXES: .cxx .cc .c .f .o .lo .idl .py .i .ui .po .qm
154 # add target to build administrative files
157 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in
158 cd $(top_builddir) ; ./config.status
160 LOCAL_MAKE = make_commence make_omniorb
162 KERNEL_MAKE = make_module make_conclude depend SALOMEconfig.h F77config.h sstream envScript
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
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
174 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
175 cd $(top_srcdir) ; autoconf
177 $(top_srcdir)/configure.in: $(top_srcdir)/configure.in.base
178 cd $(top_srcdir) && ./build_configure
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 \
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