xref: /dragonfly/lib/libc/stdlib/Makefile.inc (revision f9993810)
1#	from @(#)Makefile.inc	8.3 (Berkeley) 2/4/95
2# $FreeBSD: src/lib/libc/stdlib/Makefile.inc,v 1.56 2008/10/17 08:30:20 netchild Exp $
3
4# machine-independent stdlib sources
5.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib ${.CURDIR}/../libc/stdlib
6
7CMAPS+=	${.CURDIR}/stdlib/Symbol.map
8
9MISRCS+=a64l.c abort.c abs.c atexit.c \
10	atof.c atoi.c atol.c atoll.c \
11	bsearch.c cxa_thread_atexit_impl.c \
12	div.c exit.c freezero.c \
13	getenv.c getopt.c getopt_long.c \
14	getsubopt.c hcreate.c heapsort.c imaxabs.c imaxdiv.c \
15	insque.c l64a.c labs.c ldiv.c llabs.c lldiv.c lsearch.c \
16	merge.c posix_fadvise.c ptsname.c qsort.c qsort_r.c quick_exit.c \
17	radixsort.c rand.c random.c \
18	reallocarray.c reallocf.c realpath.c recallocarray.c remque.c \
19	set_constraint_handler_s.c strfmon.c strsuftoll.c strtoimax.c \
20	strtol.c strtoll.c strtonum.c strtoq.c strtoul.c strtoull.c \
21	strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c
22
23# dmalloc has a leak somewhere and is eating up too much
24# memory in long-running programs, and also doesn't do cache
25# coloring for large allocations.  Use nmalloc for now.
26#
27#.if ${MACHINE_ARCH} == "x86_64"
28#MISRCS+= dmalloc.c
29#.else
30MISRCS+= nmalloc.c
31#.endif
32
33# machine-dependent stdlib sources
34.if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc)
35.include "${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc"
36.endif
37
38MAN+=	a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 \
39	at_quick_exit.3 \
40	bsearch.3 \
41	div.3 exit.3 getenv.3 getopt.3 getopt_long.3 getsubopt.3 \
42	hcreate.3 imaxabs.3 imaxdiv.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 \
43	lsearch.3 malloc.3 memory.3 \
44	posix_fadvise.3 posix_memalign.3 posix_openpt.3 ptsname.3 \
45	qsort.3 quick_exit.3 \
46	radixsort.3 rand.3 random.3 realpath.3 reallocarray.3 \
47	set_constraint_handler_s.3 strfmon.3 strsuftoll.3 strtod.3 \
48	strtol.3 strtonum.3 strtoul.3 system.3 \
49	tsearch.3
50
51MLINKS+=a64l.3 l64a.3 \
52	a64l.3 l64a_r.3
53MLINKS+=atof.3 atof_l.3
54MLINKS+=atoi.3 atoi_l.3
55MLINKS+=atol.3 atol_l.3 \
56	atol.3 atoll.3 \
57	atol.3 atoll_l.3
58MLINKS+=exit.3 _Exit.3
59MLINKS+=getenv.3 clearenv.3 \
60	getenv.3 putenv.3 \
61	getenv.3 setenv.3 \
62	getenv.3 unsetenv.3
63MLINKS+=getopt_long.3 getopt_long_only.3
64MLINKS+=hcreate.3 hdestroy.3 \
65	hcreate.3 hsearch.3
66MLINKS+=insque.3 remque.3
67MLINKS+=lsearch.3 lfind.3
68MLINKS+=malloc.3 calloc.3 \
69	malloc.3 free.3 \
70	malloc.3 freezero.3 \
71	malloc.3 malloc_usable_size.3 \
72	malloc.3 realloc.3 \
73	malloc.3 reallocf.3
74MLINKS+=posix_memalign.3 aligned_alloc.3
75MLINKS+=ptsname.3 grantpt.3 \
76	ptsname.3 unlockpt.3
77MLINKS+=qsort.3 heapsort.3 \
78	qsort.3 mergesort.3 \
79	qsort.3 qsort_r.3
80MLINKS+=radixsort.3 sradixsort.3
81MLINKS+=reallocarray.3 recallocarray.3
82MLINKS+=rand.3 rand_r.3 \
83	rand.3 srand.3 \
84	rand.3 sranddev.3
85MLINKS+=random.3 initstate.3 \
86	random.3 setstate.3 \
87	random.3 srandom.3 \
88	random.3 srandomdev.3
89MLINKS+=set_constraint_handler_s.3 abort_handler_s.3 \
90	set_constraint_handler_s.3 ignore_handler_s.3
91MLINKS+=strfmon.3 strfmon_l.3
92MLINKS+=strsuftoll.3 strsuftollx.3
93MLINKS+=strtod.3 strtod_l.3 \
94	strtod.3 strtof.3 \
95	strtod.3 strtof_l.3 \
96	strtod.3 strtold.3 \
97	strtod.3 strtold_l.3
98MLINKS+=strtol.3 strtoimax.3 \
99	strtol.3 strtoimax_l.3 \
100	strtol.3 strtol_l.3 \
101	strtol.3 strtoll.3 \
102	strtol.3 strtoll_l.3 \
103	strtol.3 strtoq.3
104MLINKS+=strtoul.3 strtoul_l.3 \
105	strtoul.3 strtoull.3 \
106	strtoul.3 strtoull_l.3 \
107	strtoul.3 strtoumax.3 \
108	strtoul.3 strtoumax_l.3 \
109	strtoul.3 strtouq.3
110MLINKS+=tsearch.3 tdelete.3 \
111	tsearch.3 tfind.3 \
112	tsearch.3 twalk.3
113