1
# Copyright (C) 2000-2006 MySQL AB
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# GNU General Public License for more details.
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
MYSQLDATAdir = $(localstatedir)
17
MYSQLSHAREdir = $(pkgdatadir)
18
MYSQLBASEdir= $(prefix)
19
MYSQLLIBdir= $(pkglibdir)
20
INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
21
-I$(top_srcdir)/regex \
30
EXTRA_DIST = mi_test_all.sh mi_test_all.res ft_stem.c CMakeLists.txt plug.in
31
pkgdata_DATA = mi_test_all mi_test_all.res
33
pkglib_LIBRARIES = libmyisam.a
34
bin_PROGRAMS = myisamchk myisamlog myisampack myisam_ftdump
35
myisamchk_DEPENDENCIES= $(LIBRARIES)
36
myisamchk_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
37
$(top_builddir)/mysys/libmysys.a \
38
$(top_builddir)/dbug/libdbug.a \
39
$(top_builddir)/strings/libmystrings.a -lz
40
myisamlog_DEPENDENCIES= $(LIBRARIES)
41
myisamlog_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
42
$(top_builddir)/mysys/libmysys.a \
43
$(top_builddir)/dbug/libdbug.a \
44
$(top_builddir)/strings/libmystrings.a -lz
45
myisampack_DEPENDENCIES=$(LIBRARIES)
46
myisampack_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
47
$(top_builddir)/mysys/libmysys.a \
48
$(top_builddir)/dbug/libdbug.a \
49
$(top_builddir)/strings/libmystrings.a -lz
50
noinst_PROGRAMS = mi_test1 mi_test2 mi_test3 rt_test sp_test #ft_test1 ft_eval
51
noinst_HEADERS = myisamdef.h rt_index.h rt_key.h rt_mbr.h sp_defs.h \
52
fulltext.h ftdefs.h ft_test1.h ft_eval.h \
53
ha_myisam.h mi_extrafunc.h
54
mi_test1_DEPENDENCIES= $(LIBRARIES)
55
mi_test1_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
56
$(top_builddir)/mysys/libmysys.a \
57
$(top_builddir)/dbug/libdbug.a \
58
$(top_builddir)/strings/libmystrings.a -lz
59
mi_test2_DEPENDENCIES= $(LIBRARIES)
60
mi_test2_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
61
$(top_builddir)/mysys/libmysys.a \
62
$(top_builddir)/dbug/libdbug.a \
63
$(top_builddir)/strings/libmystrings.a -lz
64
mi_test3_DEPENDENCIES= $(LIBRARIES)
65
mi_test3_LDADD= @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
66
$(top_builddir)/mysys/libmysys.a \
67
$(top_builddir)/dbug/libdbug.a \
68
$(top_builddir)/strings/libmystrings.a -lz
69
#ft_test1_DEPENDENCIES= $(LIBRARIES)
70
#ft_eval_DEPENDENCIES= $(LIBRARIES)
71
myisam_ftdump_DEPENDENCIES= $(LIBRARIES)
72
myisam_ftdump_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
73
$(top_builddir)/mysys/libmysys.a \
74
$(top_builddir)/dbug/libdbug.a \
75
$(top_builddir)/strings/libmystrings.a -lz
76
rt_test_DEPENDENCIES= $(LIBRARIES)
77
rt_test_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
78
$(top_builddir)/mysys/libmysys.a \
79
$(top_builddir)/dbug/libdbug.a \
80
$(top_builddir)/strings/libmystrings.a -lz
81
sp_test_DEPENDENCIES= $(LIBRARIES)
82
sp_test_LDADD = @CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
83
$(top_builddir)/mysys/libmysys.a \
84
$(top_builddir)/dbug/libdbug.a \
85
$(top_builddir)/strings/libmystrings.a -lz
86
libmyisam_a_SOURCES = mi_open.c mi_extra.c mi_info.c mi_rkey.c \
87
mi_rnext.c mi_rnext_same.c \
88
mi_search.c mi_page.c mi_key.c mi_locking.c \
89
mi_rrnd.c mi_scan.c mi_cache.c \
90
mi_statrec.c mi_packrec.c mi_dynrec.c \
91
mi_update.c mi_write.c mi_unique.c \
93
mi_rprev.c mi_rfirst.c mi_rlast.c mi_rsame.c \
94
mi_rsamepos.c mi_panic.c mi_close.c mi_create.c\
95
mi_range.c mi_dbug.c mi_checksum.c mi_log.c \
96
mi_changed.c mi_static.c mi_delete_all.c \
97
mi_delete_table.c mi_rename.c mi_check.c \
98
mi_keycache.c mi_preload.c \
99
ft_parser.c ft_stopwords.c ft_static.c \
100
ft_update.c ft_boolean_search.c ft_nlq_search.c sort.c \
102
rt_index.c rt_key.c rt_mbr.c rt_split.c sp_key.c
103
CLEANFILES = test?.MY? FT?.MY? isam.log mi_test_all rt_test.MY? sp_test.MY?
105
# Move to automake rules ?
106
prolint:; plparse -b -u -hF1 "-width(0,0)" "-format=%f:%l:\s%t:%n\s%m" \
107
"-elib(????)" "+elib(?3??)" my.lnt $(nisam_SOURCES)
114
-e 's!@''bindir''@!$(bindir)!g' \
115
-e 's!@''scriptdir''@!$(bindir)!g' \
116
-e 's!@''prefix''@!$(prefix)!g' \
117
-e 's!@''datadir''@!$(datadir)!g' \
118
-e 's!@''localstatedir''@!$(localstatedir)!g' \
119
-e 's!@''libexecdir''@!$(libexecdir)!g' \
120
-e 's!@''CC''@!@CC@!'\
121
-e 's!@''CXX''@!@CXX@!'\
122
-e 's!@''GXX''@!@GXX@!'\
123
-e 's!@''PERL''@!@PERL@!' \
124
-e 's!@''CFLAGS''@!@SAVE_CFLAGS@!'\
125
-e 's!@''CXXFLAGS''@!@SAVE_CXXFLAGS@!'\
126
-e 's!@''LDFLAGS''@!@SAVE_LDFLAGS@!'\
127
-e 's!@''VERSION''@!@VERSION@!' \
128
-e 's!@''MYSQL_SERVER_SUFFIX''@!@MYSQL_SERVER_SUFFIX@!' \
129
-e 's!@''COMPILATION_COMMENT''@!@COMPILATION_COMMENT@!' \
130
-e 's!@''MACHINE_TYPE''@!@MACHINE_TYPE@!' \
131
-e 's!@''HOSTNAME''@!@HOSTNAME@!' \
132
-e 's!@''SYSTEM_TYPE''@!@SYSTEM_TYPE@!' \
133
-e 's!@''CHECK_PID''@!@CHECK_PID@!' \
134
-e 's!@''FIND_PROC''@!@FIND_PROC@!' \
135
-e 's!@''MYSQLD_DEFAULT_SWITCHES''@!@MYSQLD_DEFAULT_SWITCHES@!' \
136
-e 's!@''MYSQL_UNIX_ADDR''@!@MYSQL_UNIX_ADDR@!' \
137
-e 's!@''TARGET_LINUX''@!@TARGET_LINUX@!' \
138
-e "s!@""CONF_COMMAND""@!@CONF_COMMAND@!" \
139
-e 's!@''MYSQLD_USER''@!@MYSQLD_USER@!' \
140
-e 's!@''sysconfdir''@!@sysconfdir@!' \
141
-e 's!@''SHORT_MYSQL_INTRO''@!@SHORT_MYSQL_INTRO@!' \
142
-e 's!@''SHARED_LIB_VERSION''@!@SHARED_LIB_VERSION@!' \
143
-e 's!@''MYSQL_BASE_VERSION''@!@MYSQL_BASE_VERSION@!' \
144
-e 's!@''MYSQL_NO_DASH_VERSION''@!@MYSQL_NO_DASH_VERSION@!' \
145
-e 's!@''MYSQL_TCP_PORT''@!@MYSQL_TCP_PORT@!' \
146
-e 's!@''PERL_DBI_VERSION''@!@PERL_DBI_VERSION@!' \
147
-e 's!@''PERL_DBD_VERSION''@!@PERL_DBD_VERSION@!' \
148
-e 's!@''PERL_DATA_DUMPER''@!@PERL_DATA_DUMPER@!' \
153
# Don't update the files from bitkeeper