[],
[with_onlylauncher="no"])
AM_CONDITIONAL(WITHONLYLAUNCHER, test x$with_onlylauncher = xyes)
+if test "$with_onlylauncher" != "yes"; then
+ AC_DEFINE([HAVE_SALOME_CONFIG], [], [True if SALOMEconfig.h file is used])
+fi
# ----------------------------------------------------------------------------
#
include $(top_srcdir)/salome_adm/unix/make_common_starter.am
-AM_CXXFLAGS = -fPIC
+AM_CXXFLAGS += -fPIC
BASEIDL_FILES = \
SALOME_Exception.idl \
lib_LTLIBRARIES = libSalomeIDLKernel.la $(PAR_LIB)
nodist_libSalomeIDLKernel_la_SOURCES = $(IDL_SOURCES) $(DYNIDL_SRCS)
-libSalomeIDLKernel_la_CPPFLAGS =-I$(top_builddir)/salome_adm/unix -include SALOMEconfig.h \
- -I$(top_builddir)/idl \
+libSalomeIDLKernel_la_CPPFLAGS =-I$(top_builddir)/idl \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@
libSalomeIDLKernel_la_LDFLAGS = -no-undefined -version-info=0:0:0
libSalomeIDLKernel_la_LIBADD = @CORBA_LIBS@
nodist_libSalomeParallelIDLKernel_la_SOURCES = $(PAR) $(GEN_PACO)
-libSalomeParallelIDLKernel_la_CPPFLAGS =-I$(top_builddir)/salome_adm/unix -include SALOMEconfig.h \
- -I$(top_builddir)/idl \
+libSalomeParallelIDLKernel_la_CPPFLAGS =-I$(top_builddir)/idl \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@ \
@PACO_INCLUDES@
libSalomeParallelIDLKernel_la_LDFLAGS = -no-undefined -version-info=0:0:0
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef SALOME_CONFIG_H
-#define SALOME_CONFIG_H
-
-#define DEBUG
+/* Debug mode ??? */
+#ifndef DEBUG
+# define DEBUG
+#endif
-#define QUOTE(x) #x
-#define CORBA_CLIENT_HEADER(x) QUOTE(x@IDL_CLN_H@)
-#define CORBA_SERVER_HEADER(x) QUOTE(x@IDL_SRV_H@)
+/* CORBA headers include rules */
+#ifndef CORBA_CLIENT_HEADER
+# define QUOTE(x) #x
+# define CORBA_CLIENT_HEADER(x) QUOTE(x@IDL_CLN_H@)
+# define CORBA_SERVER_HEADER(x) QUOTE(x@IDL_SRV_H@)
+#endif
+/* Platform definition */
#ifndef @MACHINE@
#define @MACHINE@
#endif
-
/* A path to a rcp-like command */
-#define RCP "@RCP@"
+#ifndef RCP
+# define RCP "@RCP@"
+#endif
/* A path to a rm-like command */
-#define RM "@RM@"
+#ifndef RM
+# define RM "@RM@"
+#endif
/* A path to a cp-like command */
+#ifndef CP
#define CP "@CP@"
+#endif
/* A path to a rsh-like command */
+#ifndef RSH
#define RSH "@RSH@"
+#endif
/* A path to a scp-like command */
+#ifndef SCP
#define SCP "@SCP@"
+#endif
/* A path to a sh-like command */
+#ifndef SH
#define SH "@SH@"
+#endif
/* A path to a ssh-like command */
+#ifndef SSH
#define SSH "@SSH@"
+#endif
// This is only to suppress warning messages with defines redefined (cause of omniORB that exports these names)
+#ifdef PACKAGE
+#undef PACKAGE
+#endif
#ifdef PACKAGE_BUGREPORT
#undef PACKAGE_BUGREPORT
#endif
#ifdef PACKAGE_VERSION
#undef PACKAGE_VERSION
#endif
+#ifdef VERSION
+#undef VERSION
+#endif
#ifdef _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
-
-#endif
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+
+# ============================================================
+# The following is to avoid PACKAGE_... env variable
+# redefinition compilation warnings
+# ============================================================
+if !WITHONLYLAUNCHER
+ AM_CXXFLAGS = -I$(top_builddir)/salome_adm/unix -include SALOMEconfig.h
+ AM_CPPFLAGS = -I$(top_builddir)/salome_adm/unix -include SALOMEconfig.h
+else WITHONLYLAUNCHER
+ AM_CXXFLAGS =
+ AM_CPPFLAGS =
+endif
+
# ============================================================
# This file defines the common definitions used in several
# Makefile. This file must be included, if needed, by the file
*
*/
-#ifdef HAVE_CONFIG_H
+#ifdef HAVE_SALOME_CONFIG
# include <SALOMEconfig.h>
#endif
*
*/
-#ifdef HAVE_CONFIG_H
+#ifdef HAVE_SALOME_CONFIG
# include <SALOMEconfig.h>
#endif
*
*/
-#ifdef HAVE_CONFIG_H
+#ifdef HAVE_SALOME_CONFIG
# include <SALOMEconfig.h>
#endif
Batch_JobInfo_eSGE.cxx \
MpiImpl.cxx
-
LIB_CPPFLAGS = ${PYTHON_INCLUDES}
-if !WITHONLYLAUNCHER
- LIB_CPPFLAGS += -I$(top_builddir)/salome_adm/unix
-endif
-
LIB_LIBADD = $(PYTHON_LIBS)
#
Batch_Job_Local.cxx \
Batch_IOMutex.cxx
-if !WITHONLYLAUNCHER
- LIB_CPPFLAGS += -DHAVE_CONFIG_H
-endif
-
endif
#
-I$(top_srcdir)/src/Utils \
-I$(top_srcdir)/src/Container \
-I$(top_srcdir)/src/Notification \
- -I$(top_builddir)/salome_adm/unix -include SALOMEconfig.h \
-I$(top_builddir)/idl \
-I$(top_builddir)/src/DSC/DSC_User/Datastream/Calcium \
@CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @BOOST_CPPFLAGS@