blob: 8a7b3bd4a15f2bd1bdc1dfefec9d1b8d1c159d22 [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
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +00007srcdir:=$(top_srcdir)/archival
8objdir:=$(top_builddir)/archival
Eric Andersen85208e22002-04-12 12:05:57 +00009
Eric Andersen85208e22002-04-12 12:05:57 +000010ARCHIVAL-$(CONFIG_AR) += ar.o
11ARCHIVAL-$(CONFIG_BUNZIP2) += bunzip2.o
Rob Landleyc1d69902006-01-20 18:28:50 +000012ARCHIVAL-$(CONFIG_UNLZMA) += unlzma.o
Eric Andersen85208e22002-04-12 12:05:57 +000013ARCHIVAL-$(CONFIG_CPIO) += cpio.o
14ARCHIVAL-$(CONFIG_DPKG) += dpkg.o
15ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o
16ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o
17ARCHIVAL-$(CONFIG_GZIP) += gzip.o
18ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o
Glenn L McGrathb72a7352002-12-10 00:17:22 +000019ARCHIVAL-$(CONFIG_RPM) += rpm.o
Eric Andersen85208e22002-04-12 12:05:57 +000020ARCHIVAL-$(CONFIG_TAR) += tar.o
Glenn L McGrathbf1cc8b2002-11-01 23:38:54 +000021ARCHIVAL-$(CONFIG_UNCOMPRESS) += uncompress.o
Eric Andersen85208e22002-04-12 12:05:57 +000022ARCHIVAL-$(CONFIG_UNZIP) += unzip.o
23
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000024ARCHIVAL_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(ARCHIVAL-y))
25ARCHIVAL_SRC-a:=$(wildcard $(srcdir)/*.c)
26APPLET_SRC-y+=$(ARCHIVAL_SRC-y)
27APPLET_SRC-a+=$(ARCHIVAL_SRC-a)
28
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000029archival_OBJ:= $(patsubst %,$(objdir)/%,$(ARCHIVAL-y))
Eric Andersen85208e22002-04-12 12:05:57 +000030
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +000031$(archival_OBJ): $(objdir)/%.o: $(srcdir)/%.c
32$(objdir)/archival.a: $(archival_OBJ)
33libraries-y:=$(libraries-y) $(objdir)/archival.a
34