blob: 7fbf8d4b947c8cb915c4975740b5603e565ede79 [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)/findutils
8objdir:=$(top_builddir)/findutils
Eric Andersen85208e22002-04-12 12:05:57 +00009
Eric Andersen85208e22002-04-12 12:05:57 +000010FINDUTILS-$(CONFIG_FIND) += find.o
11FINDUTILS-$(CONFIG_GREP) += grep.o
Eric Andersen85208e22002-04-12 12:05:57 +000012FINDUTILS-$(CONFIG_XARGS) += xargs.o
13
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000014FINDUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(FINDUTILS-y))
15FINDUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
16APPLET_SRC-y+=$(FINDUTILS_SRC-y)
17APPLET_SRC-a+=$(FINDUTILS_SRC-a)
18
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000019findutils_OBJ:= $(patsubst %,$(objdir)/%,$(FINDUTILS-y))
Eric Andersen85208e22002-04-12 12:05:57 +000020
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +000021$(findutils_OBJ): $(objdir)/%.o: $(srcdir)/%.c
22$(objdir)/findutils.a: $(findutils_OBJ)
23libraries-y:=$(libraries-y) $(objdir)/findutils.a
24