diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/Makefile | 12 | ||||
-rw-r--r-- | editors/Makefile.in | 6 |
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 | ||
20 | TOPDIR:= ../ | 20 | top_srcdir=.. |
21 | top_builddir=.. | ||
22 | srcdir=$(top_srcdir)/editors | ||
21 | EDITOR_DIR:=./ | 23 | EDITOR_DIR:=./ |
22 | include $(TOPDIR).config | 24 | include $(top_builddir)/Rules.mak |
23 | include $(TOPDIR)Rules.mak | 25 | include $(top_builddir)/.config |
24 | include Makefile.in | 26 | include $(srcdir)/Makefile.in |
25 | all: $(libraries-y) | 27 | all: $(libraries-y) |
26 | -include $(TOPDIR).depend | 28 | -include $(top_builddir)/.depend |
27 | 29 | ||
28 | clean: | 30 | clean: |
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 | ||
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 | |||