aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/Makefile.in35
1 files changed, 12 insertions, 23 deletions
diff --git a/editors/Makefile.in b/editors/Makefile.in
index 805017dcc..19d8bf8e6 100644
--- a/editors/Makefile.in
+++ b/editors/Makefile.in
@@ -4,36 +4,25 @@
4# 4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball. 5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6 6
7EDITOR_AR:=editors.a
8ifndef $(EDITOR_DIR)
9EDITOR_DIR:=$(top_builddir)/editors/
10endif
11srcdir=$(top_srcdir)/editors 7srcdir=$(top_srcdir)/editors
8objdir=$(top_builddir)/editors
12 9
13EDITOR-y:= 10EDITORS-$(CONFIG_AWK) += awk.o
14EDITOR-$(CONFIG_AWK) += awk.o 11EDITORS-$(CONFIG_PATCH) += patch.o
15EDITOR-$(CONFIG_PATCH) += patch.o 12EDITORS-$(CONFIG_SED) += sed.o
16EDITOR-$(CONFIG_SED) += sed.o 13EDITORS-$(CONFIG_VI) += vi.o
17EDITOR-$(CONFIG_VI) += vi.o
18
19ifneq ($(strip $(EDITOR-y)),)
20libraries-y+=$(EDITOR_DIR)$(EDITOR_AR)
21endif
22
23EDITOR_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(EDITOR-y))
24EDITOR_SRC-a:=$(wildcard $(srcdir)/*.c)
25APPLET_SRC-y+=$(EDITOR_SRC-y)
26APPLET_SRC-a+=$(EDITOR_SRC-a)
27 14
28needlibm-y:= 15needlibm-y:=
29needlibm-$(CONFIG_FEATURE_AWK_MATH) := y 16needlibm-$(CONFIG_FEATURE_AWK_MATH) := y
30 17
31ifeq ($(needlibm-y),y) 18ifeq ($(needlibm-y),y)
32 LIBRARIES := -lm $(filter-out -lm,$(LIBRARIES)) 19 LIBRARIES := $(filter-out -lm,$(LIBRARIES)) -lm
33endif 20endif
34 21
35$(EDITOR_DIR)$(EDITOR_AR): $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y)) 22EDITOR_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(EDITORS-y))
36 $(do_ar) 23EDITOR_SRC-a:=$(wildcard $(srcdir)/*.c)
24APPLET_SRC-y+=$(EDITOR_SRC-y)
25APPLET_SRC-a+=$(EDITOR_SRC-a)
26
27editors_OBJ:= $(patsubst %,$(objdir)/%,$(EDITORS-y))
37 28
38$(EDITOR_DIR)%.o: $(srcdir)/%.c
39 $(compile.c)