Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +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> |
Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +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. |
Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +0000 | [diff] [blame] | 6 | |
| 7 | DEBIANUTILS_AR:=debianutils.a |
| 8 | ifndef $(DEBIANUTILS_DIR) |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 9 | DEBIANUTILS_DIR:=$(top_builddir)/debianutils/ |
Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +0000 | [diff] [blame] | 10 | endif |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 11 | srcdir=$(top_srcdir)/debianutils |
Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +0000 | [diff] [blame] | 12 | |
| 13 | DEBIANUTILS-y:= |
| 14 | DEBIANUTILS-$(CONFIG_MKTEMP) += mktemp.o |
Glenn L McGrath | e9080c9 | 2003-11-14 10:04:33 +0000 | [diff] [blame] | 15 | DEBIANUTILS-$(CONFIG_PIPE_PROGRESS) += pipe_progress.o |
Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +0000 | [diff] [blame] | 16 | DEBIANUTILS-$(CONFIG_READLINK) += readlink.o |
| 17 | DEBIANUTILS-$(CONFIG_RUN_PARTS) += run_parts.o |
Eric Andersen | a1ed06b | 2003-07-26 09:16:00 +0000 | [diff] [blame] | 18 | DEBIANUTILS-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o |
Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +0000 | [diff] [blame] | 19 | DEBIANUTILS-$(CONFIG_WHICH) += which.o |
| 20 | |
| 21 | libraries-y+=$(DEBIANUTILS_DIR)$(DEBIANUTILS_AR) |
| 22 | |
| 23 | $(DEBIANUTILS_DIR)$(DEBIANUTILS_AR): $(patsubst %,$(DEBIANUTILS_DIR)%, $(DEBIANUTILS-y)) |
Mike Frysinger | 4d00896 | 2005-07-27 01:09:24 +0000 | [diff] [blame] | 24 | $(AR) $(ARFLAGS) $@ $(patsubst %,$(DEBIANUTILS_DIR)%, $(DEBIANUTILS-y)) |
Glenn L McGrath | 8f0722a | 2002-11-11 03:00:12 +0000 | [diff] [blame] | 25 | |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 26 | $(DEBIANUTILS_DIR)%.o: $(srcdir)/%.c |
| 27 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| 28 | |