clarify the purpose of this project
[nyanglibc.git] / make / libgcc.sh
blobff6ede5ec894c79456193910df4a64639f27bdfc
1 printf "\
2 LIBGCC**************************************************************************\n"
3 mkdir -p $build_dir/libgcc
4 non_preprocessed_files="\
5 popcountdi2 \
7 for f in $non_preprocessed_files
8 do
9 printf "PREPROCESSING $src_dir/libgcc/$f.S to $build_dir/libgcc/$f.s\n"
10 $cpp $src_dir/libgcc/$f.S >$build_dir/libgcc/$f.shared.s
11 done
13 preprocessed_paths="\
14 $build_dir/libgcc/popcountdi2 \
15 $src_dir/libgcc/multf3 \
16 $src_dir/libgcc/subtf3 \
17 $src_dir/libgcc/addtf3 \
18 $src_dir/libgcc/unordtf2 \
19 $src_dir/libgcc/getf2 \
20 $src_dir/libgcc/eqtf2 \
21 $src_dir/libgcc/letf2 \
22 $src_dir/libgcc/floatsitf \
23 $src_dir/libgcc/divtf3 \
24 $src_dir/libgcc/sfp-exceptions \
26 objs=
27 for p in $preprocessed_paths
29 printf "ASSEMBLING $p.shared.s\n"
30 obj=$(basename $p).o
31 objs_path="$objs_path $build_dir/libgcc/$obj"
32 $as $p.shared.s -o $build_dir/libgcc/$obj
33 done
34 $ar crv $build_dir/libgcc/libgcc.a $objs_path