From 4d7e773266e3c3f48566c86c0ad52d51c6454fd1 Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 5 Nov 1997 22:59:37 +0000 Subject: [PATCH] A foolish consistency... gen, net, and string all get MD sources specified by including a Makefile.inc from the appropriate MD directory. stdlib doesn't do that, but there's no reason that it shouldn't (and it'd be nice to eliminate the 'if's from the MI stdlib Makefile.inc). --- lib/libc/arch/alpha/stdlib/Makefile.inc | 3 +++ lib/libc/arch/arm32/stdlib/Makefile.inc | 3 +++ lib/libc/arch/i386/stdlib/Makefile.inc | 3 +++ lib/libc/arch/m68k/stdlib/Makefile.inc | 3 +++ lib/libc/arch/mips/stdlib/Makefile.inc | 3 +++ lib/libc/arch/ns32k/stdlib/Makefile.inc | 3 +++ lib/libc/arch/powerpc/stdlib/Makefile.inc | 3 +++ lib/libc/arch/sparc/stdlib/Makefile.inc | 3 +++ lib/libc/arch/vax/stdlib/Makefile.inc | 3 +++ lib/libc/stdlib/Makefile.inc | 21 ++++++--------------- 10 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 lib/libc/arch/alpha/stdlib/Makefile.inc create mode 100644 lib/libc/arch/arm32/stdlib/Makefile.inc create mode 100644 lib/libc/arch/i386/stdlib/Makefile.inc create mode 100644 lib/libc/arch/m68k/stdlib/Makefile.inc create mode 100644 lib/libc/arch/mips/stdlib/Makefile.inc create mode 100644 lib/libc/arch/ns32k/stdlib/Makefile.inc create mode 100644 lib/libc/arch/powerpc/stdlib/Makefile.inc create mode 100644 lib/libc/arch/sparc/stdlib/Makefile.inc create mode 100644 lib/libc/arch/vax/stdlib/Makefile.inc diff --git a/lib/libc/arch/alpha/stdlib/Makefile.inc b/lib/libc/arch/alpha/stdlib/Makefile.inc new file mode 100644 index 000000000000..0cddd9cda5d1 --- /dev/null +++ b/lib/libc/arch/alpha/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 22:59:37 cgd Exp $ + +SRCS+= abs.c div.c labs.c ldiv.c diff --git a/lib/libc/arch/arm32/stdlib/Makefile.inc b/lib/libc/arch/arm32/stdlib/Makefile.inc new file mode 100644 index 000000000000..25334e8c0d46 --- /dev/null +++ b/lib/libc/arch/arm32/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 22:59:45 cgd Exp $ + +SRCS+= abs.c div.c labs.c ldiv.c diff --git a/lib/libc/arch/i386/stdlib/Makefile.inc b/lib/libc/arch/i386/stdlib/Makefile.inc new file mode 100644 index 000000000000..21b27906d0f2 --- /dev/null +++ b/lib/libc/arch/i386/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 22:59:50 cgd Exp $ + +SRCS+= abs.S div.S labs.S ldiv.S diff --git a/lib/libc/arch/m68k/stdlib/Makefile.inc b/lib/libc/arch/m68k/stdlib/Makefile.inc new file mode 100644 index 000000000000..39db17dcb00d --- /dev/null +++ b/lib/libc/arch/m68k/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 22:59:54 cgd Exp $ + +SRCS+= abs.S div.c labs.c ldiv.c diff --git a/lib/libc/arch/mips/stdlib/Makefile.inc b/lib/libc/arch/mips/stdlib/Makefile.inc new file mode 100644 index 000000000000..ef3fd7903977 --- /dev/null +++ b/lib/libc/arch/mips/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 22:59:58 cgd Exp $ + +SRCS+= abs.c div.c labs.c ldiv.c diff --git a/lib/libc/arch/ns32k/stdlib/Makefile.inc b/lib/libc/arch/ns32k/stdlib/Makefile.inc new file mode 100644 index 000000000000..6e7b5f9873d0 --- /dev/null +++ b/lib/libc/arch/ns32k/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 23:00:04 cgd Exp $ + +SRCS+= abs.S div.c labs.c ldiv.c diff --git a/lib/libc/arch/powerpc/stdlib/Makefile.inc b/lib/libc/arch/powerpc/stdlib/Makefile.inc new file mode 100644 index 000000000000..8b8d3de659fa --- /dev/null +++ b/lib/libc/arch/powerpc/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 23:00:09 cgd Exp $ + +SRCS+= abs.c div.c labs.c ldiv.c diff --git a/lib/libc/arch/sparc/stdlib/Makefile.inc b/lib/libc/arch/sparc/stdlib/Makefile.inc new file mode 100644 index 000000000000..062dbcb7cb7c --- /dev/null +++ b/lib/libc/arch/sparc/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 23:00:15 cgd Exp $ + +SRCS+= abs.c div.c labs.c ldiv.c diff --git a/lib/libc/arch/vax/stdlib/Makefile.inc b/lib/libc/arch/vax/stdlib/Makefile.inc new file mode 100644 index 000000000000..b98ef219193d --- /dev/null +++ b/lib/libc/arch/vax/stdlib/Makefile.inc @@ -0,0 +1,3 @@ +# $NetBSD: Makefile.inc,v 1.1 1997/11/05 23:00:24 cgd Exp $ + +SRCS+= abs.c div.c labs.c ldiv.c diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc index 5dbd44cb25f7..b5e02b9ec009 100644 --- a/lib/libc/stdlib/Makefile.inc +++ b/lib/libc/stdlib/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.33 1997/07/15 00:42:29 kleink Exp $ +# $NetBSD: Makefile.inc,v 1.34 1997/11/05 23:00:30 cgd Exp $ # from: @(#)Makefile.inc 5.6 (Berkeley) 6/4/91 # stdlib sources @@ -13,20 +13,11 @@ SRCS+= _strtoq.c _strtouq.c a64l.c abort.c atexit.c atoi.c atof.c atol.c \ system.c _rand48.c drand48.c erand48.c jrand48.c lcong48.c lrand48.c \ mrand48.c nrand48.c seed48.c srand48.c qabs.c qdiv.c -.if (${MACHINE_ARCH} == "m68k") -SRCS+= abs.S div.c labs.c ldiv.c -.elif (${MACHINE_ARCH} == "i386") -SRCS+= abs.S div.S labs.S ldiv.S -.elif (${MACHINE_ARCH} == "ns32k") -SRCS+= abs.S div.c labs.c ldiv.c -.elif (${MACHINE_ARCH} == "vax") -SRCS+= abs.c div.c labs.c ldiv.c -.elif (${MACHINE_ARCH} == "alpha") -# XXX should be .S's -SRCS+= abs.c div.c labs.c ldiv.c -.else -SRCS+= abs.c div.c labs.c ldiv.c -.endif +# machine-dependent stdlib sources +# m-d Makefile.inc must include sources for: +# abs() div() labs() ldiv() + +.include "${.CURDIR}/arch/${MACHINE_ARCH}/stdlib/Makefile.inc" MAN+= abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 bsearch.3 \ calloc.3 div.3 exit.3 free.3 getenv.3 getopt.3 labs.3 ldiv.3 \