busybox/shell/Makefile.in
2006-03-09 09:03:37 +00:00

28 lines
738 B
Makefile

# 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