Makefile.in 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Makefile for busybox
  2. #
  3. # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
  4. #
  5. # Licensed under the GPL v2, see the file LICENSE in this tarball.
  6. NETWORKING_AR:=networking.a
  7. ifndef $(NETWORKING_DIR)
  8. NETWORKING_DIR:=$(top_builddir)/networking/
  9. endif
  10. srcdir=$(top_srcdir)/networking
  11. NETWORKING-y:=
  12. NETWORKING-$(CONFIG_ARPING) += arping.o
  13. NETWORKING-$(CONFIG_DNSD) += dnsd.o
  14. NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o
  15. NETWORKING-$(CONFIG_FAKEIDENTD) += fakeidentd.o
  16. NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o
  17. NETWORKING-$(CONFIG_FTPPUT) += ftpgetput.o
  18. NETWORKING-$(CONFIG_HOSTNAME) += hostname.o
  19. NETWORKING-$(CONFIG_HTTPD) += httpd.o
  20. NETWORKING-$(CONFIG_IFCONFIG) += ifconfig.o interface.o
  21. NETWORKING-$(CONFIG_IFUPDOWN) += ifupdown.o
  22. NETWORKING-$(CONFIG_INETD) += inetd.o
  23. NETWORKING-$(CONFIG_IP) += ip.o
  24. NETWORKING-$(CONFIG_IPCALC) += ipcalc.o
  25. NETWORKING-$(CONFIG_IPADDR) += ipaddr.o
  26. NETWORKING-$(CONFIG_IPLINK) += iplink.o
  27. NETWORKING-$(CONFIG_IPROUTE) += iproute.o
  28. NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o
  29. NETWORKING-$(CONFIG_NAMEIF) += nameif.o
  30. NETWORKING-$(CONFIG_NC) += nc.o
  31. NETWORKING-$(CONFIG_NETSTAT) += netstat.o
  32. NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o
  33. NETWORKING-$(CONFIG_PING) += ping.o
  34. NETWORKING-$(CONFIG_PING6) += ping6.o
  35. NETWORKING-$(CONFIG_ROUTE) += route.o
  36. NETWORKING-$(CONFIG_TELNET) += telnet.o
  37. NETWORKING-$(CONFIG_TELNETD) += telnetd.o
  38. NETWORKING-$(CONFIG_TFTP) += tftp.o
  39. NETWORKING-$(CONFIG_TRACEROUTE) += traceroute.o
  40. NETWORKING-$(CONFIG_VCONFIG) += vconfig.o
  41. NETWORKING-$(CONFIG_WGET) += wget.o
  42. NETWORKING-$(CONFIG_ZCIP) += zcip.o
  43. NETWORKING-y:=$(sort $(NETWORKING-y))
  44. ifneq ($(strip $(NETWORKING-y)),)
  45. libraries-y+=$(NETWORKING_DIR)$(NETWORKING_AR)
  46. endif
  47. NETWORKING_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(NETWORKING-y))
  48. NETWORKING_SRC-a:=$(wildcard $(srcdir)/*.c)
  49. APPLET_SRC-y+=$(NETWORKING_SRC-y)
  50. APPLET_SRC-a+=$(NETWORKING_SRC-a)
  51. LIBRARY_DEFINE-y+= -I$(top_srcdir)/networking
  52. LIBRARY_DEFINE-a+= -I$(top_srcdir)/networking
  53. needcrypt-y:=
  54. needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y
  55. ifeq ($(needcrypt-y),y)
  56. LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES))
  57. endif
  58. $(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y))
  59. $(do_ar)
  60. $(NETWORKING_DIR)%.o: $(srcdir)/%.c
  61. $(compile.c)