1999-07-19 Andreas Schwab <schwab@suse.de>

* libio/Makefile (routines): Add fwprintf.

	PowerPC has own version of w_sqrt.c and w_sqrtf.c.
	* math/w_sqrt.c: Moved to ...
	* sysdeps/generic/w_sqrt.c: ... here.
	* math/w_sqrtf.c: Moved to ...
	* sysdeps/generic/w_sqrtf.c: ... here.

	* Make-dist (generic-dirs): New variable.
	(try-sysdeps, +sysdep-names): Use it.
	* extra-lib.mk (all-$(lib)-routines): New variable.  Use it
	instead of $(lib)-routines.
	* elf/Makefile (distribute): Add dl-cache.h.
	* db2/Makefile (distribute): Add all new files.
	* iconvdata/Makefile (distribute): Don't distribute CVS
	directory.
	* math/Makefile (distribute): Remove machine/endian.h, add
	math_ldbl.h.
	* stdio-common/Makefile (distribute): Add _itowa.h.
	* sysdeps/generic/Dist: Remove make_siglist.c, add siglist.h.
	* sysdeps/gnu/Dist: Add eval.c
	* sysdeps/gnu/Makefile (libdl-sysdep_routines) [$(subdir) =
	dlfcn]: Add to this instead of libdl-routines.
	* sysdeps/ieee754/ldbl-128/Dist: New file.
	* sysdeps/mach/hurd/Dist: Add siglist.h
	* sysdeps/unix/sysv/linux/Dist: Add kernel-features.h.
This commit is contained in:
Andreas Schwab 1999-07-20 08:19:37 +00:00
parent 3944f99e84
commit b3ed821981
16 changed files with 62 additions and 19 deletions

View File

@ -1,3 +1,32 @@
1999-07-19 Andreas Schwab <schwab@suse.de>
* libio/Makefile (routines): Add fwprintf.
PowerPC has own version of w_sqrt.c and w_sqrtf.c.
* math/w_sqrt.c: Moved to ...
* sysdeps/generic/w_sqrt.c: ... here.
* math/w_sqrtf.c: Moved to ...
* sysdeps/generic/w_sqrtf.c: ... here.
* Make-dist (generic-dirs): New variable.
(try-sysdeps, +sysdep-names): Use it.
* extra-lib.mk (all-$(lib)-routines): New variable. Use it
instead of $(lib)-routines.
* elf/Makefile (distribute): Add dl-cache.h.
* db2/Makefile (distribute): Add all new files.
* iconvdata/Makefile (distribute): Don't distribute CVS
directory.
* math/Makefile (distribute): Remove machine/endian.h, add
math_ldbl.h.
* stdio-common/Makefile (distribute): Add _itowa.h.
* sysdeps/generic/Dist: Remove make_siglist.c, add siglist.h.
* sysdeps/gnu/Dist: Add eval.c
* sysdeps/gnu/Makefile (libdl-sysdep_routines) [$(subdir) =
dlfcn]: Add to this instead of libdl-routines.
* sysdeps/ieee754/ldbl-128/Dist: New file.
* sysdeps/mach/hurd/Dist: Add siglist.h
* sysdeps/unix/sysv/linux/Dist: Add kernel-features.h.
1999-07-18 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/sparc/Dist: Add ldd-rewrite.sed.

View File

@ -90,14 +90,17 @@ sources += $(addsuffix .c,$(elided-routines) \
$(filter %.c %.S %.s %.h %.sub,$(distribute))
foo:=$(shell echo '+maybe-sysdeps=$(+maybe-sysdeps)'>&2)
# Find all the files that have a generic version.
try-sysdeps := $(foreach dir,$(..)sysdeps/generic $(..)sysdeps/libm-ieee754,\
generic-dirs = $(..)sysdeps/generic $(..)sysdeps/ieee754 \
$(..)sysdeps/ieee754/flt-32 $(..)sysdeps/ieee754/dbl-64 \
$(..)sysdeps/ieee754/ldbl-96 $(..)sysdeps/ieee754/ldbl-128
try-sysdeps := $(foreach dir,$(generic-dirs),\
$(addprefix $(dir)/,$(+maybe-sysdeps)))
foo:=$(shell echo 'try-sysdeps=$(try-sysdeps)'>&2)
+sysdeps := $(wildcard $(try-sysdeps))
foo:=$(shell echo 'generic +sysdeps=$(+sysdeps)'>&2)
+sysdep-names := $(sort $(patsubst $(..)sysdeps/generic/%,%,\
$(patsubst $(..)sysdeps/libm-ieee754/%,%,\
$(+sysdeps))))
+sysdep-names := $(sort $(foreach dir, $(generic-dirs),\
$(patsubst $(dir)/%,%,\
$(filter $(dir)/%,$(+sysdeps)))))
foo:=$(shell echo '+sysdep-names=$(+sysdep-names)' >&2)
ifdef subdir-dirs

View File

@ -37,8 +37,8 @@ distribute = db_int.h config.h compat.h clib/getlong.c btree/btree.src \
txn/txn.src README LICENSE \
$(addprefix include/,btree.h btree_auto.h btree_ext.h \
clib_ext.h common_ext.h cxx_int.h \
db_am.h db_auto.h \
db_cxx.h db_dispatch.h db_ext.h \
db_185.h.src db_am.h db_auto.h db_cxx.h \
db_dispatch.h db_ext.h db_join.h \
db_page.h db_shash.h db_swap.h \
hash.h hash_auto.h hash_ext.h lock.h \
lock_ext.h log.h log_auto.h log_ext.h \
@ -46,7 +46,10 @@ distribute = db_int.h config.h compat.h clib/getlong.c btree/btree.src \
shqueue.h txn.h txn_auto.h txn_ext.h \
os.h os_jump.h xa.h xa_ext.h) \
$(addprefix mutex/,x86.gcc uts4_cc.s sparc.gcc parisc.gcc \
README 68020.gcc tsl_parisc.s sco.cc)
README 68020.gcc tsl_parisc.s sco.cc) \
$(addprefix progs/db_printlog/,README commit.awk count.awk \
pgno.awk range.awk status.awk \
txn.awk)
vpath %.c $(subdir-dirs)

View File

@ -36,7 +36,7 @@ elide-routines.os = $(dl-routines) dl-support enbl-secure
# interpreter and operating independent of libc.
rtld-routines := rtld $(dl-routines) dl-sysdep dl-environ dl-minimal
distribute := $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.h \
dl-hash.h soinit.c sofini.c ldd.bash.in \
dl-cache.h dl-hash.h soinit.c sofini.c ldd.bash.in \
genrtldtbl.awk atomicity.h dl-procinfo.h ldsodefs.h \
dl-librecon.h interp.c sln.c dl-dst.h hp-timing.h \
do-lookup.h sprof.c gen-trusted-dirs.awk \

View File

@ -3,7 +3,8 @@
# is initialized first to $(extra-libs) so that with each
# inclusion, we advance $(lib) to the next library name (e.g. libfoo).
# The variable $($(lib)-routines) defines the list of modules
# to be included in that library.
# to be included in that library. A sysdep Makefile can add to
# $(lib)-sysdep_routines to include additional modules.
lib := $(firstword $(extra-libs-left))
extra-libs-left := $(filter-out $(lib),$(extra-libs-left))
@ -17,14 +18,17 @@ ifneq (,$(object-suffixes-$(lib)))
install-lib := $(install-lib)
extra-objs := $(extra-objs)
# The modules that go in $(lib).
all-$(lib)-routines := $($(lib)-routines) $($(lib)-sysdep_routines)
# Add each flavor of library to the lists of things to build and install.
install-lib += $(foreach o,$(object-suffixes-$(lib)),$(lib:lib%=$(libtype$o)))
extra-objs += $(foreach o,$(object-suffixes-$(lib):.os=),\
$(patsubst %,%$o,$(filter-out \
$($(lib)-shared-only-routines),\
$($(lib)-routines))))
$(all-$(lib)-routines))))
ifneq (,$(filter .os,$(object-suffixes-$(lib))))
extra-objs += $($(lib)-routines:=.os)
extra-objs += $(all-$(lib)-routines:%=%.os)
endif
alltypes-$(lib) := $(foreach o,$(object-suffixes-$(lib)),\
$(objpfx)$(patsubst %,$(libtype$o),\
@ -52,7 +56,7 @@ define o-iterator-doit
$(objpfx)$(patsubst %,$(libtype$o),$(lib:lib%=%)): \
$(patsubst %,$(objpfx)%$o,\
$(filter-out $($(lib)-shared-only-routines),\
$($(lib)-routines))); \
$(all-$(lib)-routines))); \
$$(build-extra-lib)
endef
object-suffixes-left = $(object-suffixes-$(lib):.os=)
@ -61,7 +65,7 @@ endif
ifneq (,$(filter .os,$(object-suffixes-$(lib))))
$(objpfx)$(patsubst %,$(libtype.os),$(lib:lib%=%)): \
$($(lib)-routines:%=$(objpfx)%.os)
$(all-$(lib)-routines:%=$(objpfx)%.os)
$(build-extra-lib)
endif

View File

@ -81,8 +81,8 @@ LDFLAGS-libCNS.so = -Wl,-soname,$(@F)
distribute := gconv-modules extra-module.mk gap.awk gaptab.awk \
gen-8bit.sh gen-8bit-gap.sh gen-8bit-gap-1.sh \
TESTS $(wildcard testdata/*) run-iconv-test.sh \
8bit-generic.c 8bit-gap.c \
TESTS $(filter-out testdata/CVS%, $(wildcard testdata/*)) \
run-iconv-test.sh 8bit-generic.c 8bit-gap.c \
ansi_x3.110.c asmo_449.c baltic.c big5.c cp737.c cp737.h \
cp775.c cp775.h ibm874.c cns11643.c cns11643.h \
cns11643l1.c cns11643l1.h cp1250.c cp1251.c cp1252.c cp1253.c \

View File

@ -26,7 +26,7 @@ headers := math.h bits/mathcalls.h bits/mathinline.h bits/huge_val.h \
fenv.h bits/fenv.h bits/mathdef.h tgmath.h
# Internal header files.
distribute := math_private.h machine/asm.h machine/endian.h
distribute := math_ldbl.h math_private.h machine/asm.h
# FPU support code.
aux := setfpucw fpu_control

View File

@ -42,7 +42,7 @@ include ../Makeconfig
install-others := $(inst_includedir)/bits/stdio_lim.h
aux := errlist siglist
distribute := _itoa.h printf-parse.h stdio_lim.h.in
distribute := _itoa.h _itowa.h printf-parse.h stdio_lim.h.in
tests := tst-printf tstscanf test_rdwr test-popen tstgetln test-fseek \
temptest tst-fileno test-fwrite tst-ungetc tst-ferror \

View File

@ -1,4 +1,3 @@
make_siglist.c
signame.c
signame.h
det_endian.c
@ -15,3 +14,4 @@ setutxent.c
updwtmpx.c
utmpxname.c
bits/libc-tsd.h
siglist.h

View File

@ -1,4 +1,5 @@
errlist.awk
eval.c
utmpx.h
bits/utmpx.h
netinet/tcp.h

View File

@ -48,5 +48,5 @@ endif
ifeq ($(subdir),dlfcn)
libdl-routines += eval
libdl-sysdep_routines += eval
endif

View File

@ -0,0 +1 @@
ieee754.h

View File

@ -12,3 +12,4 @@ net/if_arp.h
net/if_ether.h
net/if_ppp.h
net/route.h
siglist.h

View File

@ -4,6 +4,7 @@ errlist.h
getdirentries.c
getdirentries64.c
init-first.h
kernel-features.h
kernel_sigaction.h
kernel_stat.h
kernel_termios.h