diff options
Diffstat (limited to 'src/Makefile.in')
| -rw-r--r-- | src/Makefile.in | 54 |
1 files changed, 23 insertions, 31 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index dee3a534db3..2348c8dae4c 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -331,6 +331,7 @@ BUILD_DETAILS = @BUILD_DETAILS@ | |||
| 331 | UNEXEC_OBJ = @UNEXEC_OBJ@ | 331 | UNEXEC_OBJ = @UNEXEC_OBJ@ |
| 332 | 332 | ||
| 333 | DUMPING=@DUMPING@ | 333 | DUMPING=@DUMPING@ |
| 334 | CHECK_STRUCTS = @CHECK_STRUCTS@ | ||
| 334 | 335 | ||
| 335 | # 'make' verbosity. | 336 | # 'make' verbosity. |
| 336 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | 337 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ |
| @@ -458,7 +459,9 @@ all: emacs$(EXEEXT) $(pdmp) $(OTHER_FILES) | |||
| 458 | 459 | ||
| 459 | dmpstruct_headers=$(srcdir)/lisp.h $(srcdir)/buffer.h \ | 460 | dmpstruct_headers=$(srcdir)/lisp.h $(srcdir)/buffer.h \ |
| 460 | $(srcdir)/intervals.h $(srcdir)/charset.h $(srcdir)/bignum.h | 461 | $(srcdir)/intervals.h $(srcdir)/charset.h $(srcdir)/bignum.h |
| 462 | ifeq ($(CHECK_STRUCTS),true) | ||
| 461 | pdumper.o: dmpstruct.h | 463 | pdumper.o: dmpstruct.h |
| 464 | endif | ||
| 462 | dmpstruct.h: $(srcdir)/dmpstruct.awk | 465 | dmpstruct.h: $(srcdir)/dmpstruct.awk |
| 463 | dmpstruct.h: $(libsrc)/make-fingerprint$(EXEEXT) $(dmpstruct_headers) | 466 | dmpstruct.h: $(libsrc)/make-fingerprint$(EXEEXT) $(dmpstruct_headers) |
| 464 | $(AM_V_GEN)POSIXLY_CORRECT=1 awk -f $(srcdir)/dmpstruct.awk \ | 467 | $(AM_V_GEN)POSIXLY_CORRECT=1 awk -f $(srcdir)/dmpstruct.awk \ |
| @@ -541,7 +544,7 @@ ${lispintdir}/cp51932.el ${lispintdir}/eucjp-ms.el: FORCE | |||
| 541 | 544 | ||
| 542 | charsets = ${top_srcdir}/admin/charsets/charsets.stamp | 545 | charsets = ${top_srcdir}/admin/charsets/charsets.stamp |
| 543 | ${charsets}: FORCE | 546 | ${charsets}: FORCE |
| 544 | ${MAKE} -C ../admin/charsets all | 547 | $(MAKE) -C ../admin/charsets all |
| 545 | 548 | ||
| 546 | charscript = ${lispintdir}/charscript.el | 549 | charscript = ${lispintdir}/charscript.el |
| 547 | ${charscript}: FORCE | 550 | ${charscript}: FORCE |
| @@ -592,8 +595,9 @@ $(etc)/DOC: lisp.mk $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp) | |||
| 592 | $(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \ | 595 | $(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \ |
| 593 | $(shortlisp) | 596 | $(shortlisp) |
| 594 | 597 | ||
| 595 | $(libsrc)/make-docfile$(EXEEXT): $(lib)/libgnu.a | 598 | $(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \ |
| 596 | $(MAKE) -C $(libsrc) make-docfile$(EXEEXT) | 599 | $(lib)/libgnu.a |
| 600 | $(MAKE) -C $(dir $@) $(notdir $@) | ||
| 597 | 601 | ||
| 598 | buildobj.h: Makefile | 602 | buildobj.h: Makefile |
| 599 | $(AM_V_GEN)for i in $(ALLOBJS); do \ | 603 | $(AM_V_GEN)for i in $(ALLOBJS); do \ |
| @@ -621,30 +625,21 @@ $(ALLOBJS): globals.h | |||
| 621 | LIBEGNU_ARCHIVE = $(lib)/lib$(if $(HYBRID_MALLOC),e)gnu.a | 625 | LIBEGNU_ARCHIVE = $(lib)/lib$(if $(HYBRID_MALLOC),e)gnu.a |
| 622 | 626 | ||
| 623 | $(LIBEGNU_ARCHIVE): $(config_h) | 627 | $(LIBEGNU_ARCHIVE): $(config_h) |
| 624 | $(MAKE) -C $(lib) all | 628 | $(MAKE) -C $(dir $@) all |
| 625 | |||
| 626 | EMACS_DEPS_PRE=$(LIBXMENU) $(ALLOBJS) | ||
| 627 | EMACS_DEPS_POST=$(LIBEGNU_ARCHIVE) $(EMACSRES) ${charsets} ${charscript} | ||
| 628 | BUILD_EMACS_PRE=$(AM_V_CCLD)$(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \ | ||
| 629 | -o $@ $(ALLOBJS) | ||
| 630 | BUILD_EMACS_POST=$(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES) | ||
| 631 | |||
| 632 | ## We hash this file to generate the build fingerprint | ||
| 633 | temacs.in$(EXEEXT): $(EMACS_DEPS_PRE) fingerprint-dummy.o $(EMACS_DEPS_POST) | ||
| 634 | $(BUILD_EMACS_PRE) fingerprint-dummy.o $(BUILD_EMACS_POST) | ||
| 635 | 629 | ||
| 636 | $(libsrc)/make-fingerprint$(EXEEXT): $(libsrc)/make-fingerprint.c $(lib)/libgnu.a | 630 | FINGERPRINTED = $(LIBXMENU) $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) |
| 637 | $(MAKE) -C $(libsrc) make-fingerprint$(EXEEXT) | 631 | fingerprint.c: $(FINGERPRINTED) $(libsrc)/make-fingerprint$(EXEEXT) |
| 638 | 632 | $(AM_V_GEN)$(libsrc)/make-fingerprint$(EXEEXT) $(FINGERPRINTED) >$@.tmp | |
| 639 | fingerprint.c: temacs.in$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT) | 633 | $(AM_V_at)mv $@.tmp $@ |
| 640 | $(libsrc)/make-fingerprint$(EXEEXT) temacs.in$(EXEEXT) > fingerprint.c | ||
| 641 | 634 | ||
| 642 | ## We have to create $(etc) here because init_cmdargs tests its | 635 | ## We have to create $(etc) here because init_cmdargs tests its |
| 643 | ## existence when setting Vinstallation_directory (FIXME?). | 636 | ## existence when setting Vinstallation_directory (FIXME?). |
| 644 | ## This goes on to affect various things, and the emacs binary fails | 637 | ## This goes on to affect various things, and the emacs binary fails |
| 645 | ## to start if Vinstallation_directory has the wrong value. | 638 | ## to start if Vinstallation_directory has the wrong value. |
| 646 | temacs$(EXEEXT): $(EMACS_DEPS_PRE) fingerprint.o $(EMACS_DEPS_POST) | 639 | temacs$(EXEEXT): fingerprint.o $(charsets) $(charscript) |
| 647 | $(BUILD_EMACS_PRE) fingerprint.o $(BUILD_EMACS_POST) | 640 | $(AM_V_CCLD)$(CC) -o $@ $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \ |
| 641 | $(ALLOBJS) fingerprint.o \ | ||
| 642 | $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES) | ||
| 648 | $(MKDIR_P) $(etc) | 643 | $(MKDIR_P) $(etc) |
| 649 | ifeq ($(DUMPING),unexec) | 644 | ifeq ($(DUMPING),unexec) |
| 650 | ifneq ($(PAXCTL_notdumped),) | 645 | ifneq ($(PAXCTL_notdumped),) |
| @@ -655,15 +650,15 @@ endif | |||
| 655 | ## The following oldxmenu-related rules are only (possibly) used if | 650 | ## The following oldxmenu-related rules are only (possibly) used if |
| 656 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. | 651 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. |
| 657 | $(lwlibdir)/liblw.a: $(config_h) globals.h lisp.h FORCE | 652 | $(lwlibdir)/liblw.a: $(config_h) globals.h lisp.h FORCE |
| 658 | $(MAKE) -C $(lwlibdir) liblw.a | 653 | $(MAKE) -C $(dir $@) $(notdir $@) |
| 659 | $(oldXMenudir)/libXMenu11.a: FORCE | 654 | $(oldXMenudir)/libXMenu11.a: FORCE |
| 660 | $(MAKE) -C $(oldXMenudir) libXMenu11.a | 655 | $(MAKE) -C $(dir $@) $(notdir $@) |
| 661 | FORCE: | 656 | FORCE: |
| 662 | .PHONY: FORCE | 657 | .PHONY: FORCE |
| 663 | 658 | ||
| 664 | .PRECIOUS: ../config.status Makefile | 659 | .PRECIOUS: ../config.status Makefile |
| 665 | ../config.status: $(top_srcdir)/configure.ac $(top_srcdir)/m4/*.m4 | 660 | ../config.status: $(top_srcdir)/configure.ac $(top_srcdir)/m4/*.m4 |
| 666 | $(MAKE) -C .. $(notdir $@) | 661 | $(MAKE) -C $(dir $@) $(notdir $@) |
| 667 | Makefile: ../config.status $(srcdir)/Makefile.in | 662 | Makefile: ../config.status $(srcdir)/Makefile.in |
| 668 | $(MAKE) -C .. src/$@ | 663 | $(MAKE) -C .. src/$@ |
| 669 | 664 | ||
| @@ -681,7 +676,7 @@ ns-app: emacs$(EXEEXT) $(pdmp) | |||
| 681 | 676 | ||
| 682 | mostlyclean: | 677 | mostlyclean: |
| 683 | rm -f temacs$(EXEEXT) core ./*.core \#* ./*.o | 678 | rm -f temacs$(EXEEXT) core ./*.core \#* ./*.o |
| 684 | rm -f temacs.in$(EXEEXT) fingerprint.c dmpstruct.h | 679 | rm -f dmpstruct.h fingerprint.c |
| 685 | rm -f emacs.pdmp | 680 | rm -f emacs.pdmp |
| 686 | rm -f ../etc/DOC | 681 | rm -f ../etc/DOC |
| 687 | rm -f bootstrap-emacs$(EXEEXT) $(bootstrap_pdmp) | 682 | rm -f bootstrap-emacs$(EXEEXT) $(bootstrap_pdmp) |
| @@ -719,7 +714,7 @@ extraclean: distclean | |||
| 719 | ETAGS = ../lib-src/etags${EXEEXT} | 714 | ETAGS = ../lib-src/etags${EXEEXT} |
| 720 | 715 | ||
| 721 | ${ETAGS}: FORCE | 716 | ${ETAGS}: FORCE |
| 722 | ${MAKE} -C ../lib-src $(notdir $@) | 717 | $(MAKE) -C $(dir $@) $(notdir $@) |
| 723 | 718 | ||
| 724 | # Remove macuvs.h and fingerprint.c since they'd cause `src/emacs` | 719 | # Remove macuvs.h and fingerprint.c since they'd cause `src/emacs` |
| 725 | # to be built before we can get TAGS. | 720 | # to be built before we can get TAGS. |
| @@ -744,11 +739,8 @@ TAGS: ${ETAGS} $(ctagsfiles1) $(ctagsfiles2) | |||
| 744 | 739 | ||
| 745 | ## Arrange to make tags tables for ../lisp and ../lwlib, | 740 | ## Arrange to make tags tables for ../lisp and ../lwlib, |
| 746 | ## which the above TAGS file for the C files includes by reference. | 741 | ## which the above TAGS file for the C files includes by reference. |
| 747 | ../lisp/TAGS: FORCE | 742 | ../lisp/TAGS $(lwlibdir)/TAGS: FORCE |
| 748 | $(MAKE) -C ../lisp TAGS ETAGS="$(ETAGS)" | 743 | $(MAKE) -C $(dir $@) $(notdir $@) ETAGS="$(ETAGS)" |
| 749 | |||
| 750 | $(lwlibdir)/TAGS: FORCE | ||
| 751 | $(MAKE) -C $(lwlibdir) TAGS ETAGS="$(ETAGS)" | ||
| 752 | 744 | ||
| 753 | tags: TAGS ../lisp/TAGS $(lwlibdir)/TAGS | 745 | tags: TAGS ../lisp/TAGS $(lwlibdir)/TAGS |
| 754 | .PHONY: tags | 746 | .PHONY: tags |