clarify the purpose of this project
[nyanglibc.git] / make / stdlib.sh
blob50bdfa77b2b96e8b8c4d9f02fdf72762a7cc6f5b
1 printf "\
2 STDLIB**************************************************************************\n"
3 fns_pie_shared="\
4 atof \
5 atoi \
6 atol \
7 atoll \
8 abort \
9 bsearch \
10 qsort \
11 msort \
12 getenv \
13 putenv \
14 setenv \
15 secure-getenv \
16 exit \
17 on_exit \
18 cxa_atexit \
19 cxa_finalize \
20 old_atexit \
21 quick_exit \
22 cxa_at_quick_exit \
23 cxa_thread_atexit_impl \
24 abs \
25 labs \
26 llabs \
27 div \
28 ldiv \
29 lldiv \
30 mblen \
31 mbstowcs \
32 mbtowc \
33 wcstombs \
34 wctomb \
35 random \
36 random_r \
37 rand \
38 rand_r \
39 drand48 \
40 erand48 \
41 lrand48 \
42 nrand48 \
43 mrand48 \
44 jrand48 \
45 srand48 \
46 seed48 \
47 lcong48 \
48 drand48_r \
49 erand48_r \
50 lrand48_r \
51 nrand48_r \
52 mrand48_r \
53 jrand48_r \
54 srand48_r \
55 seed48_r \
56 lcong48_r \
57 drand48-iter \
58 getrandom \
59 getentropy \
60 strfromf \
61 strfromd \
62 strfroml \
63 strtol \
64 strtoul \
65 strtoll \
66 strtoull \
67 strtol_l \
68 strtoul_l \
69 strtoll_l \
70 strtoull_l \
71 strtof \
72 strtod \
73 strtold \
74 strtof_l \
75 strtod_l \
76 strtold_l \
77 strtof_nan \
78 strtod_nan \
79 strtold_nan \
80 system \
81 canonicalize \
82 a64l \
83 l64a \
84 rpmatch \
85 strfmon \
86 strfmon_l \
87 getsubopt \
88 xpg_basename \
89 fmtmsg \
90 makecontext \
91 inlines \
92 cmp \
93 divmod_1 \
94 divrem \
95 udiv_qrnnd \
96 mod_1 \
97 mul \
98 mul_n \
99 dbl2mpn \
100 ldbl2mpn \
101 mpn2flt \
102 mpn2dbl \
103 mpn2ldbl \
104 float1282mpn \
105 strfromf128 \
106 strtof128 \
107 strtof128_l \
108 strtof128_nan \
109 mpn2float128 \
110 grouping \
111 groupingwc \
112 tens_in_limb \
113 fpioconst \
114 mp_clz_tab \
116 getcontext \
117 setcontext \
118 swapcontext \
119 add_n \
120 addmul_1 \
121 lshift \
122 rshift \
123 mul_1 \
124 sub_n \
125 submul_1 \
126 __start_context \
128 fns_pie="\
129 $fns_pie_shared \
130 atexit \
131 at_quick_exit \
134 fns_shared="\
135 $fns_pie_shared \
137 fns_nonshared="\
138 atexit \
139 at_quick_exit \
142 mkdir -p $build_dir/stdlib
143 for fn in $fns_pie
145 printf "ASSEMBLING PIE $fn\n"
146 $as $src_dir/stdlib/$fn.s -o $build_dir/stdlib/$fn.o
147 done
148 for fn in $fns_shared
150 printf "ASSEMBLING SHARED $fn\n"
151 $as $src_dir/stdlib/$fn.shared.s -o $build_dir/stdlib/$fn.os
152 done
153 for fn in $fns_nonshared
155 printf "ASSEMBLING NONSHARED $fn\n"
156 $as $src_dir/stdlib/$fn.nonshared.s -o $build_dir/stdlib/$fn.oS
157 done
158 printf 'CREATING STAMPS FILES\n'
159 printf 'stdlib/atof.o stdlib/atoi.o stdlib/atol.o stdlib/atoll.o stdlib/abort.o stdlib/bsearch.o stdlib/qsort.o stdlib/msort.o stdlib/getenv.o stdlib/putenv.o stdlib/setenv.o stdlib/secure-getenv.o stdlib/exit.o stdlib/on_exit.o stdlib/atexit.o stdlib/cxa_atexit.o stdlib/cxa_finalize.o stdlib/old_atexit.o stdlib/quick_exit.o stdlib/at_quick_exit.o stdlib/cxa_at_quick_exit.o stdlib/cxa_thread_atexit_impl.o stdlib/abs.o stdlib/labs.o stdlib/llabs.o stdlib/div.o stdlib/ldiv.o stdlib/lldiv.o stdlib/mblen.o stdlib/mbstowcs.o stdlib/mbtowc.o stdlib/wcstombs.o stdlib/wctomb.o stdlib/random.o stdlib/random_r.o stdlib/rand.o stdlib/rand_r.o stdlib/drand48.o stdlib/erand48.o stdlib/lrand48.o stdlib/nrand48.o stdlib/mrand48.o stdlib/jrand48.o stdlib/srand48.o stdlib/seed48.o stdlib/lcong48.o stdlib/drand48_r.o stdlib/erand48_r.o stdlib/lrand48_r.o stdlib/nrand48_r.o stdlib/mrand48_r.o stdlib/jrand48_r.o stdlib/srand48_r.o stdlib/seed48_r.o stdlib/lcong48_r.o stdlib/drand48-iter.o stdlib/getrandom.o stdlib/getentropy.o stdlib/strfromf.o stdlib/strfromd.o stdlib/strfroml.o stdlib/strtol.o stdlib/strtoul.o stdlib/strtoll.o stdlib/strtoull.o stdlib/strtol_l.o stdlib/strtoul_l.o stdlib/strtoll_l.o stdlib/strtoull_l.o stdlib/strtof.o stdlib/strtod.o stdlib/strtold.o stdlib/strtof_l.o stdlib/strtod_l.o stdlib/strtold_l.o stdlib/strtof_nan.o stdlib/strtod_nan.o stdlib/strtold_nan.o stdlib/system.o stdlib/canonicalize.o stdlib/a64l.o stdlib/l64a.o stdlib/rpmatch.o stdlib/strfmon.o stdlib/strfmon_l.o stdlib/getsubopt.o stdlib/xpg_basename.o stdlib/fmtmsg.o stdlib/getcontext.o stdlib/setcontext.o stdlib/makecontext.o stdlib/swapcontext.o stdlib/inlines.o stdlib/add_n.o stdlib/addmul_1.o stdlib/cmp.o stdlib/divmod_1.o stdlib/divrem.o stdlib/udiv_qrnnd.o stdlib/lshift.o stdlib/rshift.o stdlib/mod_1.o stdlib/mul.o stdlib/mul_1.o stdlib/mul_n.o stdlib/sub_n.o stdlib/submul_1.o stdlib/dbl2mpn.o stdlib/ldbl2mpn.o stdlib/mpn2flt.o stdlib/mpn2dbl.o stdlib/mpn2ldbl.o stdlib/float1282mpn.o stdlib/strfromf128.o stdlib/strtof128.o stdlib/strtof128_l.o stdlib/strtof128_nan.o stdlib/mpn2float128.o stdlib/grouping.o stdlib/groupingwc.o stdlib/tens_in_limb.o stdlib/fpioconst.o stdlib/mp_clz_tab.o stdlib/__start_context.o\n' >$build_dir/stdlib/stamp.o
160 printf 'stdlib/atof.os stdlib/atoi.os stdlib/atol.os stdlib/atoll.os stdlib/abort.os stdlib/bsearch.os stdlib/qsort.os stdlib/msort.os stdlib/getenv.os stdlib/putenv.os stdlib/setenv.os stdlib/secure-getenv.os stdlib/exit.os stdlib/on_exit.os stdlib/cxa_atexit.os stdlib/cxa_finalize.os stdlib/old_atexit.os stdlib/quick_exit.os stdlib/cxa_at_quick_exit.os stdlib/cxa_thread_atexit_impl.os stdlib/abs.os stdlib/labs.os stdlib/llabs.os stdlib/div.os stdlib/ldiv.os stdlib/lldiv.os stdlib/mblen.os stdlib/mbstowcs.os stdlib/mbtowc.os stdlib/wcstombs.os stdlib/wctomb.os stdlib/random.os stdlib/random_r.os stdlib/rand.os stdlib/rand_r.os stdlib/drand48.os stdlib/erand48.os stdlib/lrand48.os stdlib/nrand48.os stdlib/mrand48.os stdlib/jrand48.os stdlib/srand48.os stdlib/seed48.os stdlib/lcong48.os stdlib/drand48_r.os stdlib/erand48_r.os stdlib/lrand48_r.os stdlib/nrand48_r.os stdlib/mrand48_r.os stdlib/jrand48_r.os stdlib/srand48_r.os stdlib/seed48_r.os stdlib/lcong48_r.os stdlib/drand48-iter.os stdlib/getrandom.os stdlib/getentropy.os stdlib/strfromf.os stdlib/strfromd.os stdlib/strfroml.os stdlib/strtol.os stdlib/strtoul.os stdlib/strtoll.os stdlib/strtoull.os stdlib/strtol_l.os stdlib/strtoul_l.os stdlib/strtoll_l.os stdlib/strtoull_l.os stdlib/strtof.os stdlib/strtod.os stdlib/strtold.os stdlib/strtof_l.os stdlib/strtod_l.os stdlib/strtold_l.os stdlib/strtof_nan.os stdlib/strtod_nan.os stdlib/strtold_nan.os stdlib/system.os stdlib/canonicalize.os stdlib/a64l.os stdlib/l64a.os stdlib/rpmatch.os stdlib/strfmon.os stdlib/strfmon_l.os stdlib/getsubopt.os stdlib/xpg_basename.os stdlib/fmtmsg.os stdlib/getcontext.os stdlib/setcontext.os stdlib/makecontext.os stdlib/swapcontext.os stdlib/inlines.os stdlib/add_n.os stdlib/addmul_1.os stdlib/cmp.os stdlib/divmod_1.os stdlib/divrem.os stdlib/udiv_qrnnd.os stdlib/lshift.os stdlib/rshift.os stdlib/mod_1.os stdlib/mul.os stdlib/mul_1.os stdlib/mul_n.os stdlib/sub_n.os stdlib/submul_1.os stdlib/dbl2mpn.os stdlib/ldbl2mpn.os stdlib/mpn2flt.os stdlib/mpn2dbl.os stdlib/mpn2ldbl.os stdlib/float1282mpn.os stdlib/strfromf128.os stdlib/strtof128.os stdlib/strtof128_l.os stdlib/strtof128_nan.os stdlib/mpn2float128.os stdlib/grouping.os stdlib/groupingwc.os stdlib/tens_in_limb.os stdlib/fpioconst.os stdlib/mp_clz_tab.os stdlib/__start_context.os\n' >$build_dir/stdlib/stamp.os
161 printf 'stdlib/atexit.oS stdlib/at_quick_exit.oS\n' >$build_dir/stdlib/stamp.oS