diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-15 14:04:57 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-15 14:04:57 +0000 |
commit | 7ca61b6f3379bf66b446617b8834d92c13b366dd (patch) | |
tree | c0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /networking | |
parent | 8c9daa12dcb4c1aa8f0f475896c9cfbcfb38370d (diff) | |
download | busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.gz busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.bz2 busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.zip |
- shared libbusybox.
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
Diffstat (limited to 'networking')
-rw-r--r-- | networking/Makefile.in | 12 | ||||
-rw-r--r-- | networking/libiproute/Makefile.in | 45 | ||||
-rw-r--r-- | networking/udhcp/Makefile.in | 30 |
3 files changed, 52 insertions, 35 deletions
diff --git a/networking/Makefile.in b/networking/Makefile.in index 376ecea63..2263acc00 100644 --- a/networking/Makefile.in +++ b/networking/Makefile.in | |||
@@ -9,6 +9,7 @@ ifndef $(NETWORKING_DIR) | |||
9 | NETWORKING_DIR:=$(top_builddir)/networking/ | 9 | NETWORKING_DIR:=$(top_builddir)/networking/ |
10 | endif | 10 | endif |
11 | srcdir=$(top_srcdir)/networking | 11 | srcdir=$(top_srcdir)/networking |
12 | |||
12 | NETWORKING-y:= | 13 | NETWORKING-y:= |
13 | NETWORKING-$(CONFIG_ARPING) += arping.o | 14 | NETWORKING-$(CONFIG_ARPING) += arping.o |
14 | NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o | 15 | NETWORKING-$(CONFIG_ETHER_WAKE) += ether-wake.o |
@@ -41,13 +42,22 @@ NETWORKING-$(CONFIG_VCONFIG) += vconfig.o | |||
41 | NETWORKING-$(CONFIG_WGET) += wget.o | 42 | NETWORKING-$(CONFIG_WGET) += wget.o |
42 | NETWORKING-$(CONFIG_ZCIP) += zcip.o | 43 | NETWORKING-$(CONFIG_ZCIP) += zcip.o |
43 | 44 | ||
45 | NETWORKING-y:=$(sort $(NETWORKING-y)) | ||
44 | libraries-y+=$(NETWORKING_DIR)$(NETWORKING_AR) | 46 | libraries-y+=$(NETWORKING_DIR)$(NETWORKING_AR) |
45 | 47 | ||
48 | NETWORKING_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(NETWORKING-y)) | ||
49 | NETWORKING_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
50 | APPLET_SRC-y+=$(NETWORKING_SRC-y) | ||
51 | APPLET_SRC-a+=$(NETWORKING_SRC-a) | ||
52 | |||
53 | LIBRARY_DEFINE-y+= -I$(top_srcdir)/networking | ||
54 | LIBRARY_DEFINE-a+= -I$(top_srcdir)/networking | ||
55 | |||
46 | needcrypt-y:= | 56 | needcrypt-y:= |
47 | needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y | 57 | needcrypt-$(CONFIG_FEATURE_HTTPD_AUTH_MD5) := y |
48 | 58 | ||
49 | ifeq ($(needcrypt-y),y) | 59 | ifeq ($(needcrypt-y),y) |
50 | LIBRARIES += -lcrypt | 60 | LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES)) |
51 | endif | 61 | endif |
52 | 62 | ||
53 | $(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y)) | 63 | $(NETWORKING_DIR)$(NETWORKING_AR): $(patsubst %,$(NETWORKING_DIR)%, $(NETWORKING-y)) |
diff --git a/networking/libiproute/Makefile.in b/networking/libiproute/Makefile.in index a28af4611..37d556dd9 100644 --- a/networking/libiproute/Makefile.in +++ b/networking/libiproute/Makefile.in | |||
@@ -2,27 +2,16 @@ | |||
2 | # | 2 | # |
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
4 | # | 4 | # |
5 | # This program is free software; you can redistribute it and/or modify | 5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
6 | # it under the terms of the GNU General Public License as published by | ||
7 | # the Free Software Foundation; either version 2 of the License, or | ||
8 | # (at your option) any later version. | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | # General Public License for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License | ||
16 | # along with this program; if not, write to the Free Software | ||
17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | # | 6 | # |
19 | 7 | ||
20 | LIBIPROUTE_AR:=libiproute.a | 8 | LIBIPROUTE_AR:=libiproute.a |
21 | ifndef $(LIBIPROUTE_DIR) | 9 | ifndef $(LIBIPROUTE_DIR) |
22 | LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute/ | 10 | LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute |
23 | endif | 11 | endif |
24 | srcdir=$(top_srcdir)/networking/libiproute | 12 | srcdir=$(top_srcdir)/networking/libiproute |
25 | 13 | ||
14 | LIBIPROUTE-y:= | ||
26 | LIBIPROUTE-$(CONFIG_IP) += \ | 15 | LIBIPROUTE-$(CONFIG_IP) += \ |
27 | ip_parse_common_args.o \ | 16 | ip_parse_common_args.o \ |
28 | ipaddress.o \ | 17 | ipaddress.o \ |
@@ -74,11 +63,31 @@ LIBIPROUTE-$(CONFIG_IPTUNNEL) += \ | |||
74 | rt_names.o \ | 63 | rt_names.o \ |
75 | utils.o | 64 | utils.o |
76 | 65 | ||
77 | libraries-y+=$(LIBIPROUTE_DIR)$(LIBIPROUTE_AR) | 66 | LIBIPROUTE-y:=$(sort $(LIBIPROUTE-y)) |
67 | |||
68 | LIBIPROUTE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBIPROUTE-y))) | ||
69 | LIBIPROUTE_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
70 | LIBRARY_SRC-y+=$(LIBIPROUTE_SRC-y) | ||
71 | LIBRARY_SRC-a+=$(LIBIPROUTE_SRC-a) | ||
72 | |||
73 | LIBIPROUTE-obj:=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR) | ||
74 | |||
75 | # We do not need to build an empty non-pic object/archive | ||
76 | ifneq ($(strip $(LIBIPROUTE-y)),) | ||
77 | libraries-y+=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR) | ||
78 | endif | ||
79 | |||
80 | # If we are building libbusybox.so _and_ we will use it ourselves then we | ||
81 | # keep it as small as possible | ||
82 | ifeq ($(strip $(CONFIG_FEATURE_SHARED_BUSYBOX)),y) | ||
83 | ifneq ($(strip $(LIBIPROUTE-y)),) | ||
84 | libraries-m+=$(LIBIPROUTE-multi-pic) | ||
85 | endif | ||
86 | endif | ||
78 | 87 | ||
79 | $(LIBIPROUTE_DIR)$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y)) | 88 | $(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)/%,$(LIBIPROUTE-y)) |
80 | $(AR) $(ARFLAGS) $@ $(patsubst %,$(LIBIPROUTE_DIR)%, $(LIBIPROUTE-y)) | 89 | $(AR) $(ARFLAGS) $@ $(^) |
81 | 90 | ||
82 | $(LIBIPROUTE_DIR)%.o: $(srcdir)/%.c | 91 | $(LIBIPROUTE_DIR)/%.o: $(srcdir)/%.c |
83 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< | 92 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
84 | 93 | ||
diff --git a/networking/udhcp/Makefile.in b/networking/udhcp/Makefile.in index ac9be5c57..8573a2fc4 100644 --- a/networking/udhcp/Makefile.in +++ b/networking/udhcp/Makefile.in | |||
@@ -2,19 +2,7 @@ | |||
2 | # | 2 | # |
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
4 | # | 4 | # |
5 | # This program is free software; you can redistribute it and/or modify | 5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
6 | # it under the terms of the GNU General Public License as published by | ||
7 | # the Free Software Foundation; either version 2 of the License, or | ||
8 | # (at your option) any later version. | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | # General Public License for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License | ||
16 | # along with this program; if not, write to the Free Software | ||
17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | # | 6 | # |
19 | 7 | ||
20 | UDHCP_AR:=udhcp.a | 8 | UDHCP_AR:=udhcp.a |
@@ -24,10 +12,10 @@ endif | |||
24 | srcdir=$(top_srcdir)/networking/udhcp | 12 | srcdir=$(top_srcdir)/networking/udhcp |
25 | 13 | ||
26 | #ok, so I forgot how to do an or, but this is a quick and dirty hack | 14 | #ok, so I forgot how to do an or, but this is a quick and dirty hack |
27 | ifeq ($(CONFIG_UDHCPC), y) | 15 | ifeq ($(strip $(CONFIG_UDHCPC)),y) |
28 | CONFIG_UDHCP_SHARED=y | 16 | CONFIG_UDHCP_SHARED=y |
29 | else | 17 | else |
30 | ifeq ($(CONFIG_UDHCPD), y) | 18 | ifeq ($(strip $(CONFIG_UDHCPD)),y) |
31 | CONFIG_UDHCP_SHARED=y | 19 | CONFIG_UDHCP_SHARED=y |
32 | else | 20 | else |
33 | CONFIG_UDHCP_SHARED=n | 21 | CONFIG_UDHCP_SHARED=n |
@@ -42,10 +30,20 @@ UDHCP-$(CONFIG_UDHCPC) += dhcpc.c clientpacket.c clientsocket.c \ | |||
42 | UDHCP-$(CONFIG_UDHCPD) += dhcpd.c arpping.c files.c leases.c \ | 30 | UDHCP-$(CONFIG_UDHCPD) += dhcpd.c arpping.c files.c leases.c \ |
43 | serverpacket.c static_leases.c | 31 | serverpacket.c static_leases.c |
44 | UDHCP-$(CONFIG_DUMPLEASES) += dumpleases.c | 32 | UDHCP-$(CONFIG_DUMPLEASES) += dumpleases.c |
45 | UDHCP_OBJS=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y)) | 33 | UDHCP_OBJS:=$(patsubst %.c,$(UDHCP_DIR)%.o, $(UDHCP-y)) |
46 | 34 | ||
47 | libraries-y+=$(UDHCP_DIR)$(UDHCP_AR) | 35 | libraries-y+=$(UDHCP_DIR)$(UDHCP_AR) |
48 | 36 | ||
37 | UDHCP-y:=$(patsubst %,$(srcdir)/%,$(UDHCP-y)) | ||
38 | UDHCP-a:=$(wildcard $(srcdir)/*.c) | ||
39 | APPLET_SRC-y+=$(UDHCP-y) | ||
40 | APPLET_SRC-a+=$(UDHCP-a) | ||
41 | |||
42 | UDHCP_INCLUDES:=$(srcdir) | ||
43 | |||
44 | APPLETS_DEFINE-y+=-DIN_BUSYBOX -I$(UDHCP_INCLUDES) | ||
45 | APPLETS_DEFINE-a+=-DIN_BUSYBOX -I$(UDHCP_INCLUDES) | ||
46 | |||
49 | $(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS) | 47 | $(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS) |
50 | $(AR) $(ARFLAGS) $@ $(UDHCP_OBJS) | 48 | $(AR) $(ARFLAGS) $@ $(UDHCP_OBJS) |
51 | 49 | ||