aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/Makefile12
-rw-r--r--editors/Makefile.in6
2 files changed, 12 insertions, 6 deletions
diff --git a/editors/Makefile b/editors/Makefile
index 1c8223124..e6c114781 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -17,13 +17,15 @@
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18# 18#
19 19
20TOPDIR:= ../ 20top_srcdir=..
21top_builddir=..
22srcdir=$(top_srcdir)/editors
21EDITOR_DIR:=./ 23EDITOR_DIR:=./
22include $(TOPDIR).config 24include $(top_builddir)/Rules.mak
23include $(TOPDIR)Rules.mak 25include $(top_builddir)/.config
24include Makefile.in 26include $(srcdir)/Makefile.in
25all: $(libraries-y) 27all: $(libraries-y)
26-include $(TOPDIR).depend 28-include $(top_builddir)/.depend
27 29
28clean: 30clean:
29 rm -f *.o *.a $(AR_TARGET) 31 rm -f *.o *.a $(AR_TARGET)
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
20EDITOR_AR:=editors.a 20EDITOR_AR:=editors.a
21ifndef $(EDITOR_DIR) 21ifndef $(EDITOR_DIR)
22EDITOR_DIR:=$(TOPDIR)editors/ 22EDITOR_DIR:=$(top_builddir)/editors/
23endif 23endif
24srcdir=$(top_srcdir)/editors
24 25
25EDITOR-y:= 26EDITOR-y:=
26EDITOR-$(CONFIG_AWK) += awk.o 27EDITOR-$(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