From 85208e2ab94ddd60cc97dd7ae4a3b2a588281398 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 12 Apr 2002 12:05:57 +0000 Subject: Completely rework the config system so that it no longer annoys me to work on the busybox development tree. This eliminates the use of recursive make, and once again allows us to run 'make' in a subdirectory with the expected result. And things are now much faster too. Greatly improved IMHO... -Erik --- archival/libunarchive/Makefile | 49 +++++++-------------------------------- archival/libunarchive/Makefile.in | 38 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 40 deletions(-) create mode 100644 archival/libunarchive/Makefile.in (limited to 'archival/libunarchive') diff --git a/archival/libunarchive/Makefile b/archival/libunarchive/Makefile index a8409a4..7979879 100644 --- a/archival/libunarchive/Makefile +++ b/archival/libunarchive/Makefile @@ -1,6 +1,6 @@ # Makefile for busybox # -# Copyright (C) 1999,2000,2001 by Erik Andersen +# Copyright (C) 1999-2002 Erik Andersen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,45 +17,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -TOPDIR :=../.. -L_TARGET := libunarchive.a - -obj-y := unarchive.o seek_sub_file.o -obj-n := -obj- := - -ifeq ($(CONFIG_DPKG),y) - obj-y += deb_extract.o get_header_ar.o get_header_tar.o -endif - -ifeq ($(CONFIG_DPKG_DEB),y) - obj-y += deb_extract.o get_header_ar.o get_header_tar.o -endif - -ifeq ($(CONFIG_AR),y) - obj-y += get_header_ar.o -endif - -ifeq ($(CONFIG_CPIO),y) - obj-y += get_header_cpio.o -endif - -ifeq ($(CONFIG_RPM2CPIO),y) - obj-y += get_header_cpio.o -endif - -ifeq ($(CONFIG_TAR),y) - obj-y += get_header_tar.o -endif - -ifeq ($(CONFIG_UNZIP),y) - obj-y += get_header_zip.o -endif - - -# Hand off to toplevel Rules.mak -include $(TOPDIR)/Rules.mak +TOPDIR:= ../../ +LIBUNARCHIVE_DIR:=./ +include $(TOPDIR).config +include $(TOPDIR)Rules.mak +include Makefile.in +all: $(libraries-y) +-include $(TOPDIR).depend clean: - rm -f $(L_TARGET) *.o core + rm -f *.o *.a $(AR_TARGET) diff --git a/archival/libunarchive/Makefile.in b/archival/libunarchive/Makefile.in new file mode 100644 index 0000000..cd68be7 --- /dev/null +++ b/archival/libunarchive/Makefile.in @@ -0,0 +1,38 @@ +# Makefile for busybox +# +# Copyright (C) 1999-2002 by Erik Andersen +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +LIBUNARCHIVE_AR:=libunarchive.a +ifndef $(LIBUNARCHIVE_DIR) +LIBUNARCHIVE_DIR:=$(TOPDIR)archival/libunarchive/ +endif + +LIBUNARCHIVE-y:=unarchive.o seek_sub_file.o +LIBUNARCHIVE-$(CONFIG_DPKG) += deb_extract.o get_header_ar.o get_header_tar.o +LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += deb_extract.o get_header_ar.o get_header_tar.o +LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o +LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio.o +LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += get_header_cpio.o +LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o +LIBUNARCHIVE-$(CONFIG_UNZIP) += get_header_zip.o + +libraries-y+=$(LIBUNARCHIVE_DIR)$(LIBUNARCHIVE_AR) + +$(LIBUNARCHIVE_DIR)$(LIBUNARCHIVE_AR): $(patsubst %,$(LIBUNARCHIVE_DIR)%, $(LIBUNARCHIVE-y)) + $(AR) -ro $@ $(patsubst %,$(LIBUNARCHIVE_DIR)%, $(LIBUNARCHIVE-y)) + -- cgit v1.1