61f7b8deb87181a19ec7a8056c5e8af638318bbe
[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 getenv.c getopt.c getopt_long.c \
13         getsubopt.c hcreate.c heapsort.c imaxabs.c imaxdiv.c \
14         insque.c l64a.c labs.c ldiv.c llabs.c lldiv.c lsearch.c \
15         merge.c ptsname.c qsort.c qsort_r.c quick_exit.c \
16         radixsort.c rand.c random.c \
17         reallocarray.c reallocf.c realpath.c remque.c \
18         strfmon.c strsuftoll.c strtoimax.c \
19         strtol.c strtoll.c strtonum.c strtoq.c strtoul.c strtoull.c \
20         strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c
21
22 # dmalloc has a leak somewhere and is eating up too much
23 # memory in long-running programs, and also doesn't do cache
24 # coloring for large allocations.  Use nmalloc for now.
25 #
26 #.if ${MACHINE_ARCH} == "x86_64"
27 #MISRCS+= dmalloc.c
28 #.else
29 MISRCS+= nmalloc.c
30 #.endif
31
32 # machine-dependent stdlib sources
33 .if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc)
34 .include "${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc"
35 .endif
36
37 .if ${LIB} == "c"
38 MAN+=   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 posix_memalign.3 posix_openpt.3 \
44         ptsname.3 qsort.3 quick_exit.3 \
45         radixsort.3 rand.3 random.3 realpath.3 reallocarray.3 \
46         strfmon.3 strsuftoll.3 strtod.3 strtol.3 strtonum.3 strtoul.3 system.3 \
47         tsearch.3
48
49 MLINKS+=a64l.3 l64a.3 \
50         a64l.3 l64a_r.3
51 MLINKS+=atof.3 atof_l.3
52 MLINKS+=atoi.3 atoi_l.3
53 MLINKS+=atol.3 atol_l.3 \
54         atol.3 atoll.3 \
55         atol.3 atoll_l.3
56 MLINKS+=exit.3 _Exit.3
57 MLINKS+=getenv.3 putenv.3 \
58         getenv.3 setenv.3 \
59         getenv.3 unsetenv.3
60 MLINKS+=getopt_long.3 getopt_long_only.3
61 MLINKS+=hcreate.3 hdestroy.3 \
62         hcreate.3 hsearch.3
63 MLINKS+=insque.3 remque.3
64 MLINKS+=lsearch.3 lfind.3
65 MLINKS+=malloc.3 calloc.3 \
66         malloc.3 free.3 \
67         malloc.3 realloc.3 \
68         malloc.3 reallocf.3
69 MLINKS+=posix_memalign.3 aligned_alloc.3
70 MLINKS+=ptsname.3 grantpt.3 \
71         ptsname.3 unlockpt.3
72 MLINKS+=qsort.3 heapsort.3 \
73         qsort.3 mergesort.3 \
74         qsort.3 qsort_r.3
75 MLINKS+=radixsort.3 sradixsort.3
76 MLINKS+=rand.3 rand_r.3 \
77         rand.3 srand.3 \
78         rand.3 sranddev.3
79 MLINKS+=random.3 initstate.3 \
80         random.3 setstate.3 \
81         random.3 srandom.3 \
82         random.3 srandomdev.3
83 MLINKS+=strfmon.3 strfmon_l.3
84 MLINKS+=strsuftoll.3 strsuftollx.3
85 MLINKS+=strtod.3 strtod_l.3 \
86         strtod.3 strtof.3 \
87         strtod.3 strtof_l.3 \
88         strtod.3 strtold.3 \
89         strtod.3 strtold_l.3
90 MLINKS+=strtol.3 strtoimax.3 \
91         strtol.3 strtoimax_l.3 \
92         strtol.3 strtol_l.3 \
93         strtol.3 strtoll.3 \
94         strtol.3 strtoll_l.3 \
95         strtol.3 strtoq.3
96 MLINKS+=strtoul.3 strtoul_l.3 \
97         strtoul.3 strtoull.3 \
98         strtoul.3 strtoull_l.3 \
99         strtoul.3 strtoumax.3 \
100         strtoul.3 strtoumax_l.3 \
101         strtoul.3 strtouq.3
102 MLINKS+=tsearch.3 tdelete.3 \
103         tsearch.3 tfind.3 \
104         tsearch.3 twalk.3
105 .endif