Makefile.am 1.89 KB
Newer Older
tomas@poseidon.(none)'s avatar
tomas@poseidon.(none) committed
1 2 3
MYSQLDATAdir =		$(localstatedir)
MYSQLSHAREdir =		$(pkgdatadir)
MYSQLBASEdir=		$(prefix)
4 5
#MYSQLCLUSTERdir=        $(prefix)/mysql-cluster
MYSQLCLUSTERdir=        .
6

7
ndbbin_PROGRAMS = ndb_mgmd
8

9
ndb_mgmd_SOURCES = \
10 11 12 13 14 15 16
	MgmtSrvr.cpp \
	MgmtSrvrGeneralSignalHandling.cpp \
	main.cpp \
	Services.cpp \
	convertStrToInt.cpp \
	SignalQueue.cpp \
	MgmtSrvrConfig.cpp \
tomas@poseidon.(none)'s avatar
tomas@poseidon.(none) committed
17 18
	ConfigInfo.cpp \
	InitConfigFileParser.cpp \
19
	Config.cpp
20

21 22
INCLUDES_LOC = -I$(top_srcdir)/ndb/src/ndbapi \
               -I$(top_srcdir)/ndb/src/mgmapi \
23 24
               -I$(top_srcdir)/ndb/src/common/mgmcommon \
               -I$(top_srcdir)/ndb/src/mgmclient
25

26 27
LDADD_LOC = $(top_srcdir)/ndb/src/mgmclient/CommandInterpreter.o \
            $(top_builddir)/ndb/src/libndbclient.la \
28 29
            $(top_builddir)/dbug/libdbug.a \
            $(top_builddir)/mysys/libmysys.a \
30 31 32
            $(top_builddir)/strings/libmystrings.a \
            @readline_link@ \
            @NDB_SCI_LIBS@ \
joreland@mysql.com's avatar
joreland@mysql.com committed
33
	    @TERMCAP_LIB@
34

tomas@poseidon.(none)'s avatar
tomas@poseidon.(none) committed
35 36 37
DEFS_LOC =		-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
			-DDATADIR="\"$(MYSQLDATAdir)\"" \
			-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
joreland@mysql.com's avatar
joreland@mysql.com committed
38
			-DMYSQLCLUSTERDIR="\"$(MYSQLCLUSTERdir)\""
tomas@poseidon.(none)'s avatar
tomas@poseidon.(none) committed
39

40 41 42
include $(top_srcdir)/ndb/config/common.mk.am
include $(top_srcdir)/ndb/config/type_ndbapi.mk.am

43
ndb_mgmd_LDFLAGS = @ndb_bin_am_ldflags@
44

45 46
# Don't update the files from bitkeeper
%::SCCS/s.%
joreland@mysql.com's avatar
joreland@mysql.com committed
47 48 49 50

windoze-dsp: ndb_mgmd.dsp

ndb_mgmd.dsp: Makefile \
joreland@mysql.com's avatar
joreland@mysql.com committed
51
               $(top_srcdir)/ndb/config/win-prg.am \
joreland@mysql.com's avatar
joreland@mysql.com committed
52 53 54 55
               $(top_srcdir)/ndb/config/win-name \
               $(top_srcdir)/ndb/config/win-includes \
               $(top_srcdir)/ndb/config/win-sources \
               $(top_srcdir)/ndb/config/win-libraries
joreland@mysql.com's avatar
joreland@mysql.com committed
56
	cat $(top_srcdir)/ndb/config/win-prg.am > $@
joreland@mysql.com's avatar
joreland@mysql.com committed
57 58 59
	@$(top_srcdir)/ndb/config/win-name $@ $(ndbbin_PROGRAMS)
	@$(top_srcdir)/ndb/config/win-includes $@ $(INCLUDES)
	@$(top_srcdir)/ndb/config/win-sources $@ $(ndb_mgmd_SOURCES)
joreland@mysql.com's avatar
joreland@mysql.com committed
60
	@$(top_srcdir)/ndb/config/win-libraries $@ LINK $(LDADD)