Makefile.am 2.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Copyright (C) 2000 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

17 18 19
noinst_PROGRAMS =	mysql
bin_PROGRAMS =	mysqltest_embedded mysql_client_test_embedded
client_sources =	$(mysqltest_embedded_SOURCES) $(mysql_SOURCES)
20
tests_sources= $(mysql_client_test_embedded_SOURCES)
21

22 23 24 25 26
link_sources:
	for f in $(client_sources); do \
	  rm -f $(srcdir)/$$f; \
	  @LN_CP_F@ $(srcdir)/../../client/$$f $(srcdir)/$$f; \
	done;
27 28 29 30
	for f in $(tests_sources); do \
	  rm -f $(srcdir)/$$f; \
	  @LN_CP_F@ $(srcdir)/../../tests/$$f $(srcdir)/$$f; \
	done;
31

32
DEFS = 		-DEMBEDDED_LIBRARY
kent@mysql.com's avatar
kent@mysql.com committed
33 34
INCLUDES =	@MT_INCLUDES@ \
		-I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir) \
35 36
		-I$(top_srcdir) -I$(top_srcdir)/client -I$(top_srcdir)/regex \
		$(openssl_includes)
hf@deer.(none)'s avatar
SCRUM  
hf@deer.(none) committed
37
LIBS =		@LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
38
LDADD =		@CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @innodb_system_libs@ @LIBDL@ $(CXXLDFLAGS)
39

40 41 42
mysqltest_embedded_LINK = $(CXXLINK)
mysqltest_embedded_SOURCES =	mysqltest.c
mysqltest_embedded_LDADD =	$(LDADD) $(top_builddir)/regex/libregex.a
43

44
mysql_SOURCES = mysql.cc readline.cc completion_hash.cc \
45 46 47
                my_readline.h sql_string.h completion_hash.h
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)

48 49
mysql_client_test_embedded_LINK = $(CXXLINK)
mysql_client_test_embedded_SOURCES =	mysql_client_test.c
50

51 52
clean:
	rm -f $(client_sources)
53
	rm -f $(tests_sources)
54 55 56

# Don't update the files from bitkeeper
%::SCCS/s.%