aboutsummaryrefslogtreecommitdiff
path: root/coreutils/libcoreutils
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 /coreutils/libcoreutils
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 'coreutils/libcoreutils')
-rw-r--r--coreutils/libcoreutils/Makefile.in55
1 files changed, 35 insertions, 20 deletions
diff --git a/coreutils/libcoreutils/Makefile.in b/coreutils/libcoreutils/Makefile.in
index fe66c8243..1f0c19e73 100644
--- a/coreutils/libcoreutils/Makefile.in
+++ b/coreutils/libcoreutils/Makefile.in
@@ -2,36 +2,51 @@
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
20LIBCOREUTILS_AR:=libcoreutils.a 8LIBCOREUTILS_AR:=libcoreutils.a
21ifndef $(LIBCOREUTILS_DIR) 9ifndef $(LIBCOREUTILS_DIR)
22LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils/ 10LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils
23endif 11endif
24srcdir=$(top_srcdir)/coreutils/libcoreutils 12srcdir=$(top_srcdir)/coreutils/libcoreutils
25 13
26LIBCOREUTILS_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c 14LIBCOREUTILS_ALL_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c
15
16LIBCOREUTILS-y:=
17LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o
18LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o
19LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat.o
20LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat.o
21LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat.o
22
23LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y))
24
25LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBCOREUTILS-y)))
26LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
27LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y)
28LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a)
27 29
28LIBCOREUTILS_OBJS=$(patsubst %.c,$(LIBCOREUTILS_DIR)%.o, $(LIBCOREUTILS_SRC)) 30LIBCOREUTILS-multi-obj:=$(LIBCOREUTILS_DIR)/$(subst .a,-multi.o,$(LIBCOREUTILS_AR))
31LIBCOREUTILS-multi-pic:=$(LIBCOREUTILS_DIR)/$(subst .a,-pic.o,$(LIBCOREUTILS_AR))
32
33# We do not need to build an empty non-pic object/archive
34ifneq ($(strip $(LIBCOREUTILS-y)),)
35libraries-y+=$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR)
36endif
37# If we are building libbusybox.so _and_ we will use it ourselves then we
38# keep it as small as possible
39ifeq ($(strip $(CONFIG_FEATURE_SHARED_BUSYBOX)),y)
40ifneq ($(strip $(LIBIPROUTE-y)),)
41libraries-m+=$(LIBCOREUTILS-multi-pic)
42endif
43endif
29 44
30libraries-y+=$(LIBCOREUTILS_DIR)$(LIBCOREUTILS_AR) 45LIBCOREUTILS_OBJS=$(patsubst %,$(LIBCOREUTILS_DIR)/%, $(LIBCOREUTILS-y))
31 46
32$(LIBCOREUTILS_DIR)$(LIBCOREUTILS_AR): $(LIBCOREUTILS_OBJS) 47$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR): $(patsubst %,$(LIBCOREUTILS_DIR)/%,$(LIBCOREUTILS-y))
33 $(AR) $(ARFLAGS) $@ $(LIBCOREUTILS_OBJS) 48 $(AR) $(ARFLAGS) $(@) $(^)
34 49
35$(LIBCOREUTILS_DIR)%.o: $(srcdir)/%.c 50$(LIBCOREUTILS_DIR)/%.o: $(srcdir)/%.c
36 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< 51 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
37 52