- backout using features which are not available with the previous stable
[oweals/busybox.git] / findutils / Makefile.in
1 # Makefile for busybox
2 #
3 # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4 #
5 # Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7 srcdir:=$(top_srcdir)/findutils
8 objdir:=$(top_builddir)/findutils
9
10 FINDUTILS-$(CONFIG_FIND)        += find.o
11 FINDUTILS-$(CONFIG_GREP)        += grep.o
12 FINDUTILS-$(CONFIG_XARGS)       += xargs.o
13
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)
18
19 findutils_OBJ:=  $(patsubst %,$(objdir)/%,$(FINDUTILS-y))
20
21 $(findutils_OBJ): $(objdir)/%.o: $(srcdir)/%.c
22 $(objdir)/findutils.a: $(findutils_OBJ)
23 libraries-y:=$(libraries-y) $(objdir)/findutils.a
24