Makefile.in 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 lengthd.c \
  33. encodeq.c decodeq.c lengthq.c encodea.c decodea.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. ethers.c
  41. #FIXME! ethers.c is a separate file, not a part of resolv.c - !?
  42. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  43. CSRC += $(resolv_CSRC)
  44. ## # unused ATM
  45. ## CSRC += encodep.c decodep.c formquery.c
  46. endif
  47. # multi source socketcalls.c
  48. socketcalls_CSRC += \
  49. accept.c bind.c connect.c getpeername.c getsockname.c \
  50. getsockopt.c listen.c recv.c recvfrom.c recvmsg.c send.c sendmsg.c \
  51. sendto.c setsockopt.c shutdown.c socket.c socketpair.c
  52. ifeq ($(UCLIBC_HAS_SOCKET),y)
  53. CSRC += $(socketcalls_CSRC) opensock.c
  54. endif
  55. INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC))
  56. INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC))
  57. libc-y += $(INET_OBJ)
  58. objclean-y += inet_clean
  59. inet_clean:
  60. $(do_rm) $(addprefix $(INET_OUT)/*., o os)