Makefile.am 2.55 KB
Newer Older
unknown's avatar
unknown committed
1
# Copyright (C) 2000-2006 MySQL AB
unknown's avatar
unknown committed
2
#
3
# This program is free software; you can redistribute it and/or
unknown's avatar
unknown committed
4
# modify it under the terms of the GNU Library General Public
unknown's avatar
unknown committed
5 6
# License as published by the Free Software Foundation; version 2
# of the License.
unknown's avatar
unknown committed
7
#
8
# This program is distributed in the hope that it will be useful,
unknown's avatar
unknown committed
9 10 11
# 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.
unknown's avatar
unknown committed
12
#
unknown's avatar
unknown committed
13 14 15 16 17
# 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

18 19 20
BUILT_SOURCES =		$(HEADERS_GEN_MAKE) link_sources
HEADERS_GEN_CONFIGURE =		mysql_version.h
HEADERS_GEN_MAKE =		my_config.h
unknown's avatar
unknown committed
21
HEADERS_ABI =		mysql.h mysql_com.h mysql_time.h \
unknown's avatar
unknown committed
22
			my_list.h my_alloc.h typelib.h mysql/plugin.h
unknown's avatar
unknown committed
23 24
pkginclude_HEADERS =	$(HEADERS_ABI) my_dbug.h m_string.h my_sys.h \
			my_xml.h mysql_embed.h \
25
		  	my_pthread.h my_no_pthread.h \
26
			decimal.h errmsg.h my_global.h my_net.h \
unknown's avatar
unknown committed
27
			my_getopt.h sslopt-longopts.h my_dir.h \
unknown's avatar
unknown committed
28
			sslopt-vars.h sslopt-case.h sql_common.h keycache.h \
29 30
			m_ctype.h my_attribute.h my_compiler.h \
			$(HEADERS_GEN_CONFIGURE) \
31
			$(HEADERS_GEN_MAKE)
32

33
noinst_HEADERS =	config-win.h config-netware.h my_bit.h \
34
			heap.h my_bitmap.h my_uctype.h \
unknown's avatar
unknown committed
35
			myisam.h myisampack.h myisammrg.h ft_global.h\
unknown's avatar
unknown committed
36
			mysys_err.h my_base.h help_start.h help_end.h \
37
			my_nosys.h my_alarm.h queues.h rijndael.h sha1.h \
38
			my_aes.h my_tree.h my_trie.h hash.h thr_alarm.h \
39
			thr_lock.h t_ctype.h violite.h my_md5.h base64.h \
40
			my_compare.h my_time.h my_vle.h my_user.h \
41
			my_libwrap.h my_stacktrace.h
unknown's avatar
unknown committed
42

Narayanan V's avatar
Narayanan V committed
43 44
EXTRA_DIST =        mysql.h.pp mysql/plugin.h.pp

45 46
# Remove built files and the symlinked directories
CLEANFILES =            $(BUILT_SOURCES) readline openssl
unknown's avatar
unknown committed
47 48 49


# Some include files that may be moved and patched by configure
50
DISTCLEANFILES =	sched.h $(CLEANFILES) $(HEADERS_GEN_CONFIGURE)
51

unknown's avatar
unknown committed
52
link_sources:
53
	-$(RM) -f readline openssl
54
	@readline_h_ln_cmd@
55
	@yassl_h_ln_cmd@
56
	echo timestamp > link_sources
unknown's avatar
unknown committed
57

58 59 60 61 62
# 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
unknown's avatar
unknown committed
63

unknown's avatar
unknown committed
64 65 66
# These files should not be included in distributions since they are
# generated by configure from the .h.in files
dist-hook:
unknown's avatar
unknown committed
67
	$(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
unknown's avatar
unknown committed
68 69 70

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