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)/archival |
| 8 | objdir:=$(top_builddir)/archival |
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 | ARCHIVAL-$(CONFIG_AR) += ar.o |
| 11 | ARCHIVAL-$(CONFIG_BUNZIP2) += bunzip2.o |
Rob Landley | c1d6990 | 2006-01-20 18:28:50 +0000 | [diff] [blame] | 12 | ARCHIVAL-$(CONFIG_UNLZMA) += unlzma.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 13 | ARCHIVAL-$(CONFIG_CPIO) += cpio.o |
| 14 | ARCHIVAL-$(CONFIG_DPKG) += dpkg.o |
| 15 | ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o |
| 16 | ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o |
| 17 | ARCHIVAL-$(CONFIG_GZIP) += gzip.o |
| 18 | ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o |
Glenn L McGrath | b72a735 | 2002-12-10 00:17:22 +0000 | [diff] [blame] | 19 | ARCHIVAL-$(CONFIG_RPM) += rpm.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 20 | ARCHIVAL-$(CONFIG_TAR) += tar.o |
Glenn L McGrath | bf1cc8b | 2002-11-01 23:38:54 +0000 | [diff] [blame] | 21 | ARCHIVAL-$(CONFIG_UNCOMPRESS) += uncompress.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 22 | ARCHIVAL-$(CONFIG_UNZIP) += unzip.o |
| 23 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 24 | ARCHIVAL_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(ARCHIVAL-y)) |
| 25 | ARCHIVAL_SRC-a:=$(wildcard $(srcdir)/*.c) |
| 26 | APPLET_SRC-y+=$(ARCHIVAL_SRC-y) |
| 27 | APPLET_SRC-a+=$(ARCHIVAL_SRC-a) |
| 28 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 29 | archival_OBJ:= $(patsubst %,$(objdir)/%,$(ARCHIVAL-y)) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 30 | |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 31 | $(archival_OBJ): $(objdir)/%.o: $(srcdir)/%.c |
| 32 | $(objdir)/archival.a: $(archival_OBJ) |
| 33 | libraries-y:=$(libraries-y) $(objdir)/archival.a |
| 34 | |