1995-03-17 19:42:51 +01:00
|
|
|
# This file is included several times in a row, once
|
|
|
|
# for each element of $(extra-libs). $(extra-libs-left)
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
lib := $(firstword $(extra-libs-left))
|
|
|
|
extra-libs-left := $(filter-out $(lib),$(extra-libs-left))
|
|
|
|
|
1995-04-01 11:07:31 +02:00
|
|
|
object-suffixes-$(lib) := $(filter-out $($(lib)-inhibit-o),$(object-suffixes))
|
|
|
|
|
1996-05-14 00:11:28 +02:00
|
|
|
ifneq (,$(object-suffixes-$(lib)))
|
|
|
|
|
1995-04-08 21:23:00 +02:00
|
|
|
# Make sure these are simply-expanded variables before we append to them,
|
1995-10-24 22:45:10 +01:00
|
|
|
# since we want the expressions we append to be expanded right now.
|
1995-04-08 21:23:00 +02:00
|
|
|
install-lib := $(install-lib)
|
|
|
|
extra-objs := $(extra-objs)
|
|
|
|
|
1995-03-17 19:42:51 +01:00
|
|
|
# Add each flavor of library to the lists of things to build and install.
|
1995-04-01 11:07:31 +02:00
|
|
|
install-lib += $(foreach o,$(object-suffixes-$(lib)),$(lib:lib%=$(libtype$o)))
|
Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
* time/Makefile (tests): Add test-tz.
* time/test-tz.c: New test.
* time/clocktest.c: Rewrite to test more meaningfully.
* sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
create_module, delete_module, get_kernel_syms, init_module,
klogctl.
* sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
instead of SYMLOOP_MAX, which is nowhere to be found.
* sysdeps/unix/sysv/linux/sys/msq_buf.h,
sysdeps/unix/sysv/linux/sys/sem_buf.h,
sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
control ops and datastructures.
* sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
I/O related functions.
* sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
daemon related functions/operations.
* sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
logging related functions/operations.
* sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
module related functions/operations.
* sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
for non-Alpha based Linux systems.
* sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
* sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
sys/io.h, sys/klog.h, and sys/kdaemon.h.
* sysdeps/unix/sysdep.h (END): Define empty END macro for
platforms that don't need some sort of end directive at the
end of functions.
* sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
syscall wrapper to allow correct generation of debugging
information.
* sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
directive for both ELF and ECOFF.
(ret): Delete macro. It was a dangerous macro and unnecessary
since the Alpha assemblers recognizes "ret" as a macro themselves.
* sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
ut_session to guarantee long alignment. This is important for
Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
This will all get cleaned up as programs start to use ut_tv
instead ut_time.
* sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
* sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
_setjmp.
* sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/llseek.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
.end directive.
* csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
function by having it contain a dummy function call.
* configure.in (config_machine): Don't make ELF the default for
Linux/Alpha just yet (use --with-elf instead).
(.init/.fini check): Generate .text to ensure function start and
end are in same section.
* sysdeps/unix/bsd/osf/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
break value, not just the low 32 bits to accomodate large
memories.
Tue May 28 10:46:04 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
dynamically resolve _end for initializing __curbrk, support the
brk(0) query idiom.
* sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
* sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
Sun May 26 22:17:38 1996 Richard Henderson <rth@tamu.edu>
* stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
Thu May 23 02:15:56 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
sys/klog.h, and sys/kdaemon.h.
* sysdeps/unix/sysv/linux/sys/io.h: New file.
* sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
* sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
* sysdeps/unix/alpha/sysdep.h (ret): Remove macro. It is
dangerous and unnecessary since both OSF/1 as and gas define "ret"
as a pseudo-instruction.
Sat Jun 1 17:18:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
them. Bug found by David Mosberger-Tang.
* sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
of PTR.
* extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
to work around Make bug when A contains var ref.
Fri May 31 18:27:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
* sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
strong names and [gs]etpgid as weak aliases.
* math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
1996-06-02 20:50:07 +02:00
|
|
|
extra-objs += $(foreach o,$(object-suffixes-$(lib)),\
|
|
|
|
$(patsubst %,%$o,$($(lib)-routines)))
|
1995-04-08 21:23:00 +02:00
|
|
|
alltypes-$(lib) := $(foreach o,$(object-suffixes-$(lib)),\
|
1996-05-14 22:30:25 +02:00
|
|
|
$(objpfx)$(patsubst %,$(libtype$o),\
|
1995-04-08 21:23:00 +02:00
|
|
|
$(lib:lib%=%)))
|
1995-03-17 19:42:51 +01:00
|
|
|
|
1995-10-31 07:54:40 +01:00
|
|
|
ifeq (,$($(lib)-no-lib-dep))
|
1995-03-17 19:42:51 +01:00
|
|
|
lib-noranlib: $(alltypes-$(lib))
|
1995-10-24 22:45:10 +01:00
|
|
|
else
|
|
|
|
others: $(alltypes-$(lib))
|
|
|
|
endif
|
1995-03-17 19:42:51 +01:00
|
|
|
|
1996-05-29 07:09:31 +02:00
|
|
|
# The linked shared library is never a dependent of lib-noranlib,
|
|
|
|
# because linking it will depend on libc.so already being built.
|
|
|
|
ifneq (,$(filter .so,$(object-suffixes-$(lib))))
|
|
|
|
others: $(objpfx)$(lib).so
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
1995-03-17 19:42:51 +01:00
|
|
|
# Use o-iterator.mk to generate a rule for each flavor of library.
|
|
|
|
define o-iterator-doit
|
1996-05-14 22:30:25 +02:00
|
|
|
$(objpfx)$(patsubst %,$(libtype$o),$(lib:lib%=%)): \
|
1995-03-17 19:42:51 +01:00
|
|
|
$($(lib)-routines:%=$(objpfx)%$o); $$(build-extra-lib)
|
|
|
|
endef
|
1995-04-01 11:07:31 +02:00
|
|
|
object-suffixes-left = $(object-suffixes-$(lib))
|
1995-04-24 11:00:07 +02:00
|
|
|
include $(patsubst %,$(..)o-iterator.mk,$(object-suffixes-$(lib)))
|
1996-05-14 00:11:28 +02:00
|
|
|
|
|
|
|
endif
|