Makefile.in 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. 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_CRYPT_IMPL)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  12. # des uses ntohl
  13. CSRC += ntohl.c
  14. endif
  15. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  16. CSRC += getservice.c getproto.c hostid.c getnetent.c getnetbynm.c getnetbyad.c \
  17. inet_net.c herror.c if_index.c gai_strerror.c getaddrinfo.c \
  18. ether_addr.c ifaddrs.c ntop.c
  19. endif
  20. ifeq ($(UCLIBC_HAS_IPV6),y)
  21. CSRC += in6_addr.c
  22. endif
  23. # multi source addr.c
  24. addr_CSRC := \
  25. inet_aton.c inet_addr.c inet_ntoa.c inet_makeaddr.c \
  26. inet_lnaof.c inet_netof.c
  27. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  28. CSRC += $(addr_CSRC)
  29. endif
  30. # multi source resolv.c
  31. resolv_CSRC += \
  32. encodeh.c decodeh.c encoded.c decoded.c \
  33. encodeq.c encodea.c \
  34. dnslookup.c opennameservers.c closenameservers.c \
  35. read_etc_hosts_r.c get_hosts_byaddr_r.c get_hosts_byname_r.c \
  36. getnameinfo.c \
  37. gethostbyaddr_r.c gethostbyname_r.c gethostbyname2_r.c gethostent_r.c \
  38. gethostbyaddr.c gethostbyname.c gethostbyname2.c gethostent.c \
  39. res_init.c res_query.c res_comp.c ns_name.c
  40. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  41. CSRC += $(resolv_CSRC)
  42. ## # unused ATM
  43. ## CSRC += encodep.c decodep.c formquery.c
  44. endif
  45. # multi source socketcalls.c
  46. socketcalls_CSRC += \
  47. accept.c bind.c connect.c getpeername.c getsockname.c \
  48. getsockopt.c listen.c recv.c recvfrom.c recvmsg.c send.c sendmsg.c \
  49. sendto.c setsockopt.c shutdown.c socket.c socketpair.c
  50. ifeq ($(UCLIBC_HAS_SOCKET),y)
  51. CSRC += $(socketcalls_CSRC) opensock.c
  52. endif
  53. ifneq ($(UCLIBC_HAS_SOCKET)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  54. CSRC += ethers.c
  55. endif
  56. INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC))
  57. INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC))
  58. libc-y += $(INET_OBJ)
  59. objclean-y += inet_clean
  60. inet_clean:
  61. $(do_rm) $(addprefix $(INET_OUT)/*., o os)