aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/Makefile10
-rw-r--r--shell/Makefile.in6
2 files changed, 11 insertions, 5 deletions
diff --git a/shell/Makefile b/shell/Makefile
index 8f476c19e..bd1dad6f3 100644
--- a/shell/Makefile
+++ b/shell/Makefile
@@ -17,13 +17,15 @@
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 18#
19 19
20TOPDIR:= ../ 20top_srcdir=..
21top_builddir=..
22srcdir=$(top_srcdir)/shell
21SHELL_DIR:=./ 23SHELL_DIR:=./
22include $(TOPDIR).config 24include $(top_builddir)/Rules.mak
23include $(TOPDIR)Rules.mak 25include $(top_builddir)/.config
24include Makefile.in 26include Makefile.in
25all: $(libraries-y) 27all: $(libraries-y)
26-include $(TOPDIR).depend 28-include $(top_builddir)/.depend
27 29
28clean: 30clean:
29 rm -f *.o *.a $(AR_TARGET) 31 rm -f *.o *.a $(AR_TARGET)
diff --git a/shell/Makefile.in b/shell/Makefile.in
index 7b9f41ed4..61b2846ac 100644
--- a/shell/Makefile.in
+++ b/shell/Makefile.in
@@ -19,8 +19,9 @@
19 19
20SHELL_AR:=shell.a 20SHELL_AR:=shell.a
21ifndef $(SHELL_DIR) 21ifndef $(SHELL_DIR)
22SHELL_DIR:=$(TOPDIR)shell/ 22SHELL_DIR:=$(top_builddir)/shell/
23endif 23endif
24srcdir=$(top_srcdir)/shell
24 25
25SHELLT-y:= 26SHELLT-y:=
26SHELLT-$(CONFIG_ASH) += ash.o 27SHELLT-$(CONFIG_ASH) += ash.o
@@ -34,3 +35,6 @@ libraries-y+=$(SHELL_DIR)$(SHELL_AR)
34$(SHELL_DIR)$(SHELL_AR): $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y)) 35$(SHELL_DIR)$(SHELL_AR): $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y))
35 $(AR) -ro $@ $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y)) 36 $(AR) -ro $@ $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y))
36 37
38$(SHELL_DIR)%.o: $(srcdir)/%.c
39 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
40