diff options
| author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-05 10:17:08 +0000 |
|---|---|---|
| committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-05 10:17:08 +0000 |
| commit | c2a198d4d1552b349750a13d2c22486e99ef6270 (patch) | |
| tree | 20db60b3a787cd3152160fb60206922fd5eb18ed /coreutils/libcoreutils | |
| parent | d8cf793135eac928e653eb5178894a611aa27837 (diff) | |
| download | busybox-w32-c2a198d4d1552b349750a13d2c22486e99ef6270.tar.gz busybox-w32-c2a198d4d1552b349750a13d2c22486e99ef6270.tar.bz2 busybox-w32-c2a198d4d1552b349750a13d2c22486e99ef6270.zip | |
build system overhaul
git-svn-id: svn://busybox.net/trunk/busybox@16307 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/libcoreutils')
| -rw-r--r-- | coreutils/libcoreutils/Kbuild | 12 | ||||
| -rw-r--r-- | coreutils/libcoreutils/Makefile | 37 | ||||
| -rw-r--r-- | coreutils/libcoreutils/Makefile.in | 39 |
3 files changed, 12 insertions, 76 deletions
diff --git a/coreutils/libcoreutils/Kbuild b/coreutils/libcoreutils/Kbuild new file mode 100644 index 000000000..755d01f86 --- /dev/null +++ b/coreutils/libcoreutils/Kbuild | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # Makefile for busybox | ||
| 2 | # | ||
| 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
| 4 | # | ||
| 5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
| 6 | |||
| 7 | lib-y:= | ||
| 8 | lib-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o | ||
| 9 | lib-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o | ||
| 10 | lib-$(CONFIG_INSTALL) += cp_mv_stat.o | ||
| 11 | lib-$(CONFIG_CP) += cp_mv_stat.o | ||
| 12 | lib-$(CONFIG_MV) += cp_mv_stat.o | ||
diff --git a/coreutils/libcoreutils/Makefile b/coreutils/libcoreutils/Makefile deleted file mode 100644 index fabde2d0e..000000000 --- a/coreutils/libcoreutils/Makefile +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | # Makefile for busybox | ||
| 2 | # | ||
| 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
| 4 | # | ||
| 5 | # This program is free software; you can redistribute it and/or modify | ||
| 6 | # it under the terms of the GNU General Public License as published by | ||
| 7 | # the Free Software Foundation; either version 2 of the License, or | ||
| 8 | # (at your option) any later version. | ||
| 9 | # | ||
| 10 | # This program is distributed in the hope that it will be useful, | ||
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | # General Public License for more details. | ||
| 14 | # | ||
| 15 | # You should have received a copy of the GNU General Public License | ||
| 16 | # along with this program; if not, write to the Free Software | ||
| 17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 18 | # | ||
| 19 | |||
| 20 | ifndef top_srcdir | ||
| 21 | top_srcdir=../.. | ||
| 22 | endif | ||
| 23 | ifndef top_builddir | ||
| 24 | top_builddir=../.. | ||
| 25 | endif | ||
| 26 | srcdir=$(top_srcdir)/coreutils/libcoreutils | ||
| 27 | LIBCOREUTILS_DIR:=./ | ||
| 28 | include $(top_srcdir)/Rules.mak | ||
| 29 | include $(top_builddir)/.config | ||
| 30 | include $(srcdir)/Makefile.in | ||
| 31 | |||
| 32 | all: $(libraries-y) | ||
| 33 | -include $(top_builddir)/.depend | ||
| 34 | |||
| 35 | clean: | ||
| 36 | rm -f *.o *.a $(AR_TARGET) | ||
| 37 | |||
diff --git a/coreutils/libcoreutils/Makefile.in b/coreutils/libcoreutils/Makefile.in deleted file mode 100644 index 30a38c9d9..000000000 --- a/coreutils/libcoreutils/Makefile.in +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | # Makefile for busybox | ||
| 2 | # | ||
| 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
| 4 | # | ||
| 5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
| 6 | |||
| 7 | LIBCOREUTILS_AR:=libcoreutils.a | ||
| 8 | ifndef $(LIBCOREUTILS_DIR) | ||
| 9 | LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils | ||
| 10 | endif | ||
| 11 | srcdir=$(top_srcdir)/coreutils/libcoreutils | ||
| 12 | |||
| 13 | LIBCOREUTILS_ALL_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c | ||
| 14 | |||
| 15 | LIBCOREUTILS-y:= | ||
| 16 | LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o | ||
| 17 | LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o | ||
| 18 | LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat.o | ||
| 19 | LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat.o | ||
| 20 | LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat.o | ||
| 21 | |||
| 22 | LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y)) | ||
| 23 | |||
| 24 | LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBCOREUTILS-y))) | ||
| 25 | LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
| 26 | LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y) | ||
| 27 | LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a) | ||
| 28 | |||
| 29 | ifneq ($(strip $(LIBCOREUTILS-y)),) | ||
| 30 | libraries-y+=$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR) | ||
| 31 | endif | ||
| 32 | |||
| 33 | LIBCOREUTILS_OBJS=$(patsubst %,$(LIBCOREUTILS_DIR)/%, $(LIBCOREUTILS-y)) | ||
| 34 | |||
| 35 | $(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR): $(patsubst %,$(LIBCOREUTILS_DIR)/%,$(LIBCOREUTILS-y)) | ||
| 36 | $(do_ar) | ||
| 37 | |||
| 38 | $(LIBCOREUTILS_DIR)/%.o: $(srcdir)/%.c | ||
| 39 | $(compile.c) | ||
