2005-01-20 16:25:38 +01:00
|
|
|
noinst_PROGRAMS = mysql
|
|
|
|
bin_PROGRAMS = mysqltest_embedded mysql_client_test_embedded
|
|
|
|
client_sources = $(mysqltest_embedded_SOURCES) $(mysql_SOURCES)
|
|
|
|
tests_sources= $(mysql_client_test_SOURCES)
|
2001-09-18 05:05:55 +02:00
|
|
|
|
2001-09-17 03:41:22 +02:00
|
|
|
link_sources:
|
|
|
|
for f in $(client_sources); do \
|
|
|
|
rm -f $(srcdir)/$$f; \
|
|
|
|
@LN_CP_F@ $(srcdir)/../../client/$$f $(srcdir)/$$f; \
|
|
|
|
done;
|
2004-05-13 07:30:42 +02:00
|
|
|
for f in $(tests_sources); do \
|
|
|
|
rm -f $(srcdir)/$$f; \
|
|
|
|
@LN_CP_F@ $(srcdir)/../../tests/$$f $(srcdir)/$$f; \
|
|
|
|
done;
|
2001-09-17 03:41:22 +02:00
|
|
|
|
2001-09-22 16:40:57 +02:00
|
|
|
DEFS = -DEMBEDDED_LIBRARY
|
2002-09-05 15:17:08 +02:00
|
|
|
INCLUDES = @MT_INCLUDES@ -I$(top_srcdir)/include -I$(srcdir) \
|
2004-10-26 18:30:01 +02:00
|
|
|
-I$(top_srcdir) -I$(top_srcdir)/client -I$(top_srcdir)/regex \
|
|
|
|
$(openssl_includes)
|
2003-06-17 18:32:31 +02:00
|
|
|
LIBS = @LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
|
2004-08-23 13:55:40 +02:00
|
|
|
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @innodb_system_libs@ @LIBDL@ $(CXXLDFLAGS)
|
2001-09-17 03:41:22 +02:00
|
|
|
|
2005-01-20 16:25:38 +01:00
|
|
|
mysqltest_embedded_LINK = $(CXXLINK)
|
|
|
|
mysqltest_embedded_SOURCES = mysqltest.c
|
|
|
|
mysqltest_embedded_LDADD = $(LDADD) $(top_builddir)/regex/libregex.a
|
2001-09-17 03:41:22 +02:00
|
|
|
|
2001-10-04 01:44:18 +02:00
|
|
|
mysql_SOURCES = mysql.cc readline.cc completion_hash.cc \
|
2001-09-17 03:41:22 +02:00
|
|
|
my_readline.h sql_string.h completion_hash.h
|
|
|
|
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
|
|
|
|
|
2005-01-20 16:25:38 +01:00
|
|
|
mysql_client_test_embedded_LINK = $(CXXLINK)
|
|
|
|
mysql_client_test_embedded_SOURCES = mysql_client_test.c
|
2004-05-13 07:30:42 +02:00
|
|
|
|
2001-09-17 03:41:22 +02:00
|
|
|
clean:
|
|
|
|
rm -f $(client_sources)
|
2004-05-13 07:30:42 +02:00
|
|
|
rm -f $(tests_sources)
|
2001-09-18 05:05:55 +02:00
|
|
|
|
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|