Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 4 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 6 | |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 7 | srcdir=$(top_srcdir)/networking |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 8 | objdir=$(top_builddir)/networking |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 9 | |
Mike Frysinger | b662f0d | 2005-05-11 03:59:53 +0000 | [diff] [blame] | 10 | NETWORKING-$(CONFIG_ARPING) += arping.o |
"Vladimir N. Oleynik" | 7b4aa6f | 2006-01-25 14:19:11 +0000 | [diff] [blame] | 11 | NETWORKING-$(CONFIG_DNSD) += dnsd.o |
Mike Frysinger | b662f0d | 2005-05-11 03:59:53 +0000 | [diff] [blame] | 12 | NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o |
| 13 | NETWORKING-$(CONFIG_FAKEIDENTD) += fakeidentd.o |
| 14 | NETWORKING-$(CONFIG_FTPGET) += ftpgetput.o |
| 15 | NETWORKING-$(CONFIG_FTPPUT) += ftpgetput.o |
| 16 | NETWORKING-$(CONFIG_HOSTNAME) += hostname.o |
| 17 | NETWORKING-$(CONFIG_HTTPD) += httpd.o |
Rob Landley | b4c8232 | 2005-11-22 07:52:54 +0000 | [diff] [blame] | 18 | NETWORKING-$(CONFIG_IFCONFIG) += ifconfig.o interface.o |
Mike Frysinger | b662f0d | 2005-05-11 03:59:53 +0000 | [diff] [blame] | 19 | NETWORKING-$(CONFIG_IFUPDOWN) += ifupdown.o |
| 20 | NETWORKING-$(CONFIG_INETD) += inetd.o |
| 21 | NETWORKING-$(CONFIG_IP) += ip.o |
| 22 | NETWORKING-$(CONFIG_IPCALC) += ipcalc.o |
| 23 | NETWORKING-$(CONFIG_IPADDR) += ipaddr.o |
| 24 | NETWORKING-$(CONFIG_IPLINK) += iplink.o |
| 25 | NETWORKING-$(CONFIG_IPROUTE) += iproute.o |
| 26 | NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o |
| 27 | NETWORKING-$(CONFIG_NAMEIF) += nameif.o |
| 28 | NETWORKING-$(CONFIG_NC) += nc.o |
| 29 | NETWORKING-$(CONFIG_NETSTAT) += netstat.o |
| 30 | NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o |
| 31 | NETWORKING-$(CONFIG_PING) += ping.o |
| 32 | NETWORKING-$(CONFIG_PING6) += ping6.o |
| 33 | NETWORKING-$(CONFIG_ROUTE) += route.o |
| 34 | NETWORKING-$(CONFIG_TELNET) += telnet.o |
| 35 | NETWORKING-$(CONFIG_TELNETD) += telnetd.o |
| 36 | NETWORKING-$(CONFIG_TFTP) += tftp.o |
| 37 | NETWORKING-$(CONFIG_TRACEROUTE) += traceroute.o |
| 38 | NETWORKING-$(CONFIG_VCONFIG) += vconfig.o |
| 39 | NETWORKING-$(CONFIG_WGET) += wget.o |
| 40 | NETWORKING-$(CONFIG_ZCIP) += zcip.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 41 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 42 | NETWORKING-y:=$(sort $(NETWORKING-y)) |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 43 | |
| 44 | needcrypt-y:= |
| 45 | needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 46 | ifeq ($(needcrypt-y),y) |
| 47 | LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES)) |
Rob Landley | d6e14d8 | 2006-02-21 19:11:35 +0000 | [diff] [blame] | 48 | endif |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 49 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 50 | NETWORKING_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(NETWORKING-y)) |
| 51 | NETWORKING_SRC-a:=$(wildcard $(srcdir)/*.c) |
| 52 | APPLET_SRC-y+=$(NETWORKING_SRC-y) |
| 53 | APPLET_SRC-a+=$(NETWORKING_SRC-a) |
| 54 | |
| 55 | LIBRARY_DEFINE-y+= -I$(top_srcdir)/networking |
| 56 | LIBRARY_DEFINE-a+= -I$(top_srcdir)/networking |
| 57 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 58 | networking_OBJ:= $(patsubst %,$(objdir)/%,$(NETWORKING-y)) |
Eric Andersen | 35e643b | 2003-07-28 07:40:39 +0000 | [diff] [blame] | 59 | |