blob: 80cfd17333a4d8232a3d419364155cea53ec1849 [file] [log] [blame]
Eric Andersen85208e22002-04-12 12:05:57 +00001# Makefile for busybox
2#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00003# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
Eric Andersen85208e22002-04-12 12:05:57 +00004#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00005# Licensed under the GPL v2, see the file LICENSE in this tarball.
Eric Andersen85208e22002-04-12 12:05:57 +00006
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +00007srcdir:=$(top_srcdir)/networking
8objdir:=$(top_builddir)/networking
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +00009
Mike Frysingerb662f0d2005-05-11 03:59:53 +000010NETWORKING-$(CONFIG_ARPING) += arping.o
"Vladimir N. Oleynik"7b4aa6f2006-01-25 14:19:11 +000011NETWORKING-$(CONFIG_DNSD) += dnsd.o
Mike Frysingerb662f0d2005-05-11 03:59:53 +000012NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o
13NETWORKING-$(CONFIG_FAKEIDENTD) += fakeidentd.o
14NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o
15NETWORKING-$(CONFIG_FTPPUT) += ftpgetput.o
16NETWORKING-$(CONFIG_HOSTNAME) += hostname.o
17NETWORKING-$(CONFIG_HTTPD) += httpd.o
Rob Landleyb4c82322005-11-22 07:52:54 +000018NETWORKING-$(CONFIG_IFCONFIG) += ifconfig.o interface.o
Mike Frysingerb662f0d2005-05-11 03:59:53 +000019NETWORKING-$(CONFIG_IFUPDOWN) += ifupdown.o
20NETWORKING-$(CONFIG_INETD) += inetd.o
21NETWORKING-$(CONFIG_IP) += ip.o
22NETWORKING-$(CONFIG_IPCALC) += ipcalc.o
23NETWORKING-$(CONFIG_IPADDR) += ipaddr.o
24NETWORKING-$(CONFIG_IPLINK) += iplink.o
25NETWORKING-$(CONFIG_IPROUTE) += iproute.o
26NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o
27NETWORKING-$(CONFIG_NAMEIF) += nameif.o
28NETWORKING-$(CONFIG_NC) += nc.o
29NETWORKING-$(CONFIG_NETSTAT) += netstat.o
30NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o
31NETWORKING-$(CONFIG_PING) += ping.o
32NETWORKING-$(CONFIG_PING6) += ping6.o
33NETWORKING-$(CONFIG_ROUTE) += route.o
34NETWORKING-$(CONFIG_TELNET) += telnet.o
35NETWORKING-$(CONFIG_TELNETD) += telnetd.o
36NETWORKING-$(CONFIG_TFTP) += tftp.o
37NETWORKING-$(CONFIG_TRACEROUTE) += traceroute.o
38NETWORKING-$(CONFIG_VCONFIG) += vconfig.o
39NETWORKING-$(CONFIG_WGET) += wget.o
40NETWORKING-$(CONFIG_ZCIP) += zcip.o
Eric Andersen85208e22002-04-12 12:05:57 +000041
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000042NETWORKING-y:=$(sort $(NETWORKING-y))
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000043
44needcrypt-y:=
45needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000046ifeq ($(needcrypt-y),y)
47 LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES))
Rob Landleyd6e14d82006-02-21 19:11:35 +000048endif
Eric Andersen85208e22002-04-12 12:05:57 +000049
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000050NETWORKING_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(NETWORKING-y))
51NETWORKING_SRC-a:=$(wildcard $(srcdir)/*.c)
52APPLET_SRC-y+=$(NETWORKING_SRC-y)
53APPLET_SRC-a+=$(NETWORKING_SRC-a)
54
55LIBRARY_DEFINE-y+= -I$(top_srcdir)/networking
56LIBRARY_DEFINE-a+= -I$(top_srcdir)/networking
57
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000058networking_OBJ:= $(patsubst %,$(objdir)/%,$(NETWORKING-y))
Eric Andersen35e643b2003-07-28 07:40:39 +000059
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +000060$(networking_OBJ): $(objdir)/%.o: $(srcdir)/%.c
61$(objdir)/networking.a: $(networking_OBJ)
62libraries-y:=$(libraries-y) $(objdir)/networking.a
63