summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/Makefile.in12
1 files changed, 7 insertions, 5 deletions
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))