3 # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 include $(top_srcdir
)libc
/inet
/rpc
/Makefile.in
12 INET_DIR
:= $(top_srcdir
)libc
/inet
13 INET_OUT
:= $(top_builddir
)libc
/inet
14 V4_OR_V6
:= $(findstring y
,$(UCLIBC_HAS_IPV4
)$(UCLIBC_HAS_IPV6
))
16 CFLAGS-y-libc
/inet
:= -DRESOLVER
="\"resolv.c\""
19 CSRC-
$(findstring y
,$(UCLIBC_HAS_CRYPT_IMPL
)$(V4_OR_V6
)) += ntohl.c
21 getservice.c getproto.c getnet.c hostid.c \
22 inet_net.c herror.c if_index.c gai_strerror.c getaddrinfo.c \
24 CSRC-
$(UCLIBC_HAS_IPV6
) += in6_addr.c
27 inet_aton.c inet_addr.c inet_ntoa.c inet_makeaddr.c \
28 inet_lnaof.c inet_netof.c
29 # multi source resolv.c
31 encodeh.c decodeh.c encoded.c decoded.c \
34 dnslookup.c opennameservers.c closenameservers.c \
36 gethostent.c gethostent_r.c
38 get_hosts_byaddr_r.c get_hosts_byname_r.c \
39 gethostbyaddr_r.c gethostbyname_r.c gethostbyname2_r.c \
40 gethostbyaddr.c gethostbyname.c gethostbyname2.c
41 CSRC-
$(UCLIBC_HAS_RESOLVER_SUPPORT
) += \
42 ns_netint.c ns_parse.c res_data.c \
43 res_init.c res_query.c res_comp.c ns_name.c \
46 ## CSRC-y += encodep.c decodep.c formquery.c
48 # multi source socketcalls.c
49 socketcalls_CSRC-y
+= \
50 accept.c bind.c connect.c getpeername.c getsockname.c \
51 getsockopt.c listen.c recv.c recvfrom.c recvmsg.c send.c sendmsg.c \
52 sendto.c setsockopt.c shutdown.c socket.c socketpair.c
53 socketcalls_CSRC-
$(UCLIBC_LINUX_SPECIFIC
) += accept4.c
54 CSRC-
$(UCLIBC_HAS_SOCKET
) += $(socketcalls_CSRC-y
) opensock.c
56 CSRC-
$(findstring y
,$(UCLIBC_HAS_SOCKET
)$(V4_OR_V6
)) += ethers.c ether_addr.c
58 INET_SRC
:= $(patsubst %.c
,$(INET_DIR
)/%.c
,$(CSRC-y
))
59 INET_OBJ
:= $(patsubst %.c
,$(INET_OUT
)/%.o
,$(CSRC-y
))
63 objclean-y
+= CLEAN_libc
/inet
66 $(do_rm
) $(addprefix $(INET_OUT
)/*.
, o os
)