diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-13 19:04:00 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-13 19:04:00 +0000 |
commit | df10094870c28cc0c6c5577c9aa03b8ede9cb8a6 (patch) | |
tree | 49493696039b285aa751a5bc884fc70c9c85e878 /coreutils | |
parent | c5b1d4d6b14f22b5e2f7ae42eb01bf2746b8001c (diff) | |
download | busybox-w32-df10094870c28cc0c6c5577c9aa03b8ede9cb8a6.tar.gz busybox-w32-df10094870c28cc0c6c5577c9aa03b8ede9cb8a6.tar.bz2 busybox-w32-df10094870c28cc0c6c5577c9aa03b8ede9cb8a6.zip |
- revert back to r14406
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/Makefile.in | 21 | ||||
-rw-r--r-- | coreutils/libcoreutils/Makefile.in | 35 |
2 files changed, 37 insertions, 19 deletions
diff --git a/coreutils/Makefile.in b/coreutils/Makefile.in index 73581f2aa..2ab256c15 100644 --- a/coreutils/Makefile.in +++ b/coreutils/Makefile.in | |||
@@ -4,9 +4,13 @@ | |||
4 | # | 4 | # |
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
6 | 6 | ||
7 | srcdir:=$(top_srcdir)/coreutils | 7 | COREUTILS_AR:=coreutils.a |
8 | objdir:=$(top_builddir)/coreutils | 8 | ifndef $(COREUTILS_DIR) |
9 | COREUTILS_DIR:=$(top_builddir)/coreutils/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/coreutils | ||
9 | 12 | ||
13 | COREUTILS-y:= | ||
10 | COREUTILS-$(CONFIG_BASENAME) += basename.o | 14 | COREUTILS-$(CONFIG_BASENAME) += basename.o |
11 | COREUTILS-$(CONFIG_CAL) += cal.o | 15 | COREUTILS-$(CONFIG_CAL) += cal.o |
12 | COREUTILS-$(CONFIG_CAT) += cat.o | 16 | COREUTILS-$(CONFIG_CAT) += cat.o |
@@ -79,14 +83,17 @@ COREUTILS-$(CONFIG_YES) += yes.o | |||
79 | 83 | ||
80 | COREUTILS-y:=$(sort $(COREUTILS-y)) | 84 | COREUTILS-y:=$(sort $(COREUTILS-y)) |
81 | 85 | ||
86 | ifneq ($(strip $(COREUTILS-y)),) | ||
87 | libraries-y+=$(COREUTILS_DIR)$(COREUTILS_AR) | ||
88 | endif | ||
89 | |||
82 | COREUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(COREUTILS-y)) | 90 | COREUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(COREUTILS-y)) |
83 | COREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) | 91 | COREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) |
84 | APPLET_SRC-y+=$(COREUTILS_SRC-y) | 92 | APPLET_SRC-y+=$(COREUTILS_SRC-y) |
85 | APPLET_SRC-a+=$(COREUTILS_SRC-a) | 93 | APPLET_SRC-a+=$(COREUTILS_SRC-a) |
86 | 94 | ||
87 | coreutils_OBJ:= $(patsubst %,$(objdir)/%,$(COREUTILS-y)) | 95 | $(COREUTILS_DIR)$(COREUTILS_AR): $(patsubst %,$(COREUTILS_DIR)%, $(COREUTILS-y)) |
88 | 96 | $(do_ar) | |
89 | $(coreutils_OBJ): $(objdir)/%.o: $(srcdir)/%.c | ||
90 | $(objdir)/coreutils.a: $(coreutils_OBJ) | ||
91 | libraries-y:=$(libraries-y) $(objdir)/coreutils.a | ||
92 | 97 | ||
98 | $(COREUTILS_DIR)%.o: $(srcdir)/%.c | ||
99 | $(compile.c) | ||
diff --git a/coreutils/libcoreutils/Makefile.in b/coreutils/libcoreutils/Makefile.in index d89e9d049..30a38c9d9 100644 --- a/coreutils/libcoreutils/Makefile.in +++ b/coreutils/libcoreutils/Makefile.in | |||
@@ -4,25 +4,36 @@ | |||
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 | 6 | ||
7 | srcdir:=$(top_srcdir)/coreutils/libcoreutils | 7 | LIBCOREUTILS_AR:=libcoreutils.a |
8 | objdir:=$(top_builddir)/coreutils/libcoreutils | 8 | ifndef $(LIBCOREUTILS_DIR) |
9 | LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/coreutils/libcoreutils | ||
9 | 12 | ||
10 | LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod | 13 | LIBCOREUTILS_ALL_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c |
11 | LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod | 14 | |
12 | LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat | 15 | LIBCOREUTILS-y:= |
13 | LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat | 16 | LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o |
14 | LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat | 17 | LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o |
18 | LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat.o | ||
19 | LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat.o | ||
20 | LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat.o | ||
15 | 21 | ||
16 | LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y)) | 22 | LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y)) |
17 | 23 | ||
18 | LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%.c,$(LIBCOREUTILS-y)) | 24 | LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBCOREUTILS-y))) |
19 | LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) | 25 | LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) |
20 | LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y) | 26 | LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y) |
21 | LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a) | 27 | LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a) |
22 | 28 | ||
23 | coreutils_libcoreutils_OBJ$(os):=$(patsubst %,$(objdir)/%$(os),$(LIBCOREUTILS-y)) | 29 | ifneq ($(strip $(LIBCOREUTILS-y)),) |
30 | libraries-y+=$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR) | ||
31 | endif | ||
32 | |||
33 | LIBCOREUTILS_OBJS=$(patsubst %,$(LIBCOREUTILS_DIR)/%, $(LIBCOREUTILS-y)) | ||
24 | 34 | ||
25 | $(coreutils_libcoreutils_OBJ$(os)): $(objdir)/%$(os): $(srcdir)/%.c | 35 | $(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR): $(patsubst %,$(LIBCOREUTILS_DIR)/%,$(LIBCOREUTILS-y)) |
26 | $(objdir)/libcoreutils.a: $(coreutils_libcoreutils_OBJ$(os)) | 36 | $(do_ar) |
27 | libraries-y:=$(libraries-y) $(objdir)/libcoreutils.a | ||
28 | 37 | ||
38 | $(LIBCOREUTILS_DIR)/%.o: $(srcdir)/%.c | ||
39 | $(compile.c) | ||