mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
ae5b950c4d
configure.in: updates for --with-other-libc heap/Makefile.am: --with-other-libc libmysql/Makefile.shared: --with-other-libc mysys/Makefile.am: --with-other-libc regex/Makefile.am: --with-other-libc sql/Makefile.am: --with-other-libc strings/Makefile.am: --with-other-libc
90 lines
4.1 KiB
Makefile
90 lines
4.1 KiB
Makefile
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
# This file is public domain and comes with NO WARRANTY of any kind
|
|
|
|
INCLUDES = @MT_INCLUDES@ -I$(srcdir)/../include -I../include
|
|
pkglib_LIBRARIES = libmystrings.a
|
|
|
|
# Exact one of ASSEMBLER_X
|
|
if ASSEMBLER_x86
|
|
ASRCS = strings-x86.s longlong2str-x86.s
|
|
CSRCS = bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c atof.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c strxmov.c bmove_upp.c strappend.c strcont.c strend.c strfill.c strcend.c is_prefix.c strstr.c strinstr.c strmake.c strnmov.c strmov.c longlong2str.c llstr.c ctype.c strnlen.c
|
|
else
|
|
if ASSEMBLER_sparc
|
|
# These file MUST all be on the same line!! Otherwise automake
|
|
# generats a very broken makefile
|
|
ASRCS = bmove_upp-sparc.s strappend-sparc.s strend-sparc.s strinstr-sparc.s strmake-sparc.s strmov-sparc.s strnmov-sparc.s strstr-sparc.s strxmov-sparc.s
|
|
CSRCS = strcont.c strfill.c strcend.c is_prefix.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c atof.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c ctype.c strnlen.c
|
|
else
|
|
#no assembler
|
|
ASRCS =
|
|
# These file MUST all be on the same line!! Otherwise automake
|
|
# generats a very broken makefile
|
|
CSRCS = strxmov.c bmove_upp.c strappend.c strcont.c strend.c strfill.c strcend.c is_prefix.c strstr.c strinstr.c strmake.c strnmov.c strmov.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c atof.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c ctype.c strnlen.c
|
|
endif
|
|
endif
|
|
|
|
libmystrings_a_SOURCES = @CHARSET_SRCS@ $(ASRCS) $(CSRCS)
|
|
noinst_PROGRAMS = conf_to_src
|
|
# Default charset definitions
|
|
EXTRA_DIST = ctype-big5.c ctype-czech.c ctype-euc_kr.c \
|
|
ctype-gb2312.c ctype-gbk.c ctype-sjis.c \
|
|
ctype-tis620.c ctype-ujis.c \
|
|
ctype_autoconf.c \
|
|
strto.c strings-x86.s longlong2str-x86.s \
|
|
strxmov.c bmove_upp.c strappend.c strcont.c strend.c \
|
|
strfill.c strcend.c is_prefix.c strstr.c strinstr.c \
|
|
strmake.c strnmov.c strmov.c strnlen.c \
|
|
bmove_upp-sparc.s strappend-sparc.s strend-sparc.s \
|
|
strinstr-sparc.s strmake-sparc.s strmov-sparc.s \
|
|
strnmov-sparc.s strstr-sparc.s strxmov-sparc.s
|
|
|
|
OMIT_DEPENDENCIES = pthread.h stdio.h __stdio.h stdlib.h __stdlib.h math.h\
|
|
__math.h time.h __time.h unistd.h __unistd.h types.h \
|
|
xtypes.h ac-types.h posix.h string.h __string.h \
|
|
errno.h socket.h inet.h dirent.h netdb.h \
|
|
cleanup.h cond.h debug_out.h fd.h kernel.h mutex.h \
|
|
prio_queue.h pthread_attr.h pthread_once.h queue.h\
|
|
sleep.h specific.h version.h pwd.h timers.h uio.h \
|
|
cdefs.h machdep.h signal.h __signal.h util.h
|
|
|
|
libmystrings_a_LIBADD= @CHARSET_OBJS@
|
|
ctype.o: ctype_extra_sources.c
|
|
|
|
ctype_extra_sources.c: conf_to_src
|
|
./conf_to_src $(top_srcdir) @CHARSETS_NEED_SOURCE@ > \
|
|
$(srcdir)/ctype_extra_sources.c
|
|
conf_to_src_SOURCES = conf_to_src.c
|
|
conf_to_src_LDADD=
|
|
#force static linking of conf_to_src - essential when linking against
|
|
#custom installation of libc
|
|
conf_to_src_LDFLAGS= @NOINST_LDFLAGS@
|
|
|
|
# This is because the dependency tracking misses @FOO@ vars in sources.
|
|
strtoull.o: @CHARSET_OBJS@
|
|
|
|
clean-local:
|
|
rm -f ctype_extra_sources.c
|
|
|
|
if ASSEMBLER
|
|
# On Linux gcc can compile the assembly files
|
|
%.o : %.s
|
|
$(AS) -o $@ $<
|
|
endif
|
|
|
|
# Don't update the files from bitkeeper
|
|
%::SCCS/s.%
|