X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=stdlib%2FMakefile;h=54a95fda0553dd2d2341f0387c04a71253b83eaa;hp=3ea206f62301f57e5350409d2783c49c084b0c45;hb=bc170bfb521cda1fd54f329ef161fd3818d83f18;hpb=f828cf170a3159da155d08475de928f5d9ccd19e diff --git a/stdlib/Makefile b/stdlib/Makefile index 3ea206f623..54a95fda05 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. +# Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -32,10 +32,17 @@ routines := \ abs labs \ div ldiv \ mblen mbstowcs mbtowc wcstombs wctomb \ - random rand \ + random random_r rand \ + drand48 erand48 lrand48 nrand48 mrand48 jrand48 \ + srand48 seed48 lcong48 \ + drand48_r erand48_r lrand48_r nrand48_r mrand48_r jrand48_r \ + srand48_r seed48_r lcong48_r \ + drand48-iter \ strtol strtoul strtoq strtouq \ strtof strtod strtold \ - system + system \ + a64l l64a \ + rpmatch distribute := exit.h grouping.h tests := tst-strtol tst-strtod testmb testrand testsort testdiv @@ -43,13 +50,13 @@ tests := tst-strtol tst-strtod testmb testrand testsort testdiv # Several mpn functions from GNU MP are used by the strtod function. mpn-routines := add_1 add_n addmul_1 cmp divmod divmod_1 udiv_qrnnd \ - lshift rshift mod_1 mul mul_1 mul_n sub_n submul_1 + lshift rshift mod_1 mul mul_1 mul_n sub_n submul_1 mpn-headers = longlong.h gmp.h gmp-impl.h gmp-mparam.h asm-syntax.h routines := $(strip $(routines) $(mpn-routines)) \ dbl2mpn ldbl2mpn \ mpn2flt mpn2dbl mpn2ldbl -aux := mp_clz_tab fpioconst +aux := mp_clz_tab fpioconst distribute := $(distribute) $(mpn-headers) gen-mpn-copy fpioconst.h @@ -68,16 +75,18 @@ mpn-sysdep := $(addsuffix .c,$(mpn-routines)) \ $(addsuffix .S,$(mpn-routines)) \ $(addsuffix .s,$(mpn-routines)) gmp-mparam.h asm-syntax.h -mpn-try := $(addprefix $(gmp-srcdir)/mpn/*/,$(mpn-sysdep)) -mpn-found := $(wildcard $(mpn-try)) -mpn-found := $(filter-out $(patsubst %.S,%.s,$(filter %.s,$(mpn-found))),\ - $(mpn-found)) +mpn-try := $(addprefix $(gmp-srcdir)/mpn/*/,$(mpn-sysdep)) \ + $(addprefix $(gmp-srcdir)/mpn/*/*/,$(mpn-sysdep)) +mpn-found = $(wildcard $(mpn-try)) include mpn-copy.mk %.mk: gen-%; sh $< > $@ mpn-copy-1 := $(patsubst $(gmp-srcdir)/mpn/%,$(sysdep_dir)/%,$(mpn-found)) mpn-copy-sysdep := $(mpn-copy-sysdep) $(mpn-copy-1) +mpn-copy-sysdep := $(filter $(addsuffix %,\ + $(wildcard $(sort $(dir $(mpn-copy-sysdep))))), \ + $(mpn-copy-sysdep)) $(mpn-copy-1): $(sysdep_dir)/%: $(ignore gmp2glibc.sed) $(gmp-srcdir)/mpn/% $(gmp2glibc) @@ -91,11 +100,13 @@ chmod a-w $@-tmp mv -f $@-tmp $@ endef -mpn-copy = $(filter-out $(mpn-sysdep),$(mpn-headers) mp_clz_tab.c) +mpn-copy = $(filter-out $(mpn-sysdep),$(mpn-headers))# mp_clz_tab.c) $(mpn-copy): %: $(ignore gmp2glibc.sed) $(gmp-srcdir)/%; $(gmp2glibc) -.PHONY: copy-mpn clean-mpn +.PHONY: copy-mpn clean-mpn mpn-stuff +mpn-stuff: $(mpn-stuff) copy-mpn: $(mpn-stuff) + test ! -d CVS || cvs commit -m'Updated from $(gmp-srcdir)' $+ clean-mpn: rm -f $(mpn-stuff)