Makefile.in 2.0 KB

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