summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-05-13 10:30:42 +0500
committerunknown <hf@deer.(none)>2004-05-13 10:30:42 +0500
commit018b103bfe80167aae6d1adecb49e59a23ab34ee (patch)
treedbc861bece2b5a131249457a305285a5cad718a0 /libmysqld
parentde861db3e73b72a01eceed23095c4793f893d6c4 (diff)
downloadmariadb-git-018b103bfe80167aae6d1adecb49e59a23ab34ee.tar.gz
client_test with embedded library will be built so one can check if he broke
something in embedded PS BitKeeper/etc/ignore: Added libmysqld/examples/client_test.c to the ignore list libmysqld/examples/Makefile.am: tests/client_test is now symlinked to libmysqld/examples catalog then it's built with libmysqld.a
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/examples/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/libmysqld/examples/Makefile.am b/libmysqld/examples/Makefile.am
index fe56926039d..b11db65baf6 100644
--- a/libmysqld/examples/Makefile.am
+++ b/libmysqld/examples/Makefile.am
@@ -1,11 +1,16 @@
-noinst_PROGRAMS = mysqltest mysql
+noinst_PROGRAMS = mysqltest mysql client_test
client_sources = $(mysqltest_SOURCES) $(mysql_SOURCES)
+tests_sources= $(client_test_SOURCES)
link_sources:
for f in $(client_sources); do \
rm -f $(srcdir)/$$f; \
@LN_CP_F@ $(srcdir)/../../client/$$f $(srcdir)/$$f; \
done;
+ for f in $(tests_sources); do \
+ rm -f $(srcdir)/$$f; \
+ @LN_CP_F@ $(srcdir)/../../tests/$$f $(srcdir)/$$f; \
+ done;
DEFS = -DEMBEDDED_LIBRARY
INCLUDES = @MT_INCLUDES@ -I$(top_srcdir)/include -I$(srcdir) \
@@ -21,8 +26,11 @@ mysql_SOURCES = mysql.cc readline.cc completion_hash.cc \
my_readline.h sql_string.h completion_hash.h
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
+client_test_SOURCES = client_test.c
+
clean:
rm -f $(client_sources)
+ rm -f $(tests_sources)
# Don't update the files from bitkeeper
%::SCCS/s.%