Less would segfault if it had no tty. (Bug 600.)
[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 libraries-y+=$(FINDUTILS_DIR)$(FINDUTILS_AR)
19
20 $(FINDUTILS_DIR)$(FINDUTILS_AR): $(patsubst %,$(FINDUTILS_DIR)%, $(FINDUTILS-y))
21         $(AR) $(ARFLAGS) $@ $(patsubst %,$(FINDUTILS_DIR)%, $(FINDUTILS-y))
22
23 $(FINDUTILS_DIR)%.o: $(srcdir)/%.c
24         $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
25