Makefile.in 1.5 KB

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