summaryrefslogtreecommitdiff
path: root/networking/libiproute
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-01 22:54:48 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-01 22:54:48 +0000
commit5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf (patch)
tree233c051da862595b6e473e832051708e2d9803cb /networking/libiproute
parent12c2429a4242a157217c5bc9673a531fa1e1de61 (diff)
downloadbusybox-w32-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.tar.gz
busybox-w32-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.tar.bz2
busybox-w32-5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf.zip
- fixes parallel builds (make -j)
- use less resources for the buildsystem itself
Diffstat (limited to 'networking/libiproute')
-rw-r--r--networking/libiproute/Makefile.in110
1 files changed, 44 insertions, 66 deletions
diff --git a/networking/libiproute/Makefile.in b/networking/libiproute/Makefile.in
index 6b7bd900c..99fa22e9d 100644
--- a/networking/libiproute/Makefile.in
+++ b/networking/libiproute/Makefile.in
@@ -5,88 +5,66 @@
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6# 6#
7 7
8LIBIPROUTE_AR:=libiproute.a
9ifndef $(LIBIPROUTE_DIR)
10LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute
11endif
12srcdir=$(top_srcdir)/networking/libiproute 8srcdir=$(top_srcdir)/networking/libiproute
9objdir=$(top_builddir)/networking/libiproute
13 10
14LIBIPROUTE-y:=
15LIBIPROUTE-$(CONFIG_IP) += \ 11LIBIPROUTE-$(CONFIG_IP) += \
16 ip_parse_common_args.o \ 12 ip_parse_common_args \
17 ipaddress.o \ 13 ipaddress \
18 iplink.o \ 14 iplink \
19 iproute.o \ 15 iproute \
20 iptunnel.o \ 16 iptunnel \
21 libnetlink.o \ 17 libnetlink \
22 ll_addr.o \ 18 ll_addr \
23 ll_map.o \ 19 ll_map \
24 ll_proto.o \ 20 ll_proto \
25 ll_types.o \ 21 ll_types \
26 rt_names.o \ 22 rt_names \
27 rtm_map.o \ 23 rtm_map \
28 utils.o 24 utils
29 25
30LIBIPROUTE-$(CONFIG_IPADDR) += \ 26LIBIPROUTE-$(CONFIG_IPADDR) += \
31 ip_parse_common_args.o \ 27 ip_parse_common_args \
32 ipaddress.o \ 28 ipaddress \
33 libnetlink.o \ 29 libnetlink \
34 ll_addr.o \ 30 ll_addr \
35 ll_map.o \ 31 ll_map \
36 ll_types.o \ 32 ll_types \
37 rt_names.o \ 33 rt_names \
38 utils.o 34 utils
39 35
40LIBIPROUTE-$(CONFIG_IPLINK) += \ 36LIBIPROUTE-$(CONFIG_IPLINK) += \
41 ip_parse_common_args.o \ 37 ip_parse_common_args \
42 ipaddress.o \ 38 ipaddress \
43 iplink.o \ 39 iplink \
44 libnetlink.o \ 40 libnetlink \
45 ll_addr.o \ 41 ll_addr \
46 ll_map.o \ 42 ll_map \
47 ll_types.o \ 43 ll_types \
48 rt_names.o \ 44 rt_names \
49 utils.o 45 utils
50 46
51LIBIPROUTE-$(CONFIG_IPROUTE) += \ 47LIBIPROUTE-$(CONFIG_IPROUTE) += \
52 ip_parse_common_args.o \ 48 ip_parse_common_args \
53 iproute.o \ 49 iproute \
54 libnetlink.o \ 50 libnetlink \
55 ll_map.o \ 51 ll_map \
56 rt_names.o \ 52 rt_names \
57 rtm_map.o \ 53 rtm_map \
58 utils.o 54 utils
59 55
60LIBIPROUTE-$(CONFIG_IPTUNNEL) += \ 56LIBIPROUTE-$(CONFIG_IPTUNNEL) += \
61 ip_parse_common_args.o \ 57 ip_parse_common_args \
62 iptunnel.o \ 58 iptunnel \
63 rt_names.o \ 59 rt_names \
64 utils.o 60 utils
65 61
66LIBIPROUTE-y:=$(sort $(LIBIPROUTE-y)) 62LIBIPROUTE-y:=$(sort $(LIBIPROUTE-y))
67 63
68LIBIPROUTE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBIPROUTE-y))) 64LIBIPROUTE_SRC-y:=$(patsubst %,$(srcdir)/%.c,$(LIBIPROUTE-y))
69LIBIPROUTE_SRC-a:=$(wildcard $(srcdir)/*.c) 65LIBIPROUTE_SRC-a:=$(wildcard $(srcdir)/*.c)
70LIBRARY_SRC-y+=$(LIBIPROUTE_SRC-y) 66LIBRARY_SRC-y+=$(LIBIPROUTE_SRC-y)
71LIBRARY_SRC-a+=$(LIBIPROUTE_SRC-a) 67LIBRARY_SRC-a+=$(LIBIPROUTE_SRC-a)
72 68
73LIBIPROUTE-obj:=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR) 69networking_libiproute_OBJ$(os):=$(patsubst %,$(objdir)/%$(os),$(LIBIPROUTE-y))
74 70
75# We do not need to build an empty non-pic object/archive
76ifneq ($(strip $(LIBIPROUTE-y)),)
77libraries-y+=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR)
78endif
79
80# If we are building libbusybox.so _and_ we will use it ourselves then we
81# keep it as small as possible
82ifeq ($(strip $(CONFIG_FEATURE_SHARED_BUSYBOX)),y)
83ifneq ($(strip $(LIBIPROUTE-y)),)
84libraries-m+=$(LIBIPROUTE-multi-pic)
85endif
86endif
87
88$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)/%,$(LIBIPROUTE-y))
89 $(do_ar)
90
91$(LIBIPROUTE_DIR)/%.o: $(srcdir)/%.c
92 $(compile.c)