blob: e43260da478736a4eb13c6eb27846bd0e8ee3185 [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
7FINDUTILS_AR:=findutils.a
8ifndef $(FINDUTILS_DIR)
Eric Andersen7daa0762004-10-08 07:46:08 +00009FINDUTILS_DIR:=$(top_builddir)/findutils/
Eric Andersen85208e22002-04-12 12:05:57 +000010endif
Eric Andersen7daa0762004-10-08 07:46:08 +000011srcdir=$(top_srcdir)/findutils
Eric Andersen85208e22002-04-12 12:05:57 +000012
13FINDUTILS-y:=
14FINDUTILS-$(CONFIG_FIND) += find.o
15FINDUTILS-$(CONFIG_GREP) += grep.o
Eric Andersen85208e22002-04-12 12:05:57 +000016FINDUTILS-$(CONFIG_XARGS) += xargs.o
17
18libraries-y+=$(FINDUTILS_DIR)$(FINDUTILS_AR)
19
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000020FINDUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(FINDUTILS-y))
21FINDUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
22APPLET_SRC-y+=$(FINDUTILS_SRC-y)
23APPLET_SRC-a+=$(FINDUTILS_SRC-a)
24
Eric Andersen85208e22002-04-12 12:05:57 +000025$(FINDUTILS_DIR)$(FINDUTILS_AR): $(patsubst %,$(FINDUTILS_DIR)%, $(FINDUTILS-y))
Mike Frysingerb38673f2006-02-02 01:41:53 +000026 $(do_ar)
Eric Andersen85208e22002-04-12 12:05:57 +000027
Eric Andersen7daa0762004-10-08 07:46:08 +000028$(FINDUTILS_DIR)%.o: $(srcdir)/%.c
Mike Frysingerb38673f2006-02-02 01:41:53 +000029 $(compile.c)