Commit 8327a684 authored by tomas@poseidon.(none)'s avatar tomas@poseidon.(none)

neww ndb automake

parent fff33634
...@@ -2833,6 +2833,7 @@ then ...@@ -2833,6 +2833,7 @@ then
MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --with-ndbcluster" MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --with-ndbcluster"
CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)" CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)"
fi
NDB_UTIL_INCLUDES="-I\$(srcdir) -I\$(top_srcdir)/include -I\$(top_srcdir)/ndb/include \ 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/util \
...@@ -2881,12 +2882,21 @@ then ...@@ -2881,12 +2882,21 @@ then
AC_SUBST(NDB_NDBAPICLIENT_INCLUDES) AC_SUBST(NDB_NDBAPICLIENT_INCLUDES)
AC_SUBST(NDB_MGMAPICLIENT_INCLUDES) AC_SUBST(NDB_MGMAPICLIENT_INCLUDES)
#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)
define(NDB_MAKEFILES, [ dnl define(NDB_MAKEFILES, [ dnl
ndb/Makefile ndb/src/Makefile ndb/src/common/Makefile dnl ndb/Makefile ndb/include/Makefile ndb/src/Makefile ndb/src/common/Makefile dnl
ndb/src/common/portlib/Makefile dnl ndb/tools/Makefile dnl
ndb/src/common/portlib/unix/Makefile dnl ndb/src/common/debugger/Makefile ndb/src/common/debugger/signaldata/Makefile dnl
ndb/src/common/debugger/Makefile dnl
ndb/src/common/debugger/signaldata/Makefile dnl
ndb/src/common/util/Makefile dnl ndb/src/common/util/Makefile dnl
ndb/src/common/logger/Makefile dnl ndb/src/common/logger/Makefile dnl
ndb/src/common/transporter/Makefile dnl ndb/src/common/transporter/Makefile dnl
...@@ -2923,14 +2933,14 @@ then ...@@ -2923,14 +2933,14 @@ then
ndb/test/Makefile dnl ndb/test/Makefile dnl
ndb/test/src/Makefile dnl ndb/test/src/Makefile dnl
ndb/test/ndbapi/Makefile dnl ndb/test/ndbapi/Makefile dnl
ndb/test/ndbapi/flexBench/Makefile dnl ndb/test/ndbapi/bank/Makefile dnl
ndb/test/tools/Makefile dnl
ndb/test/run-test/Makefile dnl
]) ])
fi
AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS) AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
# Output results # Output results
ifdef([NDB_MAKEFILES],,[define(NDB_MAKEFILES, [])])
AC_OUTPUT(Makefile extra/Makefile mysys/Makefile isam/Makefile dnl AC_OUTPUT(Makefile extra/Makefile mysys/Makefile isam/Makefile dnl
NDB_MAKEFILES dnl NDB_MAKEFILES dnl
strings/Makefile regex/Makefile heap/Makefile dnl strings/Makefile regex/Makefile heap/Makefile dnl
......
SUBDIRS = src test ## find * -name '*.hpp' -print | grep -v SCCS | grep -v odbc | sed 's/\.hpp/\.hpp \\/' > tmp.out
## find * -name '*.h' -print | grep -v SCCS | grep -v odbc | sed 's/\.h/\.h \\/' >> tmp.out
SUBDIRS = . include src test tools
noinst_HEADERS =
INCLUDES = INCLUDES = $(INCLUDES_LOC)
LDADD = $(top_srcdir)/ndb/src/common/portlib/gcc.cpp $(LDADD_LOC) LDADD = $(top_srcdir)/ndb/src/common/portlib/gcc.cpp $(LDADD_LOC)
DEFS = @DEFS@ @NDB_DEFS@ DEFS = @DEFS@ @NDB_DEFS@
# ndb cannot be compiled with -fno-implicit-templaces # ndb cannot be compiled with -fno-implicit-templaces
NDB_CXXFLAGS=-fimplicit-templates NDB_CXXFLAGS=-fimplicit-templates
##use AM_CXXFLAGS for other flags ##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 $@;
LDADD += $(top_srcdir)/ndb/test/src/libNDBT.a \
$(top_srcdir)/ndb/src/ndbapi/libNDB_API.la \
$(top_srcdir)/ndb/src/mgmapi/libMGM_API.la
INCLUDES += @NDB_NDBAPITEST_INCLUDES@ INCLUDES += @NDB_NDBAPITEST_INCLUDES@
SUBDIRS = src ndbapi SUBDIRS = src tools ndbapi run-test
#SUBDIRS = src tools ndbapi run-test
SUBDIRS = flexBench SUBDIRS = bank
bin_PROGRAMS = \
flexBench \
drop_all_tabs \
create_all_tabs \
create_tab \
flexAsynch \
flexBench \
flexHammer \
flexScan \
flexTT \
flexTimedAsynch \
testBackup \
testBasic \
testBasicAsynch \
testDataBuffers \
testDict \
testIndex \
testMgm \
testNdbApi \
testNodeRestart \
testOIBasic \
testOperations \
testRestartGci \
testScan \
testScanInterpreter \
testSystemRestart \
testTimeout \
testTransactions \
test_event
#testBlobs
#flex_bench_mysql
create_all_tabs_SOURCES = create_all_tabs.cpp
create_tab_SOURCES = create_tab.cpp
drop_all_tabs_SOURCES = drop_all_tabs.cpp
flexAsynch_SOURCES = flexAsynch.cpp
flexBench_SOURCES = flexBench.cpp
flexHammer_SOURCES = flexHammer.cpp
flexScan_SOURCES = flexScan.cpp
flexTT_SOURCES = flexTT.cpp
flexTimedAsynch_SOURCES = flexTimedAsynch.cpp
#flex_bench_mysql_SOURCES = flex_bench_mysql.cpp
testBackup_SOURCES = testBackup.cpp
testBasic_SOURCES = testBasic.cpp
testBasicAsynch_SOURCES = testBasicAsynch.cpp
#testBlobs_SOURCES = testBlobs.cpp
testDataBuffers_SOURCES = testDataBuffers.cpp
testDict_SOURCES = testDict.cpp
testIndex_SOURCES = testIndex.cpp
testMgm_SOURCES = testMgm.cpp
testNdbApi_SOURCES = testNdbApi.cpp
testNodeRestart_SOURCES = testNodeRestart.cpp
testOIBasic_SOURCES = testOIBasic.cpp
testOperations_SOURCES = testOperations.cpp
testRestartGci_SOURCES = testRestartGci.cpp
testScan_SOURCES = testScan.cpp
testScanInterpreter_SOURCES = testScanInterpreter.cpp
testSystemRestart_SOURCES = testSystemRestart.cpp
testTimeout_SOURCES = testTimeout.cpp
testTransactions_SOURCES = testTransactions.cpp
test_event_SOURCES = test_event.cpp
INCLUDES_LOC = -I$(top_srcdir)/ndb/include/kernel
include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_ndbapitest.mk.am
##testDict_INCLUDES = $(INCLUDES) -I$(top_srcdir)/ndb/include/kernel
##testIndex_INCLUDES = $(INCLUDES) -I$(top_srcdir)/ndb/include/kernel
##testSystemRestart_INCLUDES = $(INCLUDES) -I$(top_srcdir)/ndb/include/kernel
##testTransactions_INCLUDES = $(INCLUDES) -I$(top_srcdir)/ndb/include/kernel
testBackup_LDADD = $(LDADD) bank/libbank.a
# Don't update the files from bitkeeper
%::SCCS/s.%
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "../Bank.hpp" #include "Bank.hpp"
#include <time.h> #include <time.h>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <UtilTransactions.hpp> #include <UtilTransactions.hpp>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "../Bank.hpp" #include "Bank.hpp"
#include <UtilTransactions.hpp> #include <UtilTransactions.hpp>
/** /**
......
bin_PROGRAMS = testBank bankSumAccounts bankValidateAllGLs bankMakeGL bankTransactionMaker bankCreator bankTimer
noinst_LIBRARIES = libbank.a
libbank_a_SOURCES = Bank.cpp BankLoad.cpp
testBank_SOURCES = testBank.cpp
bankSumAccounts_SOURCES = bankSumAccounts.cpp
bankValidateAllGLs_SOURCES = bankValidateAllGLs.cpp
bankMakeGL_SOURCES = bankMakeGL.cpp
bankTransactionMaker_SOURCES = bankTransactionMaker.cpp
bankCreator_SOURCES = bankCreator.cpp
bankTimer_SOURCES = bankTimer.cpp
LDADD_LOC = $(noinst_LIBRARIES)
include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_ndbapitest.mk.am
# Don't update the files from bitkeeper
%::SCCS/s.%
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <NDBT.hpp> #include <NDBT.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <getarg.h> #include <getarg.h>
#include "../Bank.hpp" #include "Bank.hpp"
int main(int argc, const char** argv){ int main(int argc, const char** argv){
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <NDBT.hpp> #include <NDBT.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <getarg.h> #include <getarg.h>
#include "../Bank.hpp" #include "Bank.hpp"
int main(int argc, const char** argv){ int main(int argc, const char** argv){
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <NDBT.hpp> #include <NDBT.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <getarg.h> #include <getarg.h>
#include "../Bank.hpp" #include "Bank.hpp"
int main(int argc, const char** argv){ int main(int argc, const char** argv){
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <NDBT.hpp> #include <NDBT.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <getarg.h> #include <getarg.h>
#include "../Bank.hpp" #include "Bank.hpp"
int main(int argc, const char** argv){ int main(int argc, const char** argv){
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <NDBT.hpp> #include <NDBT.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <getarg.h> #include <getarg.h>
#include "../Bank.hpp" #include "Bank.hpp"
int main(int argc, const char** argv){ int main(int argc, const char** argv){
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <NDBT.hpp> #include <NDBT.hpp>
#include <NdbSleep.h> #include <NdbSleep.h>
#include <getarg.h> #include <getarg.h>
#include "../Bank.hpp" #include "Bank.hpp"
int main(int argc, const char** argv){ int main(int argc, const char** argv){
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
continue; } continue; }
#include "../Bank.hpp" #include "Bank.hpp"
int runCreateBank(NDBT_Context* ctx, NDBT_Step* step){ int runCreateBank(NDBT_Context* ctx, NDBT_Step* step){
Bank bank; Bank bank;
......
...@@ -3,10 +3,6 @@ bin_PROGRAMS = flexBench ...@@ -3,10 +3,6 @@ bin_PROGRAMS = flexBench
flexBench_SOURCES = flexBench.cpp flexBench_SOURCES = flexBench.cpp
LDADD_LOC = $(top_srcdir)/ndb/test/src/libNDBT.a \
$(top_srcdir)/ndb/src/ndbapi/libNDB_API.la \
$(top_srcdir)/ndb/src/mgmapi/libMGM_API.la
include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_ndbapitest.mk.am include $(top_srcdir)/ndb/config/type_ndbapitest.mk.am
......
...@@ -205,8 +205,7 @@ int runClearTable(NDBT_Context* ctx, NDBT_Step* step){ ...@@ -205,8 +205,7 @@ int runClearTable(NDBT_Context* ctx, NDBT_Step* step){
return NDBT_OK; return NDBT_OK;
} }
#include "bank/Bank.hpp"
#include "../bank/Bank.hpp"
int runCreateBank(NDBT_Context* ctx, NDBT_Step* step){ int runCreateBank(NDBT_Context* ctx, NDBT_Step* step){
Bank bank; Bank bank;
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <NdbCondition.h> #include <NdbCondition.h>
#include <NdbTest.hpp> #include <NdbTest.hpp>
#include <NdbTick.h> #include <NdbTick.h>
#include <ndb_limits.h>
struct Opt { struct Opt {
bool m_core; bool m_core;
......
bin_PROGRAMS = atrt
atrt_SOURCES = main.cpp
bin_SCRIPTS = atrt-analyze-result.sh atrt-gather-result.sh atrt-setup.sh \
atrt-clear-result.sh make-config.sh
INCLUDES_LOC = -I$(top_srcdir)/ndb/include/mgmapi -I$(top_srcdir)/ndb/src/mgmclient
LDADD_LOC = $(top_srcdir)/ndb/src/mgmapi/libmgmapi.la $(top_srcdir)/ndb/src/mgmclient/CpcClient.o
include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_util.mk.am
# Don't update the files from bitkeeper
%::SCCS/s.%
bin_PROGRAMS = waiter hugoCalculator hugoLoad hugoFill hugoLockRecords hugoPkDelete hugoPkRead hugoPkReadRecord hugoPkUpdate hugoScanRead hugoScanUpdate restart verify_index copy_tab create_index
# ndb_cpcc
# transproxy
hugoCalculator_SOURCES = hugoCalculator.cpp
hugoFill_SOURCES = hugoFill.cpp
hugoLoad_SOURCES = hugoLoad.cpp
hugoLockRecords_SOURCES = hugoLockRecords.cpp
hugoPkDelete_SOURCES = hugoPkDelete.cpp
hugoPkRead_SOURCES = hugoPkRead.cpp
hugoPkReadRecord_SOURCES = hugoPkReadRecord.cpp
hugoPkUpdate_SOURCES = hugoPkUpdate.cpp
hugoScanRead_SOURCES = hugoScanRead.cpp
hugoScanUpdate_SOURCES = hugoScanUpdate.cpp
restart_SOURCES = restart.cpp
waiter_SOURCES = waiter.cpp
# transproxy_SOURCES = transproxy.cpp
verify_index_SOURCES = verify_index.cpp
copy_tab_SOURCES = copy_tab.cpp
create_index_SOURCES = create_index.cpp
#ndb_cpcc_SOURCES = cpcc.cpp
include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_ndbapitest.mk.am
# Don't update the files from bitkeeper
%::SCCS/s.%
/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "mgmapi.h"
#include <string.h>
#include <NdbMain.h>
#include <NdbOut.hpp>
#include <NdbSleep.h>
#include <getarg.h>
#include <NdbRestarter.hpp>
#include <NDBT.hpp>
int main(int argc, const char** argv){
const char* _hostName = NULL;
int _help = 0;
struct getargs args[] = {
{ "usage", '?', arg_flag, &_help, "Print help", "" }
};
int num_args = sizeof(args) / sizeof(args[0]);
int optind = 0;
char desc[] =
"hostname:port\n"\
"This program will connect to the mgmsrv of a NDB cluster.\n"\
"It will then wait for all nodes to be started\n";
if(getarg(args, num_args, argc, argv, &optind) || _help) {
arg_printusage(args, num_args, argv[0], desc);
return NDBT_ProgramExit(NDBT_WRONGARGS);
}
_hostName = argv[optind];
NdbRestarter restarter(_hostName);
if (restarter.waitClusterStarted() != 0)
return NDBT_ProgramExit(NDBT_FAILED);
return NDBT_ProgramExit(NDBT_OK);
}
bin_PROGRAMS = drop_tab delete_all desc drop_index list_tables select_all select_count
delete_all_SOURCES = delete_all.cpp
desc_SOURCES = desc.cpp
drop_index_SOURCES = drop_index.cpp
drop_tab_SOURCES = drop_tab.cpp
list_tables_SOURCES = listTables.cpp
select_all_SOURCES = select_all.cpp
select_count_SOURCES = select_count.cpp
include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_ndbapitest.mk.am
# Don't update the files from bitkeeper
%::SCCS/s.%
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment