Makefile.in 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_CRYPT_IMPL)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  12. # des uses nthol
  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 := inet_aton.c inet_addr.c inet_ntoa.c inet_makeaddr.c \
  25. inet_lnaof.c inet_netof.c
  26. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  27. CSRC += $(addr_CSRC)
  28. endif
  29. # multi source resolv.c
  30. resolv_CSRC += encodeh.c decodeh.c encoded.c decoded.c lengthd.c encodeq.c \
  31. decodeq.c lengthq.c encodea.c decodea.c \
  32. dnslookup.c resolveaddress.c opennameservers.c \
  33. closenameservers.c resolvename.c gethostbyname.c res_init.c \
  34. res_query.c gethostbyaddr.c read_etc_hosts_r.c get_hosts_byname_r.c \
  35. get_hosts_byaddr_r.c gethostbyname2.c getnameinfo.c gethostent.c \
  36. gethostbyname_r.c gethostbyname2_r.c gethostbyaddr_r.c \
  37. res_comp.c ns_name.c ethers.c
  38. ifneq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
  39. CSRC += $(resolv_CSRC)
  40. # unused ATM
  41. CSRC += encodep.c decodep.c formquery.c
  42. endif
  43. # multi source socketcalls.c
  44. socketcalls_CSRC += accept.c bind.c connect.c getpeername.c getsockname.c \
  45. getsockopt.c listen.c recv.c recvfrom.c recvmsg.c send.c sendmsg.c \
  46. sendto.c setsockopt.c shutdown.c socket.c socketpair.c
  47. ifeq ($(UCLIBC_HAS_SOCKET),y)
  48. CSRC += $(socketcalls_CSRC) opensock.c
  49. endif
  50. INET_SRC := $(patsubst %.c,$(INET_DIR)/%.c,$(CSRC))
  51. INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC))
  52. libc-y += $(INET_OBJ)
  53. objclean-y += inet_objclean
  54. inet_objclean:
  55. $(RM) $(INET_OUT)/*.{o,os}