summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-10-16 14:58:30 +0000
committerbde <bde@FreeBSD.org>1997-10-16 14:58:30 +0000
commitd1bc3e7989dac636cb0d935dd11ab98278452972 (patch)
tree155eb983f939cb84362f34d955c15499a94788be /lib
parent8306d4d37d0b6da9cb301c277574a6acfacf0222 (diff)
downloadFreeBSD-src-d1bc3e7989dac636cb0d935dd11ab98278452972.zip
FreeBSD-src-d1bc3e7989dac636cb0d935dd11ab98278452972.tar.gz
Handle machine-dependent (stdlib) sources more automatically.
This fixes bugs in the manual handling. abs.[cS] was handled too specially and the wrong (.c) variant for each of div.[cS], labs.[cS] and ldiv.[cS] was added to SRCS. This caused the .c variant to be used if `depend' was made and the .S version to be used otherwise.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/i386/stdlib/Makefile.inc4
-rw-r--r--lib/libc/stdlib/Makefile.inc4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/i386/stdlib/Makefile.inc b/lib/libc/i386/stdlib/Makefile.inc
index 65ce348..16a9039 100644
--- a/lib/libc/i386/stdlib/Makefile.inc
+++ b/lib/libc/i386/stdlib/Makefile.inc
@@ -1,4 +1,4 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
-# $Id$
+# $Id: Makefile.inc,v 1.5 1997/02/22 14:58:55 peter Exp $
-SRCS+= abs.S
+MDSRCS+=abs.S div.S labs.S ldiv.S
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index 120ea21..23af25e 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -1,10 +1,10 @@
# from @(#)Makefile.inc 8.3 (Berkeley) 2/4/95
-# $Id: Makefile.inc,v 1.10 1997/07/01 18:39:31 phk Exp $
+# $Id: Makefile.inc,v 1.11 1997/10/15 16:16:13 bde Exp $
# machine-independent stdlib sources
.PATH: ${.CURDIR}/../libc/${MACHINE}/stdlib ${.CURDIR}/../libc/stdlib
-SRCS+= abort.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c \
+MISRCS+=abort.c abs.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c \
exit.c getenv.c getopt.c getsubopt.c strhash.c heapsort.c labs.c \
ldiv.c malloc.c merge.c putenv.c qsort.c radixsort.c rand.c random.c \
realpath.c setenv.c strtod.c strtol.c strtoq.c strtoul.c \
OpenPOWER on IntegriCloud