diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.in | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 60aa6866718..5a3d0bd0445 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -347,15 +347,14 @@ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |||
| 347 | am__v_at_0 = @ | 347 | am__v_at_0 = @ |
| 348 | am__v_at_1 = | 348 | am__v_at_1 = |
| 349 | 349 | ||
| 350 | DEPDIR=deps | ||
| 351 | AUTO_DEPEND = @AUTO_DEPEND@ | 350 | AUTO_DEPEND = @AUTO_DEPEND@ |
| 352 | 351 | DEPDIR = deps | |
| 353 | ifeq ($(AUTO_DEPEND),yes) | 352 | ifeq ($(AUTO_DEPEND),yes) |
| 354 | DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP | 353 | DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP |
| 355 | MKDEPDIR = ${MKDIR_P} ${DEPDIR} | 354 | -include $(ALLOBJS:%.o=$(DEPDIR)/%.d) |
| 356 | else | 355 | else |
| 357 | DEPFLAGS = | 356 | DEPFLAGS = |
| 358 | MKDEPDIR = : | 357 | include $(srcdir)/deps.mk |
| 359 | endif | 358 | endif |
| 360 | 359 | ||
| 361 | # Flags that might be in WARN_CFLAGS but are not valid for Objective C. | 360 | # Flags that might be in WARN_CFLAGS but are not valid for Objective C. |
| @@ -383,10 +382,8 @@ ALL_OBJC_CFLAGS = $(EMACS_CFLAGS) \ | |||
| 383 | 382 | ||
| 384 | .SUFFIXES: .m | 383 | .SUFFIXES: .m |
| 385 | .c.o: | 384 | .c.o: |
| 386 | @$(MKDEPDIR) | ||
| 387 | $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< | 385 | $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< |
| 388 | .m.o: | 386 | .m.o: |
| 389 | @$(MKDEPDIR) | ||
| 390 | $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $< | 387 | $(AM_V_CC)$(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $< |
| 391 | 388 | ||
| 392 | ## lastfile must follow all files whose initialized data areas should | 389 | ## lastfile must follow all files whose initialized data areas should |
| @@ -650,8 +647,7 @@ mostlyclean: | |||
| 650 | rm -f globals.h gl-stamp | 647 | rm -f globals.h gl-stamp |
| 651 | rm -f *.res *.tmp | 648 | rm -f *.res *.tmp |
| 652 | clean: mostlyclean | 649 | clean: mostlyclean |
| 653 | rm -f emacs-*.*.*$(EXEEXT) emacs$(EXEEXT) | 650 | rm -f emacs-*.*.*$(EXEEXT) emacs$(EXEEXT) $(DEPDIR)/* |
| 654 | -rm -rf $(DEPDIR) | ||
| 655 | 651 | ||
| 656 | ## bootstrap-clean is used to clean up just before a bootstrap. | 652 | ## bootstrap-clean is used to clean up just before a bootstrap. |
| 657 | ## It should remove all files generated during a compilation/bootstrap, | 653 | ## It should remove all files generated during a compilation/bootstrap, |
| @@ -666,6 +662,7 @@ bootstrap-clean: clean | |||
| 666 | 662 | ||
| 667 | distclean: bootstrap-clean | 663 | distclean: bootstrap-clean |
| 668 | rm -f Makefile lisp.mk | 664 | rm -f Makefile lisp.mk |
| 665 | rm -fr $(DEPDIR) | ||
| 669 | 666 | ||
| 670 | maintainer-clean: distclean | 667 | maintainer-clean: distclean |
| 671 | rm -f TAGS | 668 | rm -f TAGS |
| @@ -755,11 +752,3 @@ else | |||
| 755 | endif | 752 | endif |
| 756 | @: Compile some files earlier to speed up further compilation. | 753 | @: Compile some files earlier to speed up further compilation. |
| 757 | $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)" | 754 | $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)" |
| 758 | |||
| 759 | ifeq ($(AUTO_DEPEND),yes) | ||
| 760 | -include $(ALLOBJS:%.o=${DEPDIR}/%.d) | ||
| 761 | else | ||
| 762 | include $(srcdir)/deps.mk | ||
| 763 | endif | ||
| 764 | |||
| 765 | ### Makefile.in ends here | ||