summaryrefslogtreecommitdiff
path: root/networking/libiproute
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /networking/libiproute
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip
build system overhaul
Diffstat (limited to 'networking/libiproute')
-rw-r--r--networking/libiproute/Kbuild58
-rw-r--r--networking/libiproute/Makefile36
-rw-r--r--networking/libiproute/Makefile.in83
3 files changed, 58 insertions, 119 deletions
diff --git a/networking/libiproute/Kbuild b/networking/libiproute/Kbuild
new file mode 100644
index 000000000..476374e19
--- /dev/null
+++ b/networking/libiproute/Kbuild
@@ -0,0 +1,58 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8lib-y:=
9lib-$(CONFIG_IP) += \
10 ip_parse_common_args.o \
11 ipaddress.o \
12 iplink.o \
13 iproute.o \
14 iptunnel.o \
15 libnetlink.o \
16 ll_addr.o \
17 ll_map.o \
18 ll_proto.o \
19 ll_types.o \
20 rt_names.o \
21 rtm_map.o \
22 utils.o
23
24lib-$(CONFIG_IPADDR) += \
25 ip_parse_common_args.o \
26 ipaddress.o \
27 libnetlink.o \
28 ll_addr.o \
29 ll_map.o \
30 ll_types.o \
31 rt_names.o \
32 utils.o
33
34lib-$(CONFIG_IPLINK) += \
35 ip_parse_common_args.o \
36 ipaddress.o \
37 iplink.o \
38 libnetlink.o \
39 ll_addr.o \
40 ll_map.o \
41 ll_types.o \
42 rt_names.o \
43 utils.o
44
45lib-$(CONFIG_IPROUTE) += \
46 ip_parse_common_args.o \
47 iproute.o \
48 libnetlink.o \
49 ll_map.o \
50 rt_names.o \
51 rtm_map.o \
52 utils.o
53
54lib-$(CONFIG_IPTUNNEL) += \
55 ip_parse_common_args.o \
56 iptunnel.o \
57 rt_names.o \
58 utils.o
diff --git a/networking/libiproute/Makefile b/networking/libiproute/Makefile
deleted file mode 100644
index 2fafae738..000000000
--- a/networking/libiproute/Makefile
+++ /dev/null
@@ -1,36 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# This program is free software; you can redistribute it and/or modify
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#
19
20ifndef top_srcdir
21top_srcdir=../..
22endif
23ifndef top_builddir
24top_builddir=../..
25endif
26srcdir=$(top_srcdir)/networking/libiproute
27LIBIPROUTE_DIR:=./
28include $(top_srcdir)/Rules.mak
29include $(top_builddir)/.config
30include Makefile.in
31all: $(libraries-y)
32-include $(top_builddir)/.depend
33
34clean:
35 rm -f *.o *.a $(AR_TARGET)
36
diff --git a/networking/libiproute/Makefile.in b/networking/libiproute/Makefile.in
deleted file mode 100644
index f713502b3..000000000
--- a/networking/libiproute/Makefile.in
+++ /dev/null
@@ -1,83 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6#
7
8LIBIPROUTE_AR:=libiproute.a
9ifndef $(LIBIPROUTE_DIR)
10LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute
11endif
12srcdir=$(top_srcdir)/networking/libiproute
13
14LIBIPROUTE-y:=
15LIBIPROUTE-$(CONFIG_IP) += \
16 ip_parse_common_args.o \
17 ipaddress.o \
18 iplink.o \
19 iproute.o \
20 iptunnel.o \
21 libnetlink.o \
22 ll_addr.o \
23 ll_map.o \
24 ll_proto.o \
25 ll_types.o \
26 rt_names.o \
27 rtm_map.o \
28 utils.o
29
30LIBIPROUTE-$(CONFIG_IPADDR) += \
31 ip_parse_common_args.o \
32 ipaddress.o \
33 libnetlink.o \
34 ll_addr.o \
35 ll_map.o \
36 ll_types.o \
37 rt_names.o \
38 utils.o
39
40LIBIPROUTE-$(CONFIG_IPLINK) += \
41 ip_parse_common_args.o \
42 ipaddress.o \
43 iplink.o \
44 libnetlink.o \
45 ll_addr.o \
46 ll_map.o \
47 ll_types.o \
48 rt_names.o \
49 utils.o
50
51LIBIPROUTE-$(CONFIG_IPROUTE) += \
52 ip_parse_common_args.o \
53 iproute.o \
54 libnetlink.o \
55 ll_map.o \
56 rt_names.o \
57 rtm_map.o \
58 utils.o
59
60LIBIPROUTE-$(CONFIG_IPTUNNEL) += \
61 ip_parse_common_args.o \
62 iptunnel.o \
63 rt_names.o \
64 utils.o
65
66LIBIPROUTE-y:=$(sort $(LIBIPROUTE-y))
67
68LIBIPROUTE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBIPROUTE-y)))
69LIBIPROUTE_SRC-a:=$(wildcard $(srcdir)/*.c)
70LIBRARY_SRC-y+=$(LIBIPROUTE_SRC-y)
71LIBRARY_SRC-a+=$(LIBIPROUTE_SRC-a)
72
73LIBIPROUTE-obj:=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR)
74
75ifneq ($(strip $(LIBIPROUTE-y)),)
76libraries-y+=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR)
77endif
78
79$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)/%,$(LIBIPROUTE-y))
80 $(do_ar)
81
82$(LIBIPROUTE_DIR)/%.o: $(srcdir)/%.c
83 $(compile.c)