busybox/shell/Makefile.in

28 lines
738 B
Makefile
Raw Normal View History

# Makefile for busybox
#
2005-09-24 11:31:57 +05:30
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
#
2005-09-24 11:31:57 +05:30
# 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