Upgrade less(1). 1/2
[dragonfly.git] / lib / libc / rpc / Makefile.inc
1 #       @(#)Makefile    5.11 (Berkeley) 9/6/90
2 # $FreeBSD: src/lib/libc/rpc/Makefile.inc,v 1.27 2005/09/11 20:59:52 stefanf Exp $
3
4 .PATH: ${.CURDIR}/../libc/rpc ${.CURDIR}/.
5
6 CMAPS+= ${.CURDIR}/rpc/Symbol.map
7
8 SRCS+=  auth_none.c auth_unix.c authunix_prot.c bindresvport.c clnt_bcast.c \
9         clnt_dg.c clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c \
10         clnt_vc.c rpc_dtablesize.c getnetconfig.c getnetpath.c getrpcent.c \
11         getrpcport.c mt_misc.c pmap_clnt.c pmap_getmaps.c pmap_getport.c \
12         pmap_prot.c pmap_prot2.c pmap_rmt.c rpc_prot.c rpc_commondata.c \
13         rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
14         rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_generic.c \
15         svc_raw.c svc_run.c svc_simple.c svc_vc.c
16
17 # Secure-RPC
18 SRCS+=  auth_time.c auth_des.c authdes_prot.c des_crypt.c des_soft.c \
19         crypt_client.c key_call.c key_prot_xdr.c getpublickey.c \
20         svc_auth_des.c
21
22 # Resolver stuff
23 SRCS+=  netname.c netnamer.c rpcdname.c
24
25 # Misc Source
26 SRCS+=  rtime.c
27
28 # generated sources
29 SRCS+=  crypt_clnt.c crypt_xdr.c crypt.h
30
31 CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
32 CFLAGS+= -I${.CURDIR}/../libc/rpc
33
34 CLEANFILES+= crypt_clnt.c crypt_xdr.c crypt.h
35
36 RPCDIR= ${DESTDIR}/usr/include/rpcsvc
37 RPCGEN= rpcgen -C
38
39 crypt_clnt.c: ${RPCDIR}/crypt.x crypt.h
40         ${RPCGEN} -l -o ${.TARGET} ${RPCDIR}/crypt.x
41
42 crypt_xdr.c: ${RPCDIR}/crypt.x crypt.h
43         ${RPCGEN} -c -o ${.TARGET} ${RPCDIR}/crypt.x
44
45 crypt.h: ${RPCDIR}/crypt.x
46         ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/crypt.x
47
48 .if ${LIB} == "c"
49
50 MAN+=   bindresvport.3 des_crypt.3 getnetconfig.3 getnetpath.3 getrpcent.3 \
51         getrpcport.3 rpc.3 rpc_soc.3 rpc_clnt_auth.3 rpc_clnt_calls.3 \
52         rpc_clnt_create.3 rpc_svc_calls.3 rpc_svc_create.3 rpc_svc_err.3 \
53         rpc_svc_reg.3 rpc_xdr.3 rpcbind.3 publickey.3 rpc_secure.3 \
54         rtime.3
55 MAN+=   netconfig.5 publickey.5 rpc.5
56
57 MLINKS+=bindresvport.3 bindresvport_sa.3
58 MLINKS+=des_crypt.3 cbc_crypt.3 \
59         des_crypt.3 des_setparity.3 \
60         des_crypt.3 ecb_crypt.3
61 MLINKS+=getnetconfig.3 endnetconfig.3 \
62         getnetconfig.3 freenetconfigent.3 \
63         getnetconfig.3 getnetconfigent.3 \
64         getnetconfig.3 nc_perror.3 \
65         getnetconfig.3 nc_sperror.3 \
66         getnetconfig.3 setnetconfig.3
67 MLINKS+=getnetpath.3 endnetpath.3 \
68         getnetpath.3 setnetpath.3
69 MLINKS+=getrpcent.3 endrpcent.3 \
70         getrpcent.3 getrpcbyname.3 \
71         getrpcent.3 getrpcbynumber.3 \
72         getrpcent.3 setrpcent.3
73 MLINKS+=publickey.3 getpublickey.3 \
74         publickey.3 getsecretkey.3
75 MLINKS+=rpcbind.3 rpcb_getaddr.3 \
76         rpcbind.3 rpcb_getmaps.3 \
77         rpcbind.3 rpcb_gettime.3 \
78         rpcbind.3 rpcb_rmtcall.3 \
79         rpcbind.3 rpcb_set.3 \
80         rpcbind.3 rpcb_unset.3
81 MLINKS+=rpc_clnt_auth.3 auth_destroy.3 \
82         rpc_clnt_auth.3 authnone_create.3 \
83         rpc_clnt_auth.3 authsys_create.3 \
84         rpc_clnt_auth.3 authsys_create_default.3
85 MLINKS+=rpc_clnt_calls.3 clnt_call.3 \
86         rpc_clnt_calls.3 clnt_freeres.3 \
87         rpc_clnt_calls.3 clnt_geterr.3 \
88         rpc_clnt_calls.3 clnt_perrno.3 \
89         rpc_clnt_calls.3 clnt_perror.3 \
90         rpc_clnt_calls.3 clnt_sperrno.3 \
91         rpc_clnt_calls.3 clnt_sperror.3 \
92         rpc_clnt_calls.3 rpc_broadcast.3 \
93         rpc_clnt_calls.3 rpc_broadcast_exp.3 \
94         rpc_clnt_calls.3 rpc_call.3
95 MLINKS+=rpc_clnt_create.3 clnt_control.3 \
96         rpc_clnt_create.3 clnt_create.3 \
97         rpc_clnt_create.3 clnt_create_timed.3 \
98         rpc_clnt_create.3 clnt_create_vers.3 \
99         rpc_clnt_create.3 clnt_create_vers_timed.3 \
100         rpc_clnt_create.3 clnt_destroy.3 \
101         rpc_clnt_create.3 clnt_dg_create.3 \
102         rpc_clnt_create.3 clnt_pcreateerror.3 \
103         rpc_clnt_create.3 clnt_raw_create.3 \
104         rpc_clnt_create.3 clnt_spcreateerror.3 \
105         rpc_clnt_create.3 clnt_tli_create.3 \
106         rpc_clnt_create.3 clnt_tp_create.3 \
107         rpc_clnt_create.3 clnt_tp_create_timed.3 \
108         rpc_clnt_create.3 clnt_vc_create.3
109 MLINKS+=rpc_secure.3 authdes_create.3 \
110         rpc_secure.3 authdes_getucred.3 \
111         rpc_secure.3 getnetname.3 \
112         rpc_secure.3 host2netname.3 \
113         rpc_secure.3 key_decryptsession.3 \
114         rpc_secure.3 key_encryptsession.3 \
115         rpc_secure.3 key_gendes.3 \
116         rpc_secure.3 key_setsecret.3 \
117         rpc_secure.3 netname2host.3 \
118         rpc_secure.3 netname2user.3 \
119         rpc_secure.3 user2netname.3
120 MLINKS+=rpc_soc.3 authunix_create.3 \
121         rpc_soc.3 authunix_create_default.3 \
122         rpc_soc.3 callrpc.3 \
123         rpc_soc.3 clnt_broadcast.3 \
124         rpc_soc.3 clntraw_create.3 \
125         rpc_soc.3 clnttcp_create.3 \
126         rpc_soc.3 clntudp_bufcreate.3 \
127         rpc_soc.3 clntudp_create.3 \
128         rpc_soc.3 clntunix_create.3 \
129         rpc_soc.3 get_myaddress.3 \
130         rpc_soc.3 pmap_getmaps.3 \
131         rpc_soc.3 pmap_getport.3 \
132         rpc_soc.3 pmap_rmtcall.3 \
133         rpc_soc.3 pmap_set.3 \
134         rpc_soc.3 pmap_unset.3 \
135         rpc_soc.3 registerrpc.3 \
136         rpc_soc.3 rpc_createerr.3 \
137         rpc_soc.3 svcfd_create.3 \
138         rpc_soc.3 svc_fds.3 \
139         rpc_soc.3 svc_fdset.3 \
140         rpc_soc.3 svc_getcaller.3 \
141         rpc_soc.3 svc_getreq.3 \
142         rpc_soc.3 svcraw_create.3 \
143         rpc_soc.3 svc_register.3 \
144         rpc_soc.3 svctcp_create.3 \
145         rpc_soc.3 svcudp_bufcreate.3 \
146         rpc_soc.3 svcunix_create.3 \
147         rpc_soc.3 svcunixfd_create.3 \
148         rpc_soc.3 svc_unregister.3 \
149         rpc_soc.3 xdr_authunix_parms.3 \
150         rpc_soc.3 xdr_pmap.3 \
151         rpc_soc.3 xdr_pmaplist.3
152 MLINKS+=rpc_svc_calls.3 svc_dg_enablecache.3 \
153         rpc_svc_calls.3 svc_exit.3 \
154         rpc_svc_calls.3 svc_freeargs.3 \
155         rpc_svc_calls.3 svc_getargs.3 \
156         rpc_svc_calls.3 svc_getreq_common.3 \
157         rpc_svc_calls.3 svc_getreq_poll.3 \
158         rpc_svc_calls.3 svc_getreqset.3 \
159         rpc_svc_calls.3 svc_getrpccaller.3 \
160         rpc_svc_calls.3 svc_pollset.3 \
161         rpc_svc_calls.3 svc_run.3 \
162         rpc_svc_calls.3 svc_sendreply.3
163 MLINKS+=rpc_svc_create.3 svc_create.3 \
164         rpc_svc_create.3 svc_destroy.3 \
165         rpc_svc_create.3 svc_dg_create.3 \
166         rpc_svc_create.3 svc_fd_create.3 \
167         rpc_svc_create.3 svc_raw_create.3 \
168         rpc_svc_create.3 svc_tli_create.3 \
169         rpc_svc_create.3 svc_tp_create.3 \
170         rpc_svc_create.3 svc_vc_create.3
171 #       rpc_svc_create.3 svc_control.3
172 MLINKS+=rpc_svc_err.3 svcerr_auth.3 \
173         rpc_svc_err.3 svcerr_decode.3 \
174         rpc_svc_err.3 svcerr_noproc.3 \
175         rpc_svc_err.3 svcerr_noprog.3 \
176         rpc_svc_err.3 svcerr_progvers.3 \
177         rpc_svc_err.3 svcerr_systemerr.3 \
178         rpc_svc_err.3 svcerr_weakauth.3
179 MLINKS+=rpc_svc_reg.3 rpc_reg.3 \
180         rpc_svc_reg.3 svc_auth_reg.3 \
181         rpc_svc_reg.3 svc_reg.3 \
182         rpc_svc_reg.3 svc_unreg.3 \
183         rpc_svc_reg.3 xprt_register.3 \
184         rpc_svc_reg.3 xprt_unregister.3
185 .endif