Makefile.inc revision 1.59
1#	$OpenBSD: Makefile.inc,v 1.59 2016/03/30 06:38:41 jmc Exp $
2
3# net sources
4.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/net ${LIBCSRCDIR}/net
5
6CFLAGS+=-DRESOLVSORT
7
8SRCS+=	base64.c ethers.c freeaddrinfo.c \
9	gai_strerror.c getaddrinfo.c gethostnamadr.c \
10	getifaddrs.c getnameinfo.c getnetent.c \
11	getnetnamadr.c getpeereid.c getproto.c getprotoent.c getprotoname.c \
12	getservbyname.c getservbyport.c getservent.c getrrsetbyname.c \
13	herror.c if_indextoname.c if_nameindex.c if_nametoindex.c inet_addr.c \
14	inet_lnaof.c inet_makeaddr.c inet_neta.c inet_netof.c inet_network.c \
15	inet_net_ntop.c inet_net_pton.c inet_ntoa.c inet_ntop.c inet_pton.c \
16	linkaddr.c rcmd.c rcmdsh.c ruserok.c \
17	rresvport.c recv.c res_comp.c res_data.c \
18	res_debug.c res_debug_syms.c res_init.c res_mkquery.c res_query.c \
19	res_random.c res_send.c \
20	send.c sethostent.c sockatmark.c
21
22# IPv6
23SRCS+=	ip6opt.c rthdr.c vars6.c
24
25# machine-dependent net sources
26# m-d Makefile.inc must include sources for:
27#	htonl() htons() ntohl() ntohs()
28
29.include "${LIBCSRCDIR}/arch/${MACHINE_CPU}/net/Makefile.inc"
30
31MAN+=	byteorder.3 ethers.3 gai_strerror.3 getaddrinfo.3 gethostbyname.3 \
32	getifaddrs.3 getnameinfo.3 getnetent.3 getpeereid.3 getprotoent.3 \
33	getrrsetbyname.3 getservent.3 htonl.3 if_indextoname.3 \
34	inet_addr.3 inet_lnaof.3 inet_net.3 inet_ntop.3 \
35	inet6_opt_init.3 inet6_rth_space.3 link_ntoa.3 \
36	rcmd.3 rcmdsh.3 resolver.3 sockatmark.3
37