xref: /original-bsd/lib/libc/stdlib/Makefile.inc (revision 0a33e010)
1#	@(#)Makefile.inc	5.1 (Berkeley) 06/23/90
2
3# stdlib sources
4.PATH: ${.CURDIR}/${MACHINE}/stdlib ${.CURDIR}/stdlib
5
6SRCS+=	abort.c atexit.c atoi.c atol.c bsearch.c calloc.c div.c exit.c \
7	getenv.c labs.c ldiv.c malloc.c putenv.c qsort.c rand.c setenv.c \
8	strtol.c strtoul.c system.c
9
10.if   (${MACHINE} == "hp300")
11SRCS+=	abs.s atof.c
12.elif (${MACHINE} == "i386")
13SRCS+=	abs.s atof.c
14.elif (${MACHINE} == "tahoe")
15SRCS+=	abs.s atof.s
16.elif (${MACHINE} == "vax")
17SRCS+=	abs.s atof.s
18.endif
19
20MAN3+=	abort.0 abs.0 atexit.0 atof.0 atoi.0 atol.0 bsearch.0 div.0 exit.0 \
21	getenv.0 labs.0 ldiv.0 malloc.0 qsort.0 rand.0 strtod.0 strtol.0 \
22	strtoul.0 system.0
23
24MLINKS+=malloc.3 alloca.3 malloc.3 calloc.3 malloc.3 free.3 malloc.3 realloc.3
25MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
26MLINKS+=rand.3 srand.3
27