1 # Copyright (c) 2004-2007 MySQL AB
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; version 2 of the License.
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 # GNU General Public License for more details.
12 # You should have received a copy of the GNU General Public License
13 # along with this program; if not, write to the Free Software
14 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 #SUBDIRS = signal-sender
18 noinst_PROGRAMS = ndberror_check
20 ndberror_check_SOURCES = ndberror_check.c
22 noinst_LTLIBRARIES = libndbapi.la
24 libndbapi_la_SOURCES = \
25 TransporterFacade.cpp \
37 NdbTransactionScan.cpp \
39 NdbOperationSearch.cpp \
40 NdbOperationScan.cpp \
42 NdbOperationDefine.cpp \
43 NdbOperationExec.cpp \
44 NdbScanOperation.cpp NdbScanFilter.cpp \
45 NdbIndexOperation.cpp \
46 NdbEventOperation.cpp \
47 NdbEventOperationImpl.cpp \
53 NdbDictionaryImpl.cpp \
55 ndb_cluster_connection.cpp \
61 INCLUDES_LOC = -I$(top_srcdir)/storage/ndb/src/mgmapi
63 # Ndbapi cannot handle -O3
64 NDB_CXXFLAGS_RELEASE_LOC = -O2
66 include $(top_srcdir)/storage/ndb/config/common.mk.am
67 include $(top_srcdir)/storage/ndb/config/type_ndbapi.mk.am
69 ndberror_check_LDFLAGS = \
70 $(top_builddir)/dbug/libdbug.a \
71 $(top_builddir)/mysys/libmysys.a \
72 $(top_builddir)/strings/libmystrings.a
74 # Don't update the files from bitkeeper
77 windoze-dsp: libndbapi.dsp
79 libndbapi.dsp: Makefile \
80 $(top_srcdir)/storage/ndb/config/win-lib.am \
81 $(top_srcdir)/storage/ndb/config/win-name \
82 $(top_srcdir)/storage/ndb/config/win-includes \
83 $(top_srcdir)/storage/ndb/config/win-sources \
84 $(top_srcdir)/storage/ndb/config/win-libraries
85 cat $(top_srcdir)/storage/ndb/config/win-lib.am > $@
86 @$(top_srcdir)/storage/ndb/config/win-name $@ $(noinst_LTLIBRARIES)
87 @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
88 @$(top_srcdir)/storage/ndb/config/win-sources $@ $(libndbapi_la_SOURCES)
89 @$(top_srcdir)/storage/ndb/config/win-libraries $@ LIB $(LDADD)