summaryrefslogtreecommitdiffhomepage
path: root/editors/Makefile.in
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-13 19:04:00 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-13 19:04:00 +0000
commitdf10094870c28cc0c6c5577c9aa03b8ede9cb8a6 (patch)
tree49493696039b285aa751a5bc884fc70c9c85e878 /editors/Makefile.in
parentc5b1d4d6b14f22b5e2f7ae42eb01bf2746b8001c (diff)
- revert back to r14406
Diffstat (limited to 'editors/Makefile.in')
-rw-r--r--editors/Makefile.in39
1 files changed, 23 insertions, 16 deletions
diff --git a/editors/Makefile.in b/editors/Makefile.in
index dd09e7a21..805017dcc 100644
--- a/editors/Makefile.in
+++ b/editors/Makefile.in
@@ -4,29 +4,36 @@
#
# Licensed under the GPL v2, see the file LICENSE in this tarball.
-srcdir:=$(top_srcdir)/editors
-objdir:=$(top_builddir)/editors
+EDITOR_AR:=editors.a
+ifndef $(EDITOR_DIR)
+EDITOR_DIR:=$(top_builddir)/editors/
+endif
+srcdir=$(top_srcdir)/editors
-EDITORS-$(CONFIG_AWK) += awk.o
-EDITORS-$(CONFIG_PATCH) += patch.o
-EDITORS-$(CONFIG_SED) += sed.o
-EDITORS-$(CONFIG_VI) += vi.o
+EDITOR-y:=
+EDITOR-$(CONFIG_AWK) += awk.o
+EDITOR-$(CONFIG_PATCH) += patch.o
+EDITOR-$(CONFIG_SED) += sed.o
+EDITOR-$(CONFIG_VI) += vi.o
-needlibm-y:=
-needlibm-$(CONFIG_FEATURE_AWK_MATH) := y
-
-ifeq ($(needlibm-y),y)
- LIBRARIES := $(filter-out -lm,$(LIBRARIES)) -lm
+ifneq ($(strip $(EDITOR-y)),)
+libraries-y+=$(EDITOR_DIR)$(EDITOR_AR)
endif
-EDITOR_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(EDITORS-y))
+EDITOR_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(EDITOR-y))
EDITOR_SRC-a:=$(wildcard $(srcdir)/*.c)
APPLET_SRC-y+=$(EDITOR_SRC-y)
APPLET_SRC-a+=$(EDITOR_SRC-a)
-editors_OBJ:= $(patsubst %,$(objdir)/%,$(EDITORS-y))
+needlibm-y:=
+needlibm-$(CONFIG_FEATURE_AWK_MATH) := y
+
+ifeq ($(needlibm-y),y)
+ LIBRARIES := -lm $(filter-out -lm,$(LIBRARIES))
+endif
-$(editors_OBJ): $(objdir)/%.o: $(srcdir)/%.c
-$(objdir)/editors.a: $(editors_OBJ)
-libraries-y:=$(libraries-y) $(objdir)/editors.a
+$(EDITOR_DIR)$(EDITOR_AR): $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y))
+ $(do_ar)
+$(EDITOR_DIR)%.o: $(srcdir)/%.c
+ $(compile.c)