aboutsummaryrefslogtreecommitdiff
path: root/shell/Makefile.in
blob: 94cf729a7cbc4b48fa37229f89f542674ee9e6ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Makefile for busybox
#
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.

srcdir:=$(top_srcdir)/shell
objdir:=$(top_builddir)/shell

SHELL-$(CONFIG_ASH)				+= ash.o
SHELL-$(CONFIG_HUSH)				+= hush.o
SHELL-$(CONFIG_LASH)				+= lash.o
SHELL-$(CONFIG_MSH)				+= msh.o
SHELL-$(CONFIG_FEATURE_COMMAND_EDITING)		+= cmdedit.o


SHELLT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SHELL-y))
SHELLT_SRC-a:=$(wildcard $(srcdir)/*.c)
APPLET_SRC-y+=$(SHELLT_SRC-y)
APPLET_SRC-a+=$(SHELLT_SRC-a)

shell_OBJ:=  $(patsubst %,$(objdir)/%,$(SHELL-y))

$(shell_OBJ): $(objdir)/%.o: $(srcdir)/%.c
$(objdir)/shell.a: $(shell_OBJ)
libraries-y:=$(libraries-y) $(objdir)/shell.a