aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorStefan Monnier2010-10-15 17:55:33 -0400
committerStefan Monnier2010-10-15 17:55:33 -0400
commit0c747cb143fa227e78f350ac353d703f489209df (patch)
tree5b434055c797bd75eaa1e3d9d0773e586d44daee /src/Makefile.in
parenta01a7932080e8a6e7bc8472c58cefabcc2c37df3 (diff)
parentaa095b2db98ae149737f8de00ee733b1d257ed33 (diff)
downloademacs-0c747cb143fa227e78f350ac353d703f489209df.tar.gz
emacs-0c747cb143fa227e78f350ac353d703f489209df.zip
Merge from trunk
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in362
1 files changed, 178 insertions, 184 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 00706460d25..0d496aea73a 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -46,28 +46,25 @@ version = @version@
46# LIBS = @LIBS@ 46# LIBS = @LIBS@
47LIBOBJS = @LIBOBJS@ 47LIBOBJS = @LIBOBJS@
48 48
49lispsource = ${srcdir}/../lisp/ 49lispsource = $(srcdir)/../lisp
50libsrc = ../lib-src/ 50libsrc = ../lib-src
51etc = ../etc/ 51etc = ../etc
52oldXMenudir = ../oldXMenu/ 52oldXMenudir = ../oldXMenu
53lwlibdir = ../lwlib/ 53lwlibdir = ../lwlib
54lispdir = ../lisp/ 54lispdir = ../lisp
55 55
56# Configuration files for .o files to depend on. 56# Configuration files for .o files to depend on.
57M_FILE = ${srcdir}/@machfile@ 57M_FILE = $(srcdir)/@machfile@
58S_FILE = ${srcdir}/@opsysfile@ 58S_FILE = $(srcdir)/@opsysfile@
59config_h = config.h $(M_FILE) $(S_FILE) 59config_h = config.h $(M_FILE) $(S_FILE)
60 60
61bootstrap_exe = ${abs_builddir}/bootstrap-emacs${EXEEXT} 61bootstrap_exe = $(abs_builddir)/bootstrap-emacs$(EXEEXT)
62 62
63## ns-app if HAVE_NS, else empty. 63## ns-app if HAVE_NS, else empty.
64OTHER_FILES = @OTHER_FILES@ 64OTHER_FILES = @OTHER_FILES@
65 65
66CRT_DIR=@CRT_DIR@
67
68## Flags to pass for profiling builds 66## Flags to pass for profiling builds
69PROFILING_CFLAGS = @PROFILING_CFLAGS@ 67PROFILING_CFLAGS = @PROFILING_CFLAGS@
70PROFILING_LDFLAGS = @PROFILING_LDFLAGS@
71 68
72## Flags to pass to the compiler to enable build warnings 69## Flags to pass to the compiler to enable build warnings
73C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@ 70C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
@@ -116,7 +113,7 @@ LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@
116## Flags to pass to ld only for temacs. 113## Flags to pass to ld only for temacs.
117TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) 114TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS)
118 115
119## $LDFLAGS $PROFILING_LDFLAGS, or empty if NS_IMPL_GNUSTEP (for some reason). 116## $LDFLAGS or empty if NS_IMPL_GNUSTEP (for some reason).
120TEMACS_LDFLAGS2 = @TEMACS_LDFLAGS2@ 117TEMACS_LDFLAGS2 = @TEMACS_LDFLAGS2@
121 118
122## Some systems define this to request special libraries. 119## Some systems define this to request special libraries.
@@ -125,8 +122,10 @@ LIBS_SYSTEM=@LIBS_SYSTEM@
125## Where to find libgcc.a, if using gcc and necessary. 122## Where to find libgcc.a, if using gcc and necessary.
126LIB_GCC=@LIB_GCC@ 123LIB_GCC=@LIB_GCC@
127 124
125CRT_DIR=@CRT_DIR@
128## May use $CRT_DIR. 126## May use $CRT_DIR.
129LIB_STANDARD=@LIB_STANDARD@ 127LIB_STANDARD=@LIB_STANDARD@
128START_FILES = @START_FILES@
130 129
131## -lm, or empty. 130## -lm, or empty.
132LIB_MATH=@LIB_MATH@ 131LIB_MATH=@LIB_MATH@
@@ -177,8 +176,8 @@ LIBXT_OTHER=@LIBXT_OTHER@
177OLDXMENU_TARGET=@OLDXMENU_TARGET@ 176OLDXMENU_TARGET=@OLDXMENU_TARGET@
178 177
179## If !HAVE_X11 || USE_GTK, empty. 178## If !HAVE_X11 || USE_GTK, empty.
180## Else if USE_X_TOOLKIT, ${lwlibdir}liblw.a. 179## Else if USE_X_TOOLKIT, $(lwlibdir)/liblw.a.
181## Else ${oldXMenudir}libXMenu11.a. 180## Else $(oldxmenudir)/libXMenu11.a.
182## (Actually, rather than being empty, it is set to "nothing". 181## (Actually, rather than being empty, it is set to "nothing".
183## It is never actually used for anything in this case. 182## It is never actually used for anything in this case.
184## This is done because there is a rule with target $(OLDXMENU) below, 183## This is done because there is a rule with target $(OLDXMENU) below,
@@ -188,7 +187,7 @@ OLDXMENU_TARGET=@OLDXMENU_TARGET@
188## The alternative would be to put that rule in a makefile fragment.) 187## The alternative would be to put that rule in a makefile fragment.)
189OLDXMENU=@OLDXMENU@ 188OLDXMENU=@OLDXMENU@
190 189
191## If HAVE_X11 && !USE_GTK, ${OLDXMENU} ../src/${OLDXMENU}; else empty. 190## If HAVE_X11 && !USE_GTK, $(OLDXMENU) ../src/$(OLDXMENU); else empty.
192## We use stamp-xmenu with these two deps to both ensure that lwlib 191## We use stamp-xmenu with these two deps to both ensure that lwlib
193## gets remade based on its dependencies in its own makefile, 192## gets remade based on its dependencies in its own makefile,
194## and remake temacs if lwlib gets changed by this. 193## and remake temacs if lwlib gets changed by this.
@@ -238,9 +237,9 @@ CYGWIN_OBJ=@CYGWIN_OBJ@
238MSDOS_OBJ = 237MSDOS_OBJ =
239## w16select.o termcap.o if MSDOS && HAVE_X_WINDOWS. 238## w16select.o termcap.o if MSDOS && HAVE_X_WINDOWS.
240MSDOS_X_OBJ = 239MSDOS_X_OBJ =
241MSDOS_SUPPORT_REAL = ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \ 240MSDOS_SUPPORT_REAL = $(lispsource)/ls-lisp.elc $(lispsource)/disp-table.elc \
242 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \ 241 $(lispsource)/dos-fns.elc $(lispsource)/dos-w32.elc $(lispsource)/dos-vars.elc \
243 ${lispsource}term/internal.elc ${lispsource}term/pc-win.elc 242 $(lispsource)/term/internal.elc $(lispsource)/term/pc-win.elc
244## $MSDOS_SUPPORT_REAL if MSDOS. 243## $MSDOS_SUPPORT_REAL if MSDOS.
245MSDOS_SUPPORT = 244MSDOS_SUPPORT =
246 245
@@ -259,23 +258,23 @@ GNU_OBJC_CFLAGS=@GNU_OBJC_CFLAGS@
259FONT_OBJ=@FONT_OBJ@ 258FONT_OBJ=@FONT_OBJ@
260 259
261## Used if HAVE_MOUSE. 260## Used if HAVE_MOUSE.
262REAL_MOUSE_SUPPORT=${lispsource}mouse.elc ${lispsource}select.elc \ 261REAL_MOUSE_SUPPORT=$(lispsource)/mouse.elc $(lispsource)/select.elc \
263 ${lispsource}scroll-bar.elc 262 $(lispsource)/scroll-bar.elc
264## Used if HAVE_GPM && !HAVE_MOUSE 263## Used if HAVE_GPM && !HAVE_MOUSE
265GPM_MOUSE_SUPPORT=${lispsource}mouse.elc 264GPM_MOUSE_SUPPORT=$(lispsource)/mouse.elc
266LIBGPM = @LIBGPM@ 265LIBGPM = @LIBGPM@
267## Either of the two preceding options, or empty. 266## Either of the two preceding options, or empty.
268MOUSE_SUPPORT=@MOUSE_SUPPORT@ 267MOUSE_SUPPORT=@MOUSE_SUPPORT@
269 268
270## ${lispsource}tooltip.elc if HAVE_WINDOW_SYSTEM, else empty. 269## $(lispsource)/tooltip.elc if HAVE_WINDOW_SYSTEM, else empty.
271TOOLTIP_SUPPORT=@TOOLTIP_SUPPORT@ 270TOOLTIP_SUPPORT=@TOOLTIP_SUPPORT@
272 271
273BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \ 272BASE_WINDOW_SUPPORT=$(lispsource)/fringe.elc $(lispsource)/image.elc \
274 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \ 273 $(lispsource)/international/fontset.elc $(lispsource)/dnd.elc \
275 ${lispsource}tool-bar.elc ${lispsource}mwheel.elc 274 $(lispsource)/tool-bar.elc $(lispsource)/mwheel.elc
276 275
277X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \ 276X_WINDOW_SUPPORT=$(lispsource)/x-dnd.elc $(lispsource)/term/common-win.elc \
278 ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc 277 $(lispsource)/term/x-win.elc $(lispsource)/dynamic-setting.elc
279 278
280## If HAVE_X_WINDOWS, both the above 279## If HAVE_X_WINDOWS, both the above
281## else if HAVE_WINDOW_SYSTEM (ie, HAVE_NS) just the former; else empty. 280## else if HAVE_WINDOW_SYSTEM (ie, HAVE_NS) just the former; else empty.
@@ -295,16 +294,14 @@ GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
295 294
296RUN_TEMACS = `/bin/pwd`/temacs 295RUN_TEMACS = `/bin/pwd`/temacs
297 296
298START_FILES = @START_FILES@
299
300UNEXEC_OBJ = @UNEXEC_OBJ@ 297UNEXEC_OBJ = @UNEXEC_OBJ@
301 298
302CANNOT_DUMP=@CANNOT_DUMP@ 299CANNOT_DUMP=@CANNOT_DUMP@
303 300
304DEPDIR=deps 301DEPDIR=deps
305## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty. 302## -MMD -MF $(DEPDIR)/$*.d if AUTO_DEPEND; else empty.
306DEPFLAGS=@DEPFLAGS@ 303DEPFLAGS=@DEPFLAGS@
307## test -d ${DEPDIR} || mkdir ${DEPDIR} (if AUTO_DEPEND); else ':'. 304## test -d $(DEPDIR) || mkdir $(DEPDIR) (if AUTO_DEPEND); else ':'.
308MKDEPDIR=@MKDEPDIR@ 305MKDEPDIR=@MKDEPDIR@
309 306
310## DO NOT use -R. There is a special hack described in lastfile.c 307## DO NOT use -R. There is a special hack described in lastfile.c
@@ -322,14 +319,14 @@ MKDEPDIR=@MKDEPDIR@
322## since it may have -I options that should override those. 319## since it may have -I options that should override those.
323## 320##
324## FIXME? MYCPPFLAGS only referenced in etc/DEBUG. 321## FIXME? MYCPPFLAGS only referenced in etc/DEBUG.
325ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} \ 322ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I$(srcdir) \
326 ${C_SWITCH_MACHINE} ${C_SWITCH_SYSTEM} ${C_SWITCH_X_SITE} \ 323 $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
327 ${C_SWITCH_X_SYSTEM} ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${IMAGEMAGICK_CFLAGS} \ 324 $(C_SWITCH_X_SYSTEM) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \
328 ${LIBXML2_CFLAGS} ${DBUS_CFLAGS} \ 325 $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \
329 ${GCONF_CFLAGS} ${FREETYPE_CFLAGS} ${FONTCONFIG_CFLAGS} \ 326 $(GCONF_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \
330 ${LIBOTF_CFLAGS} ${M17N_FLT_CFLAGS} ${DEPFLAGS} ${PROFILING_CFLAGS} \ 327 $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) $(PROFILING_CFLAGS) \
331 $(LIBGNUTLS_CFLAGS) \ 328 $(LIBGNUTLS_CFLAGS) \
332 ${C_WARNINGS_SWITCH} ${CFLAGS} 329 $(C_WARNINGS_SWITCH) $(CFLAGS)
333ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) 330ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
334 331
335.SUFFIXES: .m 332.SUFFIXES: .m
@@ -400,93 +397,93 @@ otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \
400## Place loaddefs.el first, so it gets generated first, since it is on 397## Place loaddefs.el first, so it gets generated first, since it is on
401## the critical path (relevant in parallel compilations). 398## the critical path (relevant in parallel compilations).
402lisp= \ 399lisp= \
403 ${lispsource}loaddefs.el \ 400 $(lispsource)/loaddefs.el \
404 ${lispsource}abbrev.elc \ 401 $(lispsource)/abbrev.elc \
405 ${lispsource}buff-menu.elc \ 402 $(lispsource)/buff-menu.elc \
406 ${lispsource}button.elc \ 403 $(lispsource)/button.elc \
407 ${lispsource}emacs-lisp/byte-run.elc \ 404 $(lispsource)/emacs-lisp/byte-run.elc \
408 ${lispsource}composite.elc \ 405 $(lispsource)/composite.elc \
409 ${lispsource}cus-face.elc \ 406 $(lispsource)/cus-face.elc \
410 ${lispsource}cus-start.elc \ 407 $(lispsource)/cus-start.elc \
411 ${lispsource}custom.elc \ 408 $(lispsource)/custom.elc \
412 ${lispsource}emacs-lisp/backquote.elc \ 409 $(lispsource)/emacs-lisp/backquote.elc \
413 ${lispsource}emacs-lisp/lisp-mode.elc \ 410 $(lispsource)/emacs-lisp/lisp-mode.elc \
414 ${lispsource}emacs-lisp/lisp.elc \ 411 $(lispsource)/emacs-lisp/lisp.elc \
415 ${lispsource}env.elc \ 412 $(lispsource)/env.elc \
416 ${lispsource}faces.elc \ 413 $(lispsource)/faces.elc \
417 ${lispsource}files.elc \ 414 $(lispsource)/files.elc \
418 ${lispsource}format.elc \ 415 $(lispsource)/format.elc \
419 ${lispsource}facemenu.elc \ 416 $(lispsource)/facemenu.elc \
420 ${MOUSE_SUPPORT} \ 417 $(MOUSE_SUPPORT) \
421 ${lispsource}emacs-lisp/float-sup.elc \ 418 $(lispsource)/emacs-lisp/float-sup.elc \
422 ${lispsource}frame.elc \ 419 $(lispsource)/frame.elc \
423 ${lispsource}help.elc \ 420 $(lispsource)/help.elc \
424 ${lispsource}indent.elc \ 421 $(lispsource)/indent.elc \
425 ${lispsource}isearch.elc \ 422 $(lispsource)/isearch.elc \
426 ${lispsource}rfn-eshadow.elc \ 423 $(lispsource)/rfn-eshadow.elc \
427 ${lispsource}loadup.el \ 424 $(lispsource)/loadup.el \
428 ${lispsource}bindings.elc \ 425 $(lispsource)/bindings.elc \
429 ${lispsource}emacs-lisp/map-ynp.elc \ 426 $(lispsource)/emacs-lisp/map-ynp.elc \
430 ${lispsource}menu-bar.elc \ 427 $(lispsource)/menu-bar.elc \
431 ${lispsource}international/mule.elc \ 428 $(lispsource)/international/mule.elc \
432 ${lispsource}international/mule-conf.elc \ 429 $(lispsource)/international/mule-conf.elc \
433 ${lispsource}international/mule-cmds.elc \ 430 $(lispsource)/international/mule-cmds.elc \
434 ${lispsource}international/characters.elc \ 431 $(lispsource)/international/characters.elc \
435 ${lispsource}international/charprop.el \ 432 $(lispsource)/international/charprop.el \
436 ${lispsource}case-table.elc \ 433 $(lispsource)/case-table.elc \
437 ${lispsource}language/chinese.elc \ 434 $(lispsource)/language/chinese.elc \
438 ${lispsource}language/cyrillic.elc \ 435 $(lispsource)/language/cyrillic.elc \
439 ${lispsource}language/indian.elc \ 436 $(lispsource)/language/indian.elc \
440 ${lispsource}language/sinhala.el \ 437 $(lispsource)/language/sinhala.el \
441 ${lispsource}language/english.el \ 438 $(lispsource)/language/english.el \
442 ${lispsource}language/ethiopic.elc \ 439 $(lispsource)/language/ethiopic.elc \
443 ${lispsource}language/european.elc \ 440 $(lispsource)/language/european.elc \
444 ${lispsource}language/czech.el \ 441 $(lispsource)/language/czech.el \
445 ${lispsource}language/slovak.el \ 442 $(lispsource)/language/slovak.el \
446 ${lispsource}language/romanian.el \ 443 $(lispsource)/language/romanian.el \
447 ${lispsource}language/greek.el \ 444 $(lispsource)/language/greek.el \
448 ${lispsource}language/hebrew.elc \ 445 $(lispsource)/language/hebrew.elc \
449 ${lispsource}language/japanese.el \ 446 $(lispsource)/language/japanese.el \
450 ${lispsource}language/korean.el \ 447 $(lispsource)/language/korean.el \
451 ${lispsource}language/lao.el \ 448 $(lispsource)/language/lao.el \
452 ${lispsource}language/cham.el \ 449 $(lispsource)/language/cham.el \
453 ${lispsource}language/tai-viet.el \ 450 $(lispsource)/language/tai-viet.el \
454 ${lispsource}language/thai.el \ 451 $(lispsource)/language/thai.el \
455 ${lispsource}language/tibetan.elc \ 452 $(lispsource)/language/tibetan.elc \
456 ${lispsource}language/vietnamese.elc \ 453 $(lispsource)/language/vietnamese.elc \
457 ${lispsource}language/misc-lang.el \ 454 $(lispsource)/language/misc-lang.el \
458 ${lispsource}language/utf-8-lang.el \ 455 $(lispsource)/language/utf-8-lang.el \
459 ${lispsource}language/georgian.el \ 456 $(lispsource)/language/georgian.el \
460 ${lispsource}language/khmer.el \ 457 $(lispsource)/language/khmer.el \
461 ${lispsource}language/burmese.el \ 458 $(lispsource)/language/burmese.el \
462 ${lispsource}paths.el \ 459 $(lispsource)/paths.el \
463 ${lispsource}register.elc \ 460 $(lispsource)/register.elc \
464 ${lispsource}replace.elc \ 461 $(lispsource)/replace.elc \
465 ${lispsource}simple.elc \ 462 $(lispsource)/simple.elc \
466 ${lispsource}minibuffer.elc \ 463 $(lispsource)/minibuffer.elc \
467 ${lispsource}startup.elc \ 464 $(lispsource)/startup.elc \
468 ${lispsource}subr.elc \ 465 $(lispsource)/subr.elc \
469 ${lispsource}term/tty-colors.elc \ 466 $(lispsource)/term/tty-colors.elc \
470 ${lispsource}font-core.elc \ 467 $(lispsource)/font-core.elc \
471 ${lispsource}emacs-lisp/syntax.elc \ 468 $(lispsource)/emacs-lisp/syntax.elc \
472 ${lispsource}font-lock.elc \ 469 $(lispsource)/font-lock.elc \
473 ${lispsource}jit-lock.elc \ 470 $(lispsource)/jit-lock.elc \
474 ${lispsource}textmodes/fill.elc \ 471 $(lispsource)/textmodes/fill.elc \
475 ${lispsource}textmodes/page.elc \ 472 $(lispsource)/textmodes/page.elc \
476 ${lispsource}textmodes/paragraphs.elc \ 473 $(lispsource)/textmodes/paragraphs.elc \
477 ${lispsource}textmodes/text-mode.elc \ 474 $(lispsource)/textmodes/text-mode.elc \
478 ${lispsource}emacs-lisp/timer.elc \ 475 $(lispsource)/emacs-lisp/timer.elc \
479 ${lispsource}jka-cmpr-hook.elc \ 476 $(lispsource)/jka-cmpr-hook.elc \
480 ${lispsource}vc/vc-hooks.elc \ 477 $(lispsource)/vc/vc-hooks.elc \
481 ${lispsource}vc/ediff-hook.elc \ 478 $(lispsource)/vc/ediff-hook.elc \
482 ${lispsource}epa-hook.elc \ 479 $(lispsource)/epa-hook.elc \
483 ${TOOLTIP_SUPPORT} \ 480 $(TOOLTIP_SUPPORT) \
484 ${MSDOS_SUPPORT} \ 481 $(MSDOS_SUPPORT) \
485 ${WINDOW_SUPPORT} \ 482 $(WINDOW_SUPPORT) \
486 ${NS_SUPPORT} \ 483 $(NS_SUPPORT) \
487 ${lispsource}widget.elc \ 484 $(lispsource)/widget.elc \
488 ${lispsource}window.elc \ 485 $(lispsource)/window.elc \
489 ${lispsource}version.el 486 $(lispsource)/version.el
490 487
491## List of relative names for those files from $lisp that are loaded 488## List of relative names for those files from $lisp that are loaded
492## unconditionally (i.e. on all platforms). Files from $lisp that 489## unconditionally (i.e. on all platforms). Files from $lisp that
@@ -601,80 +598,80 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \
601## duplicated symbols. If the standard libraries were compiled 598## duplicated symbols. If the standard libraries were compiled
602## with GCC, we might need LIB_GCC again after them. 599## with GCC, we might need LIB_GCC again after them.
603LIBES = $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ 600LIBES = $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \
604 $(RSVG_LIBS) ${IMAGEMAGICK_LIBS} $(DBUS_LIBS) \ 601 $(RSVG_LIBS) $(IMAGEMAGICK_LIBS) $(DBUS_LIBS) \
605 ${LIBXML2_LIBS} $(LIBGPM) $(LIBRESOLV) $(LIBS_SYSTEM) \ 602 $(LIBXML2_LIBS) $(LIBGPM) $(LIBRESOLV) $(LIBS_SYSTEM) \
606 $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ 603 $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) $(GCONF_LIBS) $(LIBSELINUX_LIBS) \
607 $(FREETYPE_LIBS) $(FONTCONFIG_LIBS) $(LIBOTF_LIBS) $(M17N_FLT_LIBS) \ 604 $(FREETYPE_LIBS) $(FONTCONFIG_LIBS) $(LIBOTF_LIBS) $(M17N_FLT_LIBS) \
608 $(LIBGNUTLS_LIBS) \ 605 $(LIBGNUTLS_LIBS) \
609 $(LIB_GCC) $(LIB_MATH) $(LIB_STANDARD) $(LIB_GCC) 606 $(LIB_GCC) $(LIB_MATH) $(LIB_STANDARD) $(LIB_GCC)
610 607
611all: emacs${EXEEXT} $(OTHER_FILES) 608all: emacs$(EXEEXT) $(OTHER_FILES)
612 609
613## Does anyone ever pay attention to the load-path-shadows output here? 610## Does anyone ever pay attention to the load-path-shadows output here?
614## The dumped Emacs is as functional and more efficient than 611## The dumped Emacs is as functional and more efficient than
615## bootstrap-emacs, so we replace the latter with the former. 612## bootstrap-emacs, so we replace the latter with the former.
616emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp} 613emacs$(EXEEXT): temacs$(EXEEXT) $(etc)/DOC $(lisp)
617 if test "${CANNOT_DUMP}" = "yes"; then \ 614 if test "$(CANNOT_DUMP)" = "yes"; then \
618 ln -f temacs${EXEEXT} emacs${EXEEXT}; \ 615 ln -f temacs$(EXEEXT) emacs$(EXEEXT); \
619 EMACSLOADPATH=${lispsource} ./emacs -q -batch \ 616 EMACSLOADPATH=$(lispsource) ./emacs -q -batch \
620 -f list-load-path-shadows || true; \ 617 -f list-load-path-shadows || true; \
621 else \ 618 else \
622 LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump || exit 1; \ 619 LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump || exit 1; \
623 ln -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}; \ 620 ln -f emacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \
624 ./emacs -q -batch -f list-load-path-shadows || true; \ 621 ./emacs -q -batch -f list-load-path-shadows || true; \
625 fi 622 fi
626 623
627## We run make-docfile twice because the command line may get too long 624## We run make-docfile twice because the command line may get too long
628## on some systems. 625## on some systems.
629## ${SOME_MACHINE_OBJECTS} comes before ${obj} because some files may 626## $(SOME_MACHINE_OBJECTS) comes before $(obj) because some files may
630## or may not be included in ${obj}, but they are always included in 627## or may not be included in $(obj), but they are always included in
631## ${SOME_MACHINE_OBJECTS}. Since a file is processed when it is mentioned 628## $(SOME_MACHINE_OBJECTS). Since a file is processed when it is mentioned
632## for the first time, this prevents any variation between configurations 629## for the first time, this prevents any variation between configurations
633## in the contents of the DOC file. 630## in the contents of the DOC file.
634## Likewise for ${SOME_MACHINE_LISP}. 631## Likewise for $(SOME_MACHINE_LISP).
635## Most of this Makefile refers to Lisp files via ${lispsource}, so 632## Most of this Makefile refers to Lisp files via $(lispsource), so
636## we also use ${lisp} rather than ${shortlisp} for the dependency since 633## we also use $(lisp) rather than $(shortlisp) for the dependency since
637## the Makefile uses string equality to decide when we talk about identical 634## the Makefile uses string equality to decide when we talk about identical
638## files. Apparently we pass ${shortlisp} rather than ${lisp} to make-docfile 635## files. Apparently we pass $(shortlisp) rather than $(lisp) to make-docfile
639## only in order to reduce the command line length. --Stef 636## only in order to reduce the command line length. --Stef
640${etc}DOC: ${libsrc}make-docfile${EXEEXT} ${obj} ${lisp} ${SOME_MACHINE_LISP} 637$(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp) $(SOME_MACHINE_LISP)
641 -rm -f ${etc}DOC 638 -rm -f $(etc)/DOC
642 ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC 639 $(libsrc)/make-docfile -d $(srcdir) $(SOME_MACHINE_OBJECTS) $(obj) > $(etc)/DOC
643 ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} 640 $(libsrc)/make-docfile -a $(etc)/DOC -d $(srcdir) $(SOME_MACHINE_LISP) $(shortlisp)
644 641
645${libsrc}make-docfile${EXEEXT}: 642$(libsrc)/make-docfile$(EXEEXT):
646 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT} 643 cd $(libsrc); $(MAKE) $(MFLAGS) make-docfile$(EXEEXT)
647 644
648buildobj.h: Makefile 645buildobj.h: Makefile
649 echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h 646 echo "#define BUILDOBJ \"$(obj) $(otherobj) " "\"" > buildobj.h
650 647
651 648
652temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} 649temacs$(EXEEXT): $(START_FILES) stamp-oldxmenu $(obj) $(otherobj)
653 $(CC) $(LD_FIRSTFLAG) ${TEMACS_LDFLAGS} ${TEMACS_LDFLAGS2} \ 650 $(CC) $(LD_FIRSTFLAG) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(TEMACS_LDFLAGS2) \
654 -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES} 651 -o temacs $(START_FILES) $(obj) $(otherobj) $(LIBES)
655 652
656## The following oldxmenu-related rules are only (possibly) used if 653## The following oldxmenu-related rules are only (possibly) used if
657## HAVE_X11 && !USE_GTK, but there is no harm in always defining them 654## HAVE_X11 && !USE_GTK, but there is no harm in always defining them
658## (provided we take a little care that OLDXMENU is never empty). 655## (provided we take a little care that OLDXMENU is never empty).
659really-lwlib: 656really-lwlib:
660 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \ 657 cd $(lwlibdir); $(MAKE) $(MFLAGS) \
661 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' 658 CC='$(CC)' CFLAGS='$(CFLAGS)' MAKE='$(MAKE)'
662 @true # make -t should not create really-lwlib. 659 @true # make -t should not create really-lwlib.
663.PHONY: really-lwlib 660.PHONY: really-lwlib
664 661
665really-oldXMenu: 662really-oldXMenu:
666 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \ 663 cd $(oldXMenudir); $(MAKE) $(MFLAGS) \
667 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' 664 CC='$(CC)' CFLAGS='$(CFLAGS)' MAKE='$(MAKE)'
668 @true # make -t should not create really-oldXMenu. 665 @true # make -t should not create really-oldXMenu.
669.PHONY: really-oldXMenu 666.PHONY: really-oldXMenu
670 667
671## We do not really need this when OLDXMENU_DEPS is empty, but as 668## We do not really need this when OLDXMENU_DEPS is empty, but as
672## things stand we need something to satisfy the temacs dependency. 669## things stand we need something to satisfy the temacs dependency.
673stamp-oldxmenu: ${OLDXMENU_DEPS} 670stamp-oldxmenu: $(OLDXMENU_DEPS)
674 touch stamp-oldxmenu 671 touch stamp-oldxmenu
675 672
676## Supply an ordering for parallel make. 673## Supply an ordering for parallel make.
677../src/$(OLDXMENU): ${OLDXMENU} 674../src/$(OLDXMENU): $(OLDXMENU)
678 675
679$(OLDXMENU): $(OLDXMENU_TARGET) 676$(OLDXMENU): $(OLDXMENU_TARGET)
680 677
@@ -688,9 +685,6 @@ $(OLDXMENU): $(OLDXMENU_TARGET)
688 @echo "Please run the `configure' script again." 685 @echo "Please run the `configure' script again."
689 exit 1 686 exit 1
690 687
691ecrt0.o: ecrt0.c $(config_h)
692 @$(MKDEPDIR)
693 $(CC) -c $(ALL_CFLAGS) ${srcdir}/ecrt0.c
694doc.o: buildobj.h 688doc.o: buildobj.h
695 689
696 690
@@ -699,14 +693,14 @@ doc.o: buildobj.h
699 693
700 694
701mostlyclean: 695mostlyclean:
702 rm -f temacs${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a 696 rm -f temacs$(EXEEXT) core *.core \#* *.o libXMenu11.a liblw.a
703 rm -f ../etc/DOC 697 rm -f ../etc/DOC
704 rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT} 698 rm -f bootstrap-emacs$(EXEEXT) emacs-$(version)$(EXEEXT)
705 rm -f buildobj.h 699 rm -f buildobj.h
706clean: mostlyclean 700clean: mostlyclean
707 rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT} 701 rm -f emacs-*.*.*$(EXEEXT) emacs$(EXEEXT)
708 -rm -rf ${DEPDIR} 702 -rm -rf $(DEPDIR)
709 test "X${ns_appdir}" = "X" || rm -rf ${ns_appdir} 703 test "X$(ns_appdir)" = "X" || rm -rf $(ns_appdir)
710 704
711## bootstrap-clean is used to clean up just before a bootstrap. 705## bootstrap-clean is used to clean up just before a bootstrap.
712## It should remove all files generated during a compilation/bootstrap, 706## It should remove all files generated during a compilation/bootstrap,
@@ -715,7 +709,7 @@ bootstrap-clean: clean
715 rm -f epaths.h config.h config.stamp stamp-oldxmenu ../etc/DOC-* 709 rm -f epaths.h config.h config.stamp stamp-oldxmenu ../etc/DOC-*
716 if test -f ./.gdbinit; then \ 710 if test -f ./.gdbinit; then \
717 mv ./.gdbinit ./.gdbinit.save; \ 711 mv ./.gdbinit ./.gdbinit.save; \
718 if test -f "${srcdir}/.gdbinit"; then rm -f ./.gdbinit.save; \ 712 if test -f "$(srcdir)/.gdbinit"; then rm -f ./.gdbinit.save; \
719 else mv ./.gdbinit.save ./.gdbinit; fi; \ 713 else mv ./.gdbinit.save ./.gdbinit; fi; \
720 fi 714 fi
721## This is used in making a distribution. 715## This is used in making a distribution.
@@ -727,7 +721,7 @@ maintainer-clean: distclean
727 @echo "it deletes files that may require special tools to rebuild." 721 @echo "it deletes files that may require special tools to rebuild."
728 rm -f TAGS 722 rm -f TAGS
729versionclean: 723versionclean:
730 -rm -f emacs${EXEEXT} emacs-*.*.*${EXEEXT} ../etc/DOC* 724 -rm -f emacs$(EXEEXT) emacs-*.*.*$(EXEEXT) ../etc/DOC*
731extraclean: distclean 725extraclean: distclean
732 -rm -f *~ \#* m/?*~ s/?*~ 726 -rm -f *~ \#* m/?*~ s/?*~
733 727
@@ -738,17 +732,17 @@ ctagsfiles1 = [xyzXYZ]*.[hcm]
738ctagsfiles2 = [a-wA-W]*.[hcm] 732ctagsfiles2 = [a-wA-W]*.[hcm]
739 733
740TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) 734TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
741 ../lib-src/etags --include=TAGS-LISP --include=${lwlibdir}/TAGS \ 735 ../lib-src/etags --include=TAGS-LISP --include=$(lwlibdir)/TAGS \
742 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ 736 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
743 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) 737 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
744frc: 738frc:
745TAGS-LISP: frc 739TAGS-LISP: frc
746 $(MAKE) -f ${lispdir}Makefile TAGS-LISP ETAGS=../lib-src/etags 740 $(MAKE) -f $(lispdir)/Makefile TAGS-LISP ETAGS=../lib-src/etags
747 741
748$(lwlibdir)TAGS: 742$(lwlibdir)/TAGS:
749 (cd $(lwlibdir); $(MAKE) -f $(lwlibdir)Makefile tags ETAGS=../lib-src/etags) 743 (cd $(lwlibdir); $(MAKE) -f $(lwlibdir)/Makefile tags ETAGS=../lib-src/etags)
750 744
751tags: TAGS TAGS-LISP $(lwlibdir)TAGS 745tags: TAGS TAGS-LISP $(lwlibdir)/TAGS
752.PHONY: tags 746.PHONY: tags
753 747
754 748
@@ -770,10 +764,10 @@ tags: TAGS TAGS-LISP $(lwlibdir)TAGS
770## it), so it was compiled in parallel, leading typically to having 2 764## it), so it was compiled in parallel, leading typically to having 2
771## processes dumping bootstrap-emacs at the same time). 765## processes dumping bootstrap-emacs at the same time).
772## So instead, we replace the witness-emacs dependencies by conditional 766## So instead, we replace the witness-emacs dependencies by conditional
773## bootstrap-dependencies (via ${BOOTSTRAPEMACS}). Of course, since we do 767## bootstrap-dependencies (via $(BOOTSTRAPEMACS)). Of course, since we do
774## not want to rely on GNU Make features, we have to rely on an external 768## not want to rely on GNU Make features, we have to rely on an external
775## script to do the conditional part of the dependency 769## script to do the conditional part of the dependency
776## (i.e. see the ${SUBDIR} rule ../Makefile.in). 770## (i.e. see the $(SUBDIR) rule ../Makefile.in).
777 771
778.SUFFIXES: .elc .el 772.SUFFIXES: .elc .el
779 773
@@ -783,28 +777,28 @@ tags: TAGS TAGS-LISP $(lwlibdir)TAGS
783## With GNU Make, we would just say "%.el : %.elc $(BOOTSTRAPEMACS)" 777## With GNU Make, we would just say "%.el : %.elc $(BOOTSTRAPEMACS)"
784.el.elc: 778.el.elc:
785 @cd ../lisp; $(MAKE) $(MFLAGS) compile-onefile \ 779 @cd ../lisp; $(MAKE) $(MFLAGS) compile-onefile \
786 THEFILE=$< EMACS=${bootstrap_exe} 780 THEFILE=$< EMACS=$(bootstrap_exe)
787 781
788## Since the .el.elc rule cannot specify an extra dependency, we do it here. 782## Since the .el.elc rule cannot specify an extra dependency, we do it here.
789${lisp} ${SOME_MACHINE_LISP}: $(BOOTSTRAPEMACS) 783$(lisp) $(SOME_MACHINE_LISP): $(BOOTSTRAPEMACS)
790 784
791## VCSWITNESS points to the file that holds info about the current checkout. 785## VCSWITNESS points to the file that holds info about the current checkout.
792## We use it as a heuristic to decide when to rebuild loaddefs.el. 786## We use it as a heuristic to decide when to rebuild loaddefs.el.
793${lispsource}loaddefs.el: $(BOOTSTRAPEMACS) $(VCSWITNESS) 787$(lispsource)/loaddefs.el: $(BOOTSTRAPEMACS) $(VCSWITNESS)
794 cd ../lisp; $(MAKE) $(MFLAGS) autoloads EMACS=${bootstrap_exe} 788 cd ../lisp; $(MAKE) $(MFLAGS) autoloads EMACS=$(bootstrap_exe)
795 789
796## Dump an Emacs executable named bootstrap-emacs containing the 790## Dump an Emacs executable named bootstrap-emacs containing the
797## files from loadup.el in source form. 791## files from loadup.el in source form.
798bootstrap-emacs${EXEEXT}: temacs${EXEEXT} 792bootstrap-emacs$(EXEEXT): temacs$(EXEEXT)
799 cd ../lisp; $(MAKE) $(MFLAGS) update-subdirs 793 cd ../lisp; $(MAKE) $(MFLAGS) update-subdirs
800 if test "${CANNOT_DUMP}" = "yes"; then \ 794 if test "$(CANNOT_DUMP)" = "yes"; then \
801 ln -f temacs${EXEEXT} bootstrap-emacs${EXEEXT}; \ 795 ln -f temacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \
802 else \ 796 else \
803 $(RUN_TEMACS) --batch --load loadup bootstrap || exit 1; \ 797 $(RUN_TEMACS) --batch --load loadup bootstrap || exit 1; \
804 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}; \ 798 mv -f emacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \
805 fi 799 fi
806 @: Compile some files earlier to speed up further compilation. 800 @: Compile some files earlier to speed up further compilation.
807 cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=${bootstrap_exe} 801 cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=$(bootstrap_exe)
808 802
809## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk. 803## Insert either autodeps.mk (if AUTO_DEPEND), else deps.mk.
810@deps_frag@ 804@deps_frag@