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 FINDUTILS_AR:=findutils.a
8 ifndef $(FINDUTILS_DIR)
9 FINDUTILS_DIR:=$(top_builddir)/findutils/
11 srcdir=$(top_srcdir)/findutils
14 FINDUTILS-$(CONFIG_FIND) += find.o
15 FINDUTILS-$(CONFIG_GREP) += grep.o
16 FINDUTILS-$(CONFIG_XARGS) += xargs.o
18 libraries-y+=$(FINDUTILS_DIR)$(FINDUTILS_AR)
20 $(FINDUTILS_DIR)$(FINDUTILS_AR): $(patsubst %,$(FINDUTILS_DIR)%, $(FINDUTILS-y))
21 $(AR) $(ARFLAGS) $@ $(patsubst %,$(FINDUTILS_DIR)%, $(FINDUTILS-y))
23 $(FINDUTILS_DIR)%.o: $(srcdir)/%.c
24 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<