1 # Copyright (c) 2004-2007 MySQL AB, 2009 Sun Microsystems, Inc.
2 # Use is subject to license terms.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; version 2 of the License.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 MYSQLDATAdir = $(localstatedir)
18 MYSQLSHAREdir = $(pkgdatadir)
19 MYSQLBASEdir= $(prefix)
20 #MYSQLCLUSTERdir= $(prefix)/mysql-cluster
23 ndbbin_PROGRAMS = ndb_mgmd
27 MgmtSrvrGeneralSignalHandling.cpp \
34 InitConfigFileParser.cpp \
37 INCLUDES_LOC = -I$(top_srcdir)/storage/ndb/src/ndbapi \
38 -I$(top_srcdir)/storage/ndb/src/mgmapi \
39 -I$(top_srcdir)/storage/ndb/src/common/mgmcommon \
40 -I$(top_srcdir)/storage/ndb/src/mgmclient
42 LDADD_LOC = $(top_builddir)/storage/ndb/src/mgmclient/CommandInterpreter.lo \
43 $(top_builddir)/storage/ndb/src/libndbclient.la \
44 $(top_builddir)/dbug/libdbug.a \
45 $(top_builddir)/mysys/libmysys.a \
46 $(top_builddir)/strings/libmystrings.a \
51 DEFS_LOC = -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
52 -DMYSQL_DATADIR="\"$(MYSQLDATAdir)\"" \
53 -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
54 -DMYSQLCLUSTERDIR="\"$(MYSQLCLUSTERdir)\""
56 include $(top_srcdir)/storage/ndb/config/common.mk.am
57 include $(top_srcdir)/storage/ndb/config/type_ndbapi.mk.am
59 ndb_mgmd_LDFLAGS = @ndb_bin_am_ldflags@
61 # Don't update the files from bitkeeper
64 windoze-dsp: ndb_mgmd.dsp
66 ndb_mgmd.dsp: Makefile \
67 $(top_srcdir)/storage/ndb/config/win-prg.am \
68 $(top_srcdir)/storage/ndb/config/win-name \
69 $(top_srcdir)/storage/ndb/config/win-includes \
70 $(top_srcdir)/storage/ndb/config/win-sources \
71 $(top_srcdir)/storage/ndb/config/win-libraries
72 cat $(top_srcdir)/storage/ndb/config/win-prg.am > $@
73 @$(top_srcdir)/storage/ndb/config/win-name $@ $(ndbbin_PROGRAMS)
74 @$(top_srcdir)/storage/ndb/config/win-includes $@ $(INCLUDES)
75 @$(top_srcdir)/storage/ndb/config/win-sources $@ $(ndb_mgmd_SOURCES)
76 @$(top_srcdir)/storage/ndb/config/win-libraries $@ LINK $(LDADD)