blob: 94cf729a7cbc4b48fa37229f89f542674ee9e6ae [file] [log] [blame]
Eric Andersen85208e22002-04-12 12:05:57 +00001# Makefile for busybox
2#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00003# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
Eric Andersen85208e22002-04-12 12:05:57 +00004#
Mike Frysinger0d4ee682005-09-24 06:01:57 +00005# Licensed under the GPL v2, see the file LICENSE in this tarball.
Eric Andersen85208e22002-04-12 12:05:57 +00006
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +00007srcdir:=$(top_srcdir)/shell
8objdir:=$(top_builddir)/shell
Eric Andersen85208e22002-04-12 12:05:57 +00009
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000010SHELL-$(CONFIG_ASH) += ash.o
11SHELL-$(CONFIG_HUSH) += hush.o
12SHELL-$(CONFIG_LASH) += lash.o
13SHELL-$(CONFIG_MSH) += msh.o
14SHELL-$(CONFIG_FEATURE_COMMAND_EDITING) += cmdedit.o
Eric Andersen85208e22002-04-12 12:05:57 +000015
Eric Andersen85208e22002-04-12 12:05:57 +000016
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000017SHELLT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(SHELL-y))
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000018SHELLT_SRC-a:=$(wildcard $(srcdir)/*.c)
19APPLET_SRC-y+=$(SHELLT_SRC-y)
20APPLET_SRC-a+=$(SHELLT_SRC-a)
21
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000022shell_OBJ:= $(patsubst %,$(objdir)/%,$(SHELL-y))
Eric Andersen85208e22002-04-12 12:05:57 +000023
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +000024$(shell_OBJ): $(objdir)/%.o: $(srcdir)/%.c
25$(objdir)/shell.a: $(shell_OBJ)
26libraries-y:=$(libraries-y) $(objdir)/shell.a
27