diff options
| author | Glenn Morris | 2015-05-15 20:51:45 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-05-15 20:51:45 -0400 |
| commit | 48e384d7104dce8219b169c55a29c9f85024c83f (patch) | |
| tree | 4b1e1cae593af4c1253af05172b23c05a3b63096 /src | |
| parent | c7e93c41078193d4df8ca165d3aea50a51c40519 (diff) | |
| download | emacs-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.in | 25 | ||||
| -rw-r--r-- | src/autodeps.mk | 5 | ||||
| -rw-r--r-- | src/deps.mk | 2 |
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 = @ | |||
| 323 | am__v_at_1 = | 323 | am__v_at_1 = |
| 324 | 324 | ||
| 325 | DEPDIR=deps | 325 | DEPDIR=deps |
| 326 | ## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. | 326 | AUTO_DEPEND = @AUTO_DEPEND@ |
| 327 | DEPFLAGS=@DEPFLAGS@ | 327 | |
| 328 | ## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'. | 328 | ifeq ($(AUTO_DEPEND),yes) |
| 329 | MKDEPDIR=@MKDEPDIR@ | 329 | DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP |
| 330 | MKDEPDIR = ${MKDIR_P} ${DEPDIR} | ||
| 331 | else | ||
| 332 | DEPFLAGS = | ||
| 333 | MKDEPDIR = : | ||
| 334 | endif | ||
| 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) \ | |||
| 413 | FIRSTFILE_OBJ=@FIRSTFILE_OBJ@ | 418 | FIRSTFILE_OBJ=@FIRSTFILE_OBJ@ |
| 414 | ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj) | 419 | ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj) |
| 415 | 420 | ||
| 416 | ## Configure inserts the file lisp.mk at this point, defining $lisp. | 421 | include $(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. |
| 421 | LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \ | 424 | LIBES = $(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. | 673 | ifeq ($(AUTO_DEPEND),yes) |
| 671 | @deps_frag@ | 674 | -include $(ALLOBJS:%.o=${DEPDIR}/%.d) |
| 672 | 675 | else | |
| 676 | include $(srcdir)/deps.mk | ||
| 677 | endif | ||
| 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. |