diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-13 19:04:00 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-13 19:04:00 +0000 |
commit | 30d77f4b561efa82d87b1767281a687c72f78dc4 (patch) | |
tree | 49493696039b285aa751a5bc884fc70c9c85e878 /shell | |
parent | 12f32660d14e442e42ed667c106fec3a9db79856 (diff) | |
download | busybox-w32-30d77f4b561efa82d87b1767281a687c72f78dc4.tar.gz busybox-w32-30d77f4b561efa82d87b1767281a687c72f78dc4.tar.bz2 busybox-w32-30d77f4b561efa82d87b1767281a687c72f78dc4.zip |
- revert back to r14406
git-svn-id: svn://busybox.net/trunk/busybox@14531 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/Makefile.in | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/shell/Makefile.in b/shell/Makefile.in index 94cf729a7..fcd93f345 100644 --- a/shell/Makefile.in +++ b/shell/Makefile.in | |||
@@ -4,24 +4,30 @@ | |||
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)/shell | 7 | SHELL_AR:=shell.a |
8 | objdir:=$(top_builddir)/shell | 8 | ifndef $(SHELL_DIR) |
9 | SHELL_DIR:=$(top_builddir)/shell/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/shell | ||
9 | 12 | ||
10 | SHELL-$(CONFIG_ASH) += ash.o | 13 | SHELLT-y:= |
11 | SHELL-$(CONFIG_HUSH) += hush.o | 14 | SHELLT-$(CONFIG_ASH) += ash.o |
12 | SHELL-$(CONFIG_LASH) += lash.o | 15 | SHELLT-$(CONFIG_HUSH) += hush.o |
13 | SHELL-$(CONFIG_MSH) += msh.o | 16 | SHELLT-$(CONFIG_LASH) += lash.o |
14 | SHELL-$(CONFIG_FEATURE_COMMAND_EDITING) += cmdedit.o | 17 | SHELLT-$(CONFIG_MSH) += msh.o |
18 | SHELLT-$(CONFIG_FEATURE_COMMAND_EDITING) += cmdedit.o | ||
15 | 19 | ||
20 | ifneq ($(strip $(SHELLT-y)),) | ||
21 | libraries-y+=$(SHELL_DIR)$(SHELL_AR) | ||
22 | endif | ||
16 | 23 | ||
17 | SHELLT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SHELL-y)) | 24 | SHELLT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SHELLT-y)) |
18 | SHELLT_SRC-a:=$(wildcard $(srcdir)/*.c) | 25 | SHELLT_SRC-a:=$(wildcard $(srcdir)/*.c) |
19 | APPLET_SRC-y+=$(SHELLT_SRC-y) | 26 | APPLET_SRC-y+=$(SHELLT_SRC-y) |
20 | APPLET_SRC-a+=$(SHELLT_SRC-a) | 27 | APPLET_SRC-a+=$(SHELLT_SRC-a) |
21 | 28 | ||
22 | shell_OBJ:= $(patsubst %,$(objdir)/%,$(SHELL-y)) | 29 | $(SHELL_DIR)$(SHELL_AR): $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y)) |
23 | 30 | $(do_ar) | |
24 | $(shell_OBJ): $(objdir)/%.o: $(srcdir)/%.c | ||
25 | $(objdir)/shell.a: $(shell_OBJ) | ||
26 | libraries-y:=$(libraries-y) $(objdir)/shell.a | ||
27 | 31 | ||
32 | $(SHELL_DIR)%.o: $(srcdir)/%.c | ||
33 | $(compile.c) | ||