diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-15 14:04:57 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-15 14:04:57 +0000 |
| commit | 7ca61b6f3379bf66b446617b8834d92c13b366dd (patch) | |
| tree | c0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /coreutils/libcoreutils | |
| parent | 8c9daa12dcb4c1aa8f0f475896c9cfbcfb38370d (diff) | |
| download | busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.gz busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.bz2 busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.zip | |
- shared libbusybox.
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
Diffstat (limited to 'coreutils/libcoreutils')
| -rw-r--r-- | coreutils/libcoreutils/Makefile.in | 55 |
1 files changed, 35 insertions, 20 deletions
diff --git a/coreutils/libcoreutils/Makefile.in b/coreutils/libcoreutils/Makefile.in index fe66c8243..1f0c19e73 100644 --- a/coreutils/libcoreutils/Makefile.in +++ b/coreutils/libcoreutils/Makefile.in | |||
| @@ -2,36 +2,51 @@ | |||
| 2 | # | 2 | # |
| 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
| 4 | # | 4 | # |
| 5 | # This program is free software; you can redistribute it and/or modify | 5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
| 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 | # | 6 | # |
| 19 | 7 | ||
| 20 | LIBCOREUTILS_AR:=libcoreutils.a | 8 | LIBCOREUTILS_AR:=libcoreutils.a |
| 21 | ifndef $(LIBCOREUTILS_DIR) | 9 | ifndef $(LIBCOREUTILS_DIR) |
| 22 | LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils/ | 10 | LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils |
| 23 | endif | 11 | endif |
| 24 | srcdir=$(top_srcdir)/coreutils/libcoreutils | 12 | srcdir=$(top_srcdir)/coreutils/libcoreutils |
| 25 | 13 | ||
| 26 | LIBCOREUTILS_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c | 14 | LIBCOREUTILS_ALL_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c |
| 15 | |||
| 16 | LIBCOREUTILS-y:= | ||
| 17 | LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o | ||
| 18 | LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o | ||
| 19 | LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat.o | ||
| 20 | LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat.o | ||
| 21 | LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat.o | ||
| 22 | |||
| 23 | LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y)) | ||
| 24 | |||
| 25 | LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBCOREUTILS-y))) | ||
| 26 | LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
| 27 | LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y) | ||
| 28 | LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a) | ||
| 27 | 29 | ||
| 28 | LIBCOREUTILS_OBJS=$(patsubst %.c,$(LIBCOREUTILS_DIR)%.o, $(LIBCOREUTILS_SRC)) | 30 | LIBCOREUTILS-multi-obj:=$(LIBCOREUTILS_DIR)/$(subst .a,-multi.o,$(LIBCOREUTILS_AR)) |
| 31 | LIBCOREUTILS-multi-pic:=$(LIBCOREUTILS_DIR)/$(subst .a,-pic.o,$(LIBCOREUTILS_AR)) | ||
| 32 | |||
| 33 | # We do not need to build an empty non-pic object/archive | ||
| 34 | ifneq ($(strip $(LIBCOREUTILS-y)),) | ||
| 35 | libraries-y+=$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR) | ||
| 36 | endif | ||
| 37 | # If we are building libbusybox.so _and_ we will use it ourselves then we | ||
| 38 | # keep it as small as possible | ||
| 39 | ifeq ($(strip $(CONFIG_FEATURE_SHARED_BUSYBOX)),y) | ||
| 40 | ifneq ($(strip $(LIBIPROUTE-y)),) | ||
| 41 | libraries-m+=$(LIBCOREUTILS-multi-pic) | ||
| 42 | endif | ||
| 43 | endif | ||
| 29 | 44 | ||
| 30 | libraries-y+=$(LIBCOREUTILS_DIR)$(LIBCOREUTILS_AR) | 45 | LIBCOREUTILS_OBJS=$(patsubst %,$(LIBCOREUTILS_DIR)/%, $(LIBCOREUTILS-y)) |
| 31 | 46 | ||
| 32 | $(LIBCOREUTILS_DIR)$(LIBCOREUTILS_AR): $(LIBCOREUTILS_OBJS) | 47 | $(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR): $(patsubst %,$(LIBCOREUTILS_DIR)/%,$(LIBCOREUTILS-y)) |
| 33 | $(AR) $(ARFLAGS) $@ $(LIBCOREUTILS_OBJS) | 48 | $(AR) $(ARFLAGS) $(@) $(^) |
| 34 | 49 | ||
| 35 | $(LIBCOREUTILS_DIR)%.o: $(srcdir)/%.c | 50 | $(LIBCOREUTILS_DIR)/%.o: $(srcdir)/%.c |
| 36 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< | 51 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
| 37 | 52 | ||
