aboutsummaryrefslogtreecommitdiff
path: root/coreutils/libcoreutils
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 /coreutils/libcoreutils
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 'coreutils/libcoreutils')
-rw-r--r--coreutils/libcoreutils/Makefile.in44
1 files changed, 8 insertions, 36 deletions
diff --git a/coreutils/libcoreutils/Makefile.in b/coreutils/libcoreutils/Makefile.in
index 092019124..700341c97 100644
--- a/coreutils/libcoreutils/Makefile.in
+++ b/coreutils/libcoreutils/Makefile.in
@@ -3,49 +3,21 @@
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# 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#
7 6
8LIBCOREUTILS_AR:=libcoreutils.a
9ifndef $(LIBCOREUTILS_DIR)
10LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils
11endif
12srcdir=$(top_srcdir)/coreutils/libcoreutils 7srcdir=$(top_srcdir)/coreutils/libcoreutils
8objdir=$(top_builddir)/coreutils/libcoreutils
13 9
14LIBCOREUTILS_ALL_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c 10LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod
15 11LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod
16LIBCOREUTILS-y:= 12LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat
17LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o 13LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat
18LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o 14LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat
19LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat.o
20LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat.o
21LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat.o
22 15
23LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y)) 16LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y))
24 17
25LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBCOREUTILS-y))) 18LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%.c,$(LIBCOREUTILS-y))
26LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) 19LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
27LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y) 20LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y)
28LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a) 21LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a)
29 22
30LIBCOREUTILS-multi-obj:=$(LIBCOREUTILS_DIR)/$(subst .a,-multi.o,$(LIBCOREUTILS_AR)) 23coreutils_libcoreutils_OBJ$(os):=$(patsubst %,$(objdir)/%$(os),$(LIBCOREUTILS-y))
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
44
45LIBCOREUTILS_OBJS=$(patsubst %,$(LIBCOREUTILS_DIR)/%, $(LIBCOREUTILS-y))
46
47$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR): $(patsubst %,$(LIBCOREUTILS_DIR)/%,$(LIBCOREUTILS-y))
48 $(do_ar)
49
50$(LIBCOREUTILS_DIR)/%.o: $(srcdir)/%.c
51 $(compile.c)