diff options
author | tomas@poseidon.bredbandsbolaget.se <> | 2004-06-02 00:54:58 +0000 |
---|---|---|
committer | tomas@poseidon.bredbandsbolaget.se <> | 2004-06-02 00:54:58 +0000 |
commit | 8d7d4c077b887cde7b0c237bf1ce0f6b8b607fff (patch) | |
tree | 712dc4fb10df8548d6206ede2f38e7a41a83c931 | |
parent | 308f40bb986979aeebcba80cbbbd366fa8b073c0 (diff) | |
download | mariadb-git-8d7d4c077b887cde7b0c237bf1ce0f6b8b607fff.tar.gz |
several ndb make changes, see respective file
-rw-r--r-- | acinclude.m4 | 16 | ||||
-rw-r--r-- | configure.in | 102 | ||||
-rwxr-xr-x | mysql-test/ndb/install_ndbcluster.sh | 23 | ||||
-rwxr-xr-x | mysql-test/ndb/stop_ndbcluster.sh | 23 | ||||
-rw-r--r-- | ndb/Makefile.am | 35 | ||||
-rw-r--r-- | ndb/config/common.mk.am | 18 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.DEBUG.mk (renamed from ndb/config/Defs.DEBUG.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.HPUX.HPPA.GCC.mk (renamed from ndb/config/Defs.HPUX.HPPA.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.IBMAIX.POWERPC.GCC.mk (renamed from ndb/config/Defs.IBMAIX.POWERPC.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.LINUX.x86.GCC.mk (renamed from ndb/config/Defs.LINUX.x86.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.LINUX.x86.ICC.mk (renamed from ndb/config/Defs.LINUX.x86.ICC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.LINUX.x86_64.GCC.mk (renamed from ndb/config/Defs.LINUX.x86_64.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.MACOSX.POWERPC.GCC.mk (renamed from ndb/config/Defs.MACOSX.POWERPC.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.OSE.PPC750.DIAB.mk (renamed from ndb/config/Defs.OSE.PPC750.DIAB.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.RELEASE.mk (renamed from ndb/config/Defs.RELEASE.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.RELEASE_TRACE.mk (renamed from ndb/config/Defs.RELEASE_TRACE.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.SIMCELLO.SOFTOSE.GCC.mk (renamed from ndb/config/Defs.SIMCELLO.SOFTOSE.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.SOFTOSE.SPARC.GCC.mk (renamed from ndb/config/Defs.SOFTOSE.SPARC.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.SOLARIS.SPARC.FORTE6.mk (renamed from ndb/config/Defs.SOLARIS.SPARC.FORTE6.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.SOLARIS.SPARC.GCC.mk (renamed from ndb/config/Defs.SOLARIS.SPARC.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.SOLARIS.SPARC_64.GCC.mk (renamed from ndb/config/Defs.SOLARIS.SPARC_64.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.SOLARIS6.SPARC.GCC.mk (renamed from ndb/config/Defs.SOLARIS6.SPARC.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.TRU64X.ALPHA.GCC.mk (renamed from ndb/config/Defs.TRU64X.ALPHA.GCC.mk) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Defs.WIN32.x86.VC7.mk (renamed from ndb/config/Defs.WIN32.x86.VC7.mk) | 0 | ||||
-rwxr-xr-x | ndb/config/old_files/GuessConfig.sh (renamed from ndb/config/GuessConfig.sh_old) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/Makefile.am (renamed from ndb/config/Makefile.am_old) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/acinclude.m4 (renamed from ndb/config/acinclude.m4) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/config.h.in (renamed from ndb/config/config.h.in) | 0 | ||||
-rw-r--r-- | ndb/config/old_files/configure.in (renamed from ndb/config/configure.in) | 0 | ||||
-rw-r--r-- | ndb/config/type_kernel.mk.am | 18 | ||||
-rw-r--r-- | ndb/config/type_mgmapiclient.mk.am | 2 | ||||
-rw-r--r-- | ndb/config/type_ndbapi.mk.am | 12 | ||||
-rw-r--r-- | ndb/config/type_ndbapiclient.mk.am | 2 | ||||
-rw-r--r-- | ndb/config/type_ndbapitest.mk.am | 9 | ||||
-rw-r--r-- | ndb/config/type_ndbapitools.mk.am | 10 | ||||
-rw-r--r-- | ndb/config/type_util.mk.am | 6 | ||||
-rw-r--r-- | ndb/include/Makefile.am | 43 | ||||
-rw-r--r-- | ndb/old_files/BinDist.sh (renamed from ndb/BinDist.sh) | 0 | ||||
-rw-r--r-- | ndb/old_files/Defs.mk (renamed from ndb/Defs.mk) | 0 | ||||
-rw-r--r-- | ndb/old_files/Epilogue.mk (renamed from ndb/Epilogue.mk_old) | 0 | ||||
-rw-r--r-- | ndb/old_files/Makefile (renamed from ndb/Makefile_old) | 0 | ||||
-rw-r--r-- | ndb/old_files/README (renamed from ndb/README) | 0 | ||||
-rw-r--r-- | ndb/old_files/SrcDist.sh (renamed from ndb/SrcDist.sh) | 0 | ||||
-rwxr-xr-x | ndb/old_files/configure (renamed from ndb/configure_old) | 0 | ||||
-rw-r--r-- | ndb/old_files/env.sh (renamed from ndb/env.sh) | 0 | ||||
-rw-r--r-- | ndb/old_files/mysqlclusterenv.sh (renamed from ndb/mysqlclusterenv.sh) | 0 | ||||
-rw-r--r-- | ndb/src/Makefile.am | 4 | ||||
-rw-r--r-- | ndb/src/common/portlib/Makefile.am | 4 | ||||
-rw-r--r-- | ndb/src/cw/cpcd/Makefile.am | 4 | ||||
-rw-r--r-- | ndb/src/kernel/Main.cpp (renamed from ndb/src/kernel/ndb-main/Main.cpp) | 0 | ||||
-rw-r--r-- | ndb/src/kernel/Makefile.am | 59 | ||||
-rw-r--r-- | ndb/src/kernel/SimBlockList.cpp (renamed from ndb/src/kernel/ndb-main/SimBlockList.cpp) | 0 | ||||
-rw-r--r-- | ndb/src/kernel/blocks/backup/restore/Makefile.am | 2 | ||||
-rw-r--r-- | ndb/src/kernel/blocks/suma/Makefile.am | 2 | ||||
-rw-r--r-- | ndb/src/kernel/error/Makefile.am | 2 | ||||
-rw-r--r-- | ndb/src/kernel/ndb-main/Makefile.am | 57 | ||||
-rw-r--r-- | ndb/src/kernel/ndb-main/Makefile_old | 42 | ||||
-rw-r--r-- | ndb/src/kernel/vm/Makefile.am | 2 | ||||
-rw-r--r-- | ndb/src/mgmapi/Makefile.am | 11 | ||||
-rw-r--r-- | ndb/src/mgmclient/Makefile.am | 6 | ||||
-rw-r--r-- | ndb/src/mgmsrv/Makefile.am | 4 | ||||
-rw-r--r-- | ndb/src/ndbapi/Makefile.am | 27 | ||||
-rw-r--r-- | ndb/src/old_files/Makefile (renamed from ndb/src/Makefile_old) | 0 | ||||
-rw-r--r-- | ndb/src/old_files/ndbbaseclient/Makefile (renamed from ndb/src/ndbbaseclient/Makefile) | 0 | ||||
-rw-r--r-- | ndb/src/old_files/ndbbaseclient/ndbbaseclient_dummy.cpp (renamed from ndb/src/ndbbaseclient/ndbbaseclient_dummy.cpp) | 0 | ||||
-rw-r--r-- | ndb/src/old_files/ndbclient/Makefile (renamed from ndb/src/ndbclient/Makefile) | 0 | ||||
-rw-r--r-- | ndb/src/old_files/ndbclient/ndbclient_dummy.cpp (renamed from ndb/src/ndbclient/ndbclient_dummy.cpp) | 0 | ||||
-rw-r--r-- | ndb/src/scripts/Makefile | 5 | ||||
-rw-r--r-- | ndb/test/Makefile.am | 8 | ||||
-rw-r--r-- | ndb/tools/Makefile.am | 2 | ||||
-rw-r--r-- | scripts/make_binary_distribution.sh | 16 |
71 files changed, 275 insertions, 301 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index a7f8c92038d..612a4d1a918 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1348,6 +1348,11 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [ --with-ndb-sci Include the NDB Cluster sci transporter], [ndb_sci="$withval"], [ndb_sci=no]) + AC_ARG_WITH([ndb-test], + [ + --with-ndb-test Include the NDB Cluster ndbapi test programs], + [ndb_test="$withval"], + [ndb_test=no]) AC_MSG_CHECKING([for NDB Cluster options]) AC_MSG_RESULT([]) @@ -1376,6 +1381,17 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [ ;; esac + have_ndb_test=no + case "$ndb_test" in + yes ) + AC_MSG_RESULT([-- including ndbapi test programs]) + have_ndb_test="yes" + ;; + * ) + AC_MSG_RESULT([-- not including ndbapi test programs]) + ;; + esac + AC_MSG_RESULT([done.]) ]) diff --git a/configure.in b/configure.in index 8c91a367679..ca6d4042830 100644 --- a/configure.in +++ b/configure.in @@ -2841,83 +2841,7 @@ then CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)" fi -ndbbindir_root="\$(prefix)" -ndbbindir="\$(ndbbindir_root)/ndb/bin" -AC_SUBST(ndbbindir_root) -AC_SUBST(ndbbindir) -ndbtoolsdir_root="\$(prefix)" -ndbtoolsdir="\$(ndbtoolsdir_root)/ndb/tools" -AC_SUBST(ndbtoolsdir_root) -AC_SUBST(ndbtoolsdir) -ndblibdir_root="\$(prefix)" -ndblibdir="\$(ndblibdir_root)/ndb/lib" -AC_SUBST(ndblibdir_root) -AC_SUBST(ndblibdir) -ndbtestdir_root="\$(prefix)" -ndbtestdir="\$(ndbtestdir_root)/ndb/test" -AC_SUBST(ndbtestdir_root) -AC_SUBST(ndbtestdir) -ndbincludedir_root="\$(prefix)" -ndbincludedir="\$(ndbincludedir_root)/ndb/include" -AC_SUBST(ndbincludedir_root) -AC_SUBST(ndbincludedir) -ndbapiincludedir_root="\$(prefix)" -ndbapiincludedir="\$(ndbapiincludedir_root)/ndb/include/ndbapi" -AC_SUBST(ndbapiincludedir_root) -AC_SUBST(ndbapiincludedir) -mgmapiincludedir_root="\$(prefix)" -mgmapiincludedir="\$(mgmapiincludedir_root)/ndb/include/mgmapi" -AC_SUBST(mgmapiincludedir_root) -AC_SUBST(mgmapiincludedir) - - NDB_UTIL_INCLUDES="-I\$(srcdir) -I\$(top_srcdir)/include -I\$(top_srcdir)/ndb/include \ - -I\$(top_srcdir)/ndb/include/util \ - -I\$(top_srcdir)/ndb/include/portlib \ - -I\$(top_srcdir)/ndb/include/logger" - NDB_KERNEL_INCLUDES="\ - -I\$(srcdir) -I\$(top_srcdir)/include -I\$(top_srcdir)/ndb/include \ - -I\$(top_srcdir)/ndb/src/kernel/vm \ - -I\$(top_srcdir)/ndb/src/kernel/error \ - -I\$(top_srcdir)/ndb/src/kernel \ - -I\$(top_srcdir)/ndb/include/kernel \ - -I\$(top_srcdir)/ndb/include/transporter \ - -I\$(top_srcdir)/ndb/include/debugger \ - -I\$(top_srcdir)/ndb/include/mgmapi \ - -I\$(top_srcdir)/ndb/include/mgmcommon \ - -I\$(top_srcdir)/ndb/include/ndbapi \ - -I\$(top_srcdir)/ndb/include/util \ - -I\$(top_srcdir)/ndb/include/portlib \ - -I\$(top_srcdir)/ndb/include/logger" - NDB_NDBAPI_INCLUDES="\ - -I\$(srcdir) -I\$(top_srcdir)/include -I\$(top_srcdir)/ndb/include \ - -I\$(top_srcdir)/ndb/include/kernel \ - -I\$(top_srcdir)/ndb/include/transporter \ - -I\$(top_srcdir)/ndb/include/debugger \ - -I\$(top_srcdir)/ndb/include/mgmapi \ - -I\$(top_srcdir)/ndb/include/mgmcommon \ - -I\$(top_srcdir)/ndb/include/ndbapi \ - -I\$(top_srcdir)/ndb/include/util \ - -I\$(top_srcdir)/ndb/include/portlib \ - -I\$(top_srcdir)/ndb/include/logger" - NDB_NDBAPITEST_INCLUDES="\ - -I\$(srcdir) -I\$(top_srcdir)/include -I\$(top_srcdir)/ndb/include \ - -I\$(top_srcdir)/ndb/include/ndbapi \ - -I\$(top_srcdir)/ndb/include/util \ - -I\$(top_srcdir)/ndb/include/portlib \ - -I\$(top_srcdir)/ndb/test/include \ - -I\$(top_srcdir)/ndb/include/mgmapi" - NDB_NDBAPICLIENT_INCLUDES="-I\$(top_srcdir)/ndb/include/ndbapi" - NDB_MGMAPICLIENT_INCLUDES="-I\$(top_srcdir)/ndb/include/mgmapi" - - AC_SUBST(NDB_DEFS) - AC_SUBST(NDB_UTIL_INCLUDES) - - AC_SUBST(NDB_UTIL_INCLUDES) - AC_SUBST(NDB_KERNEL_INCLUDES) - AC_SUBST(NDB_NDBAPI_INCLUDES) - AC_SUBST(NDB_NDBAPITEST_INCLUDES) - AC_SUBST(NDB_NDBAPICLIENT_INCLUDES) - AC_SUBST(NDB_MGMAPICLIENT_INCLUDES) +AC_SUBST([NDB_DEFS]) ndb_transporter_opt_objs="" if test X"$have_ndb_shm" = Xyes @@ -2928,24 +2852,23 @@ if test X"$have_ndb_sci" = Xyes then ndb_transporter_opt_objs="$(ndb_transporter_opt_objs) SCI_Transporter.lo" fi -AC_SUBST(ndb_transporter_opt_objs) +AC_SUBST([ndb_transporter_opt_objs]) - #NDB_TYPE_COMMON="include \$(top_srcdir)/ndb/config/common.mk.am" - #NDB_TYPE_NDBAPI="include \$(top_srcdir)/ndb/config/type_ndbapi.mk.am" - #NDB_TYPE_NDBAPI="include \$(top_srcdir)/ndb/config/type_ndbapitest.mk.am" - #NDB_TYPE_KERNEL="include \$(top_srcdir)/ndb/config/type_kernel.mk.am" - #NDB_TYPE_UTIL="include \$(top_srcdir)/ndb/config/type_util.mk.am" - #AC_SUBST(NDB_TYPE_COMMON) - #AC_SUBST(NDB_TYPE_NDBAPI) - #AC_SUBST(NDB_TYPE_NDBAPITEST) - #AC_SUBST(NDB_TYPE_KERNEL) - #AC_SUBST(NDB_TYPE_UTIL) +ndb_bin_am_ldflags="-static" +if test X"$have_ndb_test" = Xyes +then + ndb_opt_test_subdirs="tools ndbapi run-test" + ndb_bin_am_ldflags="" +fi +AC_SUBST([ndb_bin_am_ldflags]) +AC_SUBST([ndb_opt_test_subdirs]) AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS) # Output results AC_OUTPUT(Makefile extra/Makefile mysys/Makefile isam/Makefile dnl - ndb/Makefile ndb/src/Makefile ndb/src/common/Makefile dnl + ndb/Makefile ndb/include/Makefile dnl + ndb/src/Makefile ndb/src/common/Makefile dnl ndb/tools/Makefile dnl ndb/src/common/debugger/Makefile ndb/src/common/debugger/signaldata/Makefile dnl ndb/src/common/portlib/Makefile ndb/src/common/portlib/unix/Makefile dnl @@ -2975,7 +2898,6 @@ AC_OUTPUT(Makefile extra/Makefile mysys/Makefile isam/Makefile dnl ndb/src/kernel/blocks/grep/Makefile dnl ndb/src/kernel/blocks/dbtux/Makefile dnl ndb/src/kernel/vm/Makefile dnl - ndb/src/kernel/ndb-main/Makefile dnl ndb/src/mgmapi/Makefile dnl ndb/src/ndbapi/Makefile dnl ndb/src/mgmsrv/Makefile dnl diff --git a/mysql-test/ndb/install_ndbcluster.sh b/mysql-test/ndb/install_ndbcluster.sh index c1b2ff7d579..00e341e8563 100755 --- a/mysql-test/ndb/install_ndbcluster.sh +++ b/mysql-test/ndb/install_ndbcluster.sh @@ -9,21 +9,32 @@ port_base="22" # using ports port_base{"00","01", etc} fsdir=`pwd` # end configurable parameters -# Are we using a source or a binary distribution? +#BASEDIR is always one above mysql-test directory +CWD=`pwd` +cd .. +BASEDIR=`pwd` +cd $CWD +# Are we using a source or a binary distribution? if [ -d ../sql ] ; then SOURCE_DIST=1 - ndbtop=`pwd`/../ndb + ndbtop=$BASEDIR/ndb exec_ndb=$ndbtop/src/kernel/ndb-main/ndb exec_mgmtsrvr=$ndbtop/src/mgmsrv/mgmtsrvr exec_waiter=$ndbtop/tools/ndb_waiter exec_mgmtclient=$ndbtop/src/mgmclient/mgmtclient else BINARY_DIST=1 - exec_ndb=@ndbbindir@/ndb - exec_mgmtsrvr=@ndbbindir@/mgmtsrvr - exec_waiter=@ndbtoolsdir@/ndb_waiter - exec_mgmtclient=@ndbbindir@/mgmtclient + if test -x "$BASEDIR/libexec/ndb" + then + exec_ndb=$BASEDIR/libexec/ndb + exec_mgmtsrvr=$BASEDIR/libexec/mgmtsrvr + else + exec_ndb=$BASEDIR/bin/ndb + exec_mgmtsrvr=$BASEDIR/bin/mgmtsrvr + fi + exec_waiter=$BASEDIR/bin/ndb_waiter + exec_mgmtclient=$BASEDIR/bin/mgmtclient fi pidfile=ndbcluster.pid diff --git a/mysql-test/ndb/stop_ndbcluster.sh b/mysql-test/ndb/stop_ndbcluster.sh index eb86b2b9c2d..50fd755169d 100755 --- a/mysql-test/ndb/stop_ndbcluster.sh +++ b/mysql-test/ndb/stop_ndbcluster.sh @@ -4,13 +4,32 @@ # This scripts stops the table handler ndbcluster +#BASEDIR is always one above mysql-test directory +CWD=`pwd` +cd .. +BASEDIR=`pwd` +cd $CWD + +# Are we using a source or a binary distribution? if [ -d ../sql ] ; then SOURCE_DIST=1 - ndbtop=`pwd`/../ndb + ndbtop=$BASEDIR/ndb + exec_ndb=$ndbtop/src/kernel/ndb-main/ndb + exec_mgmtsrvr=$ndbtop/src/mgmsrv/mgmtsrvr + exec_waiter=$ndbtop/tools/ndb_waiter exec_mgmtclient=$ndbtop/src/mgmclient/mgmtclient else BINARY_DIST=1 - exec_mgmtclient=@ndbbindir@/mgmtclient + if test -x "$BASEDIR/libexec/ndb" + then + exec_ndb=$BASEDIR/libexec/ndb + exec_mgmtsrvr=$BASEDIR/libexec/mgmtsrvr + else + exec_ndb=$BASEDIR/bin/ndb + exec_mgmtsrvr=$BASEDIR/bin/mgmtsrvr + fi + exec_waiter=$BASEDIR/bin/ndb_waiter + exec_mgmtclient=$BASEDIR/bin/mgmtclient fi pidfile=ndbcluster.pid diff --git a/ndb/Makefile.am b/ndb/Makefile.am index 27274ec1eb2..4ccd4349ab1 100644 --- a/ndb/Makefile.am +++ b/ndb/Makefile.am @@ -1,39 +1,10 @@ -SUBDIRS = src test tools . +SUBDIRS = src test tools . include -ndbinclude_HEADERS = \ -include/ndb_types.h \ -include/ndb_version.h - -ndbapiinclude_HEADERS = \ -include/ndbapi/ndbapi_limits.h \ -include/ndbapi/Ndb.hpp \ -include/ndbapi/NdbApi.hpp \ -include/ndbapi/NdbConnection.hpp \ -include/ndbapi/NdbCursorOperation.hpp \ -include/ndbapi/NdbDictionary.hpp \ -include/ndbapi/NdbError.hpp \ -include/ndbapi/NdbEventOperation.hpp \ -include/ndbapi/NdbIndexOperation.hpp \ -include/ndbapi/NdbOperation.hpp \ -include/ndbapi/NdbPool.hpp \ -include/ndbapi/NdbRecAttr.hpp \ -include/ndbapi/NdbReceiver.hpp \ -include/ndbapi/NdbResultSet.hpp \ -include/ndbapi/NdbScanFilter.hpp \ -include/ndbapi/NdbScanOperation.hpp \ -include/ndbapi/NdbSchemaCon.hpp \ -include/ndbapi/NdbSchemaOp.hpp - -mgmapiinclude_HEADERS = \ -include/mgmapi/mgmapi.h \ -include/mgmapi/mgmapi_debug.h - -EXTRA_DIST = include +include $(top_srcdir)/ndb/config/common.mk.am dist-hook: - -rm -rf `find $(distdir) -type d -name SCCS` list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" != "."; then \ + if test "$$subdir" != "." -a "$$subdir" != "include"; then \ files="`find $$subdir -name '*\.h'` `find $$subdir -name '*\.hpp'`"; \ for f in $$files; do \ if test -d "$(distdir)/`dirname $$f`" -a ! -e "$(distdir)/$$f"; then \ diff --git a/ndb/config/common.mk.am b/ndb/config/common.mk.am index 394da10abd6..593e00d8959 100644 --- a/ndb/config/common.mk.am +++ b/ndb/config/common.mk.am @@ -1,17 +1,13 @@ +ndbbindir = "$(libexecdir)" +ndbtoolsdir = "$(bindir)" +ndbtestdir = "$(bindir)" +ndblibdir = "$(pkglibdir)" +ndbincludedir = "$(pkgincludedir)/ndb" +ndbapiincludedir = "$(pkgincludedir)/ndb/ndbapi" +mgmapiincludedir = "$(pkgincludedir)/ndb/mgmapi" INCLUDES = $(INCLUDES_LOC) LDADD = $(top_srcdir)/ndb/src/common/portlib/gcc.cpp $(LDADD_LOC) DEFS = @DEFS@ @NDB_DEFS@ $(DEFS_LOC) $(NDB_EXTRA_FLAGS) # ndb cannot be compiled with -fno-implicit-templaces NDB_CXXFLAGS=-fimplicit-templates -##use AM_CXXFLAGS for other flags - -#noinst_SCRIPTS = ndb_local_bin -ndb_local_bin: $(PROGRAMS) - set -x; \ - for f in $(PROGRAMS); do \ - g=lib/`basename $$f`; \ - rm -f $$g; \ - @LN_CP_F@ $$f; \ - done; \ - touch $@; diff --git a/ndb/config/Defs.DEBUG.mk b/ndb/config/old_files/Defs.DEBUG.mk index 309ae90a0ba..309ae90a0ba 100644 --- a/ndb/config/Defs.DEBUG.mk +++ b/ndb/config/old_files/Defs.DEBUG.mk diff --git a/ndb/config/Defs.HPUX.HPPA.GCC.mk b/ndb/config/old_files/Defs.HPUX.HPPA.GCC.mk index 895c7672071..895c7672071 100644 --- a/ndb/config/Defs.HPUX.HPPA.GCC.mk +++ b/ndb/config/old_files/Defs.HPUX.HPPA.GCC.mk diff --git a/ndb/config/Defs.IBMAIX.POWERPC.GCC.mk b/ndb/config/old_files/Defs.IBMAIX.POWERPC.GCC.mk index ae975fb2cb8..ae975fb2cb8 100644 --- a/ndb/config/Defs.IBMAIX.POWERPC.GCC.mk +++ b/ndb/config/old_files/Defs.IBMAIX.POWERPC.GCC.mk diff --git a/ndb/config/Defs.LINUX.x86.GCC.mk b/ndb/config/old_files/Defs.LINUX.x86.GCC.mk index 6167a30ff23..6167a30ff23 100644 --- a/ndb/config/Defs.LINUX.x86.GCC.mk +++ b/ndb/config/old_files/Defs.LINUX.x86.GCC.mk diff --git a/ndb/config/Defs.LINUX.x86.ICC.mk b/ndb/config/old_files/Defs.LINUX.x86.ICC.mk index 8e8540409da..8e8540409da 100644 --- a/ndb/config/Defs.LINUX.x86.ICC.mk +++ b/ndb/config/old_files/Defs.LINUX.x86.ICC.mk diff --git a/ndb/config/Defs.LINUX.x86_64.GCC.mk b/ndb/config/old_files/Defs.LINUX.x86_64.GCC.mk index a238d29ef4c..a238d29ef4c 100644 --- a/ndb/config/Defs.LINUX.x86_64.GCC.mk +++ b/ndb/config/old_files/Defs.LINUX.x86_64.GCC.mk diff --git a/ndb/config/Defs.MACOSX.POWERPC.GCC.mk b/ndb/config/old_files/Defs.MACOSX.POWERPC.GCC.mk index bb73e9bcc61..bb73e9bcc61 100644 --- a/ndb/config/Defs.MACOSX.POWERPC.GCC.mk +++ b/ndb/config/old_files/Defs.MACOSX.POWERPC.GCC.mk diff --git a/ndb/config/Defs.OSE.PPC750.DIAB.mk b/ndb/config/old_files/Defs.OSE.PPC750.DIAB.mk index 8773021a152..8773021a152 100644 --- a/ndb/config/Defs.OSE.PPC750.DIAB.mk +++ b/ndb/config/old_files/Defs.OSE.PPC750.DIAB.mk diff --git a/ndb/config/Defs.RELEASE.mk b/ndb/config/old_files/Defs.RELEASE.mk index fad72d53a43..fad72d53a43 100644 --- a/ndb/config/Defs.RELEASE.mk +++ b/ndb/config/old_files/Defs.RELEASE.mk diff --git a/ndb/config/Defs.RELEASE_TRACE.mk b/ndb/config/old_files/Defs.RELEASE_TRACE.mk index 06726f282e4..06726f282e4 100644 --- a/ndb/config/Defs.RELEASE_TRACE.mk +++ b/ndb/config/old_files/Defs.RELEASE_TRACE.mk diff --git a/ndb/config/Defs.SIMCELLO.SOFTOSE.GCC.mk b/ndb/config/old_files/Defs.SIMCELLO.SOFTOSE.GCC.mk index 8d73e7a752b..8d73e7a752b 100644 --- a/ndb/config/Defs.SIMCELLO.SOFTOSE.GCC.mk +++ b/ndb/config/old_files/Defs.SIMCELLO.SOFTOSE.GCC.mk diff --git a/ndb/config/Defs.SOFTOSE.SPARC.GCC.mk b/ndb/config/old_files/Defs.SOFTOSE.SPARC.GCC.mk index 6788fa956bf..6788fa956bf 100644 --- a/ndb/config/Defs.SOFTOSE.SPARC.GCC.mk +++ b/ndb/config/old_files/Defs.SOFTOSE.SPARC.GCC.mk diff --git a/ndb/config/Defs.SOLARIS.SPARC.FORTE6.mk b/ndb/config/old_files/Defs.SOLARIS.SPARC.FORTE6.mk index 8a95205703d..8a95205703d 100644 --- a/ndb/config/Defs.SOLARIS.SPARC.FORTE6.mk +++ b/ndb/config/old_files/Defs.SOLARIS.SPARC.FORTE6.mk diff --git a/ndb/config/Defs.SOLARIS.SPARC.GCC.mk b/ndb/config/old_files/Defs.SOLARIS.SPARC.GCC.mk index 25920515278..25920515278 100644 --- a/ndb/config/Defs.SOLARIS.SPARC.GCC.mk +++ b/ndb/config/old_files/Defs.SOLARIS.SPARC.GCC.mk diff --git a/ndb/config/Defs.SOLARIS.SPARC_64.GCC.mk b/ndb/config/old_files/Defs.SOLARIS.SPARC_64.GCC.mk index 2b8b9d4cc24..2b8b9d4cc24 100644 --- a/ndb/config/Defs.SOLARIS.SPARC_64.GCC.mk +++ b/ndb/config/old_files/Defs.SOLARIS.SPARC_64.GCC.mk diff --git a/ndb/config/Defs.SOLARIS6.SPARC.GCC.mk b/ndb/config/old_files/Defs.SOLARIS6.SPARC.GCC.mk index f1c570ba101..f1c570ba101 100644 --- a/ndb/config/Defs.SOLARIS6.SPARC.GCC.mk +++ b/ndb/config/old_files/Defs.SOLARIS6.SPARC.GCC.mk diff --git a/ndb/config/Defs.TRU64X.ALPHA.GCC.mk b/ndb/config/old_files/Defs.TRU64X.ALPHA.GCC.mk index ae975fb2cb8..ae975fb2cb8 100644 --- a/ndb/config/Defs.TRU64X.ALPHA.GCC.mk +++ b/ndb/config/old_files/Defs.TRU64X.ALPHA.GCC.mk diff --git a/ndb/config/Defs.WIN32.x86.VC7.mk b/ndb/config/old_files/Defs.WIN32.x86.VC7.mk index e66dacb78e7..e66dacb78e7 100644 --- a/ndb/config/Defs.WIN32.x86.VC7.mk +++ b/ndb/config/old_files/Defs.WIN32.x86.VC7.mk diff --git a/ndb/config/GuessConfig.sh_old b/ndb/config/old_files/GuessConfig.sh index 8c7886401ba..8c7886401ba 100755 --- a/ndb/config/GuessConfig.sh_old +++ b/ndb/config/old_files/GuessConfig.sh diff --git a/ndb/config/Makefile.am_old b/ndb/config/old_files/Makefile.am index b5fd81814a1..b5fd81814a1 100644 --- a/ndb/config/Makefile.am_old +++ b/ndb/config/old_files/Makefile.am diff --git a/ndb/config/acinclude.m4 b/ndb/config/old_files/acinclude.m4 index b9edaf801ed..b9edaf801ed 100644 --- a/ndb/config/acinclude.m4 +++ b/ndb/config/old_files/acinclude.m4 diff --git a/ndb/config/config.h.in b/ndb/config/old_files/config.h.in index 82749d5ece6..82749d5ece6 100644 --- a/ndb/config/config.h.in +++ b/ndb/config/old_files/config.h.in diff --git a/ndb/config/configure.in b/ndb/config/old_files/configure.in index 4fa5ccdb672..4fa5ccdb672 100644 --- a/ndb/config/configure.in +++ b/ndb/config/old_files/configure.in diff --git a/ndb/config/type_kernel.mk.am b/ndb/config/type_kernel.mk.am index c389a64b936..703876ee2e9 100644 --- a/ndb/config/type_kernel.mk.am +++ b/ndb/config/type_kernel.mk.am @@ -1,2 +1,18 @@ -INCLUDES += @NDB_KERNEL_INCLUDES@ +INCLUDES += \ + -I$(srcdir) -I$(top_srcdir)/include \ + -I$(top_srcdir)/ndb/include \ + -I$(top_srcdir)/ndb/src/kernel/vm \ + -I$(top_srcdir)/ndb/src/kernel/error \ + -I$(top_srcdir)/ndb/src/kernel \ + -I$(top_srcdir)/ndb/include/kernel \ + -I$(top_srcdir)/ndb/include/transporter \ + -I$(top_srcdir)/ndb/include/debugger \ + -I$(top_srcdir)/ndb/include/mgmapi \ + -I$(top_srcdir)/ndb/include/mgmcommon \ + -I$(top_srcdir)/ndb/include/ndbapi \ + -I$(top_srcdir)/ndb/include/util \ + -I$(top_srcdir)/ndb/include/portlib \ + -I$(top_srcdir)/ndb/include/logger + +#AM_LDFLAGS = @ndb_ldflags@ diff --git a/ndb/config/type_mgmapiclient.mk.am b/ndb/config/type_mgmapiclient.mk.am index f3bebb2c756..1ef4a81d67e 100644 --- a/ndb/config/type_mgmapiclient.mk.am +++ b/ndb/config/type_mgmapiclient.mk.am @@ -1,2 +1,2 @@ -INCLUDES += @NDB_MGMAPICLIENT_INCLUDES@ +INCLUDES += -I$(top_srcdir)/ndb/include/mgmapi diff --git a/ndb/config/type_ndbapi.mk.am b/ndb/config/type_ndbapi.mk.am index 864690cec7b..ed648273aea 100644 --- a/ndb/config/type_ndbapi.mk.am +++ b/ndb/config/type_ndbapi.mk.am @@ -1,2 +1,12 @@ -INCLUDES += @NDB_NDBAPI_INCLUDES@ +INCLUDES += \ + -I$(srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/ndb/include \ + -I$(top_srcdir)/ndb/include/kernel \ + -I$(top_srcdir)/ndb/include/transporter \ + -I$(top_srcdir)/ndb/include/debugger \ + -I$(top_srcdir)/ndb/include/mgmapi \ + -I$(top_srcdir)/ndb/include/mgmcommon \ + -I$(top_srcdir)/ndb/include/ndbapi \ + -I$(top_srcdir)/ndb/include/util \ + -I$(top_srcdir)/ndb/include/portlib \ + -I$(top_srcdir)/ndb/include/logger diff --git a/ndb/config/type_ndbapiclient.mk.am b/ndb/config/type_ndbapiclient.mk.am index f9655ff9876..88b57e49e19 100644 --- a/ndb/config/type_ndbapiclient.mk.am +++ b/ndb/config/type_ndbapiclient.mk.am @@ -1,2 +1,2 @@ -INCLUDES += @NDB_NDBAPICLIENT_INCLUDES@ +INCLUDES += -I$(top_srcdir)/ndb/include/ndbapi diff --git a/ndb/config/type_ndbapitest.mk.am b/ndb/config/type_ndbapitest.mk.am index 8aa92ceb6a7..1156a3174c4 100644 --- a/ndb/config/type_ndbapitest.mk.am +++ b/ndb/config/type_ndbapitest.mk.am @@ -1,6 +1,11 @@ -AM_LDFLAGS = -rpath @ndblibdir@ LDADD += $(top_srcdir)/ndb/test/src/libNDBT.a \ $(top_srcdir)/ndb/src/libndbclient.la -INCLUDES += @NDB_NDBAPITEST_INCLUDES@ +INCLUDES += -I$(srcdir) -I$(top_srcdir)/include \ + -I$(top_srcdir)/ndb/include \ + -I$(top_srcdir)/ndb/include/ndbapi \ + -I$(top_srcdir)/ndb/include/util \ + -I$(top_srcdir)/ndb/include/portlib \ + -I$(top_srcdir)/ndb/test/include \ + -I$(top_srcdir)/ndb/include/mgmapi diff --git a/ndb/config/type_ndbapitools.mk.am b/ndb/config/type_ndbapitools.mk.am index ac302ae9eb4..1156a3174c4 100644 --- a/ndb/config/type_ndbapitools.mk.am +++ b/ndb/config/type_ndbapitools.mk.am @@ -1,5 +1,11 @@ LDADD += $(top_srcdir)/ndb/test/src/libNDBT.a \ - $(top_srcdir)/ndb/src/.libs/libndbclient.a + $(top_srcdir)/ndb/src/libndbclient.la -INCLUDES += @NDB_NDBAPITEST_INCLUDES@ +INCLUDES += -I$(srcdir) -I$(top_srcdir)/include \ + -I$(top_srcdir)/ndb/include \ + -I$(top_srcdir)/ndb/include/ndbapi \ + -I$(top_srcdir)/ndb/include/util \ + -I$(top_srcdir)/ndb/include/portlib \ + -I$(top_srcdir)/ndb/test/include \ + -I$(top_srcdir)/ndb/include/mgmapi diff --git a/ndb/config/type_util.mk.am b/ndb/config/type_util.mk.am index 4a3740ff811..0dfa77b7a7c 100644 --- a/ndb/config/type_util.mk.am +++ b/ndb/config/type_util.mk.am @@ -1,2 +1,6 @@ -INCLUDES += @NDB_UTIL_INCLUDES@ +INCLUDES += -I$(srcdir) -I$(top_srcdir)/include \ + -I$(top_srcdir)/ndb/include \ + -I$(top_srcdir)/ndb/include/util \ + -I$(top_srcdir)/ndb/include/portlib \ + -I$(top_srcdir)/ndb/include/logger diff --git a/ndb/include/Makefile.am b/ndb/include/Makefile.am new file mode 100644 index 00000000000..a77255842ba --- /dev/null +++ b/ndb/include/Makefile.am @@ -0,0 +1,43 @@ + +include $(top_srcdir)/ndb/config/common.mk.am + +ndbinclude_HEADERS = \ +ndb_types.h \ +ndb_version.h + +ndbapiinclude_HEADERS = \ +ndbapi/ndbapi_limits.h \ +ndbapi/Ndb.hpp \ +ndbapi/NdbApi.hpp \ +ndbapi/NdbConnection.hpp \ +ndbapi/NdbCursorOperation.hpp \ +ndbapi/NdbDictionary.hpp \ +ndbapi/NdbError.hpp \ +ndbapi/NdbEventOperation.hpp \ +ndbapi/NdbIndexOperation.hpp \ +ndbapi/NdbOperation.hpp \ +ndbapi/NdbPool.hpp \ +ndbapi/NdbRecAttr.hpp \ +ndbapi/NdbReceiver.hpp \ +ndbapi/NdbResultSet.hpp \ +ndbapi/NdbScanFilter.hpp \ +ndbapi/NdbScanOperation.hpp \ +ndbapi/NdbSchemaCon.hpp \ +ndbapi/NdbSchemaOp.hpp \ +ndbapi/ndberror.h + +mgmapiinclude_HEADERS = \ +mgmapi/mgmapi.h \ +mgmapi/mgmapi_debug.h + +noinst_HEADERS = \ +ndb_global.h \ +ndb_net.h \ +mgmapi/mgmapi_config_parameters.h \ +mgmapi/mgmapi_config_parameters_debug.h + +EXTRA_DIST = debugger editline kernel logger mgmcommon \ +portlib transporter util + +dist-hook: + -rm -rf `find $(distdir) -type d -name SCCS` diff --git a/ndb/BinDist.sh b/ndb/old_files/BinDist.sh index 3574b0d64ce..3574b0d64ce 100644 --- a/ndb/BinDist.sh +++ b/ndb/old_files/BinDist.sh diff --git a/ndb/Defs.mk b/ndb/old_files/Defs.mk index ac4507562fd..ac4507562fd 100644 --- a/ndb/Defs.mk +++ b/ndb/old_files/Defs.mk diff --git a/ndb/Epilogue.mk_old b/ndb/old_files/Epilogue.mk index 36d9ebd6751..36d9ebd6751 100644 --- a/ndb/Epilogue.mk_old +++ b/ndb/old_files/Epilogue.mk diff --git a/ndb/Makefile_old b/ndb/old_files/Makefile index 8788eae885d..8788eae885d 100644 --- a/ndb/Makefile_old +++ b/ndb/old_files/Makefile diff --git a/ndb/README b/ndb/old_files/README index 3b21fca1d48..3b21fca1d48 100644 --- a/ndb/README +++ b/ndb/old_files/README diff --git a/ndb/SrcDist.sh b/ndb/old_files/SrcDist.sh index 03e697b1475..03e697b1475 100644 --- a/ndb/SrcDist.sh +++ b/ndb/old_files/SrcDist.sh diff --git a/ndb/configure_old b/ndb/old_files/configure index f0fc197f45e..f0fc197f45e 100755 --- a/ndb/configure_old +++ b/ndb/old_files/configure diff --git a/ndb/env.sh b/ndb/old_files/env.sh index c84a61b2c6f..c84a61b2c6f 100644 --- a/ndb/env.sh +++ b/ndb/old_files/env.sh diff --git a/ndb/mysqlclusterenv.sh b/ndb/old_files/mysqlclusterenv.sh index e151186d01e..e151186d01e 100644 --- a/ndb/mysqlclusterenv.sh +++ b/ndb/old_files/mysqlclusterenv.sh diff --git a/ndb/src/Makefile.am b/ndb/src/Makefile.am index 08c5624038f..69eb4f53d7f 100644 --- a/ndb/src/Makefile.am +++ b/ndb/src/Makefile.am @@ -1,5 +1,7 @@ SUBDIRS = common mgmapi ndbapi . kernel mgmsrv mgmclient cw +include $(top_srcdir)/ndb/config/common.mk.am + ndblib_LTLIBRARIES = libndbclient.la libndbclient_la_SOURCES = @@ -14,5 +16,3 @@ libndbclient_la_LIBADD = \ $(top_srcdir)/ndb/src/common/logger/liblogger.la \ $(top_srcdir)/ndb/src/common/portlib/unix/libportlib.la \ $(top_srcdir)/ndb/src/common/util/libgeneral.la - -AM_LDFLAGS = -rpath @ndblibdir@ diff --git a/ndb/src/common/portlib/Makefile.am b/ndb/src/common/portlib/Makefile.am index 2b1c9eb5ac0..485195fd037 100644 --- a/ndb/src/common/portlib/Makefile.am +++ b/ndb/src/common/portlib/Makefile.am @@ -1 +1,3 @@ -SUBDIRS = unix +SUBDIRS = unix + +noinst_DATA = gcc.cpp diff --git a/ndb/src/cw/cpcd/Makefile.am b/ndb/src/cw/cpcd/Makefile.am index 8d5a8d63e73..090f115301d 100644 --- a/ndb/src/cw/cpcd/Makefile.am +++ b/ndb/src/cw/cpcd/Makefile.am @@ -3,10 +3,12 @@ ndbtools_PROGRAMS = ndb_cpcd ndb_cpcd_SOURCES = main.cpp CPCD.cpp Process.cpp APIService.cpp Monitor.cpp common.cpp -LDADD_LOC = $(top_srcdir)/ndb/src/.libs/libndbclient.a +LDADD_LOC = $(top_srcdir)/ndb/src/libndbclient.la include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/type_util.mk.am +AM_LDFLAGS = @ndb_bin_am_ldflags@ + # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/ndb/src/kernel/ndb-main/Main.cpp b/ndb/src/kernel/Main.cpp index 961d111f298..961d111f298 100644 --- a/ndb/src/kernel/ndb-main/Main.cpp +++ b/ndb/src/kernel/Main.cpp diff --git a/ndb/src/kernel/Makefile.am b/ndb/src/kernel/Makefile.am index 1e52a561964..bc84eda1f92 100644 --- a/ndb/src/kernel/Makefile.am +++ b/ndb/src/kernel/Makefile.am @@ -1 +1,58 @@ -SUBDIRS = error blocks vm ndb-main +SUBDIRS = error blocks vm + +include $(top_srcdir)/ndb/config/common.mk.am + +ndbbin_PROGRAMS = ndb + +ndb_SOURCES = Main.cpp SimBlockList.cpp + +include $(top_srcdir)/ndb/config/type_kernel.mk.am + +INCLUDES += \ + -Iblocks/cmvmi \ + -Iblocks/dbacc \ + -Iblocks/dbdict \ + -Iblocks/dbdih \ + -Iblocks/dblqh \ + -Iblocks/dbtc \ + -Iblocks/dbtup \ + -Iblocks/ndbfs \ + -Iblocks/ndbcntr \ + -Iblocks/qmgr \ + -Iblocks/trix \ + -Iblocks/backup \ + -Iblocks/dbutil \ + -Iblocks/suma \ + -Iblocks/grep \ + -Iblocks/dbtux + +LDADD += \ + blocks/cmvmi/libcmvmi.a \ + blocks/dbacc/libdbacc.a \ + blocks/dbdict/libdbdict.a \ + blocks/dbdih/libdbdih.a \ + blocks/dblqh/libdblqh.a \ + blocks/dbtc/libdbtc.a \ + blocks/dbtup/libdbtup.a \ + blocks/ndbfs/libndbfs.a \ + blocks/ndbcntr/libndbcntr.a \ + blocks/qmgr/libqmgr.a \ + blocks/trix/libtrix.a \ + blocks/backup/libbackup.a \ + blocks/dbutil/libdbutil.a \ + blocks/suma/libsuma.a \ + blocks/grep/libgrep.a \ + blocks/dbtux/libdbtux.a \ + vm/libkernel.a \ + error/liberror.a \ + $(top_srcdir)/ndb/src/common/transporter/libtransporter.la \ + $(top_srcdir)/ndb/src/common/debugger/libtrace.la \ + $(top_srcdir)/ndb/src/common/debugger/signaldata/libsignaldataprint.la \ + $(top_srcdir)/ndb/src/common/logger/liblogger.la \ + $(top_srcdir)/ndb/src/common/mgmcommon/libmgmsrvcommon.la \ + $(top_srcdir)/ndb/src/mgmapi/libmgmapi.la \ + $(top_srcdir)/ndb/src/common/portlib/unix/libportlib.la \ + $(top_srcdir)/ndb/src/common/util/libgeneral.la + +# Don't update the files from bitkeeper +%::SCCS/s.% diff --git a/ndb/src/kernel/ndb-main/SimBlockList.cpp b/ndb/src/kernel/SimBlockList.cpp index bc6262e0723..bc6262e0723 100644 --- a/ndb/src/kernel/ndb-main/SimBlockList.cpp +++ b/ndb/src/kernel/SimBlockList.cpp diff --git a/ndb/src/kernel/blocks/backup/restore/Makefile.am b/ndb/src/kernel/blocks/backup/restore/Makefile.am index cf90587eda8..6d928a11cc1 100644 --- a/ndb/src/kernel/blocks/backup/restore/Makefile.am +++ b/ndb/src/kernel/blocks/backup/restore/Makefile.am @@ -8,3 +8,5 @@ LDADD_LOC = $(top_srcdir)/ndb/src/libndbclient.la include $(top_srcdir)/ndb/config/common.mk.am INCLUDES += -I.. -I$(top_srcdir)/include -I$(top_srcdir)/ndb/include -I$(top_srcdir)/ndb/src/ndbapi -I$(top_srcdir)/ndb/include/ndbapi -I$(top_srcdir)/ndb/include/util -I$(top_srcdir)/ndb/include/portlib -I$(top_srcdir)/ndb/include/kernel + +AM_LDFLAGS = @ndb_bin_am_ldflags@ diff --git a/ndb/src/kernel/blocks/suma/Makefile.am b/ndb/src/kernel/blocks/suma/Makefile.am index 5fc59083484..4dacb22af51 100644 --- a/ndb/src/kernel/blocks/suma/Makefile.am +++ b/ndb/src/kernel/blocks/suma/Makefile.am @@ -1,4 +1,4 @@ -pkglib_LIBRARIES = libsuma.a +noinst_LIBRARIES = libsuma.a libsuma_a_SOURCES = Suma.cpp SumaInit.cpp diff --git a/ndb/src/kernel/error/Makefile.am b/ndb/src/kernel/error/Makefile.am index 5ddf050caaa..4514d2d105c 100644 --- a/ndb/src/kernel/error/Makefile.am +++ b/ndb/src/kernel/error/Makefile.am @@ -1,4 +1,4 @@ -pkglib_LIBRARIES = liberror.a +noinst_LIBRARIES = liberror.a liberror_a_SOURCES = TimeModule.cpp \ ErrorReporter.cpp \ diff --git a/ndb/src/kernel/ndb-main/Makefile.am b/ndb/src/kernel/ndb-main/Makefile.am deleted file mode 100644 index b41c6e948ea..00000000000 --- a/ndb/src/kernel/ndb-main/Makefile.am +++ /dev/null @@ -1,57 +0,0 @@ - -ndbbindir_root = $(prefix) -ndbbindir = $(ndbbindir_root)/ndb/bin -ndbbin_PROGRAMS = ndb - -ndb_SOURCES = Main.cpp SimBlockList.cpp - -include $(top_srcdir)/ndb/config/common.mk.am -include $(top_srcdir)/ndb/config/type_kernel.mk.am -INCLUDES += \ - -I../blocks/cmvmi \ - -I../blocks/dbacc \ - -I../blocks/dbdict \ - -I../blocks/dbdih \ - -I../blocks/dblqh \ - -I../blocks/dbtc \ - -I../blocks/dbtup \ - -I../blocks/ndbfs \ - -I../blocks/ndbcntr \ - -I../blocks/qmgr \ - -I../blocks/trix \ - -I../blocks/backup \ - -I../blocks/dbutil \ - -I../blocks/suma \ - -I../blocks/grep \ - -I../blocks/dbtux - -LDADD += \ - ../blocks/cmvmi/libcmvmi.a \ - ../blocks/dbacc/libdbacc.a \ - ../blocks/dbdict/libdbdict.a \ - ../blocks/dbdih/libdbdih.a \ - ../blocks/dblqh/libdblqh.a \ - ../blocks/dbtc/libdbtc.a \ - ../blocks/dbtup/libdbtup.a \ - ../blocks/ndbfs/libndbfs.a \ - ../blocks/ndbcntr/libndbcntr.a \ - ../blocks/qmgr/libqmgr.a \ - ../blocks/trix/libtrix.a \ - ../blocks/backup/libbackup.a \ - ../blocks/dbutil/libdbutil.a \ - ../blocks/suma/libsuma.a \ - ../blocks/grep/libgrep.a \ - ../blocks/dbtux/libdbtux.a \ - ../vm/libkernel.a \ - ../error/liberror.a \ - $(top_srcdir)/ndb/src/common/transporter/.libs/libtransporter.a \ - $(top_srcdir)/ndb/src/common/debugger/.libs/libtrace.a \ - $(top_srcdir)/ndb/src/common/debugger/signaldata/.libs/libsignaldataprint.a \ - $(top_srcdir)/ndb/src/common/logger/.libs/liblogger.a \ - $(top_srcdir)/ndb/src/common/mgmcommon/.libs/libmgmsrvcommon.a \ - $(top_srcdir)/ndb/src/mgmapi/.libs/libmgmapi.a \ - $(top_srcdir)/ndb/src/common/portlib/unix/.libs/libportlib.a \ - $(top_srcdir)/ndb/src/common/util/.libs/libgeneral.a - -# Don't update the files from bitkeeper -%::SCCS/s.% diff --git a/ndb/src/kernel/ndb-main/Makefile_old b/ndb/src/kernel/ndb-main/Makefile_old deleted file mode 100644 index 08fc125cb00..00000000000 --- a/ndb/src/kernel/ndb-main/Makefile_old +++ /dev/null @@ -1,42 +0,0 @@ -include .defs.mk - -TYPE := kernel - -BIN_TARGET := ndb -BIN_TARGET_ARCHIVES := mgmapi \ - cmvmi dbacc dbdict dbdih dblqh dbtc \ - dbtup ndbfs ndbcntr qmgr trix backup dbutil suma grep dbtux \ - transporter \ - kernel \ - error \ - trace \ - signaldataprint \ - mgmsrvcommon mgmapi \ - portlib \ - logger \ - general - -# Source files of non-templated classes (.cpp files) -SOURCES = \ - Main.cpp \ - SimBlockList.cpp - -CCFLAGS_LOC = -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/cmvmi) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dbacc) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dbdict) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dbdih) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dblqh) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dbtc) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dbtup) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/ndbfs) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/missra) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/ndbcntr) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/qmgr) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/trix) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/backup) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dbutil) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/suma) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/grep) \ - -I$(call fixpath,$(NDB_TOP)/src/kernel/blocks/dbtux) - -include $(NDB_TOP)/Epilogue.mk diff --git a/ndb/src/kernel/vm/Makefile.am b/ndb/src/kernel/vm/Makefile.am index c26e6483eca..4e9dbe36c78 100644 --- a/ndb/src/kernel/vm/Makefile.am +++ b/ndb/src/kernel/vm/Makefile.am @@ -3,7 +3,7 @@ #DIRS += testLongSig #endif -pkglib_LIBRARIES = libkernel.a +noinst_LIBRARIES = libkernel.a libkernel_a_SOURCES = \ SimulatedBlock.cpp \ diff --git a/ndb/src/mgmapi/Makefile.am b/ndb/src/mgmapi/Makefile.am index e67d88b3841..e4fa1d449c6 100644 --- a/ndb/src/mgmapi/Makefile.am +++ b/ndb/src/mgmapi/Makefile.am @@ -1,10 +1,7 @@ -noinst_LTLIBRARIES = libmgmapi.la libMGM_API.la +noinst_LTLIBRARIES = libmgmapi.la -libmgmapi_la_SOURCES_loc = mgmapi.cpp mgmapi_configuration.cpp - -libmgmapi_la_SOURCES = $(libmgmapi_la_SOURCES_loc) -libMGM_API_la_SOURCES = $(libmgmapi_la_SOURCES_loc) +libmgmapi_la_SOURCES = mgmapi.cpp mgmapi_configuration.cpp INCLUDES_LOC = -I$(top_srcdir)/ndb/include/mgmapi -I$(top_srcdir)/ndb/src/common/mgmcommon DEFS_LOC = -DNO_DEBUG_MESSAGES @@ -12,9 +9,5 @@ DEFS_LOC = -DNO_DEBUG_MESSAGES include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/type_util.mk.am -libMGM_API_la_LIBADD = \ - $(top_srcdir)/ndb/src/common/portlib/unix/libportlib.la \ - $(top_srcdir)/ndb/src/common/util/libgeneral.la - # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/ndb/src/mgmclient/Makefile.am b/ndb/src/mgmclient/Makefile.am index 56c7c050558..65a194e75b3 100644 --- a/ndb/src/mgmclient/Makefile.am +++ b/ndb/src/mgmclient/Makefile.am @@ -1,5 +1,5 @@ -ndbbin_PROGRAMS = mgmtclient +ndbtools_PROGRAMS = mgmtclient mgmtclient_SOURCES = \ main.cpp \ @@ -11,9 +11,11 @@ include $(top_srcdir)/ndb/config/type_ndbapi.mk.am INCLUDES += -I$(top_srcdir)/ndb/include/mgmapi -I$(top_srcdir)/ndb/src/common/mgmcommon -LDADD_LOC = $(top_srcdir)/ndb/src/.libs/libndbclient.a \ +LDADD_LOC = $(top_srcdir)/ndb/src/libndbclient.la \ $(top_srcdir)/ndb/src/common/editline/libeditline.a \ @TERMCAP_LIB@ +AM_LDFLAGS = @ndb_bin_am_ldflags@ + # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/ndb/src/mgmsrv/Makefile.am b/ndb/src/mgmsrv/Makefile.am index 56e8b2ee628..3c7e289251c 100644 --- a/ndb/src/mgmsrv/Makefile.am +++ b/ndb/src/mgmsrv/Makefile.am @@ -17,12 +17,14 @@ INCLUDES_LOC = -I$(top_srcdir)/ndb/src/ndbapi \ -I$(top_srcdir)/ndb/src/mgmapi \ -I$(top_srcdir)/ndb/src/common/mgmcommon -LDADD_LOC = $(top_srcdir)/ndb/src/.libs/libndbclient.a \ +LDADD_LOC = $(top_srcdir)/ndb/src/libndbclient.la \ $(top_srcdir)/ndb/src/common/editline/libeditline.a \ @TERMCAP_LIB@ include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/type_ndbapi.mk.am +AM_LDFLAGS = @ndb_bin_am_ldflags@ + # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/ndb/src/ndbapi/Makefile.am b/ndb/src/ndbapi/Makefile.am index c4a80fb86ef..9e2c97db3b5 100644 --- a/ndb/src/ndbapi/Makefile.am +++ b/ndb/src/ndbapi/Makefile.am @@ -1,12 +1,13 @@ #SUBDIRS = signal-sender -noinst_LTLIBRARIES = libndbapi.la libNDB_API.la +noinst_LTLIBRARIES = libndbapi.la -libndbapi_la_SOURCES_loc = \ +libndbapi_la_SOURCES = \ TransporterFacade.cpp \ ClusterMgr.cpp \ Ndb.cpp \ - NdbPoolImpl.cpp NdbPool.cpp \ + NdbPoolImpl.cpp \ + NdbPool.cpp \ Ndblist.cpp \ Ndbif.cpp \ Ndbinit.cpp \ @@ -23,7 +24,8 @@ libndbapi_la_SOURCES_loc = \ NdbOperationExec.cpp \ NdbResultSet.cpp \ NdbCursorOperation.cpp \ - NdbScanReceiver.cpp NdbScanOperation.cpp NdbScanFilter.cpp \ + NdbScanReceiver.cpp NdbScanOperation.cpp \ + NdbScanFilter.cpp \ NdbIndexOperation.cpp \ NdbEventOperation.cpp \ NdbEventOperationImpl.cpp \ @@ -33,25 +35,14 @@ libndbapi_la_SOURCES_loc = \ NdbSchemaOp.cpp \ NdbUtil.cpp \ NdbReceiver.cpp \ - NdbDictionary.cpp NdbDictionaryImpl.cpp DictCache.cpp - -libndbapi_la_SOURCES = $(libndbapi_la_SOURCES_loc) -libNDB_API_la_SOURCES = $(libndbapi_la_SOURCES_loc) + NdbDictionary.cpp \ + NdbDictionaryImpl.cpp \ + DictCache.cpp INCLUDES_LOC = -I$(top_srcdir)/ndb/src/mgmapi include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/type_ndbapi.mk.am -libNDB_API_la_LIBADD = \ - $(top_srcdir)/ndb/src/common/transporter/libtransporter.la \ - $(top_srcdir)/ndb/src/common/debugger/libtrace.la \ - $(top_srcdir)/ndb/src/common/debugger/signaldata/libsignaldataprint.la \ - $(top_srcdir)/ndb/src/common/mgmcommon/libmgmsrvcommon.la \ - $(top_srcdir)/ndb/src/mgmapi/libMGM_API.la \ - $(top_srcdir)/ndb/src/common/portlib/unix/libportlib.la \ - $(top_srcdir)/ndb/src/common/logger/liblogger.la \ - $(top_srcdir)/ndb/src/common/util/libgeneral.la - # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/ndb/src/Makefile_old b/ndb/src/old_files/Makefile index cd33563ddc1..cd33563ddc1 100644 --- a/ndb/src/Makefile_old +++ b/ndb/src/old_files/Makefile diff --git a/ndb/src/ndbbaseclient/Makefile b/ndb/src/old_files/ndbbaseclient/Makefile index f4c49a95ffa..f4c49a95ffa 100644 --- a/ndb/src/ndbbaseclient/Makefile +++ b/ndb/src/old_files/ndbbaseclient/Makefile diff --git a/ndb/src/ndbbaseclient/ndbbaseclient_dummy.cpp b/ndb/src/old_files/ndbbaseclient/ndbbaseclient_dummy.cpp index e69de29bb2d..e69de29bb2d 100644 --- a/ndb/src/ndbbaseclient/ndbbaseclient_dummy.cpp +++ b/ndb/src/old_files/ndbbaseclient/ndbbaseclient_dummy.cpp diff --git a/ndb/src/ndbclient/Makefile b/ndb/src/old_files/ndbclient/Makefile index 2c597eccfa1..2c597eccfa1 100644 --- a/ndb/src/ndbclient/Makefile +++ b/ndb/src/old_files/ndbclient/Makefile diff --git a/ndb/src/ndbclient/ndbclient_dummy.cpp b/ndb/src/old_files/ndbclient/ndbclient_dummy.cpp index e69de29bb2d..e69de29bb2d 100644 --- a/ndb/src/ndbclient/ndbclient_dummy.cpp +++ b/ndb/src/old_files/ndbclient/ndbclient_dummy.cpp diff --git a/ndb/src/scripts/Makefile b/ndb/src/scripts/Makefile deleted file mode 100644 index bc8049ac34b..00000000000 --- a/ndb/src/scripts/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -include .defs.mk - -DIRS := - -include $(NDB_TOP)/Epilogue.mk diff --git a/ndb/test/Makefile.am b/ndb/test/Makefile.am index cecbd0b8717..c535344ac54 100644 --- a/ndb/test/Makefile.am +++ b/ndb/test/Makefile.am @@ -1 +1,7 @@ -SUBDIRS = src tools ndbapi run-test +SUBDIRS = src $(ndb_opt_test_subdirs) +DIST_SUBDIRS = src tools ndbapi run-test + +EXTRA_DIST = include + +dist-hook: + -rm -rf `find $(distdir) -type d -name SCCS` diff --git a/ndb/tools/Makefile.am b/ndb/tools/Makefile.am index caaf0580650..f0e55058bc3 100644 --- a/ndb/tools/Makefile.am +++ b/ndb/tools/Makefile.am @@ -13,5 +13,7 @@ select_count_SOURCES = select_count.cpp include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/type_ndbapitools.mk.am +AM_LDFLAGS = @ndb_bin_am_ldflags@ + # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh index ef1a895e4eb..189796377cc 100644 --- a/scripts/make_binary_distribution.sh +++ b/scripts/make_binary_distribution.sh @@ -267,14 +267,14 @@ fi # NDB Cluster if [ x$NDBCLUSTER = x1 ]; then - if [ ! -f ndb/BinDist.sh ]; then - echo "Missing ndb/BinDist.sh"; exit 1 - fi - mkdir $BASE/ndb || exit 1 - # assume we have cpio.. - if (cd ndb && sh BinDist.sh | cpio -pdm $BASE/ndb); then :; else - echo "Copy failed - missing files in ndb/BinDist.sh ?"; exit 1 - fi + ( cd ndb ; make DESTDIR=$BASE/ndb-stage install ) + ( cd mysql-test/ndb ; make DESTDIR=$BASE/ndb-stage install ) + $CP $BASE/ndb-stage@bindir@/* $BASE/bin/. + $CP $BASE/ndb-stage@libexecdir@/* $BASE/bin/. + $CP $BASE/ndb-stage@pkglibdir@/* $BASE/lib/. + $CP -r $BASE/ndb-stage@pkgincludedir@/ndb $BASE/lib/. + $CP -r $BASE/ndb-stage@prefix@/mysql-test/ndb $BASE/mysql-test/. || exit 1 + rm -rf $BASE/ndb-stage fi # Change the distribution to a long descriptive name |