18
18
MYSQLBASEdir= $(prefix)
19
19
INCLUDES = -I$(top_builddir)/include \
20
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
22
pkglib_LTLIBRARIES = libmysys.la
23
libmysys_la_LDFLAGS = -static
24
nodist_EXTRA_libmysys_la_SOURCES = dummy.cxx
23
26
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 \
27
libmysys_la_SOURCES = my_init.c my_getwd.c mf_getdate.c \
25
28
mf_path.c mf_loadpath.c my_file.c \
26
29
my_open.c my_create.c my_dup.c my_seek.c my_read.c \
27
30
my_pread.c my_write.c my_getpagesize.c \
52
55
my_handler.c my_largepage.c \
54
57
my_access.c base64.c
55
EXTRA_DIST = thr_alarm.c thr_lock.c my_thr_init.c \
56
thr_mutex.c thr_rwlock.c
57
58
libmysys_a_LIBADD = @THREAD_LOBJECTS@
58
# test_dir_DEPENDENCIES= $(LIBRARIES)
59
# testhash_DEPENDENCIES= $(LIBRARIES)
60
# test_charset_DEPENDENCIES= $(LIBRARIES)
61
59
DEFS = -DDEFAULT_BASEDIR=\"$(prefix)\" \
62
60
-DDATADIR="\"$(MYSQLDATAdir)\"" \
63
61
-DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \
70
68
libmysys_a_DEPENDENCIES= @THREAD_LOBJECTS@
72
# I hope this always does the right thing. Otherwise this is only test programs
73
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
76
# The CP .. RM stuff is to avoid problems with some compilers (like alpha ccc)
77
# which automaticly removes the object files you use to compile a final program
80
test_bitmap$(EXEEXT): my_bitmap.c $(LIBRARIES)
81
$(LINK) $(FLAGS) -DMAIN ./my_bitmap.c $(LDADD) $(LIBS)
83
test_priority_queue$(EXEEXT): queues.c $(LIBRARIES)
84
$(LINK) $(FLAGS) -DMAIN ./queues.c $(LDADD) $(LIBS)
86
test_thr_alarm$(EXEEXT): thr_alarm.c $(LIBRARIES)
87
$(CP) $(srcdir)/thr_alarm.c ./test_thr_alarm.c
88
$(LINK) $(FLAGS) -DMAIN ./test_thr_alarm.c $(LDADD) $(LIBS)
89
$(RM) -f ./test_thr_alarm.c
91
test_thr_lock$(EXEEXT): thr_lock.c $(LIBRARIES)
92
$(CP) $(srcdir)/thr_lock.c test_thr_lock.c
93
$(LINK) $(FLAGS) -DMAIN ./test_thr_lock.c $(LDADD) $(LIBS)
94
$(RM) -f ./test_thr_lock.c
96
test_vsnprintf$(EXEEXT): my_vsnprintf.c $(LIBRARIES)
97
$(CP) $(srcdir)/my_vsnprintf.c test_vsnprintf.c
98
$(LINK) $(FLAGS) -DMAIN ./test_vsnprintf.c $(LDADD) $(LIBS)
99
$(RM) -f test_vsnprintf.c
101
test_io_cache$(EXEEXT): mf_iocache.c $(LIBRARIES)
102
$(CP) $(srcdir)/mf_iocache.c test_io_cache.c
103
$(LINK) $(FLAGS) -DMAIN ./test_io_cache.c $(LDADD) $(LIBS)
104
$(RM) -f test_io_cache.c
106
test_dir$(EXEEXT): test_dir.c $(LIBRARIES)
107
$(LINK) $(FLAGS) -DMAIN $(srcdir)/test_dir.c $(LDADD) $(LIBS)
109
test_charset$(EXEEXT): test_charset.c $(LIBRARIES)
110
$(LINK) $(FLAGS) -DMAIN $(srcdir)/test_charset.c $(LDADD) $(LIBS)
112
testhash$(EXEEXT): testhash.c $(LIBRARIES)
113
$(LINK) $(FLAGS) -DMAIN $(srcdir)/testhash.c $(LDADD) $(LIBS)
115
test_gethwaddr$(EXEEXT): my_gethwaddr.c $(LIBRARIES)
116
$(CP) $(srcdir)/my_gethwaddr.c ./test_gethwaddr.c
117
$(LINK) $(FLAGS) -DMAIN ./test_gethwaddr.c $(LDADD) $(LIBS)
118
$(RM) -f ./test_gethwaddr.c
120
test_base64$(EXEEXT): base64.c $(LIBRARIES)
121
$(CP) $(srcdir)/base64.c ./test_base64.c
122
$(LINK) $(FLAGS) -DMAIN ./test_base64.c $(LDADD) $(LIBS)
123
$(RM) -f ./test_base64.c
125
# Don't update the files from bitkeeper