2002-04-12 17:35:57 +05:30
|
|
|
# Makefile for busybox
|
|
|
|
#
|
2005-09-24 11:31:57 +05:30
|
|
|
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
|
2002-04-12 17:35:57 +05:30
|
|
|
#
|
2005-09-24 11:31:57 +05:30
|
|
|
# Licensed under the GPL v2, see the file LICENSE in this tarball.
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
EDITOR_AR:=editors.a
|
|
|
|
ifndef $(EDITOR_DIR)
|
|
|
|
EDITOR_DIR:=$(top_builddir)/editors/
|
|
|
|
endif
|
|
|
|
srcdir=$(top_srcdir)/editors
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
EDITOR-y:=
|
|
|
|
EDITOR-$(CONFIG_AWK) += awk.o
|
|
|
|
EDITOR-$(CONFIG_PATCH) += patch.o
|
|
|
|
EDITOR-$(CONFIG_SED) += sed.o
|
|
|
|
EDITOR-$(CONFIG_VI) += vi.o
|
2006-01-15 19:34:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
ifneq ($(strip $(EDITOR-y)),)
|
|
|
|
libraries-y+=$(EDITOR_DIR)$(EDITOR_AR)
|
2002-11-11 11:51:00 +05:30
|
|
|
endif
|
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
EDITOR_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(EDITOR-y))
|
2006-03-02 04:24:48 +05:30
|
|
|
EDITOR_SRC-a:=$(wildcard $(srcdir)/*.c)
|
|
|
|
APPLET_SRC-y+=$(EDITOR_SRC-y)
|
|
|
|
APPLET_SRC-a+=$(EDITOR_SRC-a)
|
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
needlibm-y:=
|
|
|
|
needlibm-$(CONFIG_FEATURE_AWK_MATH) := y
|
|
|
|
|
|
|
|
ifeq ($(needlibm-y),y)
|
|
|
|
LIBRARIES := -lm $(filter-out -lm,$(LIBRARIES))
|
|
|
|
endif
|
2002-04-12 17:35:57 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
$(EDITOR_DIR)$(EDITOR_AR): $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y))
|
|
|
|
$(do_ar)
|
2006-03-09 14:33:37 +05:30
|
|
|
|
2006-03-14 00:34:00 +05:30
|
|
|
$(EDITOR_DIR)%.o: $(srcdir)/%.c
|
|
|
|
$(compile.c)
|