1996-02-08 02:10:15 +00:00
|
|
|
|
# Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
|
1995-02-18 01:27:10 +00: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.
|
|
|
|
|
|
|
|
|
|
ifdef in-Makerules
|
|
|
|
|
|
1995-09-22 18:32:19 +00:00
|
|
|
|
subdirs := $(filter-out sunrpc,$(subdirs)) # XXX skip broken dirs
|
|
|
|
|
|
1995-02-18 01:27:10 +00:00
|
|
|
|
# Look for header files in hurd/ under the top-level library source directory.
|
|
|
|
|
includes += -I$(..)hurd
|
|
|
|
|
|
|
|
|
|
# Do not use any assembly code from sysdeps/unix (and subdirectories).
|
|
|
|
|
# This bypasses all the system call stubs and uses any existing posix or
|
|
|
|
|
# generic C files instead.
|
|
|
|
|
inhibit-sysdep-asm += unix*
|
1996-02-08 02:10:15 +00:00
|
|
|
|
inhibit-unix-syscalls = yes
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
|
# Don't try to generate anything from the installed Unix system and its
|
|
|
|
|
# libraries. That is only of use when building for a Unix system, so as to
|
|
|
|
|
# be compatible with some existing binaries for that system.
|
|
|
|
|
inhibit-glue = yes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq (,$(filter mach hurd,$(subdir)))
|
|
|
|
|
# Subdirectories other than hurd/ might use the generated Hurd headers.
|
|
|
|
|
# So make sure we get a chance to run in hurd/ to make them before all else.
|
|
|
|
|
# (But we don't want to do this in mach/, because hurd/ needs some things
|
|
|
|
|
# there, and we know mach/ doesn't need anything from hurd/.)
|
|
|
|
|
|
|
|
|
|
ifdef objpfx
|
|
|
|
|
hurd-objpfx = $(objpfx)
|
|
|
|
|
else
|
|
|
|
|
hurd-objpfx = $(..)hurd/
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# These are all the generated headers that <hurd.h> includes.
|
|
|
|
|
before-compile += $(patsubst %,$(hurd-objpfx)hurd/%.h,io fs process)
|
|
|
|
|
$(patsubst %,$(hurd-objpfx)hurd/%.%,io fs process):
|
|
|
|
|
$(MAKE) -C $(..)hurd generated no_deps=t
|
|
|
|
|
endif
|
|
|
|
|
|
1996-06-04 01:41:11 +00:00
|
|
|
|
# Generate errnos.h from the section of the manual that lists all the errno
|
|
|
|
|
# codes.
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
|
errno.texinfo = $(..)manual/errno.texi
|
|
|
|
|
|
|
|
|
|
hurd = $(..)sysdeps/mach/hurd
|
|
|
|
|
|
1996-05-12 16:38:08 +00:00
|
|
|
|
define mach-errno-h
|
|
|
|
|
($(foreach h,mach/message.h \
|
|
|
|
|
mach/kern_return.h \
|
|
|
|
|
mach/mig_errors.h \
|
|
|
|
|
device/device_types.h,\
|
|
|
|
|
echo '#include <$h>';\
|
|
|
|
|
))
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
# We use the compiler to generate a list of absolute file names for
|
|
|
|
|
# the headers we want to search for Mach error codes, listed above (and
|
|
|
|
|
# incidentally, all other headers those include).
|
|
|
|
|
-include $(common-objpfx)errnos.d
|
|
|
|
|
$(common-objpfx)errnos.d: $(mach-errnos-deps)
|
|
|
|
|
$(mach-errno-h) | \
|
|
|
|
|
$(CC) $(CPPFLAGS) -M -x c - | \
|
Thu May 30 11:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* po/header.pot: Replace with exact boilerplate pinard dictates.
* sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
errno and the check that jumped to it.
* sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
Thu May 30 03:21:57 1996 Ulrich Drepper <drepper@cygnus.com>
* FAQ: Document need of gperf program for developers.
* elf/elf.h: Fix typos in comments.
* libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
prototypes for `ctermid' and `cuserid'.
* locale/programs/locale.c: Switch to user selected locale
before printing variables.
* math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
and long-c-routines. Only if the `long double' data type is
available we need to compile the functions.
(libm-routines): Add $(long-m-routines).
(routines): Remove isinfl, isnanl. Use new file s_isinfl and
s_isnanl instead if `long double' is available.
* math/math.h: Include <mathcalls.h> again to define `long double'
functions.
* math/math_private.h: Define data types, prototypes and access
macros for `long double'.
* stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
[GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
calls __strto{,u}q_internal.
* stdlib/strfmon.c: Replace PTR by `void *'.
* stdlib/strtoq.c: Define strtoll as weak alias.
* stdlib/strtouq.c: Define strtoull as weak alias.
* string/tester.c: Correct `strsep' test.
* sysdeps/generic/strsep.c: Make compatible with BSD version.
Trailing characters of skip set are not skipped. In this case
empty tokens are returned.
* sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed. We
now use the versions part of libm.
* sysdeps/i386/strsep.S: Removed. Generic C version is of
similar speed.
* sysdeps/i386/strtok.S: Remove support for `strsep'.
* sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
New i387 specific math functions implementing `long double'
versions.
* sysdeps/libm-ieee754/s_ceill.c,
sysdeps/libm-ieee754/s_copysignl.c,
sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
sysdeps/libm-ieee754/s_isnanl.c,
sysdeps/libm-ieee754/s_nextafterl.c,
sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
versions of libm functions.
* sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
Intel FPU nonsense.
* sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
handling of local variables. The old version created a stack
frame but stored the values outside.
* sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
[!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
* login/pututline_r.c: Include sys/stat.h. Fix typos.
according to currently used locale for category LC_CTYPE by
inet_nsap_ntoa. Now in <arpa/inet.h>.
_IO_dup2 to contain complete parameter list.
1996-05-30 16:12:42 +00:00
|
|
|
|
sed $(sed-remove-objpfx) -e 's,- *:,mach-errnos-deps :=,' > $@t
|
1996-05-12 16:38:08 +00:00
|
|
|
|
mv -f $@t $@
|
|
|
|
|
|
|
|
|
|
$(hurd)/errnos.h: $(common-objpfx)stamp-errnos ;
|
|
|
|
|
$(common-objpfx)stamp-errnos: $(hurd)/errnos.awk $(errno.texinfo) \
|
|
|
|
|
$(mach-errnos-deps)
|
1995-02-18 01:27:10 +00:00
|
|
|
|
gawk -f $^ > $(hurd)/errnos.h-tmp
|
|
|
|
|
# Make it unwritable so noone will edit it by mistake.
|
|
|
|
|
-chmod a-w $(hurd)/errnos.h-tmp
|
|
|
|
|
./$(..)move-if-change $(hurd)/errnos.h-tmp $(hurd)/errnos.h
|
1996-07-09 11:21:20 +00:00
|
|
|
|
test ! -d CVS || \
|
|
|
|
|
(cd $(hurd); cvs commit -m'Regenerated from $^' errnos.h)
|
1995-02-18 01:27:10 +00:00
|
|
|
|
touch $@
|
1996-05-12 16:38:08 +00:00
|
|
|
|
generated += errnos.d stamp-errnos
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
|
# We install the real libc.a as libcrt.a and as libc.a we install a linker
|
|
|
|
|
# script which does -( -lcrt -lmachuser -lhurduser -).
|
|
|
|
|
|
|
|
|
|
libc-name = crt
|
|
|
|
|
|
|
|
|
|
ifeq (,$(subdir))
|
|
|
|
|
install-others += $(libdir)/libc.a
|
|
|
|
|
$(libdir)/libc.a: $(hurd)/libc-ldscript; $(do-install)
|
|
|
|
|
endif
|
1995-04-24 09:00:07 +00:00
|
|
|
|
|
|
|
|
|
# For the shared library, we don't need to do the linker script machination.
|
|
|
|
|
# Instead, we specify the required libraries when building the shared object.
|
1996-07-03 18:51:10 +00:00
|
|
|
|
$(common-objpfx)libc.so: $(firstword $(objdir) $(..)mach)/libmachuser.so \
|
|
|
|
|
$(firstword $(objdir) $(..)hurd)/libhurduser.so
|
1996-06-16 01:27:54 +00:00
|
|
|
|
ifndef objpfx
|
|
|
|
|
rpath-link += $(..)mach:$(..)hurd
|
|
|
|
|
endif
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif # in-Makerules
|