Makefile.in 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. include $(top_srcdir)libc/inet/rpc/Makefile.in
  8. INET_DIR := $(top_srcdir)libc/inet
  9. INET_OUT := $(top_builddir)libc/inet
  10. CSRC :=
  11. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  12. CSRC += getservice.c getproto.c hostid.c getnetent.c getnetbynm.c getnetbyad.c \
  13. inet_net.c herror.c if_index.c gai_strerror.c getaddrinfo.c \
  14. ether_addr.c ntohl.c ifaddrs.c ntop.c
  15. endif
  16. ifeq ($(UCLIBC_HAS_IPV6),y)
  17. CSRC += in6_addr.c
  18. endif
  19. # multi source addr.c
  20. addr_CSRC := inet_aton.c inet_addr.c inet_ntoa.c inet_makeaddr.c \
  21. inet_lnaof.c inet_netof.c
  22. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  23. CSRC += $(addr_CSRC)
  24. endif
  25. # multi source resolv.c
  26. resolv_CSRC += encodeh.c decodeh.c encoded.c decoded.c lengthd.c encodeq.c \
  27. decodeq.c lengthq.c encodea.c decodea.c \
  28. dnslookup.c resolveaddress.c opennameservers.c \
  29. closenameservers.c resolvename.c gethostbyname.c res_init.c \
  30. res_query.c gethostbyaddr.c read_etc_hosts_r.c get_hosts_byname_r.c \
  31. get_hosts_byaddr_r.c gethostbyname2.c getnameinfo.c gethostent.c \
  32. gethostbyname_r.c gethostbyname2_r.c gethostbyaddr_r.c \
  33. res_comp.c ns_name.c ethers.c
  34. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  35. CSRC += $(resolv_CSRC)
  36. # unused ATM
  37. CSRC += encodep.c decodep.c formquery.c
  38. endif
  39. # multi source socketcalls.c
  40. socketcalls_CSRC += accept.c bind.c connect.c getpeername.c getsockname.c \
  41. getsockopt.c listen.c recv.c recvfrom.c recvmsg.c send.c sendmsg.c \
  42. sendto.c setsockopt.c shutdown.c socket.c socketpair.c
  43. ifeq ($(UCLIBC_HAS_SOCKET),y)
  44. CSRC += $(socketcalls_CSRC) opensock.c
  45. endif
  46. INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC))
  47. INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC))
  48. libc-y += $(INET_OBJ)
  49. objclean-y += inet_objclean
  50. inet_objclean:
  51. $(RM) $(INET_OUT)/*.{o,os}