aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2015-05-15 20:51:45 -0400
committerGlenn Morris2015-05-15 20:51:45 -0400
commit48e384d7104dce8219b169c55a29c9f85024c83f (patch)
tree4b1e1cae593af4c1253af05172b23c05a3b63096 /src
parentc7e93c41078193d4df8ca165d3aea50a51c40519 (diff)
downloademacs-48e384d7104dce8219b169c55a29c9f85024c83f.tar.gz
emacs-48e384d7104dce8219b169c55a29c9f85024c83f.zip
Replace AC_SUBST_FILE in configure with include in Makefiles.
* configure.ac (DEPDIR, MKDEPDIR, deps_frag, lwlib_deps_frag) (oldxmenu_deps_frag, lisp_frag): Remove output variables/files. (AUTO_DEPEND): New output variable. * lwlib/Makefile.in (AUTO_DEPEND): New, set by configure. (DEPFLAGS, MKDEPDIR): Set directly via conditional. (lwlib_deps_frag): Replace by conditional include. * lwlib/autodeps.mk: Remove file. * oldXMenu/Makefile.in (AUTO_DEPEND): New, set by configure. (DEPFLAGS, MKDEPDIR): Set directly via conditional. (oldxmenu_deps_frag): Replace by conditional include. * oldXMenu/autodeps.mk: Remove file. * src/Makefile.in (AUTO_DEPEND): New, set by configure. (DEPFLAGS, MKDEPDIR): Set directly via conditional. (lisp_frag): Replace by an include. (deps_frag): Replace by conditional include. * src/autodeps.mk: Remove file.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in25
-rw-r--r--src/autodeps.mk5
-rw-r--r--src/deps.mk2
3 files changed, 16 insertions, 16 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 1c03b27c2c3..51a5b982474 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -323,10 +323,15 @@ am__v_at_0 = @
323am__v_at_1 = 323am__v_at_1 =
324 324
325DEPDIR=deps 325DEPDIR=deps
326## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. 326AUTO_DEPEND = @AUTO_DEPEND@
327DEPFLAGS=@DEPFLAGS@ 327
328## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'. 328ifeq ($(AUTO_DEPEND),yes)
329MKDEPDIR=@MKDEPDIR@ 329DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP
330MKDEPDIR = ${MKDIR_P} ${DEPDIR}
331else
332DEPFLAGS =
333MKDEPDIR = :
334endif
330 335
331## DO NOT use -R. There is a special hack described in lastfile.c 336## DO NOT use -R. There is a special hack described in lastfile.c
332## which is used instead. Some initialized data areas are modified 337## which is used instead. Some initialized data areas are modified
@@ -413,9 +418,7 @@ otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \
413FIRSTFILE_OBJ=@FIRSTFILE_OBJ@ 418FIRSTFILE_OBJ=@FIRSTFILE_OBJ@
414ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj) 419ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj)
415 420
416## Configure inserts the file lisp.mk at this point, defining $lisp. 421include $(srcdir)/lisp.mk
417@lisp_frag@
418
419 422
420## Construct full set of libraries to be linked. 423## Construct full set of libraries to be linked.
421LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \ 424LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \
@@ -667,8 +670,10 @@ endif
667 @: Compile some files earlier to speed up further compilation. 670 @: Compile some files earlier to speed up further compilation.
668 $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)" 671 $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)"
669 672
670## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. 673ifeq ($(AUTO_DEPEND),yes)
671@deps_frag@ 674-include $(ALLOBJS:%.o=${DEPDIR}/%.d)
672 675else
676include $(srcdir)/deps.mk
677endif
673 678
674### Makefile.in ends here 679### Makefile.in ends here
diff --git a/src/autodeps.mk b/src/autodeps.mk
deleted file mode 100644
index 8b014a7508c..00000000000
--- a/src/autodeps.mk
+++ /dev/null
@@ -1,5 +0,0 @@
1### autodeps.mk --- src/Makefile fragment for GNU Emacs
2
3## This is inserted in src/Makefile if AUTO_DEPEND=yes.
4
5-include $(ALLOBJS:%.o=${DEPDIR}/%.d)
diff --git a/src/deps.mk b/src/deps.mk
index 71a5f42d22e..23789384fdb 100644
--- a/src/deps.mk
+++ b/src/deps.mk
@@ -20,7 +20,7 @@
20 20
21## Commentary: 21## Commentary:
22## 22##
23## This file is inserted in src/Makefile if AUTO_DEPEND=no. 23## This file is included in src/Makefile if AUTO_DEPEND=no.
24## It defines static dependencies between the various source files. 24## It defines static dependencies between the various source files.
25 25
26## FIXME some of these dependencies are platform-specific. 26## FIXME some of these dependencies are platform-specific.