2009-11-30 17:49:15 -07:00
|
|
|
# Copyright (C) 2000-2006 MySQL AB, 2009 Sun Microsystems, Inc
|
2000-08-31 13:05:41 +04:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
2006-12-23 20:17:15 +01:00
|
|
|
# License as published by the Free Software Foundation; version 2
|
|
|
|
# of the License.
|
2000-08-31 13:05:41 +04:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# This library 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
|
|
|
|
# Library General Public License for more details.
|
2000-08-31 13:05:41 +04:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free
|
|
|
|
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
|
|
# MA 02111-1307, USA
|
|
|
|
|
2009-04-05 22:18:21 +02:00
|
|
|
BUILT_SOURCES = $(HEADERS_GEN_MAKE) link_sources probes_mysql_nodtrace.h
|
2008-10-27 12:53:28 +05:30
|
|
|
HEADERS_GEN_CONFIGURE = mysql_version.h
|
|
|
|
HEADERS_GEN_MAKE = my_config.h
|
2006-12-02 23:16:47 +01:00
|
|
|
HEADERS_ABI = mysql.h mysql_com.h mysql_time.h \
|
2009-12-15 23:52:47 +04:00
|
|
|
my_list.h my_alloc.h typelib.h mysql/plugin.h \
|
|
|
|
mysql/plugin_audit.h mysql/plugin_ftparser.h
|
2006-12-02 23:16:47 +01:00
|
|
|
pkginclude_HEADERS = $(HEADERS_ABI) my_dbug.h m_string.h my_sys.h \
|
2009-11-02 21:05:42 +01:00
|
|
|
my_xml.h mysql_embed.h mysql/services.h \
|
|
|
|
mysql/service_my_snprintf.h mysql/service_thd_alloc.h \
|
2007-03-12 13:29:11 +01:00
|
|
|
my_pthread.h my_no_pthread.h \
|
2009-11-30 17:49:15 -07:00
|
|
|
mysql/psi/psi.h mysql/psi/mysql_thread.h \
|
|
|
|
mysql/psi/mysql_file.h \
|
2007-04-12 21:50:56 +02:00
|
|
|
decimal.h errmsg.h my_global.h my_net.h \
|
2006-12-02 23:16:47 +01:00
|
|
|
my_getopt.h sslopt-longopts.h my_dir.h \
|
2003-11-21 12:22:51 +02:00
|
|
|
sslopt-vars.h sslopt-case.h sql_common.h keycache.h \
|
2008-10-27 12:53:28 +05:30
|
|
|
m_ctype.h my_attribute.h $(HEADERS_GEN_CONFIGURE) \
|
2009-04-03 14:52:59 +01:00
|
|
|
$(HEADERS_GEN_MAKE) probes_mysql.h probes_mysql_nodtrace.h
|
2008-10-27 12:53:28 +05:30
|
|
|
|
2010-07-15 08:13:30 -03:00
|
|
|
noinst_HEADERS = config-win.h lf.h my_bit.h \
|
2010-03-31 16:05:33 +02:00
|
|
|
heap.h my_bitmap.h my_uctype.h password.h \
|
2000-07-31 21:29:14 +02:00
|
|
|
myisam.h myisampack.h myisammrg.h ft_global.h\
|
2010-07-15 08:13:30 -03:00
|
|
|
mysys_err.h my_base.h \
|
Backport of:
ChangeSet@1.2703, 2007-12-07 09:35:28-05:00, cmiller@zippy.cornsilk.net +40 -0
Bug#13174: SHA2 function
Patch contributed from Bill Karwin, paper unnumbered CLA in Seattle
Implement SHA2 functions.
Chad added code to make it work with YaSSL. Also, he removed the
(probable) bug of embedded server never using SSL-dependent
functions. (libmysqld/Makefile.am didn't read ANY autoconf defs.)
Function specification:
SHA2( string cleartext, integer hash_length )
-> string hash, or NULL
where hash_length is one of 224, 256, 384, or 512. If either is
NULL or a length is unsupported, then the result is NULL. The
resulting string is always the length of the hash_length parameter
or is NULL.
Include the canonical hash examples from the NIST in the test
results.
---
Polish and address concerns of reviewers.
2010-04-13 19:04:45 +04:00
|
|
|
my_nosys.h my_alarm.h queues.h rijndael.h sha1.h sha2.h \
|
2005-06-07 21:17:09 +05:00
|
|
|
my_aes.h my_tree.h my_trie.h hash.h thr_alarm.h \
|
2007-07-19 14:14:03 +02:00
|
|
|
thr_lock.h t_ctype.h violite.h my_md5.h base64.h \
|
2009-11-02 21:05:42 +01:00
|
|
|
my_handler.h my_time.h service_versions.h \
|
2009-11-30 17:49:15 -07:00
|
|
|
my_rdtsc.h mysql/psi/psi_abi_v1.h mysql/psi/psi_abi_v2.h \
|
2006-06-01 00:03:05 +02:00
|
|
|
my_vle.h my_user.h my_atomic.h atomic/nolock.h \
|
2009-11-17 17:11:32 -07:00
|
|
|
atomic/rwlock.h atomic/x86-gcc.h atomic/generic-msvc.h \
|
|
|
|
atomic/gcc_builtins.h my_libwrap.h my_stacktrace.h \
|
2010-05-04 19:44:29 +04:00
|
|
|
atomic/solaris.h mysql/innodb_priv.h
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2009-11-09 12:32:48 +01:00
|
|
|
EXTRA_DIST = mysql.h.pp mysql/plugin.h.pp probes_mysql.d.base \
|
2009-12-04 20:05:04 +00:00
|
|
|
CMakeLists.txt \
|
2009-11-30 17:49:15 -07:00
|
|
|
mysql/psi/psi_abi_v1.h.pp \
|
|
|
|
mysql/psi/psi_abi_v2.h.pp
|
2008-07-18 19:21:54 +05:30
|
|
|
|
2006-10-26 22:20:43 +02:00
|
|
|
# Remove built files and the symlinked directories
|
2009-04-03 14:52:59 +01:00
|
|
|
CLEANFILES = $(BUILT_SOURCES) readline openssl probes_mysql.d probes_mysql_nodtrace.h
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Some include files that may be moved and patched by configure
|
2008-10-27 12:53:28 +05:30
|
|
|
DISTCLEANFILES = sched.h $(CLEANFILES) $(HEADERS_GEN_CONFIGURE)
|
2003-01-18 20:28:48 +04:00
|
|
|
|
2000-09-14 15:10:06 +03:00
|
|
|
link_sources:
|
2007-03-27 23:56:48 +02:00
|
|
|
-$(RM) -f readline openssl
|
2003-01-18 20:28:48 +04:00
|
|
|
@readline_h_ln_cmd@
|
2006-01-04 16:33:06 +01:00
|
|
|
@yassl_h_ln_cmd@
|
2007-03-27 23:56:48 +02:00
|
|
|
echo timestamp > link_sources
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2007-07-30 21:09:45 +02:00
|
|
|
# We want both "my_config.h" and "config.h" that are identical, as
|
|
|
|
# MySQL sources assumes the name "my_config.h", and 3rd party sources
|
|
|
|
# assumes the name "config.h".
|
|
|
|
my_config.h: config.h
|
|
|
|
$(CP) config.h my_config.h
|
2001-01-21 16:30:16 +02:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
# These files should not be included in distributions since they are
|
|
|
|
# generated by configure from the .h.in files
|
|
|
|
dist-hook:
|
2000-12-08 17:04:57 +02:00
|
|
|
$(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
|
2000-08-16 05:14:02 +03:00
|
|
|
|
2009-03-05 20:22:13 +01:00
|
|
|
probes_mysql.d:
|
2009-02-21 09:12:08 +01:00
|
|
|
if ! test -f probes_mysql.d ; then \
|
2009-03-18 10:04:15 +00:00
|
|
|
$(CP) -f $(top_srcdir)/include/probes_mysql.d.base probes_mysql.d; \
|
2009-02-21 09:12:08 +01:00
|
|
|
fi
|
|
|
|
|
2009-02-20 23:11:09 +01:00
|
|
|
DTRACEPROVIDER = probes_mysql.d
|
2008-12-20 11:01:41 +01:00
|
|
|
if HAVE_DTRACE
|
|
|
|
BUILT_SOURCES += probes_mysql_dtrace.h
|
2009-04-05 22:18:21 +02:00
|
|
|
CLEANFILES += $(DTRACEPROVIDER)
|
2008-12-20 11:01:41 +01:00
|
|
|
|
2009-02-20 23:11:09 +01:00
|
|
|
# Fake for creating the probes file. If we are building a separate directory
|
|
|
|
# then we copy the probes from the source location and use that
|
|
|
|
# If we are building in the same directory as the source, we do not copy
|
|
|
|
|
2008-12-20 11:01:41 +01:00
|
|
|
probes_mysql_dtrace.h: $(DTRACEPROVIDER)
|
2009-02-20 00:42:00 +01:00
|
|
|
$(DTRACE) $(DTRACEFLAGS) -h -s $(DTRACEPROVIDER) -o $@
|
2008-12-20 11:01:41 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
probes_mysql_nodtrace.h: $(DTRACEPROVIDER)
|
2009-06-04 18:47:38 +02:00
|
|
|
@PERL@ $(top_srcdir)/scripts/dheadgen.pl -f $(DTRACEPROVIDER) > $@
|