125401Sjb#	from @(#)Makefile.inc	8.2 (Berkeley) 9/5/93
250476Speter# $FreeBSD$
31573Srgrimes
41573Srgrimes# machine-independent net sources
5164053Scognet.PATH: ${.CURDIR}/net
61573Srgrimes
7167121SbmsSRCS+=	base64.c ether_addr.c eui64.c \
8144708Sume	gai_strerror.c getaddrinfo.c \
916352Swollman	gethostbydns.c gethostbyht.c gethostbynis.c gethostnamadr.c \
10122687Sbms	getifaddrs.c getifmaddrs.c getnameinfo.c \
113070Spst	getnetbydns.c getnetbyht.c getnetbynis.c getnetnamadr.c \
12158115Sume	getproto.c getprotoent.c getprotoname.c getservent.c \
13156960Sume	if_indextoname.c if_nameindex.c if_nametoindex.c \
14164053Scognet	ip6opt.c linkaddr.c map_v4v6.c name6.c ntoh.c \
15173660Sru	nsdispatch.c nslexer.c nsparser.y nss_compat.c \
16165242Srrs	rcmd.c rcmdsh.c recv.c rthdr.c sctp_sys_calls.c send.c \
17170613Sbms        sockatmark.c sourcefilter.c vars.c
1814092Swollman
19158115Sume.if ${MK_NS_CACHING} != "no"
20158115SumeSRCS+=	nscache.c nscachedcli.c
21158115Sume.endif
22158115Sume
23156613SdeischenSYM_MAPS+=${.CURDIR}/net/Symbol.map
24156613Sdeischen
25160700Syar.if ${MK_INET6_SUPPORT} != "no"
26160700SyarCFLAGS+=-DINET6
27160700Syar.endif
2855163Sshin
29160700SyarCFLAGS+=-I${.OBJDIR}
30160700Syar
31156960Sume# name6.c refers res_private.h
32156960SumeCFLAGS+=-I${.CURDIR}/resolv
33156960Sume
3465532SnectarYFLAGS+=-p_nsyy
3565532SnectarLFLAGS+=-P_nsyy
3665532Snectar
37173660SruCLEANFILES+=nslexer.c
3865532Snectar
39237402Sobriennslexer.c: nslexer.l nsparser.h
4065532Snectar	${LEX} ${LFLAGS} -o/dev/stdout ${.IMPSRC} | \
4165532Snectar		sed -e '/YY_BUF_SIZE/s/16384/1024/' >${.TARGET}
4265532Snectar
43167121SbmsMAN+=	byteorder.3 ethers.3 eui64.3 \
44140665Sgnn	getaddrinfo.3 gai_strerror.3 gethostbyname.3 \
45122687Sbms	getifaddrs.3 getifmaddrs.3 getipnodebyname.3 \
46148796Sphk	getnameinfo.3 getnetent.3 getprotoent.3 getservent.3 \
4765532Snectar	if_indextoname.3 \
4882644Sru	inet.3 inet_net.3 \
49121472Sume	inet6_opt_init.3 inet6_option_space.3 inet6_rth_space.3 \
50121472Sume	inet6_rthdr_space.3 linkaddr.3 \
51166886Srrs	nsdispatch.3 rcmd.3 rcmdsh.3 resolver.3 sockatmark.3 \
52170634Sbms	sourcefilter.3 \
53166886Srrs        sctp_bindx.3 sctp_connectx.3 sctp_freepaddrs.3 \
54166886Srrs        sctp_getaddrlen.3 sctp_getassocid.3 sctp_getpaddrs.3 \
55166886Srrs        sctp_opt_info.3 sctp_recvmsg.3 sctp_send.3 sctp_sendmsg.3 \
561573Srgrimes
571573SrgrimesMLINKS+=byteorder.3 htonl.3 byteorder.3 htons.3 byteorder.3 ntohl.3 \
581573Srgrimes	byteorder.3 ntohs.3
5930624SbdeMLINKS+=ethers.3 ether_aton.3 ethers.3 ether_hostton.3 ethers.3 ether_line.3 \
6030624Sbde	ethers.3 ether_ntoa.3 ethers.3 ether_ntohost.3
61129759SbrooksMLINKS+=eui64.3 eui64_aton.3 eui64.3 eui64_hostton.3 \
62129759Sbrooks	eui64.3 eui64_ntoa.3 eui64.3 eui64_ntohost.3
63140690SgnnMLINKS+=getaddrinfo.3 freeaddrinfo.3 
6417916SpeterMLINKS+=gethostbyname.3 endhostent.3 gethostbyname.3 gethostbyaddr.3 \
6530624Sbde	gethostbyname.3 gethostbyname2.3 gethostbyname.3 gethostent.3 \
6620486Smpp	gethostbyname.3 herror.3 gethostbyname.3 hstrerror.3 \
6730624Sbde	gethostbyname.3 sethostent.3
6862606SitojunMLINKS+=getifaddrs.3 freeifaddrs.3
69122687SbmsMLINKS+=getifmaddrs.3 freeifmaddrs.3
7055163SshinMLINKS+=getipnodebyname.3 getipnodebyaddr.3 getipnodebyname.3 freehostent.3
7117916SpeterMLINKS+=getnetent.3 endnetent.3 getnetent.3 getnetbyaddr.3 \
7217916Speter	getnetent.3 getnetbyname.3 getnetent.3 setnetent.3
731573SrgrimesMLINKS+=getprotoent.3 endprotoent.3 getprotoent.3 getprotobyname.3 \
741573Srgrimes	getprotoent.3 getprotobynumber.3 getprotoent.3 setprotoent.3
751573SrgrimesMLINKS+=getservent.3 endservent.3 getservent.3 getservbyname.3 \
761573Srgrimes	getservent.3 getservbyport.3 getservent.3 setservent.3
7757939SshinMLINKS+=if_indextoname.3 if_nametoindex.3 if_indextoname.3 if_nameindex.3 \
7857939Sshin	if_indextoname.3 if_freenameindex.3
7930624SbdeMLINKS+=inet.3 addr.3 inet.3 inet_addr.3 inet.3 inet_aton.3 \
8030624Sbde	inet.3 inet_lnaof.3 inet.3 inet_makeaddr.3 inet.3 inet_netof.3 \
81170548Sdelphij	inet.3 inet_network.3 inet.3 inet_ntoa.3 inet.3 inet_ntoa_r.3\
8257940Sshin	inet.3 inet_ntop.3 inet.3 inet_pton.3 \
8357940Sshin	inet.3 network.3 inet.3 ntoa.3 
84166886SrrsMLINKS+= sctp_send.3 sctp_sendx.3
85166886SrrsMLINKS+= sctp_sendmsg.3 sctp_sendmsgx.3
86166886SrrsMLINKS+= sctp_freepaddrs.3 sctp_freeladdrs.3
87166886SrrsMLINKS+= sctp_getpaddrs.3 sctp_getladdrs.3
8882644SruMLINKS+=inet_net.3 inet_net_ntop.3 inet_net.3 inet_net_pton.3
89121472SumeMLINKS+=inet6_opt_init.3 inet6_opt_append.3 \
90121472Sume	inet6_opt_init.3 inet6_opt_find.3 \
91121472Sume	inet6_opt_init.3 inet6_opt_finish.3 \
92121472Sume	inet6_opt_init.3 inet6_opt_get_val.3 \
93121472Sume	inet6_opt_init.3 inet6_opt_next.3 \
94121472Sume	inet6_opt_init.3 inet6_opt_set_val.3 \
95121472Sume	inet6_option_space.3 inet6_option_alloc.3 \
9657936Sshin	inet6_option_space.3 inet6_option_append.3 \
9757936Sshin	inet6_option_space.3 inet6_option_find.3 \
9857936Sshin	inet6_option_space.3 inet6_option_init.3 \
9957936Sshin	inet6_option_space.3 inet6_option_next.3 \
100121472Sume	inet6_rth_space.3 inet6_rth_add.3 \
101121472Sume	inet6_rth_space.3 inet6_rth_getaddr.3 \
102121472Sume	inet6_rth_space.3 inet6_rth_init.3 \
103121472Sume	inet6_rth_space.3 inet6_rth_reverse.3 \
104121472Sume	inet6_rth_space.3 inet6_rth_segments.3 \
10557936Sshin	inet6_rthdr_space.3 inet6_rthdr_add.3 \
10657936Sshin	inet6_rthdr_space.3 inet6_rthdr_getaddr.3 \
10757936Sshin	inet6_rthdr_space.3 inet6_rthdr_getflags.3 \
10857936Sshin	inet6_rthdr_space.3 inet6_rthdr_init.3 \
10957936Sshin	inet6_rthdr_space.3 inet6_rthdr_lasthop.3 \
11057936Sshin	inet6_rthdr_space.3 inet6_rthdr_reverse.3 \
11157936Sshin	inet6_rthdr_space.3 inet6_rthdr_segments.3
11213987SmppMLINKS+=linkaddr.3 link_addr.3 linkaddr.3 link_ntoa.3 
11357937SshinMLINKS+=rcmd.3 iruserok.3 rcmd.3 iruserok_sa.3 \
11457937Sshin	rcmd.3 rcmd_af.3 \
11557937Sshin	rcmd.3 rresvport.3 rcmd.3 rresvport_af.3 \
11657937Sshin	rcmd.3 ruserok.3
11717916SpeterMLINKS+=resolver.3 dn_comp.3 resolver.3 dn_expand.3 resolver.3 res_init.3 \
11830624Sbde	resolver.3 res_mkquery.3 resolver.3 res_query.3 \
11979486Stobez	resolver.3 res_search.3 resolver.3 res_send.3 resolver.3 dn_skipname.3 \
12079486Stobez	resolver.3 ns_get16.3 resolver.3 ns_get32.3 \
12179486Stobez	resolver.3 ns_put16.3 resolver.3 ns_put32.3
122170639SacheMLINKS+=sourcefilter.3 setipv4sourcefilter.3 sourcefilter.3 getipv4sourcefilter.3 \
123170639Sache	sourcefilter.3 setsourcefilter.3 sourcefilter.3 getsourcefilter.3
124148796Sphk
125156813Sru.if ${MK_HESIOD} != "no"
126148796SphkSRCS+=	hesiod.c 
127148796SphkMAN+=	hesiod.3
128148796Sphk.endif
129148796Sphk
130