summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/Makefile.in30
1 files changed, 21 insertions, 9 deletions
diff --git a/libc/inet/Makefile.in b/libc/inet/Makefile.in
index b1ea25b26..658e21d95 100644
--- a/libc/inet/Makefile.in
+++ b/libc/inet/Makefile.in
@@ -7,16 +7,23 @@
include $(top_srcdir)libc/inet/rpc/Makefile.in
+INET_DIR := $(top_srcdir)libc/inet
+INET_OUT := $(top_builddir)libc/inet
+
CSRC := getservice.c getproto.c hostid.c getnetent.c getnetbynm.c getnetbyad.c \
inet_net.c ntop.c herror.c if_index.c gai_strerror.c getaddrinfo.c \
in6_addr.c ether_addr.c ntohl.c opensock.c ifaddrs.c
# multi source addr.c
-CSRC += inet_aton.c inet_addr.c inet_ntoa.c inet_makeaddr.c inet_lnaof.c \
- inet_netof.c
+addr_CSRC := inet_aton.c inet_addr.c inet_ntoa.c inet_makeaddr.c \
+ inet_lnaof.c inet_netof.c
+$(patsubst %.c,$(INET_DIR)/%.o,$(addr_CSRC)): $(INET_DIR)/addr.c
+$(patsubst %.c,$(INET_DIR)/%.os,$(addr_CSRC)): $(INET_DIR)/addr.c
+$(patsubst %.c,$(INET_DIR)/%.oS,$(addr_CSRC)): $(INET_DIR)/addr.c
+CSRC += $(addr_CSRC)
# multi source resolv.c
-CSRC += encodeh.c decodeh.c encoded.c decoded.c lengthd.c encodeq.c \
+resolv_CSRC += encodeh.c decodeh.c encoded.c decoded.c lengthd.c encodeq.c \
decodeq.c lengthq.c encodea.c decodea.c \
dnslookup.c resolveaddress.c opennameservers.c \
closenameservers.c resolvename.c gethostbyname.c res_init.c \
@@ -24,17 +31,22 @@ CSRC += encodeh.c decodeh.c encoded.c decoded.c lengthd.c encodeq.c \
get_hosts_byaddr_r.c gethostbyname2.c getnameinfo.c gethostent.c \
gethostbyname_r.c gethostbyname2_r.c gethostbyaddr_r.c \
res_comp.c ns_name.c ethers.c
+$(patsubst %.c,$(INET_DIR)/%.o,$(resolv_CSRC)): $(INET_DIR)/resolv.c
+$(patsubst %.c,$(INET_DIR)/%.os,$(resolv_CSRC)): $(INET_DIR)/resolv.c
+$(patsubst %.c,$(INET_DIR)/%.oS,$(resolv_CSRC)): $(INET_DIR)/resolv.c
+CSRC += $(resolv_CSRC)
# unused ATM
CSRC += encodep.c decodep.c formquery.c
# multi source socketcalls.c
-CSRC += accept.c bind.c connect.c getpeername.c getsockname.c getsockopt.c \
- listen.c recv.c recvfrom.c recvmsg.c send.c sendmsg.c sendto.c \
- setsockopt.c shutdown.c socket.c socketpair.c
-
-INET_DIR := $(top_srcdir)libc/inet
-INET_OUT := $(top_builddir)libc/inet
+socketcalls_CSRC += accept.c bind.c connect.c getpeername.c getsockname.c \
+ getsockopt.c listen.c recv.c recvfrom.c recvmsg.c send.c sendmsg.c \
+ sendto.c setsockopt.c shutdown.c socket.c socketpair.c
+$(patsubst %.c,$(INET_DIR)/%.o,$(socketcalls_CSRC)): $(INET_DIR)/socketcalls.c
+$(patsubst %.c,$(INET_DIR)/%.os,$(socketcalls_CSRC)): $(INET_DIR)/socketcalls.c
+$(patsubst %.c,$(INET_DIR)/%.oS,$(socketcalls_CSRC)): $(INET_DIR)/socketcalls.c
+CSRC += $(socketcalls_CSRC)
INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC))
INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC))