didnt mean to commit debug enable
[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 FINDUTILS_AR:=findutils.a
8 ifndef $(FINDUTILS_DIR)
9 FINDUTILS_DIR:=$(top_builddir)/findutils/
10 endif
11 srcdir=$(top_srcdir)/findutils
12
13 FINDUTILS-y:=
14 FINDUTILS-$(CONFIG_FIND)        += find.o
15 FINDUTILS-$(CONFIG_GREP)        += grep.o
16 FINDUTILS-$(CONFIG_XARGS)       += xargs.o
17
18 ifneq ($(strip $(FINDUTILS-y)),)
19 libraries-y+=$(FINDUTILS_DIR)$(FINDUTILS_AR)
20 endif
21
22 FINDUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(FINDUTILS-y))
23 FINDUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
24 APPLET_SRC-y+=$(FINDUTILS_SRC-y)
25 APPLET_SRC-a+=$(FINDUTILS_SRC-a)
26
27 $(FINDUTILS_DIR)$(FINDUTILS_AR): $(patsubst %,$(FINDUTILS_DIR)%, $(FINDUTILS-y))
28         $(do_ar)
29
30 $(FINDUTILS_DIR)%.o: $(srcdir)/%.c
31         $(compile.c)