1
by brian
clean slate |
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 = -I$(top_builddir)/include \ |
|
20 |
-I$(top_srcdir)/include -I$(srcdir) |
|
21 |
pkglib_LIBRARIES = libmysys.a |
|
22 |
LDADD = libmysys.a $(top_builddir)/strings/libmystrings.a $(top_builddir)/dbug/libdbug.a |
|
23 |
noinst_HEADERS = mysys_priv.h my_static.h my_handler_errors.h |
|
24 |
libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c my_mmap.c \ |
|
25 |
mf_path.c mf_loadpath.c my_file.c \
|
|
26 |
my_open.c my_create.c my_dup.c my_seek.c my_read.c \
|
|
27 |
my_pread.c my_write.c my_getpagesize.c \
|
|
28 |
mf_keycache.c mf_keycaches.c \
|
|
29 |
mf_iocache.c mf_iocache2.c mf_cache.c mf_tempfile.c \
|
|
30 |
mf_tempdir.c my_lock.c mf_brkhant.c my_alarm.c \
|
|
31 |
my_malloc.c my_realloc.c my_once.c mulalloc.c \
|
|
32 |
my_alloc.c my_new.cc \
|
|
33 |
my_fopen.c my_fstream.c my_getsystime.c \
|
|
34 |
my_error.c errors.c my_div.c my_messnc.c \
|
|
35 |
mf_format.c mf_same.c mf_dirname.c mf_fn_ext.c \
|
|
36 |
my_symlink.c my_symlink2.c \
|
|
37 |
mf_pack.c mf_unixpath.c mf_strip.c mf_arr_appstr.c \
|
|
38 |
mf_wcomp.c mf_wfile.c my_gethwaddr.c \
|
|
39 |
mf_qsort.c mf_qsort2.c mf_sort.c \
|
|
40 |
ptr_cmp.c mf_radix.c queues.c my_getncpus.c \
|
|
41 |
tree.c trie.c list.c hash.c array.c string.c typelib.c \
|
|
42 |
my_copy.c my_append.c my_lib.c \
|
|
43 |
my_delete.c my_rename.c my_redel.c \
|
|
44 |
my_chsize.c my_clock.c \
|
|
45 |
my_quick.c my_lockmem.c my_static.c \
|
|
46 |
my_sync.c my_getopt.c my_mkdir.c \
|
|
47 |
default_modify.c default.c \
|
|
48 |
my_compress.c checksum.c \
|
|
49 |
my_sleep.c \
|
|
50 |
charset.c charset-def.c my_bitmap.c my_bit.c md5.c \
|
|
51 |
sha1.c \
|
|
52 |
my_handler.c my_largepage.c \
|
|
53 |
my_memmem.c \
|
|
54 |
my_access.c base64.c |
|
7
by Brian Aker
Further cleanup on pthreads. |
55 |
EXTRA_DIST = thr_alarm.c thr_lock.c my_thr_init.c \ |
1
by brian
clean slate |
56 |
thr_mutex.c thr_rwlock.c |
57 |
libmysys_a_LIBADD = @THREAD_LOBJECTS@ |
|
58 |
# test_dir_DEPENDENCIES= $(LIBRARIES)
|
|
59 |
# testhash_DEPENDENCIES= $(LIBRARIES)
|
|
60 |
# test_charset_DEPENDENCIES= $(LIBRARIES)
|
|
61 |
# charset2html_DEPENDENCIES= $(LIBRARIES)
|
|
62 |
DEFS = -DDEFAULT_BASEDIR=\"$(prefix)\" \ |
|
63 |
-DDATADIR="\"$(MYSQLDATAdir)\"" \ |
|
64 |
-DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \ |
|
65 |
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \ |
|
66 |
-DDEFAULT_HOME_ENV=MYSQL_HOME \ |
|
67 |
-DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX \ |
|
68 |
-DDEFAULT_SYSCONFDIR="\"$(sysconfdir)\"" \ |
|
69 |
@DEFS@ |
|
70 |
||
71 |
libmysys_a_DEPENDENCIES= @THREAD_LOBJECTS@ |
|
72 |
||
73 |
# I hope this always does the right thing. Otherwise this is only test programs
|
|
74 |
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @NOINST_LDFLAGS@ |
|
75 |
||
76 |
#
|
|
77 |
# The CP .. RM stuff is to avoid problems with some compilers (like alpha ccc)
|
|
78 |
# which automaticly removes the object files you use to compile a final program
|
|
79 |
#
|
|
80 |
||
81 |
test_bitmap$(EXEEXT): my_bitmap.c $(LIBRARIES) |
|
82 |
$(LINK) $(FLAGS) -DMAIN ./my_bitmap.c $(LDADD) $(LIBS) |
|
83 |
||
84 |
test_priority_queue$(EXEEXT): queues.c $(LIBRARIES) |
|
85 |
$(LINK) $(FLAGS) -DMAIN ./queues.c $(LDADD) $(LIBS) |
|
86 |
||
87 |
test_thr_alarm$(EXEEXT): thr_alarm.c $(LIBRARIES) |
|
88 |
$(CP) $(srcdir)/thr_alarm.c ./test_thr_alarm.c |
|
89 |
$(LINK) $(FLAGS) -DMAIN ./test_thr_alarm.c $(LDADD) $(LIBS) |
|
90 |
$(RM) -f ./test_thr_alarm.c |
|
91 |
||
92 |
test_thr_lock$(EXEEXT): thr_lock.c $(LIBRARIES) |
|
93 |
$(CP) $(srcdir)/thr_lock.c test_thr_lock.c |
|
94 |
$(LINK) $(FLAGS) -DMAIN ./test_thr_lock.c $(LDADD) $(LIBS) |
|
95 |
$(RM) -f ./test_thr_lock.c |
|
96 |
||
97 |
test_vsnprintf$(EXEEXT): my_vsnprintf.c $(LIBRARIES) |
|
98 |
$(CP) $(srcdir)/my_vsnprintf.c test_vsnprintf.c |
|
99 |
$(LINK) $(FLAGS) -DMAIN ./test_vsnprintf.c $(LDADD) $(LIBS) |
|
100 |
$(RM) -f test_vsnprintf.c |
|
101 |
||
102 |
test_io_cache$(EXEEXT): mf_iocache.c $(LIBRARIES) |
|
103 |
$(CP) $(srcdir)/mf_iocache.c test_io_cache.c |
|
104 |
$(LINK) $(FLAGS) -DMAIN ./test_io_cache.c $(LDADD) $(LIBS) |
|
105 |
$(RM) -f test_io_cache.c |
|
106 |
||
107 |
test_dir$(EXEEXT): test_dir.c $(LIBRARIES) |
|
108 |
$(LINK) $(FLAGS) -DMAIN $(srcdir)/test_dir.c $(LDADD) $(LIBS) |
|
109 |
||
110 |
test_charset$(EXEEXT): test_charset.c $(LIBRARIES) |
|
111 |
$(LINK) $(FLAGS) -DMAIN $(srcdir)/test_charset.c $(LDADD) $(LIBS) |
|
112 |
||
113 |
testhash$(EXEEXT): testhash.c $(LIBRARIES) |
|
114 |
$(LINK) $(FLAGS) -DMAIN $(srcdir)/testhash.c $(LDADD) $(LIBS) |
|
115 |
||
116 |
test_gethwaddr$(EXEEXT): my_gethwaddr.c $(LIBRARIES) |
|
117 |
$(CP) $(srcdir)/my_gethwaddr.c ./test_gethwaddr.c |
|
118 |
$(LINK) $(FLAGS) -DMAIN ./test_gethwaddr.c $(LDADD) $(LIBS) |
|
119 |
$(RM) -f ./test_gethwaddr.c |
|
120 |
||
121 |
test_base64$(EXEEXT): base64.c $(LIBRARIES) |
|
122 |
$(CP) $(srcdir)/base64.c ./test_base64.c |
|
123 |
$(LINK) $(FLAGS) -DMAIN ./test_base64.c $(LDADD) $(LIBS) |
|
124 |
$(RM) -f ./test_base64.c |
|
125 |
||
126 |
# Don't update the files from bitkeeper
|
|
127 |
%::SCCS/s.% |