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 /coreutils/libcoreutils | |
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 'coreutils/libcoreutils')
-rw-r--r-- | coreutils/libcoreutils/Makefile.in | 44 |
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 | ||
8 | LIBCOREUTILS_AR:=libcoreutils.a | ||
9 | ifndef $(LIBCOREUTILS_DIR) | ||
10 | LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils | ||
11 | endif | ||
12 | srcdir=$(top_srcdir)/coreutils/libcoreutils | 7 | srcdir=$(top_srcdir)/coreutils/libcoreutils |
8 | objdir=$(top_builddir)/coreutils/libcoreutils | ||
13 | 9 | ||
14 | LIBCOREUTILS_ALL_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c | 10 | LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod |
15 | 11 | LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod | |
16 | LIBCOREUTILS-y:= | 12 | LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat |
17 | LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o | 13 | LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat |
18 | LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o | 14 | LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat |
19 | LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat.o | ||
20 | LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat.o | ||
21 | LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat.o | ||
22 | 15 | ||
23 | LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y)) | 16 | LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y)) |
24 | 17 | ||
25 | LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBCOREUTILS-y))) | 18 | LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%.c,$(LIBCOREUTILS-y)) |
26 | LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) | 19 | LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) |
27 | LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y) | 20 | LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y) |
28 | LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a) | 21 | LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a) |
29 | 22 | ||
30 | LIBCOREUTILS-multi-obj:=$(LIBCOREUTILS_DIR)/$(subst .a,-multi.o,$(LIBCOREUTILS_AR)) | 23 | coreutils_libcoreutils_OBJ$(os):=$(patsubst %,$(objdir)/%$(os),$(LIBCOREUTILS-y)) |
31 | LIBCOREUTILS-multi-pic:=$(LIBCOREUTILS_DIR)/$(subst .a,-pic.o,$(LIBCOREUTILS_AR)) | ||
32 | |||
33 | # We do not need to build an empty non-pic object/archive | ||
34 | ifneq ($(strip $(LIBCOREUTILS-y)),) | ||
35 | libraries-y+=$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR) | ||
36 | endif | ||
37 | # If we are building libbusybox.so _and_ we will use it ourselves then we | ||
38 | # keep it as small as possible | ||
39 | ifeq ($(strip $(CONFIG_FEATURE_SHARED_BUSYBOX)),y) | ||
40 | ifneq ($(strip $(LIBIPROUTE-y)),) | ||
41 | libraries-m+=$(LIBCOREUTILS-multi-pic) | ||
42 | endif | ||
43 | endif | ||
44 | |||
45 | LIBCOREUTILS_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) | ||