~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/tests/Makefile.am

Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2000-2006 MySQL AB
 
2
 
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.
 
6
 
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.
 
11
 
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
 
15
 
 
16
MYSQLDATAdir =          $(localstatedir)
 
17
MYSQLSHAREdir =         $(pkgdatadir)
 
18
MYSQLBASEdir=           $(prefix)
 
19
INCLUDES =              @ZLIB_INCLUDES@ -I$(top_builddir)/include \
 
20
                        -I$(top_srcdir)/include -I$(srcdir)  \
 
21
                        -I$(top_srcdir)/mysys
 
22
LDADD =                 $(top_builddir)/mysys/libmysyslt.la $(top_builddir)/strings/libmystrings.la $(top_builddir)/dbug/libdbug.la
 
23
 
 
24
DEFS =                  -DMAIN \
 
25
                        -DDEFAULT_BASEDIR=\"$(prefix)\" \
 
26
                        -DDATADIR="\"$(MYSQLDATAdir)\"" \
 
27
                        -DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \
 
28
                        -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
 
29
                        -DDEFAULT_HOME_ENV=MYSQL_HOME \
 
30
                        -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX \
 
31
                        -DDEFAULT_SYSCONFDIR="\"$(sysconfdir)\"" \
 
32
                        @DEFS@
 
33
 
 
34
# I hope this always does the right thing. Otherwise this is only test programs
 
35
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @NOINST_LDFLAGS@
 
36
 
 
37
noinst_PROGRAMS = test_bitmap test_priority_queue test_thr_alarm test_thr_lock test_vsnprintf test_io_cache testhash test_gethwaddr test_base64 #test_charset
 
38
test_bitmap_SOURCES = $(top_srcdir)/mysys/my_bitmap.c
 
39
test_thr_alarm_SOURCES = $(top_srcdir)/mysys/thr_alarm.c
 
40
test_priority_queue_SOURCES = $(top_srcdir)/mysys/queues.c
 
41
test_thr_lock_SOURCES = $(top_srcdir)/mysys/thr_lock.c
 
42
test_vsnprintf_SOURCES = $(top_srcdir)/strings/my_vsnprintf.c
 
43
test_io_cache_SOURCES = $(top_srcdir)/mysys/mf_iocache.c 
 
44
#test_dir_SOURCES = test_dir.c
 
45
#test_charset_SOURCES = test_charset.c
 
46
testhash_SOURCES = testhash.c
 
47
test_gethwaddr_SOURCES = $(top_srcdir)/mysys/my_gethwaddr.c
 
48
test_base64_SOURCES = $(top_srcdir)/mysys/base64.c
 
49
test_base64_LDADD = $(top_builddir)/mysys/libmysyslt.la $(top_builddir)/strings/libmystrings.la