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.
This commit is contained in:
bde 1997-10-16 14:58:30 +00:00
parent 8306d4d37d
commit d1bc3e7989
2 changed files with 4 additions and 4 deletions
lib/libc
i386/stdlib
stdlib

@ -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

@ -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 \