3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
9 SHELL_DIR:=$(top_builddir)/shell/
11 srcdir=$(top_srcdir)/shell
14 SHELLT-$(CONFIG_ASH) += ash.o
15 SHELLT-$(CONFIG_HUSH) += hush.o
16 SHELLT-$(CONFIG_LASH) += lash.o
17 SHELLT-$(CONFIG_MSH) += msh.o
18 SHELLT-$(CONFIG_FEATURE_COMMAND_EDITING) += cmdedit.o
20 ifneq ($(strip $(SHELLT-y)),)
21 libraries-y+=$(SHELL_DIR)$(SHELL_AR)
24 SHELLT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SHELLT-y))
25 SHELLT_SRC-a:=$(wildcard $(srcdir)/*.c)
26 APPLET_SRC-y+=$(SHELLT_SRC-y)
27 APPLET_SRC-a+=$(SHELLT_SRC-a)
29 $(SHELL_DIR)$(SHELL_AR): $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y))
32 $(SHELL_DIR)%.o: $(srcdir)/%.c