xref: /freebsd/lib/libc/stdlib/Makefile.inc (revision 9851b3400ae1362185d9ffe3c163428b9faa6b9f)
187003932SJohn Birrell#	from @(#)Makefile.inc	8.3 (Berkeley) 2/4/95
27f3dea24SPeter Wemm# $FreeBSD$
358f0484fSRodney W. Grimes
458f0484fSRodney W. Grimes# machine-independent stdlib sources
58876613dSMarcel Moolenaar.PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/stdlib ${LIBC_SRCTOP}/stdlib
658f0484fSRodney W. Grimes
7cb1cb6a2SMarcel MoolenaarMISRCS+=C99_Exit.c a64l.c abort.c abs.c atexit.c atof.c atoi.c atol.c atoll.c \
8b7c7684aSKonstantin Belousov	bsearch.c \
9b7c7684aSKonstantin Belousov	cxa_thread_atexit.c cxa_thread_atexit_impl.c \
10b7c7684aSKonstantin Belousov	div.c exit.c getenv.c getopt.c getopt_long.c \
112747eff1SEd Schouten	getsubopt.c hcreate.c hcreate_r.c hdestroy_r.c heapsort.c heapsort_b.c \
122747eff1SEd Schouten	hsearch_r.c imaxabs.c imaxdiv.c \
13a4bd5210SJason Evans	insque.c l64a.c labs.c ldiv.c llabs.c lldiv.c lsearch.c \
1446cdc140SDavid Chisnall	merge.c mergesort_b.c ptsname.c qsort.c qsort_r.c quick_exit.c \
1546cdc140SDavid Chisnall	radixsort.c rand.c \
16*9851b340SKonstantin Belousov	random.c reallocarray.c reallocf.c realpath.c remque.c \
17*9851b340SKonstantin Belousov	set_constraint_handler_s.c strfmon.c strtoimax.c \
182966d28cSSean Farley	strtol.c strtoll.c strtoq.c strtoul.c strtonum.c strtoull.c \
192966d28cSSean Farley        strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c
2058f0484fSRodney W. Grimes
21cb1cb6a2SMarcel Moolenaar# Work around an issue on case-insensitive file systems.
22cb1cb6a2SMarcel Moolenaar# libc has both _Exit.c and _exit.s and they both yield
23cb1cb6a2SMarcel Moolenaar# _exit.o (case insensitively speaking).
24cb1cb6a2SMarcel MoolenaarCLEANFILES+=C99_Exit.c
25cb1cb6a2SMarcel MoolenaarC99_Exit.c: ${LIBC_SRCTOP}/stdlib/_Exit.c .NOMETA
26cb1cb6a2SMarcel Moolenaar	ln -sf ${.ALLSRC} ${.TARGET}
27cb1cb6a2SMarcel Moolenaar
288876613dSMarcel MoolenaarSYM_MAPS+= ${LIBC_SRCTOP}/stdlib/Symbol.map
296fad3aafSDaniel Eischen
3058f0484fSRodney W. Grimes# machine-dependent stdlib sources
318876613dSMarcel Moolenaar.sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/stdlib/Makefile.inc"
3258f0484fSRodney W. Grimes
33a4bd5210SJason EvansMAN+=	a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 \
349e16bab4SEd Schouten	atoi.3 atol.3 at_quick_exit.3 bsearch.3 \
35bc093719SEd Schouten	div.3 exit.3 getenv.3 getopt.3 getopt_long.3 getsubopt.3 \
36d3951ad1SJuli Mallett	hcreate.3 imaxabs.3 imaxdiv.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 \
37a4bd5210SJason Evans	lsearch.3 memory.3 ptsname.3 qsort.3 \
380a31efe0SDavid Chisnall	quick_exit.3 \
39450dfafbSBaptiste Daroussin	radixsort.3 rand.3 random.3 reallocarray.3 reallocf.3 \
40c74dfa2fSAndre Oppermann	realpath.3 strfmon.3 strtod.3 strtol.3 strtonum.3 strtoul.3 system.3 \
41c74dfa2fSAndre Oppermann	tsearch.3
4258f0484fSRodney W. Grimes
43257551c6STom RhodesMLINKS+=a64l.3 l64a.3 a64l.3 l64a_r.3
4459d01330SAndrey A. ChernovMLINKS+=atol.3 atoll.3
45eca67d51SGarrett WollmanMLINKS+=exit.3 _Exit.3
46b966cc23SBruce EvansMLINKS+=getenv.3 putenv.3 getenv.3 setenv.3 getenv.3 unsetenv.3
47829a229dSAndrey A. ChernovMLINKS+=getopt_long.3 getopt_long_only.3
48ec7d1254SRuslan ErmilovMLINKS+=hcreate.3 hdestroy.3 hcreate.3 hsearch.3
499823a90cSPedro F. GiffuniMLINKS+=hcreate.3 hcreate_r.3 hcreate.3 hdestroy_r.3 hcreate.3 hsearch_r.3
50e768c1beSRobert DrehmelMLINKS+=insque.3 remque.3
516c84d0b1SRobert DrehmelMLINKS+=lsearch.3 lfind.3
52bc093719SEd SchoutenMLINKS+=ptsname.3 grantpt.3 ptsname.3 unlockpt.3
53eca67d51SGarrett WollmanMLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3 qsort.3 qsort_r.3
5474825256SAndrey A. ChernovMLINKS+=rand.3 rand_r.3 rand.3 srand.3 rand.3 sranddev.3
5592936d82SAndrey A. ChernovMLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \
5692936d82SAndrey A. Chernov	random.3 srandomdev.3
57cb30b9c5SRuslan ErmilovMLINKS+=radixsort.3 sradixsort.3
583f19323aSIsabell LongMLINKS+=strfmon.3 strfmon_l.3
5963e6ca58STim J. RobbinsMLINKS+=strtod.3 strtof.3 strtod.3 strtold.3
609c5cbc30SBill FennerMLINKS+=strtol.3 strtoll.3 strtol.3 strtoq.3 strtol.3 strtoimax.3
619c5cbc30SBill FennerMLINKS+=strtoul.3 strtoull.3 strtoul.3 strtouq.3 strtoul.3 strtoumax.3
62681b009bSDima DorfmanMLINKS+=tsearch.3 tdelete.3 tsearch.3 tfind.3 tsearch.3 twalk.3
63