1996-01-07 18:00:21 +08:00
|
|
|
|
# Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
# This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
|
# modify it under the terms of the GNU Library General Public License as
|
|
|
|
|
# published by the Free Software Foundation; either version 2 of the
|
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
# The GNU C Library 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
|
|
|
|
|
# Library General Public License for more details.
|
|
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
|
# License along with the GNU C Library; see the file COPYING.LIB. If
|
|
|
|
|
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
|
|
|
|
# Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Master Makefile for the GNU C library
|
|
|
|
|
#
|
|
|
|
|
ifneq (,)
|
|
|
|
|
This makefile requires GNU Make.
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This is the default target; it makes everything except the tests.
|
|
|
|
|
.PHONY: all
|
update from main archive 960906
Sat Sep 7 05:15:45 1996 Ulrich Drepper <drepper@cygnus.com>
* libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
* libio/iofopen: Likewise.
* libio/iofopncook.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/iovsprintf.c: Likewise.
* libio/iovsscanf.c: Likewise.
* libio/memstream.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vdprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
Sat Sep 7 03:55:47 1996 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig (soversions.mk): Also use shlib-versions files
in add-on directories.
* config.make.in (config-defines): Remove. Not used anymore.
(defines): New variable. Initiliazed by @DEFINES@.
* configure.in: Add AC_SUBST(DEFINES).
* libio/Makefile (routines): When compiling reentrant libc add
clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
iofflush_u, putc_u, putchar_u, ioflockfile.
(CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
* sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
and __libc_cleanup_region_end.
* sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
using __errno_location function.
* sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
using __errno_location function.
(__errno_location): New function.
* sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
syscall_error handler for reentrant libc.
* sysdeps/unix/opendir.c: Remove unneeded `;'.
* libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
[!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
as empty macros.
* libioP.h: Include <libc-lock.h>.
* libio/stdio.h: Add prototypes for *_locked and *_unlocked
functions.
* libio/clearerr.c: Use _IO_ protected versions of flockfile
and funlockfile to be namespace clean.
* libio/genops.c: Use __libc_lock_* macros for handling lock.
* libio/iofdopen: Add initialization of _lock in _IO_FILE.
* libio/iofopen: Likewise.
* libio/iofopncook.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/iovsprintf.c: Likewise.
* libio/iovsscanf.c: Likewise.
* libio/memstream.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vdprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
* libio/fgetc.c: Use __libc_cleanup_region_* macros instead
of flockfile etc.
* libio/fputc.c: Likewise.
* libio/freopen.c: Likewise.
* libio/fseek.c: Likewise.
* libio/getc.c: Likewise.
* libio/getchar.c: Likewise.
* libio/iofclose.c: Likewise.
* libio/iofflush.c: Likewise.
* libio/iofgetpos.c: Likewise.
* libio/iofgets.c: Likewise.
* libio/iofputs.c: Likewise.
* libio/iofread.c: Likewise.
* libio/iofsetpos.c: Likewise.
* libio/ioftell.c: Likewise.
* libio/iofwrite.c: Likewise.
* libio/iogetdelim.c: Likewise.
* libio/iogets.c: Likewise.
* libio/ioputs.c: Likewise.
* libio/iosetbuffer.c: Likewise.
* libio/iosetvbuf.c: Likewise.
* libio/ioungetc.c: Likewise.
* libio/putc.c: Likewise.
* libio/putchar.c: Likewise.
* libio/rewind.c: Likewise.
* stdio-common/vfprintf.c: Likewise.
* stdio-common/vfscanf.c: Likewise.
* libio/clearerr_u.c: Correct alias name.
* libio/ferror_u.c: Likewise.
* libio/fileno.c: Likewise.
* libio/fputc_u.c: Likewise.
* libio/getc.c: Likewise.
* libio/getc_u.c: Likewise.
* libio/getchar.c: Likewise.
* libio/getchar_u.c: Likewise.
* libio/putc.c: Likewise.
* libio/putchar.c: Likewise.
* libio/feof_u.c: Undefine macro with name of function before
definition of function itself.
* libio/ioflockfile.c: New file. Implementation of flockfile and
funlockfile.
* libio/putchar_u.c: Fix typo. Use stdout instead of fp.
* malloc/malloc.h: Don't include <libc-lock.h> and don't declare
_malloc_loc.
* malloc/free.c: Include <libc-lock.h>.
* malloc/realloc.c: Likewise.
* malloc/malloc-find.c: Likewise.
* malloc/malloc-size.c: Likewise.
* malloc/malloc-walk.c: Likewise.
* malloc/memalign.c: Likewise.
* malloc/malloc.c: Likewise.
* sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
Fri Sep 6 19:38:49 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
and __libc_lock_critical_end as empty macros.
* malloc/malloc.h: Don't include <libc-lock.h> and don't declare
__libc_malloc_lock.
* malloc/free.c: Include <libc-lock.h>.
* malloc/malloc-find.c: Likewise.
* malloc/malloc-size.c: Likewise.
* malloc/malloc-walk.c: Likewise.
* malloc/malloc.c: Likewise.
* malloc/memalign.c: Likewise.
* malloc/realloc.c: Likewise.
* Makefile: Undo change from Mon Sep 2 22:15:14 1996. No more
extra_solibs pass.
* Rules: Likewise.
* extra-lib.mk: Likewise.
* manual/Makefile: Likewise.
* db/Makefile (makedb): Choose dependecies based on build-shared.
Patch by Andres Schwab.
* sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
* sysdeps/unix/sysv/linux/errnos.h: New file.
* sysdeps/unix/sysv/linux/schedbits.h: New file.
* sysdeps/unix/sysv/linux/waitflags.h: New file.
* sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
Fri Sep 6 08:26:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* rpm/template: Fix typo in %build section.
Fri Sep 6 03:31:07 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
building libc without thread support.
* resolv/netdb.h: Likewise for h_errno macro.
Thu Sep 5 23:01:48 1996 Ulrich Drepper <drepper@cygnus.com>
* libc-symbols.h: Add new macro weak_const_function. It's like
weak_function, but the function is additionally marked as const.
* features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
Thu Sep 5 22:55:49 1996 Richard Henderson <rth@tamu.edu>
* inet/herrno.c (__h_errno_location): New function.
(h_errno): Make strong_alias __h_errno so that we can access
the variable even if `h_errno' is a macro.
* resolv/netdb.h: Define macro h_errno to access thread specific
version of h_errno variable. Declare alias __h_errno for h_errno.
* resolv/res_query (h_errno): Remove definition.
* sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
Add macro `errno' to get thread specific variable.
* sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
__errno_location function.
(__errno_location): New function.
Thu Sep 5 21:08:44 1996 Ulrich Drepper <drepper@cygnus.com>
* posix/gnu/types.h: Remove definition of key_t.
* sysdeps/generic/gnu/types.h: Move it to here.
* sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
definition of key_t.
* sysdeps/unix/sysv/linux/waitflags.h: New file. Linux specific
definitions.
* sysdeps/unix/sysv/linux/schedbits.h: New file. Include
clone prototypes and associated flags.
Thu Sep 5 08:58:47 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/alpha/elf/start.S: Make _start global again.
hertz.
here.
Wed Sep 4 16:16:13 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
* sysdeps/mach/hurd/sendto.c (sendto): Likewise.
1996-09-07 12:10:57 +08:00
|
|
|
|
all: lib others
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
define autoconf-it
|
1995-07-22 18:55:44 +08:00
|
|
|
|
@-rm -f $@.new
|
1995-02-18 09:27:10 +08:00
|
|
|
|
autoconf $(ACFLAGS) $< > $@.new
|
1995-07-22 18:55:44 +08:00
|
|
|
|
chmod a-w,a+x $@.new
|
1995-02-18 09:27:10 +08:00
|
|
|
|
mv -f $@.new $@
|
1995-05-20 08:13:43 +08:00
|
|
|
|
test ! -d CVS || cvs commit -m'Regenerated: autoconf $(ACFLAGS) $<' $@
|
1995-02-18 09:27:10 +08:00
|
|
|
|
endef
|
|
|
|
|
|
1996-02-13 13:46:59 +08:00
|
|
|
|
configure: configure.in aclocal.m4; $(autoconf-it)
|
|
|
|
|
%/configure: %/configure.in aclocal.m4; $(autoconf-it)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
include Makeconfig
|
|
|
|
|
|
|
|
|
|
ifndef avoid-generated
|
1996-01-30 03:30:15 +08:00
|
|
|
|
-include $(objpfx)sysd-dirs
|
1995-02-18 09:27:10 +08:00
|
|
|
|
define \n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
sysdep-subdirs := $(subst $(\n), ,$(sysdep-subdirs))
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# These are the subdirectories containing the library source.
|
Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
for nonmatching nonerror (instead of !MATCH).
(rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
* resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
unsigned long for variable NET2.
* time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
* catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
catgets/open_catalog.c: New files. Implementation of XPG4
compliant catgets() function and needed tools.
* Makefile (subdirs): Add catgets.
Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
* stdio-common/vfprintf.c: Correct some typos.
* sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
__signgam.
Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (no-whole-archive): New variable.
(build-shlib): Use it.
* elf/Makefile (libdl.so): Use it.
* configure.in (libc_cv_ld_no_whole_archive): New check for
--no-whole-archive.
* config.make.in (have-no-whole-archive): New variable.
* stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
from 3 to 4.
* Make-dist: Include version.mk.
(version, release): Variables removed.
* Makeconfig (version.mk): New target.
Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/Makefile (headers): Add langinfo.h.
(CPPFLAGS): Remove -Iliblib.
1996-04-20 08:05:25 +08:00
|
|
|
|
subdirs = csu assert ctype db locale intl catgets math setjmp signal stdlib \
|
1996-02-08 18:00:34 +08:00
|
|
|
|
stdio-common $(stdio) malloc string wcsmbs time dirent grp pwd\
|
Wed May 22 01:48:54 1996 Ulrich Drepper <drepper@cygnus.com>
* stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
macros if they are not available.
(WEAKNAME): New macro to declare argument as weak.
Define function with __ prefix and add normal name as weak alias.
* sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
these macros if not already available based on R_OK, W_OK, and
X_OK.
Tue May 21 18:48:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* misc/sys/syslog.h (__need___va_list): Define this instead of
__need_va_list before including <stdarg.h>.
* Makerules (o-iterator): Use $(object-suffixes-left) instead
of $(object-suffixes) to produce repetitions; this is used for other
lists than just that one.
[versioned]: Use $(o-iterator) properly.
* sysdeps/unix/sysv/linux/Implies: Include `gnu'.
* sysdeps/mach/hurd/Implies: Likewise.
Sat May 18 02:57:46 1996 Ulrich Drepper <drepper@cygnus.com>
* login/Makefile: New file. This directory contains functions
for user administration.
* Makefile (subdirs): Add login.
* misc/Makefile (headers): Remove utmp.h. Now in login/utmp.h.
(extra-libs, libutil-routines): Ditto.
* misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
misc/utmp.h: Moved to misc/.
* login/login.c, login/login_tty.c, login/logout.c,
login/logwtmp.c, login/utmp.h: Moved to here from misc/.
* login/utmp.h: Split file. Definitions of data structures
and constants are now in the system dependent utmpbits.h file.
* login/setutent_r.c, login/setutent.c, login/endutent_r.c,
login/endutent.c, login/getutent_r.c, login/getutent.c,
login/getutid_r.c, login/getutid.c, login/getutline_r.c,
login/getutline.c, login/pututline_r.c, login/pututline.c:
New files. Routines to handle utmp-style files.
* sysdeps/gnu/utmpbits.h: New file. Contains GNU/Linux
specific definitions of utmp data structures and constants.
* sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
* sysdeps/generic/utmpbits.h: New file. Generic (BSDish) version of
definitions of utmp data structures and constants.
Fri May 17 00:01:31 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/C-monetary.c: Default value for mon_decimal_point should be
'.'.
* stdio-common/printf.h: Remove Linux libc compatibility stuff.
Add `extra' flag. Currently used in __printf_fp.
* stdio-common/printf_fp.c (__guess_grouping): Renamed from
`guess_grouping' and extend visibility to extern. This function
is now used in `strfmon'.
(__printf_fp): Recognize new bit flag in info struct. This
triggers to use the grouping information and decimal point from
the LC_MONETARY category instead of the LC_NUMERIC category.
* stdio-common/vfprintf.c (process_arg): Correct major bug. In
`complicated' loop we must not use the varargs because the args
are already available in the ARGS_VALUE array.
* stdlib/Makefile (headers): Add monetary.h.
(routines): Add strfmon.
* stdlib/monetary.h: New file. Header for strfmon function.
* stdlib/strfmon.c: New file. Implement strfmon function to print
monetary amounts according to current locale's rules.
* sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
now (>= Linux-1.3.100) called <asm/vm86.h>.
1996-05-22 10:11:55 +08:00
|
|
|
|
posix io termios resource misc login socket sysvipc gmon gnulib \
|
1996-08-10 08:00:16 +08:00
|
|
|
|
wctype manual shadow $(sysdep-subdirs) nss elf po $(add-ons)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
export subdirs := $(subdirs) # Benign, useless in GNU make before 3.63.
|
|
|
|
|
|
|
|
|
|
# The mach and hurd subdirectories have many generated header files which
|
1995-09-29 02:42:29 +08:00
|
|
|
|
# much of the rest of the library depends on, so it is best to build them
|
1995-02-18 09:27:10 +08:00
|
|
|
|
# first (and mach before hurd, at that). The before-compile additions in
|
|
|
|
|
# sysdeps/{mach,hurd}/Makefile should make it reliably work for these files
|
|
|
|
|
# not to exist when making in other directories, but it will be slower that
|
|
|
|
|
# way with more somewhat expensive `make' invocations.
|
|
|
|
|
subdirs := $(filter mach,$(subdirs)) $(filter hurd,$(subdirs)) \
|
|
|
|
|
$(filter-out mach hurd,$(subdirs))
|
|
|
|
|
|
|
|
|
|
# All initialization source files.
|
|
|
|
|
+subdir_inits := $(wildcard $(foreach dir,$(subdirs),$(dir)/init-$(dir).c))
|
|
|
|
|
# All subdirectories containing initialization source files.
|
|
|
|
|
+init_subdirs := $(patsubst %/,%,$(dir $(+subdir_inits)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# These are the targets that are made by making them in each subdirectory.
|
update from main archive 960906
Sat Sep 7 05:15:45 1996 Ulrich Drepper <drepper@cygnus.com>
* libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
* libio/iofopen: Likewise.
* libio/iofopncook.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/iovsprintf.c: Likewise.
* libio/iovsscanf.c: Likewise.
* libio/memstream.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vdprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
Sat Sep 7 03:55:47 1996 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig (soversions.mk): Also use shlib-versions files
in add-on directories.
* config.make.in (config-defines): Remove. Not used anymore.
(defines): New variable. Initiliazed by @DEFINES@.
* configure.in: Add AC_SUBST(DEFINES).
* libio/Makefile (routines): When compiling reentrant libc add
clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
iofflush_u, putc_u, putchar_u, ioflockfile.
(CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
* sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
and __libc_cleanup_region_end.
* sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
using __errno_location function.
* sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
using __errno_location function.
(__errno_location): New function.
* sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
syscall_error handler for reentrant libc.
* sysdeps/unix/opendir.c: Remove unneeded `;'.
* libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
[!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
as empty macros.
* libioP.h: Include <libc-lock.h>.
* libio/stdio.h: Add prototypes for *_locked and *_unlocked
functions.
* libio/clearerr.c: Use _IO_ protected versions of flockfile
and funlockfile to be namespace clean.
* libio/genops.c: Use __libc_lock_* macros for handling lock.
* libio/iofdopen: Add initialization of _lock in _IO_FILE.
* libio/iofopen: Likewise.
* libio/iofopncook.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/iovsprintf.c: Likewise.
* libio/iovsscanf.c: Likewise.
* libio/memstream.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vdprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
* libio/fgetc.c: Use __libc_cleanup_region_* macros instead
of flockfile etc.
* libio/fputc.c: Likewise.
* libio/freopen.c: Likewise.
* libio/fseek.c: Likewise.
* libio/getc.c: Likewise.
* libio/getchar.c: Likewise.
* libio/iofclose.c: Likewise.
* libio/iofflush.c: Likewise.
* libio/iofgetpos.c: Likewise.
* libio/iofgets.c: Likewise.
* libio/iofputs.c: Likewise.
* libio/iofread.c: Likewise.
* libio/iofsetpos.c: Likewise.
* libio/ioftell.c: Likewise.
* libio/iofwrite.c: Likewise.
* libio/iogetdelim.c: Likewise.
* libio/iogets.c: Likewise.
* libio/ioputs.c: Likewise.
* libio/iosetbuffer.c: Likewise.
* libio/iosetvbuf.c: Likewise.
* libio/ioungetc.c: Likewise.
* libio/putc.c: Likewise.
* libio/putchar.c: Likewise.
* libio/rewind.c: Likewise.
* stdio-common/vfprintf.c: Likewise.
* stdio-common/vfscanf.c: Likewise.
* libio/clearerr_u.c: Correct alias name.
* libio/ferror_u.c: Likewise.
* libio/fileno.c: Likewise.
* libio/fputc_u.c: Likewise.
* libio/getc.c: Likewise.
* libio/getc_u.c: Likewise.
* libio/getchar.c: Likewise.
* libio/getchar_u.c: Likewise.
* libio/putc.c: Likewise.
* libio/putchar.c: Likewise.
* libio/feof_u.c: Undefine macro with name of function before
definition of function itself.
* libio/ioflockfile.c: New file. Implementation of flockfile and
funlockfile.
* libio/putchar_u.c: Fix typo. Use stdout instead of fp.
* malloc/malloc.h: Don't include <libc-lock.h> and don't declare
_malloc_loc.
* malloc/free.c: Include <libc-lock.h>.
* malloc/realloc.c: Likewise.
* malloc/malloc-find.c: Likewise.
* malloc/malloc-size.c: Likewise.
* malloc/malloc-walk.c: Likewise.
* malloc/memalign.c: Likewise.
* malloc/malloc.c: Likewise.
* sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
Fri Sep 6 19:38:49 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
and __libc_lock_critical_end as empty macros.
* malloc/malloc.h: Don't include <libc-lock.h> and don't declare
__libc_malloc_lock.
* malloc/free.c: Include <libc-lock.h>.
* malloc/malloc-find.c: Likewise.
* malloc/malloc-size.c: Likewise.
* malloc/malloc-walk.c: Likewise.
* malloc/malloc.c: Likewise.
* malloc/memalign.c: Likewise.
* malloc/realloc.c: Likewise.
* Makefile: Undo change from Mon Sep 2 22:15:14 1996. No more
extra_solibs pass.
* Rules: Likewise.
* extra-lib.mk: Likewise.
* manual/Makefile: Likewise.
* db/Makefile (makedb): Choose dependecies based on build-shared.
Patch by Andres Schwab.
* sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
* sysdeps/unix/sysv/linux/errnos.h: New file.
* sysdeps/unix/sysv/linux/schedbits.h: New file.
* sysdeps/unix/sysv/linux/waitflags.h: New file.
* sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
Fri Sep 6 08:26:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* rpm/template: Fix typo in %build section.
Fri Sep 6 03:31:07 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
building libc without thread support.
* resolv/netdb.h: Likewise for h_errno macro.
Thu Sep 5 23:01:48 1996 Ulrich Drepper <drepper@cygnus.com>
* libc-symbols.h: Add new macro weak_const_function. It's like
weak_function, but the function is additionally marked as const.
* features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
Thu Sep 5 22:55:49 1996 Richard Henderson <rth@tamu.edu>
* inet/herrno.c (__h_errno_location): New function.
(h_errno): Make strong_alias __h_errno so that we can access
the variable even if `h_errno' is a macro.
* resolv/netdb.h: Define macro h_errno to access thread specific
version of h_errno variable. Declare alias __h_errno for h_errno.
* resolv/res_query (h_errno): Remove definition.
* sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
Add macro `errno' to get thread specific variable.
* sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
__errno_location function.
(__errno_location): New function.
Thu Sep 5 21:08:44 1996 Ulrich Drepper <drepper@cygnus.com>
* posix/gnu/types.h: Remove definition of key_t.
* sysdeps/generic/gnu/types.h: Move it to here.
* sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
definition of key_t.
* sysdeps/unix/sysv/linux/waitflags.h: New file. Linux specific
definitions.
* sysdeps/unix/sysv/linux/schedbits.h: New file. Include
clone prototypes and associated flags.
Thu Sep 5 08:58:47 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/alpha/elf/start.S: Make _start global again.
hertz.
here.
Wed Sep 4 16:16:13 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
* sysdeps/mach/hurd/sendto.c (sendto): Likewise.
1996-09-07 12:10:57 +08:00
|
|
|
|
+subdir_targets := subdir_lib objects objs others subdir_mostlyclean \
|
|
|
|
|
subdir_clean subdir_distclean subdir_realclean \
|
|
|
|
|
tests subdir_lint.out \
|
1996-06-16 14:52:32 +08:00
|
|
|
|
subdir_distinfo \
|
1995-02-18 09:27:10 +08:00
|
|
|
|
subdir_echo-headers subdir_echo-distinfo \
|
1996-09-05 10:49:18 +08:00
|
|
|
|
subdir_install \
|
|
|
|
|
$(addprefix install-, no-libc.a bin lib data headers others)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
1995-08-05 04:01:33 +08:00
|
|
|
|
headers := errno.h sys/errno.h errnos.h limits.h values.h \
|
1996-06-25 19:59:42 +08:00
|
|
|
|
features.h gnu-versions.h libc-lock.h
|
1995-02-18 09:27:10 +08:00
|
|
|
|
aux = sysdep $(libc-init) version
|
|
|
|
|
|
|
|
|
|
echo-headers: subdir_echo-headers
|
|
|
|
|
|
|
|
|
|
# What to install.
|
|
|
|
|
install-others = $(includedir)/stubs.h
|
|
|
|
|
|
|
|
|
|
ifeq (yes,$(gnu-ld))
|
|
|
|
|
libc-init = set-init
|
|
|
|
|
else
|
|
|
|
|
libc-init = munch-init
|
|
|
|
|
$(objpfx)munch-init.c: munch.awk munch-tmpl.c $(+subdir_inits)
|
|
|
|
|
awk -f $< subdirs='$(+init_subdirs)' $(word 2,$^) > $@-t
|
|
|
|
|
mv -f $@-t $@
|
|
|
|
|
generated := $(generated) munch-init.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include Makerules
|
|
|
|
|
|
|
|
|
|
# Install from subdirectories too.
|
|
|
|
|
install: subdir_install
|
|
|
|
|
|
1995-03-13 14:51:32 +08:00
|
|
|
|
# Build subdirectory lib objects.
|
|
|
|
|
lib-noranlib: subdir_lib
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
1995-03-13 14:51:32 +08:00
|
|
|
|
ifeq (yes,$(build-shared))
|
|
|
|
|
# Build the shared object from the PIC object library.
|
|
|
|
|
lib: $(common-objpfx)libc.so
|
|
|
|
|
endif
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
$(objpfx)sysd-dirs: $(+sysdir_pfx)config.make
|
|
|
|
|
(echo define sysdep-subdirs; \
|
1996-09-05 10:49:18 +08:00
|
|
|
|
for sysdir in $(config-sysdirs); do \
|
|
|
|
|
case $$sysdir in \
|
|
|
|
|
/*) dir=$$sysdir ;; \
|
|
|
|
|
*) dir=$(..)$$sysdir ;; \
|
|
|
|
|
esac; \
|
|
|
|
|
if [ -r $$dir/Subdirs ]; then \
|
|
|
|
|
sed 's/#.*$$//' $$dir/Subdirs; \
|
1995-02-18 09:27:10 +08:00
|
|
|
|
else true; \
|
|
|
|
|
fi; \
|
|
|
|
|
done; \
|
|
|
|
|
echo endef) > $@-tmp
|
|
|
|
|
mv -f $@-tmp $@
|
|
|
|
|
|
1996-09-08 07:56:19 +08:00
|
|
|
|
$(objpfx)version-info.h: $(..)Makefile $(+sysdir_pfx)config.make
|
|
|
|
|
(first=yes; \
|
|
|
|
|
for dir in $(subdirs); do \
|
|
|
|
|
if [ -r $$dir/Banner ]; then \
|
|
|
|
|
if [ $$first = yes ]; then \
|
|
|
|
|
echo "\"Available extensions:"; \
|
|
|
|
|
first=no; \
|
|
|
|
|
fi; \
|
|
|
|
|
sed -e '/^#/d' -e 's/^[[:space:]]*/ /' $$dir/Banner; \
|
|
|
|
|
fi; \
|
|
|
|
|
done; \
|
1996-09-11 09:52:48 +08:00
|
|
|
|
[ $$first = yes ] || echo "\"") > $@-tmp
|
1996-09-08 07:56:19 +08:00
|
|
|
|
mv -f $@-tmp $@
|
|
|
|
|
|
|
|
|
|
version.c-objects := $(addprefix $(objpfx)version,$(object-suffixes))
|
|
|
|
|
$(version.c-objects): $(objpfx)version-info.h
|
|
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
|
# Makerules creates a file `stub-$(subdir)' for each subdirectory, which
|
|
|
|
|
# contains `#define __stub_FUNCTION' for each function which is a stub.
|
|
|
|
|
# Here we paste all of these together into <stubs.h>.
|
|
|
|
|
|
|
|
|
|
subdir-stubs := $(foreach dir,$(subdirs),$(common-objpfx)stub-$(dir))
|
|
|
|
|
|
|
|
|
|
# Since stubs.h is never needed when building the library, we simplify the
|
|
|
|
|
# hairy installation process by producing it in place only as the last part
|
|
|
|
|
# of the top-level `make install'. It depends on subdir_install, which
|
|
|
|
|
# iterates over all the subdirs; subdir_install in each subdir depends on
|
|
|
|
|
# the subdir's stubs file. Having more direct dependencies would result in
|
|
|
|
|
# extra iterations over the list for subdirs and many recursive makes.
|
|
|
|
|
$(includedir)/stubs.h: subdir_install
|
|
|
|
|
@rm -f $(objpfx)stubs.h
|
|
|
|
|
(echo '/* This file is automatically generated.';\
|
|
|
|
|
echo ' It defines a symbol `__stub_FUNCTION'\'' for each function';\
|
|
|
|
|
echo ' in the C library which is a stub, meaning it will fail';\
|
|
|
|
|
echo ' every time called, usually setting errno to ENOSYS. */';\
|
|
|
|
|
sort $(subdir-stubs)) > $(objpfx)stubs.h
|
1996-05-28 08:10:40 +08:00
|
|
|
|
if test -r $@ && cmp -s $(objpfx)stubs.h $@; \
|
1996-05-28 04:16:19 +08:00
|
|
|
|
then echo stubs.h unchanged ; \
|
1996-05-28 03:19:29 +08:00
|
|
|
|
else $(INSTALL_DATA) $(objpfx)stubs.h $@; fi
|
1995-02-18 09:27:10 +08:00
|
|
|
|
rm -f $(objpfx)stubs.h
|
|
|
|
|
|
|
|
|
|
# This makes the Info or DVI file of the documentation from the Texinfo source.
|
|
|
|
|
.PHONY: info dvi
|
|
|
|
|
info dvi:
|
|
|
|
|
$(MAKE) -C manual $@
|
|
|
|
|
|
|
|
|
|
# This makes all the subdirectory targets.
|
|
|
|
|
|
|
|
|
|
# For each target, make it depend on DIR/target for each subdirectory DIR.
|
|
|
|
|
$(+subdir_targets): %: $(addsuffix /%,$(subdirs))
|
|
|
|
|
|
|
|
|
|
# Compute a list of all those targets.
|
|
|
|
|
all-subdirs-targets := $(foreach dir,$(subdirs),\
|
|
|
|
|
$(addprefix $(dir)/,$(+subdir_targets)))
|
|
|
|
|
|
|
|
|
|
# The action for each of those is to cd into the directory and make the
|
|
|
|
|
# target there.
|
|
|
|
|
$(all-subdirs-targets):
|
|
|
|
|
$(MAKE) -C $(@D) $(@F)
|
|
|
|
|
|
|
|
|
|
.PHONY: $(+subdir_targets) $(all-subdirs-targets)
|
|
|
|
|
|
|
|
|
|
# Targets to clean things up to various degrees.
|
|
|
|
|
|
|
|
|
|
.PHONY: clean realclean distclean distclean-1 parent-clean parent-mostlyclean
|
|
|
|
|
|
|
|
|
|
# Subroutines of all cleaning targets.
|
|
|
|
|
parent-mostlyclean: common-mostlyclean # common-mostlyclean is in Makerules.
|
1995-09-21 12:01:40 +08:00
|
|
|
|
-rm -f $(foreach o,$(object-suffixes),\
|
|
|
|
|
$(common-objpfx)$(patsubst %,$(libtype$o),c)) \
|
|
|
|
|
$(addprefix $(objpfx),$(install-lib))
|
1995-02-18 09:27:10 +08:00
|
|
|
|
parent-clean: parent-mostlyclean common-clean
|
|
|
|
|
-rm -f $(addprefix $(common-objpfx),$(common-generated))
|
1995-03-21 12:26:12 +08:00
|
|
|
|
-rm -f $(addprefix $(objpfx),sysd-Makefile sysd-dirs sysd-rules)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
clean: parent-clean
|
|
|
|
|
# This is done this way rather than having `subdir_clean' be a
|
|
|
|
|
# dependency of this target so that libc.a will be removed before the
|
|
|
|
|
# subdirectories are dealt with and so they won't try to remove object
|
|
|
|
|
# files from it when it's going to be removed anyway.
|
|
|
|
|
@$(MAKE) subdir_clean no_deps=t
|
|
|
|
|
mostlyclean: parent-mostlyclean
|
|
|
|
|
@$(MAKE) subdir_mostlyclean no_deps=t
|
|
|
|
|
|
|
|
|
|
# The realclean target is just like distclean for the parent, but we want
|
|
|
|
|
# the subdirs to know the difference in case they care.
|
|
|
|
|
realclean distclean: parent-clean
|
|
|
|
|
# This is done this way rather than having `subdir_distclean' be a
|
|
|
|
|
# dependency of this target so that libc.a will be removed before the
|
|
|
|
|
# subdirectories are dealt with and so they won't try to remove object
|
|
|
|
|
# files from it when it's going to be removed anyway.
|
|
|
|
|
@$(MAKE) distclean-1 no_deps=t distclean-1=$@ avoid-generated=yes
|
|
|
|
|
|
|
|
|
|
# Subroutine of distclean and realclean.
|
|
|
|
|
distclean-1: subdir_$(distclean-1)
|
|
|
|
|
-rm -f $(config-generated)
|
1995-09-21 12:01:40 +08:00
|
|
|
|
-rm -f $(addprefix $(objpfx),config.status config.cache config.log)
|
|
|
|
|
-rm -f $(addprefix $(objpfx),config.make config-name.h config.h)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
ifdef objdir
|
|
|
|
|
-rm -f $(objpfx)Makefile
|
|
|
|
|
endif
|
|
|
|
|
-rm -f $(sysdep-$(distclean-1))
|
|
|
|
|
|
|
|
|
|
.PHONY: echo_subdirs
|
|
|
|
|
echo_subdirs:;@echo '$(subdirs)'
|
|
|
|
|
|
|
|
|
|
.PHONY: echo-distinfo parent_echo-distinfo
|
|
|
|
|
echo-distinfo: parent_echo-distinfo subdir_echo-distinfo
|
|
|
|
|
parent_echo-distinfo:
|
|
|
|
|
@echo $(addprefix +header+,$(headers)) \
|
|
|
|
|
$(addprefix +nodist+,$(generated))
|
1996-06-16 14:52:32 +08:00
|
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
# Make the distribution tarfile.
|
|
|
|
|
|
Tue May 28 04:38:10 1996 Ulrich Drepper <drepper@cygnus.com>
* limits.h: Change MB_LEN_MAX to 6. A 31-bit ISO 10646
character in UTF-8 encoding has that many bytes.
* locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
* locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
* locale/Makefile (routines): Add mb_cur_max.
* locale/mb_cur_max.c: New file. This function gets called
when the macro MB_CUR_MAX is used.
* locale/C-ctype.c: Initialize new mb_cur_max field.
* locale/localeinfo.h: Change magic value because of incompatible
change.
* locale/programs/ld-ctype.c: Determine value of mb_cur_max
according to current character set and write it out with the rest.
* stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore. Get value
according to currently used locale for catefory LC_CTYPE by
calling the function __ctype_get_mb_cur_max.
Tue May 28 03:27:46 1996 Ulrich Drepper <drepper@cygnus.com>
* FAQ: Fix some typos.
Tell that for Linux the kernel header files are necessary.
* PROJECTS: New file. List of open jobs for glibc.
* Makefile (distribute): Add PROJECTS.
* crypt/GNUmakefile (headers): New variable. Mention crypt.h.
* crypt/crypt.h: Header for crypt functions.
* elf/elf.h: Add some new constants from recent Cygnus ELF
header files.
* login/getutid_r.c: Test for correct type.
Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
_HAVE_UT_ID resp. are defined.
Make really compliant with specification.
* login/getutline_r.c, login/pututline_r.c: Don't depend on
ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
defined.
Make really compliant with specification.
* login/setutent_r.c: Don't depend on ut_type and ut_id unless
_HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
* login/login.c, login/logout.c, login/logwtmp.c: Complete
rewrite. Now based on getut*/setut* functions.
* stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
This prevented using this file in other GNU packages.
* sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
and _HAVE_UT_TV because struct utmp has these members.
* sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
* utmp.h: New file. Wrapper around login/utmp.h.
* elf/dl-error.c (struct catch): New type.
(catch): New static variable, struct catch *.
(catch_env, signalled_errstring, signalled_objname): Variables removed.
(_dl_signal_error): If CATCH is non-null, set its errstring and
objname members and jump to CATCH->env. If it is null, call
_dl_sysdep_fatal with a standard message.
* elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
No longer use _dl_catch_error.
1996-05-29 12:48:04 +08:00
|
|
|
|
distribute := README INSTALL FAQ NOTES NEWS PROJECTS \
|
1996-06-08 04:37:41 +08:00
|
|
|
|
COPYING.LIB COPYING ChangeLog ChangeLog.[0-9] \
|
1995-02-18 09:27:10 +08:00
|
|
|
|
Makefile Makeconfig Makerules Rules Make-dist MakeTAGS \
|
1995-03-18 02:42:51 +08:00
|
|
|
|
extra-lib.mk o-iterator.mk \
|
1995-02-18 09:27:10 +08:00
|
|
|
|
ansidecl.h mkinstalldirs move-if-change install-sh \
|
|
|
|
|
configure configure.in aclocal.m4 config.sub config.guess\
|
1996-06-08 04:37:41 +08:00
|
|
|
|
config.h.in config.make.in config-name.in Makefile.in \
|
1996-09-11 09:52:48 +08:00
|
|
|
|
autolock.sh munch-tmpl.c munch.awk \
|
1996-06-25 21:46:05 +08:00
|
|
|
|
sysdep.h set-hooks.h libc-symbols.h version.h shlib-versions \
|
|
|
|
|
rpm/Makefile rpm/template rpm/rpmrc
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
distribute := $(strip $(distribute))
|
|
|
|
|
generated := $(generated) stubs.h
|
|
|
|
|
|
|
|
|
|
README: README.template version.c ; # Make-dist should update README.
|
|
|
|
|
|
|
|
|
|
define format-me
|
|
|
|
|
@rm -f $@
|
|
|
|
|
makeinfo --no-validate --no-warn --no-headers $< -o $@
|
|
|
|
|
-chmod a-w $@
|
|
|
|
|
endef
|
|
|
|
|
INSTALL: manual/maint.texi; $(format-me)
|
|
|
|
|
NOTES: manual/creature.texi; $(format-me)
|
1996-06-16 14:52:32 +08:00
|
|
|
|
|
|
|
|
|
rpm/%: subdir_distinfo
|
|
|
|
|
$(MAKE) -C $(@D) subdirs='$(subdirs)' $(@F)
|