Commit | Line | Data |
---|---|---|
984263bc | 1 | # from @(#)Makefile.inc 8.3 (Berkeley) 2/4/95 |
5d0641a4 | 2 | # $FreeBSD: src/lib/libc/stdlib/Makefile.inc,v 1.56 2008/10/17 08:30:20 netchild Exp $ |
984263bc MD |
3 | |
4 | # machine-independent stdlib sources | |
5 | .PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib ${.CURDIR}/../libc/stdlib | |
6 | ||
df5c926f JM |
7 | CMAPS+= ${.CURDIR}/stdlib/Symbol.map |
8 | ||
ae78cec9 VS |
9 | MISRCS+=a64l.c abort.c abs.c atexit.c aligned_alloc.c \ |
10 | atof.c atoi.c atol.c atoll.c \ | |
82949828 | 11 | bsearch.c div.c exit.c getenv.c getopt.c getopt_long.c \ |
5d0641a4 | 12 | getsubopt.c hcreate.c heapsort.c imaxabs.c imaxdiv.c \ |
ff10d954 | 13 | insque.c l64a.c labs.c ldiv.c llabs.c lldiv.c lsearch.c \ |
22ab97ca VS |
14 | merge.c ptsname.c qsort.c qsort_r.c quick_exit.c \ |
15 | radixsort.c rand.c random.c \ | |
f202adf7 | 16 | reallocf.c realpath.c remque.c strfmon.c strtoimax.c \ |
5d0641a4 PA |
17 | strtol.c strtoll.c strtonum.c strtoq.c strtoul.c strtoull.c \ |
18 | strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c | |
984263bc | 19 | |
65221c72 MD |
20 | # dmalloc has a leak somewhere and is eating up too much |
21 | # memory in long-running programs, and also doesn't do cache | |
22 | # coloring for large allocations. Use nmalloc for now. | |
23 | # | |
24 | #.if ${MACHINE_ARCH} == "x86_64" | |
25 | #MISRCS+= dmalloc.c | |
26 | #.else | |
ff10d954 | 27 | MISRCS+= nmalloc.c |
65221c72 | 28 | #.endif |
ff10d954 | 29 | |
984263bc | 30 | # machine-dependent stdlib sources |
17030342 | 31 | .if exists(${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc) |
984263bc | 32 | .include "${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc" |
17030342 | 33 | .endif |
984263bc MD |
34 | |
35 | .if ${LIB} == "c" | |
f3adbb3c SW |
36 | MAN+= a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 \ |
37 | at_quick_exit.3 \ | |
38 | bsearch.3 \ | |
5d0641a4 PA |
39 | div.3 exit.3 getenv.3 getopt.3 getopt_long.3 getsubopt.3 \ |
40 | hcreate.3 imaxabs.3 imaxdiv.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 \ | |
d43f7615 | 41 | lsearch.3 malloc.3 memory.3 posix_memalign.3 posix_openpt.3 \ |
f3adbb3c | 42 | ptsname.3 qsort.3 quick_exit.3 \ |
5d0641a4 PA |
43 | radixsort.3 rand.3 random.3 \ |
44 | realpath.3 strfmon.3 strtod.3 strtol.3 strtonum.3 strtoul.3 system.3 \ | |
45 | tsearch.3 | |
984263bc | 46 | |
5d0641a4 | 47 | MLINKS+=a64l.3 l64a.3 a64l.3 l64a_r.3 |
c576ced5 SW |
48 | MLINKS+=atof.3 atof_l.3 |
49 | MLINKS+=atoi.3 atoi_l.3 | |
50 | MLINKS+=atol.3 atol_l.3 atol.3 atoll.3 atol.3 atoll_l.3 | |
fc2504ef | 51 | MLINKS+=exit.3 _Exit.3 |
984263bc | 52 | MLINKS+=getenv.3 putenv.3 getenv.3 setenv.3 getenv.3 unsetenv.3 |
266938d0 | 53 | MLINKS+=getopt_long.3 getopt_long_only.3 |
984263bc | 54 | MLINKS+=hcreate.3 hdestroy.3 hcreate.3 hsearch.3 |
5d0641a4 | 55 | MLINKS+=insque.3 remque.3 |
f0a5c102 | 56 | MLINKS+=lsearch.3 lfind.3 |
f5b0e57c | 57 | MLINKS+=malloc.3 calloc.3 malloc.3 free.3 malloc.3 realloc.3 malloc.3 reallocf.3 |
cae7f865 | 58 | MLINKS+=posix_memalign.3 aligned_alloc.3 |
d43f7615 | 59 | MLINKS+=ptsname.3 grantpt.3 ptsname.3 unlockpt.3 |
5d0641a4 | 60 | MLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3 qsort.3 qsort_r.3 |
654ec5fe | 61 | MLINKS+=radixsort.3 sradixsort.3 |
b6989f5b | 62 | MLINKS+=rand.3 rand_r.3 rand.3 srand.3 rand.3 sranddev.3 |
984263bc MD |
63 | MLINKS+=random.3 initstate.3 random.3 setstate.3 random.3 srandom.3 \ |
64 | random.3 srandomdev.3 | |
3d960e09 | 65 | MLINKS+=strfmon.3 strfmon_l.3 |
eecd5bcf SW |
66 | MLINKS+=strtod.3 strtod_l.3 strtod.3 strtof.3 strtod.3 strtof_l.3 \ |
67 | strtod.3 strtold.3 strtod.3 strtold_l.3 | |
68 | MLINKS+=strtol.3 strtoimax.3 strtol.3 strtoimax_l.3 strtol.3 strtol_l.3 \ | |
18f89bd4 | 69 | strtol.3 strtoll.3 strtol.3 strtoll_l.3 strtol.3 strtoq.3 |
eecd5bcf | 70 | MLINKS+=strtoul.3 strtoul_l.3 strtoul.3 strtoull.3 strtoul.3 strtoull_l.3 \ |
18f89bd4 | 71 | strtoul.3 strtoumax.3 strtoul.3 strtoumax_l.3 strtoul.3 strtouq.3 |
f5b0e57c | 72 | MLINKS+=tsearch.3 tdelete.3 tsearch.3 tfind.3 tsearch.3 twalk.3 |
984263bc | 73 | .endif |