Makefile.inc revision 39191
185909Simp#	from @(#)Makefile.inc	8.3 (Berkeley) 2/4/95
285909Simp#	$Id: Makefile.inc,v 1.15 1998/05/08 05:41:56 jb Exp $
3122116Sbde
4122116Sbde# machine-independent stdlib sources
5122116Sbde.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib ${.CURDIR}/../libc/stdlib
6180012Sru
7240468SbrooksMISRCS+=abort.c abs.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c \
8160440Sobrien	exit.c getenv.c getopt.c getsubopt.c heapsort.c labs.c ldiv.c \
9210151Simp	malloc.c merge.c putenv.c qsort.c radixsort.c rand.c random.c \
10239272Sgonzo	realpath.c setenv.c strhash.c strtol.c strtoq.c strtoul.c \
11210151Simp	strtouq.c system.c reallocf.c
1285909Simp
1385909Simp.if ${MACHINE_ARCH} == "alpha"
1485909Simp#  XXX Temporary until the assumption that a long is 32-bits is resolved
1585909Simp#  XXX FreeBSD's code. NetBSD kludged this with Long = int32_t and
16175888Simp#  XXX ULong = u_int32_t
17175888SimpSRCS+=	netbsd_strtod.c
1885909Simp.else
19218538SimpSRCS+=	strtod.c
2085909Simp.endif
2191512Sobrien
22240451Snp# machine-dependent stdlib sources
23116341Smarkm.include "${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc"
2485909Simp
2585909Simp.if ${LIB} == "c"
2685909SimpMAN3+=	abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 bsearch.3 \
2785909Simp	div.3 exit.3 getenv.3 getopt.3 getsubopt.3 labs.3 \
28220863Sdim	ldiv.3 malloc.3 memory.3 qsort.3 radixsort.3 rand.3 random.3 \
29140606Sobrien	realpath.3 strtod.3 strtol.3 strtoul.3 system.3
30187103Sgnn
31220863SdimMLINKS+=getenv.3 putenv.3 getenv.3 setenv.3 getenv.3 unsetenv.3
32224882SnwhitehornMLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3
33224882SnwhitehornMLINKS+=rand.3 srand.3
34224882SnwhitehornMLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \
35140606Sobrien	random.3 srandomdev.3
36220863SdimMLINKS+=strtol.3 strtoq.3
37224882SnwhitehornMLINKS+=strtoul.3 strtouq.3
38220863SdimMLINKS+=malloc.3 calloc.3 malloc.3 free.3 malloc.3 realloc.3 malloc.3 reallocf.3
39240468Sbrooks.endif
40127204Sobrien