]>
Commit | Line | Data |
---|---|---|
5b2abdfb | 1 | # from @(#)Makefile.inc 8.3 (Berkeley) 2/4/95 |
9385eb3d | 2 | # $FreeBSD: src/lib/libc/stdlib/Makefile.inc,v 1.45 2003/04/05 07:33:46 tjr Exp $ |
5b2abdfb | 3 | |
224c7076 | 4 | .ifnmake autopatch |
59e0d9fe A |
5 | # machine-dependent stdlib sources |
6 | .if exists(${.CURDIR}/${MACHINE_ARCH}/stdlib/Makefile.inc) | |
7 | .include "${.CURDIR}/${MACHINE_ARCH}/stdlib/Makefile.inc" | |
8 | .endif | |
224c7076 | 9 | .endif # !autopatch |
59e0d9fe | 10 | |
5b2abdfb | 11 | # machine-independent stdlib sources |
59e0d9fe | 12 | .PATH: ${.CURDIR}/stdlib |
5b2abdfb | 13 | |
224c7076 | 14 | MISRCS+=a64l.c grantpt.c l64a.c |
5b2abdfb | 15 | |
9385eb3d A |
16 | .include "Makefile.fbsd_begin" |
17 | FBSDMISRCS=_Exit_.c abort.c abs.c atexit.c atof.c atoi.c atol.c atoll.c \ | |
18 | bsearch.c div.c exit.c getenv.c getopt.c getopt_long.c getsubopt.c \ | |
224c7076 | 19 | hcreate.c heapsort.c imaxabs.c imaxdiv.c insque.c labs.c \ |
9385eb3d A |
20 | ldiv.c llabs.c lldiv.c lsearch.c merge.c putenv.c qsort.c qsort_r.c \ |
21 | radixsort.c rand.c random.c reallocf.c realpath.c remque.c setenv.c \ | |
22 | strfmon.c strhash.c strtoimax.c strtol.c strtoll.c strtoq.c strtoul.c \ | |
23 | strtoull.c strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c \ | |
24 | twalk.c | |
59e0d9fe | 25 | FBSDHDRS= atexit.h |
9385eb3d | 26 | .include "Makefile.fbsd_end" |
224c7076 A |
27 | |
28 | # 4302056: compile qsort.c and bsearch.c with -fexceptions | |
29 | .for _src in qsort-fbsd.c bsearch-fbsd.c | |
30 | CFLAGS-${_src} += -fexceptions | |
31 | .endfor | |
32 | ||
33 | PRIV_INSTHDRS += ${SRCROOT}/stdlib/atexit.h | |
3d9156a7 A |
34 | |
35 | .include "Makefile.obsd_begin" | |
36 | OBSDMISRCS=ecvt.c gcvt.c | |
37 | .include "Makefile.obsd_end" | |
38 | ||
224c7076 A |
39 | LEGACYSRCS+= getopt.c putenv.c realpath.c setenv.c system.c |
40 | DARWINEXTSNSRCS += realpath.c | |
41 | CANCELABLESRCS += system.c | |
42 | ||
43 | # set the LIBC_ALIAS_* macros so we can decorate the symbol independent | |
44 | # of other macro settings | |
45 | CFLAGS-getopt-fbsd.c += -DLIBC_ALIAS_GETOPT | |
46 | CFLAGS-putenv-fbsd.c += -DLIBC_ALIAS_PUTENV | |
47 | CFLAGS-realpath-fbsd.c += -DLIBC_ALIAS_REALPATH | |
48 | CFLAGS-setenv-fbsd.c += -DLIBC_ALIAS_SETENV -DLIBC_ALIAS_UNSETENV | |
49 | CFLAGS-system-fbsd.c += -DLIBC_ALIAS_SYSTEM | |
5b2abdfb | 50 | |
5b2abdfb | 51 | .if ${LIB} == "c" |
224c7076 | 52 | MAN3+= a64l.3 grantpt.3 |
3d9156a7 | 53 | MAN3+= strtod_l.3 strtol_l.3 |
9385eb3d A |
54 | |
55 | .include "Makefile.fbsd_begin" | |
56 | FBSDMAN3= abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 bsearch.3 \ | |
224c7076 | 57 | div.3 exit.3 getenv.3 getopt.3 getopt_long.3 getsubopt.3 \ |
9385eb3d A |
58 | hcreate.3 imaxabs.3 imaxdiv.3 insque.3 labs.3 ldiv.3 llabs.3 lldiv.3 \ |
59 | lsearch.3 memory.3 qsort.3 radixsort.3 rand.3 random.3 realpath.3 \ | |
60 | strfmon.3 strtod.3 strtol.3 strtoul.3 system.3 tsearch.3 | |
61 | .include "Makefile.fbsd_end" | |
5b2abdfb | 62 | |
3d9156a7 A |
63 | .include "Makefile.obsd_begin" |
64 | OBSDMAN3= ecvt.3 | |
65 | .include "Makefile.obsd_end" | |
66 | ||
224c7076 A |
67 | MLINKS+= a64l.3 l64a.3 |
68 | ||
69 | MLINKS+= atof.3 atof_l.3 | |
70 | ||
71 | MLINKS+= atoi.3 atoi_l.3 | |
72 | ||
73 | MLINKS+= atol.3 atol_l.3 \ | |
74 | atol.3 atoll.3 \ | |
75 | atol.3 atoll_l.3 | |
76 | ||
77 | MLINKS+= ecvt.3 fcvt.3 \ | |
78 | ecvt.3 gcvt.3 | |
79 | ||
80 | MLINKS+= exit.3 _Exit.3 | |
81 | ||
82 | MLINKS+= getenv.3 putenv.3 \ | |
83 | getenv.3 setenv.3 \ | |
84 | getenv.3 unsetenv.3 | |
85 | ||
86 | MLINKS+= getopt_long.3 getopt_long_only.3 | |
87 | ||
88 | MLINKS+= grantpt.3 posix_openpt.3 \ | |
89 | grantpt.3 ptsname.3 \ | |
90 | grantpt.3 unlockpt.3 | |
91 | ||
92 | MLINKS+= hcreate.3 hdestroy.3 \ | |
93 | hcreate.3 hsearch.3 | |
94 | ||
95 | MLINKS+= insque.3 remque.3 | |
96 | ||
97 | MLINKS+= lsearch.3 lfind.3 | |
98 | ||
99 | MLINKS+= qsort.3 heapsort.3 \ | |
100 | qsort.3 mergesort.3 \ | |
101 | qsort.3 qsort_r.3 | |
102 | ||
103 | MLINKS+= radixsort.3 sradixsort.3 | |
104 | ||
105 | MLINKS+= rand.3 rand_r.3 \ | |
106 | rand.3 srand.3 \ | |
107 | rand.3 sranddev.3 | |
108 | ||
109 | MLINKS+= random.3 initstate.3 \ | |
110 | random.3 setstate.3 \ | |
111 | random.3 srandom.3 \ | |
112 | random.3 srandomdev.3 | |
113 | ||
3d9156a7 | 114 | MLINKS+=strfmon.3 strfmon_l.3 |
224c7076 A |
115 | |
116 | MLINKS+= strtod.3 strtof.3 \ | |
117 | strtod.3 strtold.3 | |
118 | ||
119 | MLINKS+= strtod_l.3 strtof_l.3 \ | |
120 | strtod_l.3 strtold_l.3 | |
121 | ||
122 | MLINKS+= strtol.3 strtoll.3 \ | |
123 | strtol.3 strtoq.3 \ | |
124 | strtol.3 strtoimax.3 | |
125 | ||
126 | MLINKS+= strtol_l.3 strtoimax_l.3 \ | |
127 | strtol_l.3 strtoll_l.3 \ | |
128 | strtol_l.3 strtoq_l.3 \ | |
129 | strtol_l.3 strtoul_l.3 \ | |
130 | strtol_l.3 strtoull_l.3 \ | |
131 | strtol_l.3 strtoumax_l.3 \ | |
132 | strtol_l.3 strtouq_l.3 | |
133 | ||
134 | MLINKS+= strtoul.3 strtoull.3 \ | |
135 | strtoul.3 strtoumax.3 \ | |
136 | strtoul.3 strtouq.3 | |
137 | ||
138 | MLINKS+= tsearch.3 tdelete.3 \ | |
139 | tsearch.3 tfind.3 \ | |
140 | tsearch.3 twalk.3 | |
5b2abdfb | 141 | .endif |