3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
7 srcdir:=$(top_srcdir)/findutils
8 objdir:=$(top_builddir)/findutils
10 FINDUTILS-$(CONFIG_FIND) += find.o
11 FINDUTILS-$(CONFIG_GREP) += grep.o
12 FINDUTILS-$(CONFIG_XARGS) += xargs.o
14 FINDUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(FINDUTILS-y))
15 FINDUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
16 APPLET_SRC-y+=$(FINDUTILS_SRC-y)
17 APPLET_SRC-a+=$(FINDUTILS_SRC-a)
19 findutils_OBJ:= $(patsubst %,$(objdir)/%,$(FINDUTILS-y))
21 $(findutils_OBJ): $(objdir)/%.o: $(srcdir)/%.c
22 $(objdir)/findutils.a: $(findutils_OBJ)
23 libraries-y:=$(libraries-y) $(objdir)/findutils.a