0d6c8661ac3f651ab34240ff8763e06b90662928
[dragonfly.git] / lib / libc / stdlib / Makefile.inc
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
7 CMAPS+= ${.CURDIR}/stdlib/Symbol.map
8
9 MISRCS+=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 ptsname.c qsort.c qsort_r.c quick_exit.c \
17         radixsort.c rand.c random.c \
18         reallocarray.c reallocf.c realpath.c remque.c \
19         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
30 MISRCS+= 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
38 .if ${LIB} == "c"
39 MAN+=   a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 \
40         at_quick_exit.3 \
41         bsearch.3 \
42         div.3 exit.3 getenv.3 getopt.3 getopt_long.3 getsubopt.3 \
43         hcreate.3 imaxabs.3 imaxdiv.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 \
44         lsearch.3 malloc.3 memory.3 posix_memalign.3 posix_openpt.3 \
45         ptsname.3 qsort.3 quick_exit.3 \
46         radixsort.3 rand.3 random.3 realpath.3 reallocarray.3 \
47         strfmon.3 strsuftoll.3 strtod.3 strtol.3 strtonum.3 strtoul.3 system.3 \
48         tsearch.3
49
50 MLINKS+=a64l.3 l64a.3 \
51         a64l.3 l64a_r.3
52 MLINKS+=atof.3 atof_l.3
53 MLINKS+=atoi.3 atoi_l.3
54 MLINKS+=atol.3 atol_l.3 \
55         atol.3 atoll.3 \
56         atol.3 atoll_l.3
57 MLINKS+=exit.3 _Exit.3
58 MLINKS+=getenv.3 putenv.3 \
59         getenv.3 setenv.3 \
60         getenv.3 unsetenv.3
61 MLINKS+=getopt_long.3 getopt_long_only.3
62 MLINKS+=hcreate.3 hdestroy.3 \
63         hcreate.3 hsearch.3
64 MLINKS+=insque.3 remque.3
65 MLINKS+=lsearch.3 lfind.3
66 MLINKS+=malloc.3 calloc.3 \
67         malloc.3 free.3 \
68         malloc.3 freezero.3 \
69         malloc.3 realloc.3 \
70         malloc.3 reallocf.3
71 MLINKS+=posix_memalign.3 aligned_alloc.3
72 MLINKS+=ptsname.3 grantpt.3 \
73         ptsname.3 unlockpt.3
74 MLINKS+=qsort.3 heapsort.3 \
75         qsort.3 mergesort.3 \
76         qsort.3 qsort_r.3
77 MLINKS+=radixsort.3 sradixsort.3
78 MLINKS+=rand.3 rand_r.3 \
79         rand.3 srand.3 \
80         rand.3 sranddev.3
81 MLINKS+=random.3 initstate.3 \
82         random.3 setstate.3 \
83         random.3 srandom.3 \
84         random.3 srandomdev.3
85 MLINKS+=strfmon.3 strfmon_l.3
86 MLINKS+=strsuftoll.3 strsuftollx.3
87 MLINKS+=strtod.3 strtod_l.3 \
88         strtod.3 strtof.3 \
89         strtod.3 strtof_l.3 \
90         strtod.3 strtold.3 \
91         strtod.3 strtold_l.3
92 MLINKS+=strtol.3 strtoimax.3 \
93         strtol.3 strtoimax_l.3 \
94         strtol.3 strtol_l.3 \
95         strtol.3 strtoll.3 \
96         strtol.3 strtoll_l.3 \
97         strtol.3 strtoq.3
98 MLINKS+=strtoul.3 strtoul_l.3 \
99         strtoul.3 strtoull.3 \
100         strtoul.3 strtoull_l.3 \
101         strtoul.3 strtoumax.3 \
102         strtoul.3 strtoumax_l.3 \
103         strtoul.3 strtouq.3
104 MLINKS+=tsearch.3 tdelete.3 \
105         tsearch.3 tfind.3 \
106         tsearch.3 twalk.3
107 .endif