Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 4 | # |
Mike Frysinger | 0d4ee68 | 2005-09-24 06:01:57 +0000 | [diff] [blame] | 5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 6 | |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 7 | srcdir:=$(top_srcdir)/findutils |
| 8 | objdir:=$(top_builddir)/findutils |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 9 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 10 | FINDUTILS-$(CONFIG_FIND) += find.o |
| 11 | FINDUTILS-$(CONFIG_GREP) += grep.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 12 | FINDUTILS-$(CONFIG_XARGS) += xargs.o |
| 13 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 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 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 19 | findutils_OBJ:= $(patsubst %,$(objdir)/%,$(FINDUTILS-y)) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 20 | |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 21 | $(findutils_OBJ): $(objdir)/%.o: $(srcdir)/%.c |
| 22 | $(objdir)/findutils.a: $(findutils_OBJ) |
| 23 | libraries-y:=$(libraries-y) $(objdir)/findutils.a |
| 24 | |