diff options
Diffstat (limited to 'editors/Makefile.in')
-rw-r--r-- | editors/Makefile.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/Makefile.in b/editors/Makefile.in index 017f30934..571e05568 100644 --- a/editors/Makefile.in +++ b/editors/Makefile.in | |||
@@ -19,8 +19,9 @@ | |||
19 | 19 | ||
20 | EDITOR_AR:=editors.a | 20 | EDITOR_AR:=editors.a |
21 | ifndef $(EDITOR_DIR) | 21 | ifndef $(EDITOR_DIR) |
22 | EDITOR_DIR:=$(TOPDIR)editors/ | 22 | EDITOR_DIR:=$(top_builddir)/editors/ |
23 | endif | 23 | endif |
24 | srcdir=$(top_srcdir)/editors | ||
24 | 25 | ||
25 | EDITOR-y:= | 26 | EDITOR-y:= |
26 | EDITOR-$(CONFIG_AWK) += awk.o | 27 | EDITOR-$(CONFIG_AWK) += awk.o |
@@ -42,3 +43,6 @@ endif | |||
42 | $(EDITOR_DIR)$(EDITOR_AR): $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y)) | 43 | $(EDITOR_DIR)$(EDITOR_AR): $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y)) |
43 | $(AR) -ro $@ $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y)) | 44 | $(AR) -ro $@ $(patsubst %,$(EDITOR_DIR)%, $(EDITOR-y)) |
44 | 45 | ||
46 | $(EDITOR_DIR)%.o: $(srcdir)/%.c | ||
47 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< | ||
48 | |||