summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-12-29 14:09:28 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-12-29 14:09:28 +0000
commita55b1393bb707bcf9a65c6d278a96aa0ff7a3e62 (patch)
treef353d2571a2d6beeb67501343813287e2db34aa8 /libc/inet
parent3a40407c06a470f5b15a4df310ab135233ac6109 (diff)
- 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.
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))