aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorJan D2015-05-17 16:46:34 +0200
committerJan D2015-05-17 16:46:34 +0200
commit6445ee0fb751ae2c1dfef900d44721b3d952812f (patch)
treed43006cb93d9ea7b00ea02aabcd5577c41ff827f /src/Makefile.in
parentf92ac2e82ed199d6f25d2a59508e08addb1150ac (diff)
parentc9c4708ed47b18987940a71b98eb9873150d2b95 (diff)
downloademacs-6445ee0fb751ae2c1dfef900d44721b3d952812f.tar.gz
emacs-6445ee0fb751ae2c1dfef900d44721b3d952812f.zip
Merge branch 'master' into cairo
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in77
1 files changed, 55 insertions, 22 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 9e7a8a79915..d0df3260356 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -327,10 +327,15 @@ am__v_at_0 = @
327am__v_at_1 = 327am__v_at_1 =
328 328
329DEPDIR=deps 329DEPDIR=deps
330## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty. 330AUTO_DEPEND = @AUTO_DEPEND@
331DEPFLAGS=@DEPFLAGS@ 331
332## ${MKDIR_P} ${DEPDIR} (if AUTO_DEPEND); else ':'. 332ifeq ($(AUTO_DEPEND),yes)
333MKDEPDIR=@MKDEPDIR@ 333DEPFLAGS = -MMD -MF ${DEPDIR}/$*.d -MP
334MKDEPDIR = ${MKDIR_P} ${DEPDIR}
335else
336DEPFLAGS =
337MKDEPDIR = :
338endif
334 339
335## DO NOT use -R. There is a special hack described in lastfile.c 340## DO NOT use -R. There is a special hack described in lastfile.c
336## which is used instead. Some initialized data areas are modified 341## which is used instead. Some initialized data areas are modified
@@ -417,9 +422,37 @@ otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \
417FIRSTFILE_OBJ=@FIRSTFILE_OBJ@ 422FIRSTFILE_OBJ=@FIRSTFILE_OBJ@
418ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj) 423ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj)
419 424
420## Configure inserts the file lisp.mk at this point, defining $lisp. 425## This is the list of all Lisp files that might be loaded into the
421@lisp_frag@ 426## dumped Emacs. Some of them are not loaded on all platforms, but
422 427## the DOC file on every platform uses them (because the DOC file is
428## supposed to be platform-independent).
429## Note that this list should not include lisp files which might not
430## be present, like site-load.el and site-init.el; this makefile
431## expects them all to be either present or buildable.
432##
433## To generate this list from loadup.el, we can either:
434## 1) Extract everything matching (load "..."), in which case
435## we need to add charprop.el by hand; or
436## 2) Extract everything matching (load "...", in which case
437## we need to remove leim-list, site-init, and site-load by hand.
438## There's not much to choose between these two approaches,
439## but the second one seems like it could be more future-proof.
440shortlisp =
441lisp.mk: $(lispsource)/loadup.el
442 @rm -f $@
443 ${AM_V_GEN}( echo "shortlisp = \\"; \
444 sed -n 's/^[ \t]*(load "\([^"]*\)".*/\1/p' $< | \
445 sed -e 's/$$/.elc \\/' -e 's/\.el\.elc/.el/'; \
446 echo "" ) > $@
447
448-include lisp.mk
449shortlisp_filter = leim/leim-list.el site-load.elc site-init.elc
450shortlisp := $(filter-out ${shortlisp_filter},${shortlisp})
451## Place loaddefs.el first, so it gets generated first, since it is on
452## the critical path (relevant in parallel compilations).
453## We don't really need to sort, but may as well use it to remove duplicates.
454shortlisp := loaddefs.el loadup.el $(sort ${shortlisp})
455lisp = $(addprefix ${lispsource}/,${shortlisp})
423 456
424## Construct full set of libraries to be linked. 457## Construct full set of libraries to be linked.
425LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \ 458LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \
@@ -453,7 +486,7 @@ $(srcdir)/macuvs.h $(lispsource)/international/charprop.el: \
453## since not all pieces are used on all platforms. But DOC depends 486## since not all pieces are used on all platforms. But DOC depends
454## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here. 487## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here.
455emacs$(EXEEXT): temacs$(EXEEXT) \ 488emacs$(EXEEXT): temacs$(EXEEXT) \
456 $(etc)/DOC $(lisp) $(leimdir)/leim-list.el \ 489 lisp.mk $(etc)/DOC $(lisp) $(leimdir)/leim-list.el \
457 $(lispsource)/international/charprop.el 490 $(lispsource)/international/charprop.el
458ifeq ($(CANNOT_DUMP),yes) 491ifeq ($(CANNOT_DUMP),yes)
459 ln -f temacs$(EXEEXT) $@ 492 ln -f temacs$(EXEEXT) $@
@@ -464,12 +497,9 @@ else
464endif 497endif
465 498
466## We run make-docfile twice because the command line may get too long 499## We run make-docfile twice because the command line may get too long
467## on some systems. The sed command operating on lisp.mk also reduces 500## on some systems. Unfortunately, no-one has any idea
468## the length of the command line. Unfortunately, no-one has any idea
469## exactly how long the maximum safe command line length is on all the 501## exactly how long the maximum safe command line length is on all the
470## various systems that Emacs supports. Obviously, the length depends 502## various systems that Emacs supports.
471## on what your value of $srcdir is. If the length restriction goes
472## away, lisp.mk can be merged back into this file.
473## 503##
474## $(SOME_MACHINE_OBJECTS) comes before $(obj) because some files may 504## $(SOME_MACHINE_OBJECTS) comes before $(obj) because some files may
475## or may not be included in $(obj), but they are always included in 505## or may not be included in $(obj), but they are always included in
@@ -477,14 +507,13 @@ endif
477## for the first time, this prevents any variation between configurations 507## for the first time, this prevents any variation between configurations
478## in the contents of the DOC file. 508## in the contents of the DOC file.
479## 509##
480$(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp) 510$(etc)/DOC: lisp.mk $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp)
481 $(AM_V_GEN)$(MKDIR_P) $(etc) 511 $(AM_V_GEN)$(MKDIR_P) $(etc)
482 -$(AM_V_at)rm -f $(etc)/DOC 512 -$(AM_V_at)rm -f $(etc)/DOC
483 $(AM_V_at)$(libsrc)/make-docfile -d $(srcdir) \ 513 $(AM_V_at)$(libsrc)/make-docfile -d $(srcdir) \
484 $(SOME_MACHINE_OBJECTS) $(obj) > $(etc)/DOC 514 $(SOME_MACHINE_OBJECTS) $(obj) > $(etc)/DOC
485 $(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \ 515 $(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \
486 `sed -n -e 's| \\\\||' -e 's|^[ ]*$$(lispsource)/||p' \ 516 $(shortlisp)
487 $(srcdir)/lisp.mk`
488 517
489$(libsrc)/make-docfile$(EXEEXT): 518$(libsrc)/make-docfile$(EXEEXT):
490 $(MAKE) -C $(libsrc) make-docfile$(EXEEXT) 519 $(MAKE) -C $(libsrc) make-docfile$(EXEEXT)
@@ -584,7 +613,7 @@ bootstrap-clean: clean
584 fi 613 fi
585 614
586distclean: bootstrap-clean 615distclean: bootstrap-clean
587 rm -f Makefile 616 rm -f Makefile lisp.mk
588 617
589maintainer-clean: distclean 618maintainer-clean: distclean
590 rm -f TAGS 619 rm -f TAGS
@@ -607,9 +636,11 @@ ctagsfiles3 = [a-zA-Z]*.m
607## rather than the file contents. 636## rather than the file contents.
608TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(srcdir)/$(ctagsfiles3) 637TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) $(srcdir)/$(ctagsfiles3)
609 "$(ETAGS)" --include=../lisp/TAGS --include=$(lwlibdir)/TAGS \ 638 "$(ETAGS)" --include=../lisp/TAGS --include=$(lwlibdir)/TAGS \
610 --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ 639 --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/\1/' \
640 --regex='{c}/[ ]*DEFVAR_[A-Z_ (]+"[^"]+",[ ]\([A-Za-z0-9_]+\)/\1/' \
611 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) \ 641 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) \
612 --regex='{objc}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ 642 --regex='{objc}/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/\1/' \
643 --regex='{objc}/[ ]*DEFVAR_[A-Z_ (]+"[^"]+",[ ]\([A-Za-z0-9_]+\)/\1/' \
613 $(srcdir)/$(ctagsfiles3) 644 $(srcdir)/$(ctagsfiles3)
614 645
615## Arrange to make tags tables for ../lisp and ../lwlib, 646## Arrange to make tags tables for ../lisp and ../lwlib,
@@ -669,8 +700,10 @@ endif
669 @: Compile some files earlier to speed up further compilation. 700 @: Compile some files earlier to speed up further compilation.
670 $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)" 701 $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)"
671 702
672## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. 703ifeq ($(AUTO_DEPEND),yes)
673@deps_frag@ 704-include $(ALLOBJS:%.o=${DEPDIR}/%.d)
674 705else
706include $(srcdir)/deps.mk
707endif
675 708
676### Makefile.in ends here 709### Makefile.in ends here