From a55b1393bb707bcf9a65c6d278a96aa0ff7a3e62 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 29 Dec 2008 14:09:28 +0000 Subject: - ethers only make sense if we want to play with ethernet addresses as in /etc/ethers (man 5 ethers) Assume that any of socket- or IP support indicate that need. --- libc/inet/Makefile.in | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'libc/inet/Makefile.in') diff --git a/libc/inet/Makefile.in b/libc/inet/Makefile.in index b15f49e5f..dd17633ef 100644 --- a/libc/inet/Makefile.in +++ b/libc/inet/Makefile.in @@ -35,18 +35,16 @@ endif # multi source resolv.c resolv_CSRC += \ encodeh.c decodeh.c encoded.c decoded.c lengthd.c \ - encodeq.c decodeq.c lengthq.c encodea.c decodea.c \ + encodeq.c decodeq.c encodea.c decodea.c lengthq.c \ dnslookup.c opennameservers.c closenameservers.c \ read_etc_hosts_r.c get_hosts_byaddr_r.c get_hosts_byname_r.c \ getnameinfo.c \ gethostbyaddr_r.c gethostbyname_r.c gethostbyname2_r.c gethostent_r.c \ gethostbyaddr.c gethostbyname.c gethostbyname2.c gethostent.c \ - res_init.c res_query.c res_comp.c ns_name.c \ - ethers.c -#FIXME! ethers.c is a separate file, not a part of resolv.c - !? + res_init.c res_query.c res_comp.c ns_name.c + ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),) CSRC += $(resolv_CSRC) - ## # unused ATM ## CSRC += encodep.c decodep.c formquery.c endif @@ -61,6 +59,10 @@ ifeq ($(UCLIBC_HAS_SOCKET),y) CSRC += $(socketcalls_CSRC) opensock.c endif +ifneq ($(UCLIBC_HAS_SOCKET)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),) +CSRC += ethers.c +endif + INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC)) INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC)) -- cgit v1.2.3