Makefile.inc revision 1.71
11.71Smrg#	$NetBSD: Makefile.inc,v 1.71 2008/10/26 07:43:07 mrg Exp $
21.35Sperry#	from: @(#)Makefile.inc	8.3 (Berkeley) 2/4/95
31.1Scgd
41.1Scgd# stdlib sources
51.41Sdrochner.PATH: ${ARCHDIR}/stdlib ${.CURDIR}/stdlib
61.1Scgd
71.70SjoergSRCS+=	_rand48.c \
81.45Skleink	a64l.c abort.c atexit.c atof.c atoi.c atol.c atoll.c \
91.66Sad	bsearch.c drand48.c exit.c \
101.50Scgd	getenv.c getopt.c getopt_long.c getsubopt.c \
111.69Smatt	hcreate.c heapsort.c imaxdiv.c insque.c jrand48.c l64a.c lldiv.c \
121.66Sad	lcong48.c lrand48.c lsearch.c merge.c mrand48.c \
131.56Schristos	nrand48.c putenv.c qabs.c qdiv.c qsort.c posix_openpt.c pty.c \
141.59Sdrochner	radixsort.c rand.c rand_r.c random.c remque.c \
151.63Skleink	seed48.c setenv.c srand48.c strsuftoll.c \
161.52Skleink	strtoimax.c strtol.c strtoll.c strtoq.c strtoul.c strtoull.c \
171.54Sdrochner	strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c \
181.60Schristos	unsetenv.c strfmon.c
191.1Scgd
201.66Sad.if (${USE_JEMALLOC} != "no")
211.66SadSRCS+=	jemalloc.c
221.66Sad.else
231.68SchristosSRCS+=	malloc.c
241.66Sad.endif
251.66Sad
261.71SmrgCPPFLAGS.strtoimax.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
271.71SmrgCPPFLAGS.strtol.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
281.71SmrgCPPFLAGS.strtoq.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
291.71SmrgCPPFLAGS.strtouq.c+=	-I${LIBCDIR}/../../common/lib/libc/stdlib
301.70Sjoerg
311.34Scgd# machine-dependent stdlib sources
321.34Scgd# m-d Makefile.inc must include sources for:
331.69Smatt#       abs() div() labs() ldiv() llabs() imaxabs() imaxdiv()
341.34Scgd
351.41Sdrochner.include "${ARCHDIR}/stdlib/Makefile.inc"
361.1Scgd
371.45SkleinkMAN+=	a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \
381.69Smatt	bsearch.3 \
391.69Smatt	div.3 \
401.69Smatt	exit.3 \
411.69Smatt	getenv.3 getopt.3 getopt_long.3 getsubopt.3 grantpt.3 \
421.69Smatt	hcreate.3 \
431.69Smatt	imaxabs.3 imaxdiv.3 insque.3 \
441.69Smatt	labs.3 ldiv.3 llabs.3 lldiv.3 lsearch.3 \
451.59Sdrochner	malloc.3 memory.3 \
461.69Smatt	posix_memalign.3 posix_openpt.3 ptsname.3 \
471.69Smatt	qabs.3 qdiv.3 qsort.3 \
481.69Smatt	radixsort.3 rand48.3 rand.3 random.3 \
491.69Smatt	strfmon.3 strsuftoll.3 strtod.3 strtol.3 strtoul.3 system.3 \
501.69Smatt	tsearch.3 \
511.69Smatt	unlockpt.3
521.1Scgd
531.38SkleinkMLINKS+=a64l.3 l64a.3
541.39SkleinkMLINKS+=a64l.3 l64a_r.3
551.1ScgdMLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
561.61SchristosMLINKS+=getenv.3 getenv_r.3
571.50ScgdMLINKS+=hcreate.3 hdestroy.3 hcreate.3 hsearch.3
581.59SdrochnerMLINKS+=insque.3 remque.3
591.59SdrochnerMLINKS+=lsearch.3 lfind.3
601.44SlukemMLINKS+=malloc.3 calloc.3 malloc.3 realloc.3 malloc.3 free.3
611.21SmycroftMLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3
621.33SkleinkMLINKS+=rand.3 rand_r.3
631.1ScgdMLINKS+=rand.3 srand.3
641.10SjtcMLINKS+=rand48.3 drand48.3 rand48.3 erand48.3 rand48.3 lrand48.3
651.10SjtcMLINKS+=rand48.3 mrand48.3 rand48.3 nrand48.3 rand48.3 jrand48.3
661.10SjtcMLINKS+=rand48.3 srand48.3 rand48.3 seed48.3 rand48.3 lcong48.3
671.35SperryMLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3
681.49SlukemMLINKS+=radixsort.3 sradixsort.3
691.53SlukemMLINKS+=strsuftoll.3 strsuftollx.3
701.64SkleinkMLINKS+=strtod.3 strtof.3 strtod.3 strtold.3
711.52SkleinkMLINKS+=strtol.3 strtoimax.3
721.45SkleinkMLINKS+=strtol.3 strtoll.3
731.35SperryMLINKS+=strtol.3 strtoq.3
741.45SkleinkMLINKS+=strtoul.3 strtoull.3
751.52SkleinkMLINKS+=strtoul.3 strtoumax.3
761.35SperryMLINKS+=strtoul.3 strtouq.3
771.40SchristosMLINKS+=tsearch.3 tfind.3 tsearch.3 twalk.3 tsearch.3 tdelete.3
78