2003-03-19 14:43:01 +05:30
|
|
|
# Makefile for busybox
|
|
|
|
#
|
2004-03-15 13:59:22 +05:30
|
|
|
# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
2003-03-19 14:43:01 +05:30
|
|
|
#
|
2006-01-15 19:34:57 +05:30
|
|
|
# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
2003-03-19 14:43:01 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
LIBCOREUTILS_AR:=libcoreutils.a
|
|
|
|
ifndef $(LIBCOREUTILS_DIR)
|
|
|
|
LIBCOREUTILS_DIR:=$(top_builddir)/coreutils/libcoreutils
|
|
|
|
endif
|
|
|
|
srcdir=$(top_srcdir)/coreutils/libcoreutils
|
2003-03-19 14:43:01 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
LIBCOREUTILS_ALL_SRC:= cp_mv_stat.c getopt_mk_fifo_nod.c
|
|
|
|
|
|
|
|
LIBCOREUTILS-y:=
|
|
|
|
LIBCOREUTILS-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o
|
|
|
|
LIBCOREUTILS-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o
|
|
|
|
LIBCOREUTILS-$(CONFIG_INSTALL) += cp_mv_stat.o
|
|
|
|
LIBCOREUTILS-$(CONFIG_CP) += cp_mv_stat.o
|
|
|
|
LIBCOREUTILS-$(CONFIG_MV) += cp_mv_stat.o
|
2006-01-15 19:34:57 +05:30
|
|
|
|
|
|
|
LIBCOREUTILS-y:=$(sort $(LIBCOREUTILS-y))
|
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
LIBCOREUTILS_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBCOREUTILS-y)))
|
2006-01-15 19:34:57 +05:30
|
|
|
LIBCOREUTILS_SRC-a:=$(wildcard $(srcdir)/*.c)
|
|
|
|
LIBRARY_SRC-y+=$(LIBCOREUTILS_SRC-y)
|
|
|
|
LIBRARY_SRC-a+=$(LIBCOREUTILS_SRC-a)
|
2003-03-19 14:43:01 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
ifneq ($(strip $(LIBCOREUTILS-y)),)
|
|
|
|
libraries-y+=$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
LIBCOREUTILS_OBJS=$(patsubst %,$(LIBCOREUTILS_DIR)/%, $(LIBCOREUTILS-y))
|
2006-03-09 14:33:37 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
$(LIBCOREUTILS_DIR)/$(LIBCOREUTILS_AR): $(patsubst %,$(LIBCOREUTILS_DIR)/%,$(LIBCOREUTILS-y))
|
|
|
|
$(do_ar)
|
2006-03-09 14:33:37 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
$(LIBCOREUTILS_DIR)/%.o: $(srcdir)/%.c
|
|
|
|
$(compile.c)
|