clarify the purpose of this project
[nyanglibc.git] / make / sunrpc.sh
blobec76ee71f68f9a56a813d8119bfdd4ccd6c8dcca
1 printf "\
2 SUNRPC**************************************************************************\n"
3 fns_compat="\
4 auth_des \
5 auth_unix \
6 clnt_gen \
7 clnt_perr \
8 clnt_tcp \
9 clnt_udp \
10 get_myaddr \
11 key_call \
12 netname \
13 pm_getport \
14 rpc_thread \
15 svc \
16 svc_tcp \
17 svc_udp \
18 xcrypt \
19 xdr_array \
20 xdr \
21 xdr_intXX_t \
22 xdr_mem \
23 xdr_ref \
24 xdr_sizeof \
25 xdr_stdio \
26 svc_run \
28 fns_shared="\
29 $fns_compat \
30 auth_none \
31 authuxprot \
32 clnt_raw \
33 clnt_simp \
34 rpc_dtable \
35 getrpcport \
36 pmap_clnt \
37 pm_getmaps \
38 pmap_prot \
39 pmap_prot2 \
40 pmap_rmt \
41 rpc_prot \
42 rpc_common \
43 rpc_cmsg \
44 svc_auth \
45 svc_authux \
46 svc_raw \
47 svc_simple \
48 xdr_float \
49 xdr_rec \
50 publickey \
51 authdes_prot \
52 des_crypt \
53 des_impl \
54 des_soft \
55 key_prot \
56 openchild \
57 rtime \
58 svcauth_des \
59 clnt_unix \
60 svc_unix \
61 create_xid \
62 rpc_gethostbyname \
64 mkdir -p $build_dir/sunrpc
65 for fn in $fns_shared
67 printf "ASSEMBLING SHARED $fn\n"
68 $as $src_dir/sunrpc/$fn.shared.s -o $build_dir/sunrpc/$fn.os
69 done
70 for fn in $fns_compat
72 printf "ASSEMBLING COMPAT $fn\n"
73 $as $src_dir/sunrpc/compat-$fn.shared.s -o $build_dir/sunrpc/compat-$fn.os
74 done
75 printf 'CREATING STAMPS FILES\n'
76 printf '' >$build_dir/sunrpc/stamp.o
77 printf 'sunrpc/auth_none.os sunrpc/authuxprot.os sunrpc/clnt_raw.os sunrpc/clnt_simp.os sunrpc/rpc_dtable.os sunrpc/getrpcport.os sunrpc/pmap_clnt.os sunrpc/pm_getmaps.os sunrpc/pmap_prot.os sunrpc/pmap_prot2.os sunrpc/pmap_rmt.os sunrpc/rpc_prot.os sunrpc/rpc_common.os sunrpc/rpc_cmsg.os sunrpc/svc_auth.os sunrpc/svc_authux.os sunrpc/svc_raw.os sunrpc/svc_simple.os sunrpc/xdr_float.os sunrpc/xdr_rec.os sunrpc/publickey.os sunrpc/authdes_prot.os sunrpc/des_crypt.os sunrpc/des_impl.os sunrpc/des_soft.os sunrpc/key_prot.os sunrpc/openchild.os sunrpc/rtime.os sunrpc/svcauth_des.os sunrpc/clnt_unix.os sunrpc/svc_unix.os sunrpc/create_xid.os sunrpc/auth_des.os sunrpc/auth_unix.os sunrpc/clnt_gen.os sunrpc/clnt_perr.os sunrpc/clnt_tcp.os sunrpc/clnt_udp.os sunrpc/get_myaddr.os sunrpc/key_call.os sunrpc/netname.os sunrpc/pm_getport.os sunrpc/rpc_thread.os sunrpc/svc.os sunrpc/svc_tcp.os sunrpc/svc_udp.os sunrpc/xcrypt.os sunrpc/xdr_array.os sunrpc/xdr.os sunrpc/xdr_intXX_t.os sunrpc/xdr_mem.os sunrpc/xdr_ref.os sunrpc/xdr_sizeof.os sunrpc/xdr_stdio.os sunrpc/svc_run.os sunrpc/rpc_gethostbyname.os\n' >$build_dir/sunrpc/stamp.os
78 printf '' >$build_dir/sunrpc/stamp.oS
79 $ar crv $build_dir/sunrpc/librpc_compat_pic.a $build_dir/sunrpc/compat-auth_des.os $build_dir/sunrpc/compat-auth_unix.os $build_dir/sunrpc/compat-clnt_gen.os $build_dir/sunrpc/compat-clnt_perr.os $build_dir/sunrpc/compat-clnt_tcp.os $build_dir/sunrpc/compat-clnt_udp.os $build_dir/sunrpc/compat-get_myaddr.os $build_dir/sunrpc/compat-key_call.os $build_dir/sunrpc/compat-netname.os $build_dir/sunrpc/compat-pm_getport.os $build_dir/sunrpc/compat-rpc_thread.os $build_dir/sunrpc/compat-svc.os $build_dir/sunrpc/compat-svc_tcp.os $build_dir/sunrpc/compat-svc_udp.os $build_dir/sunrpc/compat-xcrypt.os $build_dir/sunrpc/compat-xdr_array.os $build_dir/sunrpc/compat-xdr.os $build_dir/sunrpc/compat-xdr_intXX_t.os $build_dir/sunrpc/compat-xdr_mem.os $build_dir/sunrpc/compat-xdr_ref.os $build_dir/sunrpc/compat-xdr_sizeof.os $build_dir/sunrpc/compat-xdr_stdio.os $build_dir/sunrpc/compat-svc_run.os