eliminate mixed declaration, to support older compilers a little longer.
[people/mcb30/busybox.git] / shell / Makefile.in
1 # Makefile for busybox
2 #
3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4 #
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7 SHELL_AR:=shell.a
8 ifndef $(SHELL_DIR)
9 SHELL_DIR:=$(top_builddir)/shell/
10 endif
11 srcdir=$(top_srcdir)/shell
12
13 SHELLT-y:=
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
19
20 libraries-y+=$(SHELL_DIR)$(SHELL_AR)
21
22 $(SHELL_DIR)$(SHELL_AR): $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y))
23         $(AR) $(ARFLAGS) $@ $(patsubst %,$(SHELL_DIR)%, $(SHELLT-y))
24
25 $(SHELL_DIR)%.o: $(srcdir)/%.c
26         $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
27