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 | |
| 7 | ARCHIVAL_AR:=archival.a |
| 8 | ifndef $(ARCHIVAL_DIR) |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 9 | ARCHIVAL_DIR:=$(top_builddir)/archival/ |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 10 | endif |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 11 | srcdir=$(top_srcdir)/archival |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 12 | |
| 13 | ARCHIVAL-y:= |
Glenn L McGrath | bf1cc8b | 2002-11-01 23:38:54 +0000 | [diff] [blame] | 14 | ARCHIVAL-$(CONFIG_APT_GET) += |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 15 | ARCHIVAL-$(CONFIG_AR) += ar.o |
| 16 | ARCHIVAL-$(CONFIG_BUNZIP2) += bunzip2.o |
| 17 | ARCHIVAL-$(CONFIG_CPIO) += cpio.o |
| 18 | ARCHIVAL-$(CONFIG_DPKG) += dpkg.o |
| 19 | ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o |
| 20 | ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o |
| 21 | ARCHIVAL-$(CONFIG_GZIP) += gzip.o |
| 22 | ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o |
Glenn L McGrath | b72a735 | 2002-12-10 00:17:22 +0000 | [diff] [blame] | 23 | ARCHIVAL-$(CONFIG_RPM) += rpm.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 24 | ARCHIVAL-$(CONFIG_TAR) += tar.o |
Glenn L McGrath | bf1cc8b | 2002-11-01 23:38:54 +0000 | [diff] [blame] | 25 | ARCHIVAL-$(CONFIG_UNCOMPRESS) += uncompress.o |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 26 | ARCHIVAL-$(CONFIG_UNZIP) += unzip.o |
| 27 | |
| 28 | libraries-y+=$(ARCHIVAL_DIR)$(ARCHIVAL_AR) |
| 29 | |
| 30 | $(ARCHIVAL_DIR)$(ARCHIVAL_AR): $(patsubst %,$(ARCHIVAL_DIR)%, $(ARCHIVAL-y)) |
Mike Frysinger | 4d00896 | 2005-07-27 01:09:24 +0000 | [diff] [blame] | 31 | $(AR) $(ARFLAGS) $@ $(patsubst %,$(ARCHIVAL_DIR)%, $(ARCHIVAL-y)) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 32 | |
Eric Andersen | 7daa076 | 2004-10-08 07:46:08 +0000 | [diff] [blame] | 33 | $(ARCHIVAL_DIR)%.o: $(srcdir)/%.c |
| 34 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| 35 | |