Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.

Change the arch files only include the .S files.
This adds imaxdiv() to some archs where it was missing.
This commit is contained in:
dsl 2009-07-31 20:39:59 +00:00
parent 288dd7d670
commit 10ad5ffa71
15 changed files with 31 additions and 83 deletions

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.4 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c imaxdiv.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.5 2009/07/31 20:39:59 dsl Exp $

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.3 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c imaxdiv.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.4 2009/07/31 20:39:59 dsl Exp $

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.3 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c imaxdiv.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.4 2009/07/31 20:39:59 dsl Exp $

View File

@ -1,13 +1,5 @@
# $NetBSD: Makefile.inc,v 1.6 2008/08/04 21:29:28 matt Exp $
# $NetBSD: Makefile.inc,v 1.7 2009/07/31 20:39:59 dsl Exp $
# objects built from assembler sources (need lint stubs)
# objects built from assembler sources
SRCS+= abs.S div.S labs.S ldiv.S llabs.S
# objects built from C sources
SRCS+= erand48_ieee754.c
SRCS.i386.stdlib=Lint_abs.c Lint_labs.c Lint_llabs.c Lint_imaxabs.c
SRCS.i386.stdlib+=Lint_div.c Lint_ldiv.c
LSRCS+= ${SRCS.i386.stdlib}
DPSRCS+= ${SRCS.i386.stdlib}
CLEANFILES+= ${SRCS.i386.stdlib}
NO_SRCS+= imaxabs.c imaxdiv.c

View File

@ -1,6 +1 @@
# $NetBSD: Makefile.inc,v 1.3 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.4 2009/07/31 20:39:59 dsl Exp $

View File

@ -1,5 +1,4 @@
# $NetBSD: Makefile.inc,v 1.5 2006/03/22 22:03:58 drochner Exp $
# $NetBSD: Makefile.inc,v 1.6 2009/07/31 20:40:00 dsl Exp $
SRCS+= abs.S div.c ldiv.c llabs.S
SRCS+= erand48_ieee754.c
SRCS+= abs.S llabs.S
NO_SRCS+= labs.c imaxabs.c

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.4 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.5 2009/07/31 20:40:00 dsl Exp $

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.4 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.5 2009/07/31 20:40:00 dsl Exp $

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.2 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.3 2009/07/31 20:40:00 dsl Exp $

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.4 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.5 2009/07/31 20:40:00 dsl Exp $

View File

@ -1,5 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 2006/03/22 22:03:58 drochner Exp $
# $NetBSD: Makefile.inc,v 1.4 2009/07/31 20:40:00 dsl Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.S
SRCS+= erand48_ieee754.c
SRCS+= llabs.S
NO_SRCS+= imaxabs.c

View File

@ -1,5 +1 @@
# $NetBSD: Makefile.inc,v 1.4 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c
SRCS+= erand48_ieee754.c
# $NetBSD: Makefile.inc,v 1.5 2009/07/31 20:40:00 dsl Exp $

View File

@ -1,5 +1,4 @@
# $NetBSD: Makefile.inc,v 1.4 2008/08/04 21:29:28 matt Exp $
SRCS+= abs.c div.c labs.c ldiv.c llabs.c imaxabs.c
# $NetBSD: Makefile.inc,v 1.5 2009/07/31 20:40:00 dsl Exp $
SRCS+= erand48.c
NO_SRCS+= erand48_ieee754.c

View File

@ -1,12 +1,5 @@
# $NetBSD: Makefile.inc,v 1.4 2008/08/04 21:29:29 matt Exp $
# $NetBSD: Makefile.inc,v 1.5 2009/07/31 20:40:00 dsl Exp $
# objects built from assembler sources (need lint stubs)
# objects built from assembler sources
SRCS+= abs.S div.S labs.S ldiv.S
SRCS+= erand48_ieee754.c
SRCS.x86_64.stdlib=Lint_abs.c Lint_labs.c Lint_llabs.c Lint_imaxabs.c
SRCS.x86_64.stdlib+=Lint_div.c Lint_ldiv.c
LSRCS+= ${SRCS.x86_64.stdlib}
DPSRCS+= ${SRCS.x86_64.stdlib}
CLEANFILES+= ${SRCS.x86_64.stdlib}
NO_SRCS+= llabs.c imaxabs.c imaxdiv.c

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.72 2009/07/20 17:03:37 joerg Exp $
# $NetBSD: Makefile.inc,v 1.73 2009/07/31 20:39:59 dsl Exp $
# from: @(#)Makefile.inc 8.3 (Berkeley) 2/4/95
# stdlib sources
@ -17,6 +17,13 @@ SRCS+= _rand48.c \
strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c \
unsetenv.c strfmon.c
# These are often replaced by MD .S versions
SRCS+= abs.c labs.c llabs.c imaxabs.c
SRCS+= div.c ldiv.c imaxdiv.c
# This might be replaced by erand48.c
SRCS+= erand48_ieee754.c
.if (${USE_JEMALLOC} != "no")
SRCS+= jemalloc.c
.else
@ -28,10 +35,6 @@ CPPFLAGS.strtol.c+= -I${LIBCDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtoq.c+= -I${LIBCDIR}/../../common/lib/libc/stdlib
CPPFLAGS.strtouq.c+= -I${LIBCDIR}/../../common/lib/libc/stdlib
# machine-dependent stdlib sources
# m-d Makefile.inc must include sources for:
# abs() div() labs() ldiv() llabs() imaxabs() imaxdiv()
.include "${ARCHDIR}/stdlib/Makefile.inc"
MAN+= a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \