diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-01 22:54:48 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-01 22:54:48 +0000 |
commit | 5d26126b9e8fd6c6f5098dbaa2e5b9e2901749bf (patch) | |
tree | 233c051da862595b6e473e832051708e2d9803cb /networking/libiproute | |
parent | 12c2429a4242a157217c5bc9673a531fa1e1de61 (diff) | |
download | busybox-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.in | 110 |
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 | ||
8 | LIBIPROUTE_AR:=libiproute.a | ||
9 | ifndef $(LIBIPROUTE_DIR) | ||
10 | LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute | ||
11 | endif | ||
12 | srcdir=$(top_srcdir)/networking/libiproute | 8 | srcdir=$(top_srcdir)/networking/libiproute |
9 | objdir=$(top_builddir)/networking/libiproute | ||
13 | 10 | ||
14 | LIBIPROUTE-y:= | ||
15 | LIBIPROUTE-$(CONFIG_IP) += \ | 11 | LIBIPROUTE-$(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 | ||
30 | LIBIPROUTE-$(CONFIG_IPADDR) += \ | 26 | LIBIPROUTE-$(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 | ||
40 | LIBIPROUTE-$(CONFIG_IPLINK) += \ | 36 | LIBIPROUTE-$(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 | ||
51 | LIBIPROUTE-$(CONFIG_IPROUTE) += \ | 47 | LIBIPROUTE-$(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 | ||
60 | LIBIPROUTE-$(CONFIG_IPTUNNEL) += \ | 56 | LIBIPROUTE-$(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 | ||
66 | LIBIPROUTE-y:=$(sort $(LIBIPROUTE-y)) | 62 | LIBIPROUTE-y:=$(sort $(LIBIPROUTE-y)) |
67 | 63 | ||
68 | LIBIPROUTE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBIPROUTE-y))) | 64 | LIBIPROUTE_SRC-y:=$(patsubst %,$(srcdir)/%.c,$(LIBIPROUTE-y)) |
69 | LIBIPROUTE_SRC-a:=$(wildcard $(srcdir)/*.c) | 65 | LIBIPROUTE_SRC-a:=$(wildcard $(srcdir)/*.c) |
70 | LIBRARY_SRC-y+=$(LIBIPROUTE_SRC-y) | 66 | LIBRARY_SRC-y+=$(LIBIPROUTE_SRC-y) |
71 | LIBRARY_SRC-a+=$(LIBIPROUTE_SRC-a) | 67 | LIBRARY_SRC-a+=$(LIBIPROUTE_SRC-a) |
72 | 68 | ||
73 | LIBIPROUTE-obj:=$(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR) | 69 | networking_libiproute_OBJ$(os):=$(patsubst %,$(objdir)/%$(os),$(LIBIPROUTE-y)) |
74 | 70 | ||
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 | ||
87 | |||
88 | $(LIBIPROUTE_DIR)/$(LIBIPROUTE_AR): $(patsubst %,$(LIBIPROUTE_DIR)/%,$(LIBIPROUTE-y)) | ||
89 | $(do_ar) | ||
90 | |||
91 | $(LIBIPROUTE_DIR)/%.o: $(srcdir)/%.c | ||
92 | $(compile.c) | ||