blob: 376ecea6375f7859fbd9e575e8ef7ec8ce77c58f [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
7NETWORKING_AR:=networking.a
8ifndef $(NETWORKING_DIR)
Eric Andersen7daa0762004-10-08 07:46:08 +00009NETWORKING_DIR:=$(top_builddir)/networking/
Eric Andersen85208e22002-04-12 12:05:57 +000010endif
Eric Andersen7daa0762004-10-08 07:46:08 +000011srcdir=$(top_srcdir)/networking
Eric Andersen85208e22002-04-12 12:05:57 +000012NETWORKING-y:=
Mike Frysingerb662f0d2005-05-11 03:59:53 +000013NETWORKING-$(CONFIG_ARPING) += arping.o
14NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o
15NETWORKING-$(CONFIG_FAKEIDENTD) += fakeidentd.o
16NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o
17NETWORKING-$(CONFIG_FTPPUT) += ftpgetput.o
18NETWORKING-$(CONFIG_HOSTNAME) += hostname.o
19NETWORKING-$(CONFIG_HTTPD) += httpd.o
Rob Landleyb4c82322005-11-22 07:52:54 +000020NETWORKING-$(CONFIG_IFCONFIG) += ifconfig.o interface.o
Mike Frysingerb662f0d2005-05-11 03:59:53 +000021NETWORKING-$(CONFIG_IFUPDOWN) += ifupdown.o
22NETWORKING-$(CONFIG_INETD) += inetd.o
23NETWORKING-$(CONFIG_IP) += ip.o
24NETWORKING-$(CONFIG_IPCALC) += ipcalc.o
25NETWORKING-$(CONFIG_IPADDR) += ipaddr.o
26NETWORKING-$(CONFIG_IPLINK) += iplink.o
27NETWORKING-$(CONFIG_IPROUTE) += iproute.o
28NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o
29NETWORKING-$(CONFIG_NAMEIF) += nameif.o
30NETWORKING-$(CONFIG_NC) += nc.o
31NETWORKING-$(CONFIG_NETSTAT) += netstat.o
32NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o
33NETWORKING-$(CONFIG_PING) += ping.o
34NETWORKING-$(CONFIG_PING6) += ping6.o
35NETWORKING-$(CONFIG_ROUTE) += route.o
36NETWORKING-$(CONFIG_TELNET) += telnet.o
37NETWORKING-$(CONFIG_TELNETD) += telnetd.o
38NETWORKING-$(CONFIG_TFTP) += tftp.o
39NETWORKING-$(CONFIG_TRACEROUTE) += traceroute.o
40NETWORKING-$(CONFIG_VCONFIG) += vconfig.o
41NETWORKING-$(CONFIG_WGET) += wget.o
42NETWORKING-$(CONFIG_ZCIP) += zcip.o
Eric Andersen85208e22002-04-12 12:05:57 +000043
44libraries-y+=$(NETWORKING_DIR)$(NETWORKING_AR)
45
Eric Andersen35e643b2003-07-28 07:40:39 +000046needcrypt-y:=
47needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y
48
49ifeq ($(needcrypt-y),y)
Mike Frysingerb662f0d2005-05-11 03:59:53 +000050 LIBRARIES += -lcrypt
Eric Andersen35e643b2003-07-28 07:40:39 +000051endif
52
Eric Andersen85208e22002-04-12 12:05:57 +000053$(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y))
Mike Frysinger4d008962005-07-27 01:09:24 +000054 $(AR) $(ARFLAGS) $@ $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y))
Eric Andersen85208e22002-04-12 12:05:57 +000055
Eric Andersen7daa0762004-10-08 07:46:08 +000056$(NETWORKING_DIR)%.o: $(srcdir)/%.c
57 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<