mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / storage / ndb / src / mgmsrv / Makefile.am
blobf30e0394d23d005c841d98b05692deede3b0a337
1 # Copyright (c) 2004-2007 MySQL AB, 2009 Sun Microsystems, Inc.
2 # Use is subject to license terms.
3
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.
7
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.
12
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
21 MYSQLCLUSTERdir=        .
23 ndbbin_PROGRAMS = ndb_mgmd
25 ndb_mgmd_SOURCES = \
26         MgmtSrvr.cpp \
27         MgmtSrvrGeneralSignalHandling.cpp \
28         main.cpp \
29         Services.cpp \
30         convertStrToInt.cpp \
31         SignalQueue.cpp \
32         MgmtSrvrConfig.cpp \
33         ConfigInfo.cpp \
34         InitConfigFileParser.cpp \
35         Config.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 \
47             @readline_link@ \
48             @NDB_SCI_LIBS@ \
49             @TERMCAP_LIB@
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
62 %::SCCS/s.%
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)