aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-15 14:04:57 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-15 14:04:57 +0000
commit7ca61b6f3379bf66b446617b8834d92c13b366dd (patch)
treec0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /networking/libiproute
parent8c9daa12dcb4c1aa8f0f475896c9cfbcfb38370d (diff)
downloadbusybox-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/libiproute')
-rw-r--r--networking/libiproute/Makefile.in45
1 files changed, 27 insertions, 18 deletions
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
20LIBIPROUTE_AR:=libiproute.a 8LIBIPROUTE_AR:=libiproute.a
21ifndef $(LIBIPROUTE_DIR) 9ifndef $(LIBIPROUTE_DIR)
22LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute/ 10LIBIPROUTE_DIR:=$(top_builddir)/networking/libiproute
23endif 11endif
24srcdir=$(top_srcdir)/networking/libiproute 12srcdir=$(top_srcdir)/networking/libiproute
25 13
14LIBIPROUTE-y:=
26LIBIPROUTE-$(CONFIG_IP) += \ 15LIBIPROUTE-$(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
77libraries-y+=$(LIBIPROUTE_DIR)$(LIBIPROUTE_AR) 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
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
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