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