1 # Makefile for GNU Emacs.
2 # Copyright (C) 1985, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
3 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
6 # This file is part of GNU Emacs.
8 # GNU Emacs is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU Emacs is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 # Note that this file is edited by msdos/sed1v2.inp for MSDOS. That
23 # script may need modifying in sync with changes made here. Try to
24 # avoid shell-ism because the DOS build has to use the DOS shell.
26 # Don't try to replace the cpp processing using autoconf facilities,
28 # Replacing a particular part of the conditionals to work via autoconf
30 # Some of the conditionals might be dead now. Finding them and
31 # deleting them would be fine.
34 # Here are the things that we expect ../configure to edit.
35 # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
37 abs_builddir
= @abs_builddir@
47 # Substitute an assignment for the MAKE variable, because
48 # BSD doesn't have it as a default.
50 # Don't use LIBS. configure puts stuff in it that either shouldn't be
51 # linked with Emacs or is duplicated by the cpp stuff below.
55 lispsource
= ${srcdir}/..
/lisp
/
58 oldXMenudir
= ..
/oldXMenu
/
62 # Configuration files for .o files to depend on.
63 M_FILE
= ${srcdir}/@machfile@
64 S_FILE
= ${srcdir}/@opsysfile@
65 config_h
= config.h
$(M_FILE
) $(S_FILE
)
67 bootstrap_exe
= ${abs_builddir}/bootstrap-emacs
${EXEEXT}
69 OTHER_FILES
= @OTHER_FILES@
71 ## Only used by amdx86-64 and ibms390x GNU/Linux.
81 C_SWITCH_SYSTEM
=@c_switch_system@
82 C_SWITCH_MACHINE
=@c_switch_machine@
84 C_SWITCH_X_SITE
=@C_SWITCH_X_SITE@
86 DBUS_CFLAGS
= @DBUS_CFLAGS@
87 DBUS_LIBS
= @DBUS_LIBS@
90 GCONF_CFLAGS
= @GCONF_CFLAGS@
91 GCONF_LIBS
= @GCONF_LIBS@
101 CFLAGS_SOUND
= @CFLAGS_SOUND@
103 RSVG_LIBS
= @RSVG_LIBS@
104 RSVG_CFLAGS
= @RSVG_CFLAGS@
106 LIBSELINUX_LIBS
= @LIBSELINUX_LIBS@
108 INTERVALS_H
= dispextern.h intervals.h composite.h
110 GETLOADAVG_LIBS
= @GETLOADAVG_LIBS@
112 RUN_TEMACS
= `/bin/pwd`/temacs
114 # ========================== start of cpp stuff =======================
115 /* From here on
, comments must be done in C syntax.
*/
117 /* just to be sure the sh is used
*/
120 #define THIS_IS_MAKEFILE
125 DEPFLAGS
= -MMD
-MF deps
/$*.d
128 /* Undefine until the user can be moved in the non-cpp section.
*/
129 #undef C_SWITCH_SYSTEM
130 #undef C_SWITCH_MACHINE
131 #undef C_SWITCH_X_SITE
133 /* Do not let the file name mktime.c
get messed up.
*/
138 /* Use HAVE_X11
as an alias for X11 in this file
139 to avoid problems with X11
as a subdirectory name
140 in
-I and other such options which pass through this file.
*/
147 /* On some machines
#define register is done in config;
148 do not let it interfere with this file.
*/
151 /* Some machines do not find the standard C libraries in the usual place.
*/
152 #ifndef ORDINARY_LINK
154 #define LIB_STANDARD -lc
162 /* Under GNUstep
, putting libc on the link line causes problems.
*/
163 #ifdef NS_IMPL_GNUSTEP
168 /* Some s
/SYSTEM.h files
define this to request special libraries.
*/
173 /* Some s
/SYSTEM.h files
define this to request special switches in
ld.
*/
174 #ifndef LD_SWITCH_SYSTEM
175 #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
176 #define LD_SWITCH_SYSTEM -X
177 #else /* (defined (BSD_SYSTEM) && !defined (COFF)) */
178 #define LD_SWITCH_SYSTEM
179 #endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */
180 #endif /* LD_SWITCH_SYSTEM */
182 /* This holds special options for linking temacs
183 that should be used for linking anything
else.
*/
184 #ifndef LD_SWITCH_SYSTEM_TEMACS
185 #define LD_SWITCH_SYSTEM_TEMACS
188 /* Some m
/MACHINE.h files
define this to request special switches in
ld.
*/
189 #ifndef LD_SWITCH_MACHINE
190 #define LD_SWITCH_MACHINE
193 /* These macros are for switches specifically related to X Windows.
*/
194 #ifndef C_SWITCH_X_SYSTEM
195 #define C_SWITCH_X_SYSTEM
198 #ifndef LD_SWITCH_X_SITE
199 #define LD_SWITCH_X_SITE
202 #ifndef LD_SWITCH_X_DEFAULT
203 #define LD_SWITCH_X_DEFAULT
206 STARTFILES
= START_FILES
209 #ifdef NS_IMPL_GNUSTEP
210 /* Pull in stuff from GNUstep-make.
*/
213 include @GNUSTEP_MAKEFILES@
/Additional
/base.make
214 include @GNUSTEP_MAKEFILES@
/Additional
/gui.make
218 /* DO NOT use
-R. There is a special hack described in lastfile.c
219 which is used instead. Some initialized data areas are modified
220 at initial startup
, then labeled
as part of the text area when
221 Emacs is dumped for the first time
, and never changed again.
*/
223 /* -Demacs is needed to make some files produce the correct version
226 -DHAVE_CONFIG_H is needed for some other files to take advantage of
227 the information in
``config.h
''.
*/
229 #undef C_SWITCH_MACHINE
230 #undef C_SWITCH_SYSTEM
231 #undef C_SWITCH_X_SITE
233 /* C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM
234 since it may have
-I options that should
override those two.
*/
235 ALL_CFLAGS
=-Demacs
-DHAVE_CONFIG_H
$(MYCPPFLAGS
) -I.
-I
${srcdir} $(C_SWITCH_MACHINE
) $(C_SWITCH_SYSTEM
) $(C_SWITCH_X_SITE
) C_SWITCH_X_SYSTEM
${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@
${DEPFLAGS}
236 ALL_OBJC_CFLAGS
=$(ALL_CFLAGS
) @GNU_OBJC_CFLAGS@
241 @
-test -d deps || mkdir deps
243 $(CC
) -c
$(CPPFLAGS
) $(ALL_CFLAGS
) $<
246 @
-test -d deps || mkdir deps
248 $(CC
) -c
$(CPPFLAGS
) $(ALL_OBJC_CFLAGS
) $<
251 #define LIB_X11_LIB -lX11
254 #ifdef HAVE_X_WINDOWS
257 /* The X Menu stuff is present in the X10 distribution
, but missing
258 from X11. If we have X10
, just use the installed library
;
259 otherwise
, use our own copy.
*/
262 OLDXMENU
=${lwlibdir}liblw.a
263 LIBXMENU
= $(OLDXMENU
)
264 #else /* not USE_X_TOOLKIT */
265 OLDXMENU
= ${oldXMenudir}libXMenu11.a
266 LIBXMENU
= $(OLDXMENU
)
267 #endif /* not USE_X_TOOLKIT */
268 #else /* not HAVE_X11 */
270 #endif /* not HAVE_X11 */
272 #else /* not HAVE_MENUS */
274 /* Otherwise
, do not worry about the menu library at
all.
*/
276 #endif /* not HAVE_MENUS */
279 # define @X_TOOLKIT_TYPE@
285 # if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP)
286 # define LIB_MOTIF_EXTRA -lXp
288 # define LIB_MOTIF_EXTRA
291 MOTIF_LIBW
= LIB_MOTIF LIB_MOTIF_EXTRA
293 MOTIF_LIBW
= -lXm LIB_MOTIF_EXTRA
295 LIBW
=$(@X_TOOLKIT_TYPE@_LIBW
)
299 LIBXTR6
= -lSM
-lICE
-lw
309 LIBXT
= $(LIBW
) LIBXMU
-lXt
$(LIBXTR6
) -lXext
311 #else /* not USE_X_TOOLKIT */
319 LIBXT
=$(LIBW
) $(LIBXSM
)
320 #endif /* not USE_X_TOOLKIT */
323 /* LD_SWITCH_X_DEFAULT comes after everything
else that specifies
324 options for where to find X libraries
, but before those libraries.
*/
325 X11_LDFLAGS
= LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT
326 LIBX
= $(LIBXMENU
) $(X11_LDFLAGS
) $(LIBXT
) $(LIBTIFF
) $(LIBJPEG
) $(LIBPNG
) $(LIBGIF
) $(LIBXPM
) LIB_X11_LIB
$(XFT_LIBS
)
327 #else /* not HAVE_X11 */
328 LIBX
= $(LIBXMENU
) LD_SWITCH_X_SITE
329 #endif /* not HAVE_X11 */
330 #endif /* not HAVE_X_WINDOWS */
332 #ifndef ORDINARY_LINK
333 /* Fix linking if compiled with GCC.
*/
337 #define LINKER_WAS_SPECIFIED
340 /* Versions of GCC
>= 2.0 put their library
, libgcc.a
, in obscure
341 places that are difficult to figure out at make time. Fortunately
,
342 these same versions allow you to pass arbitrary flags on to the
343 linker
, so there is no reason not to use it
as a linker.
345 Well
, it is not quite perfect. The
"-nostdlib" keeps GCC from
346 searching for libraries in its internal directories
, so we have to
347 ask GCC explicitly where to find libgcc.a.
*/
350 #define LINKER $(CC) -nostdlib
354 /* Ask GCC where to find libgcc.a.
*/
355 #define LIB_GCC `$(CC) -print-libgcc-file-name`
356 #endif /* not LIB_GCC */
360 #ifndef LINKER_WAS_SPECIFIED
361 /* GCC passes any argument prefixed with
-Xlinker directly to the
362 linker. See prefix-args.c for an explanation of why we do not do
363 this with the
shell''s
``for
'' construct.
364 Note that some people do not have
'.' in their paths
, so we must
365 use .
/prefix-args.
*/
366 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
368 #define YMF_PASS_LDFLAGS(flags) flags
371 #else /* not __GNUC__ */
374 #endif /* not __GNUC__ */
375 #endif /* not ORDINARY_LINK */
382 #else /* not LINKER */
384 #endif /* not LINKER */
385 #endif /* not ORDINARY_LINK */
387 /* Flags to pass to LD only for temacs.
*/
388 /* Do not split this line with a backslash. That can cause trouble with
390 TEMACS_LDFLAGS
= LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE
392 /* A macro which other sections of Makefile can redefine to munge the
393 flags before they are passed to LD. This is helpful if you have
394 redefined LD to something odd
, like
"gcc".
395 (The YMF
prefix is a holdover from the old name
"ymakefile".
)
397 #ifndef YMF_PASS_LDFLAGS
398 #define YMF_PASS_LDFLAGS(flags) flags
402 #ifdef HAVE_X_WINDOWS
403 MSDOS_OBJ
= dosfns.o msdos.o xmenu.o
405 MSDOS_OBJ
= dosfns.o msdos.o w16select.o xmenu.o termcap.o
414 ns_appdir
=@ns_appdir@
/
415 ns_appbindir
=@ns_appbindir@
/
416 ns_appresdir
=@ns_appresdir@
/
417 ns_appsrc
=@ns_appsrc@
418 /* Object files for NeXTstep
*/
419 NS_OBJ
= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
420 fontset.o fringe.o image.o
423 #ifdef HAVE_WINDOW_SYSTEM
424 #ifdef HAVE_X_WINDOWS
425 #if defined (HAVE_XFT)
426 FONT_DRIVERS
= xfont.o ftfont.o xftfont.o ftxfont.o
427 #elif defined (HAVE_FREETYPE)
428 FONT_DRIVERS
= xfont.o ftfont.o ftxfont.o
429 #else /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
430 FONT_DRIVERS
= xfont.o
431 #endif /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
432 #endif /* HAVE_X_WINDOWS */
433 #endif /* HAVE_WINDOW_SYSTEM */
435 /* lastfile must follow
all files
436 whose initialized data areas should be dumped
as pure by dump-emacs.
*/
437 obj
= dispnew.o frame.o scroll.o xdisp.o menu.o
$(XMENU_OBJ
) window.o \
438 charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \
439 cm.o term.o terminal.o xfaces.o
$(XOBJ
) $(GTK_OBJ
) $(DBUS_OBJ
) \
440 emacs.o keyboard.o macros.o keymap.o sysdep.o \
441 buffer.o filelock.o insdel.o marker.o \
442 minibuf.o fileio.o dired.o filemode.o \
443 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
444 alloc.o data.o doc.o editfns.o callint.o \
445 eval.o floatfns.o fns.o font.o
print.o lread.o \
446 syntax.o UNEXEC bytecode.o \
447 process.o callproc.o \
448 region-cache.o sound.o atimer.o \
449 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \
450 $(MSDOS_OBJ
) $(NS_OBJ
) $(CYGWIN_OBJ
) $(FONT_DRIVERS
)
452 /* Object files used on some machine or other.
453 These go in the DOC file on
all machines
454 in case they are needed there.
*/
455 SOME_MACHINE_OBJECTS
= dosfns.o msdos.o \
456 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
457 fontset.o dbusbind.o \
458 nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
459 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
460 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o
$(FONT_DRIVERS
)
464 /* Used to be
-ltermcap here. If your machine needs that
,
465 define LIBS_TERMCAP in the m
/MACHINE.h file.
*/
467 #define LIBS_TERMCAP -lcurses
468 #endif /* LIBS_TERMCAP */
469 termcapobj
= terminfo.o
470 #else /* ! defined (TERMINFO) */
473 #endif /* LIBS_TERMCAP */
474 termcapobj
= tparam.o
475 #endif /* ! defined (TERMINFO) */
478 #ifndef SYSTEM_MALLOC
480 #ifndef DOUG_LEA_MALLOC
481 gmallocobj
= gmalloc.o
488 mallocobj
= $(gmallocobj
) $(rallocobj
) vm-limit.o
490 #endif /* SYSTEM_MALLOC */
495 #else /* not USE_X_TOOLKIT */
497 #endif /* not USE_X_TOOLKIT */
500 /* define otherobj
as list of object files that make-docfile
501 should not be told about.
*/
503 /* Cygwin differs because of its unexec
().
*/
504 otherobj
= $(termcapobj
) $(gmallocobj
) $(rallocobj
) lastfile.o vm-limit.o
$(widgetobj
) $(LIBOBJS
)
506 otherobj
= $(termcapobj
) lastfile.o
$(mallocobj
) $(widgetobj
) $(LIBOBJS
)
510 #define MOUSE_SUPPORT ${lispsource}mouse.elc \
511 ${lispsource}select.elc
${lispsource}scroll-bar.elc
514 #define MOUSE_SUPPORT ${lispsource}mouse.elc
516 #define MOUSE_SUPPORT
521 #define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
522 ${lispsource}dos-fns.elc
${lispsource}dos-w32.elc
${lispsource}dos-vars.elc \
523 ${lispsource}term
/internal.elc
${lispsource}term
/pc-win.elc
526 #define MSDOS_SUPPORT
529 #ifdef HAVE_WINDOW_SYSTEM
530 #ifdef HAVE_X_WINDOWS
531 #define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
532 ${lispsource}international
/fontset.elc
${lispsource}dnd.elc \
533 ${lispsource}tool-bar.elc
${lispsource}mwheel.elc
${lispsource}x-dnd.elc \
534 ${lispsource}term
/common-win.elc
${lispsource}term
/x-win.elc \
535 ${lispsource}dynamic-setting.elc
537 #define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
538 ${lispsource}international
/fontset.elc
${lispsource}dnd.elc \
539 ${lispsource}tool-bar.elc
${lispsource}mwheel.elc
542 #define WINDOW_SUPPORT
546 #define WINNT_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
547 ${lispsource}dos-w32.elc
${lispsource}w32-vars.elc \
548 ${lispsource}w32-fns.elc
${lispsource}term
/common-win.elc \
549 ${lispsource}term
/w32-win.elc
551 #define WINNT_SUPPORT
554 #ifdef HAVE_WINDOW_SYSTEM
555 #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc
557 #define TOOLTIP_SUPPORT
561 #define NS_SUPPORT ${lispsource}emacs-lisp/easymenu.elc \
562 ${lispsource}term
/ns-win.elc
567 /* This is the platform-specific list of Lisp files loaded into the
568 dumped Emacs. It is arranged like this because it is easier to generate
569 it semi-mechanically from loadup.el this way.
571 Note that this list should not
include lisp files which might not
572 be present
, like site-load.el and site-init.el
; this makefile
573 expects them
all to be either present or buildable.
575 Files which are loaded unconditionally
(i.e.
, on
all platforms
) should
576 also be in shortlisp. Files which are loaded conditionally
(i.e.
, only
577 on some platforms
) should instead be in SOME_MACHINE_LISP.
*/
579 /* Place loaddefs.el first
, so it gets generated first
, since it is on
580 the critical path
(relevant in parallel compilations
).
*/
583 ${lispsource}loaddefs.el \
584 ${lispsource}abbrev.elc \
585 ${lispsource}buff-menu.elc \
586 ${lispsource}button.elc \
587 ${lispsource}emacs-lisp
/byte-run.elc \
588 ${lispsource}composite.elc \
589 ${lispsource}cus-face.elc \
590 ${lispsource}cus-start.elc \
591 ${lispsource}custom.elc \
592 ${lispsource}emacs-lisp
/backquote.elc \
593 ${lispsource}emacs-lisp
/lisp-mode.elc \
594 ${lispsource}emacs-lisp
/lisp.elc \
595 ${lispsource}env.elc \
596 ${lispsource}faces.elc \
597 ${lispsource}files.elc \
598 ${lispsource}format.elc \
599 ${lispsource}facemenu.elc \
601 ${lispsource}emacs-lisp
/float-sup.elc \
602 ${lispsource}frame.elc \
603 ${lispsource}help.elc \
604 ${lispsource}indent.elc \
605 ${lispsource}isearch.elc \
606 ${lispsource}rfn-eshadow.elc \
607 ${lispsource}loadup.el \
608 ${lispsource}bindings.elc \
609 ${lispsource}emacs-lisp
/map-ynp.elc \
610 ${lispsource}menu-bar.elc \
611 ${lispsource}international
/mule.elc \
612 ${lispsource}international
/mule-conf.elc \
613 ${lispsource}international
/mule-cmds.elc \
614 ${lispsource}international
/characters.elc \
615 ${lispsource}international
/charprop.el \
616 ${lispsource}case-table.elc \
617 ${lispsource}language
/chinese.elc \
618 ${lispsource}language
/cyrillic.elc \
619 ${lispsource}language
/indian.elc \
620 ${lispsource}language
/sinhala.el \
621 ${lispsource}language
/english.el \
622 ${lispsource}language
/ethiopic.elc \
623 ${lispsource}language
/european.elc \
624 ${lispsource}language
/czech.el \
625 ${lispsource}language
/slovak.el \
626 ${lispsource}language
/romanian.el \
627 ${lispsource}language
/greek.el \
628 ${lispsource}language
/hebrew.el \
629 ${lispsource}language
/japanese.el \
630 ${lispsource}language
/korean.el \
631 ${lispsource}language
/lao.el \
632 ${lispsource}language
/cham.el \
633 ${lispsource}language
/tai-viet.el \
634 ${lispsource}language
/thai.el \
635 ${lispsource}language
/tibetan.elc \
636 ${lispsource}language
/vietnamese.elc \
637 ${lispsource}language
/misc-lang.el \
638 ${lispsource}language
/utf-8-lang.el \
639 ${lispsource}language
/georgian.el \
640 ${lispsource}language
/khmer.el \
641 ${lispsource}language
/burmese.el \
642 ${lispsource}paths.el \
643 ${lispsource}register.elc \
644 ${lispsource}replace.elc \
645 ${lispsource}simple.elc \
646 ${lispsource}minibuffer.elc \
647 ${lispsource}startup.elc \
648 ${lispsource}subr.elc \
649 ${lispsource}term
/tty-colors.elc \
650 ${lispsource}font-core.elc \
651 ${lispsource}emacs-lisp
/syntax.elc \
652 ${lispsource}font-lock.elc \
653 ${lispsource}jit-lock.elc \
654 ${lispsource}textmodes
/fill.elc \
655 ${lispsource}textmodes
/page.elc \
656 ${lispsource}textmodes
/paragraphs.elc \
657 ${lispsource}textmodes
/text-mode.elc \
658 ${lispsource}emacs-lisp
/timer.elc \
659 ${lispsource}jka-cmpr-hook.elc \
660 ${lispsource}vc-hooks.elc \
661 ${lispsource}ediff-hook.elc \
662 ${lispsource}epa-hook.elc \
668 ${lispsource}widget.elc \
669 ${lispsource}window.elc \
670 ${lispsource}version.el
672 /* List of relative names for those files from
$lisp that are loaded
673 unconditionally
(i.e. on
all platforms
). Files from
$lisp that
674 are only loaded on some platforms should instead be placed in
675 SOME_MACHINE_LISP. The only reason this variable exists is to prevent
676 the make-docfile command-line getting too long for some systems.
*/
678 ..
/lisp
/loaddefs.el \
680 ..
/lisp
/buff-menu.elc \
682 ..
/lisp
/emacs-lisp
/byte-run.elc \
683 ..
/lisp
/composite.elc \
684 ..
/lisp
/cus-face.elc \
685 ..
/lisp
/cus-start.elc \
687 ..
/lisp
/emacs-lisp
/backquote.elc \
688 ..
/lisp
/emacs-lisp
/lisp-mode.elc \
689 ..
/lisp
/emacs-lisp
/lisp.elc \
690 ..
/lisp
/facemenu.elc \
693 ..
/lisp
/emacs-lisp
/float-sup.elc \
698 ..
/lisp
/isearch.elc \
699 ..
/lisp
/rfn-eshadow.elc \
701 ..
/lisp
/bindings.elc \
702 ..
/lisp
/emacs-lisp
/map-ynp.elc \
704 ..
/lisp
/international
/mule.elc \
705 ..
/lisp
/international
/mule-conf.elc \
706 ..
/lisp
/international
/mule-cmds.elc \
707 ..
/lisp
/international
/characters.elc \
708 ..
/lisp
/case-table.elc \
709 ..
/lisp
/language
/chinese.elc \
710 ..
/lisp
/language
/cyrillic.elc \
711 ..
/lisp
/language
/indian.elc \
712 ..
/lisp
/language
/sinhala.el \
713 ..
/lisp
/language
/english.el \
714 ..
/lisp
/language
/ethiopic.elc \
715 ..
/lisp
/language
/european.elc \
716 ..
/lisp
/language
/czech.el \
717 ..
/lisp
/language
/slovak.el \
718 ..
/lisp
/language
/romanian.el \
719 ..
/lisp
/language
/greek.el \
720 ..
/lisp
/language
/hebrew.el \
721 ..
/lisp
/language
/japanese.el \
722 ..
/lisp
/language
/korean.el \
723 ..
/lisp
/language
/lao.el \
724 ..
/lisp
/language
/cham.el \
725 ..
/lisp
/language
/tai-viet.el \
726 ..
/lisp
/language
/thai.el \
727 ..
/lisp
/language
/tibetan.elc \
728 ..
/lisp
/language
/vietnamese.elc \
729 ..
/lisp
/language
/misc-lang.el \
730 ..
/lisp
/language
/utf-8-lang.el \
731 ..
/lisp
/language
/georgian.el \
732 ..
/lisp
/language
/khmer.el \
733 ..
/lisp
/language
/burmese.el \
734 ..
/lisp
/menu-bar.elc \
736 ..
/lisp
/register.elc \
737 ..
/lisp
/replace.elc \
739 ..
/lisp
/minibuffer.elc \
740 ..
/lisp
/startup.elc \
742 ..
/lisp
/term
/tty-colors.elc \
743 ..
/lisp
/font-core.elc \
744 ..
/lisp
/emacs-lisp
/syntax.elc \
745 ..
/lisp
/font-lock.elc \
746 ..
/lisp
/jit-lock.elc \
747 ..
/lisp
/textmodes
/fill.elc \
748 ..
/lisp
/textmodes
/page.elc \
749 ..
/lisp
/textmodes
/paragraphs.elc \
750 ..
/lisp
/textmodes
/text-mode.elc \
751 ..
/lisp
/emacs-lisp
/timer.elc \
752 ..
/lisp
/vc-hooks.elc \
753 ..
/lisp
/jka-cmpr-hook.elc \
754 ..
/lisp
/ediff-hook.elc \
755 ..
/lisp
/epa-hook.elc \
760 /* Like
$shortlisp, but includes only those files from
$lisp that are loaded
761 conditionally
(i.e.
, only on some platforms
).
*/
762 SOME_MACHINE_LISP
= ..
/lisp
/mouse.elc \
763 ..
/lisp
/select.elc ..
/lisp
/scroll-bar.elc \
764 ..
/lisp
/ls-lisp.elc ..
/lisp
/dos-fns.elc \
765 ..
/lisp
/w32-fns.elc ..
/lisp
/dos-w32.elc \
766 ..
/lisp
/disp-table.elc ..
/lisp
/dos-vars.elc \
767 ..
/lisp
/tooltip.elc ..
/lisp
/image.elc \
768 ..
/lisp
/fringe.elc ..
/lisp
/dnd.elc \
769 ..
/lisp
/mwheel.elc ..
/lisp
/tool-bar.elc \
770 ..
/lisp
/x-dnd.elc ..
/lisp
/dynamic-setting.elc \
771 ..
/lisp
/international
/ccl.elc \
772 ..
/lisp
/international
/fontset.elc \
774 ..
/lisp
/term
/common-win.elc \
775 ..
/lisp
/term
/x-win.elc \
776 ..
/lisp
/term
/pc-win.elc ..
/lisp
/term
/internal.elc \
777 ..
/lisp
/term
/ns-win.elc ..
/lisp
/term
/w32-win.elc \
778 ..
/lisp
/emacs-lisp
/easymenu.elc
780 /* Construct full set of libraries to be linked.
781 Note that SunOS needs
-lm to come before
-lc
; otherwise
, you
get
782 duplicated symbols. If the standard libraries were compiled
783 with GCC
, we might need gnulib again after them.
*/
785 LIBES
= $(LOADLIBES
) $(LIBS
) $(LIBX
) $(LIBSOUND
) $(RSVG_LIBS
) $(DBUS_LIBS
) \
786 @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_TERMCAP \
787 $(GETLOADAVG_LIBS
) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \
788 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
789 $(GNULIB_VAR
) @LIB_MATH@ LIB_STANDARD
$(GNULIB_VAR
)
791 all: emacs
${EXEEXT} $(OTHER_FILES
)
793 emacs
${EXEEXT}: temacs
${EXEEXT} ${etc}DOC
${lisp}
796 ln temacs
${EXEEXT} emacs
${EXEEXT}
797 -EMACSLOADPATH
=${lispsource} .
/emacs
-q
-batch
-f list-load-path-shadows
799 LC_ALL
=C
$(RUN_TEMACS
) -batch
-l loadup dump
800 @
: This new Emacs is
as functional and more efficient then
801 @
: bootstrap-emacs
, so let us replace it.
802 -ln
-f emacs
${EXEEXT} bootstrap-emacs
${EXEEXT}
803 -.
/emacs
-q
-batch
-f list-load-path-shadows
804 #endif /* ! defined (CANNOT_DUMP) */
806 /* We run make-docfile twice because the command line may
get too long
808 /* ${SOME_MACHINE_OBJECTS} comes before
${obj} because some files may
809 or may not be included in
${obj}, but they are always included in
810 ${SOME_MACHINE_OBJECTS}. Since a file is processed when it is mentioned
811 for the first time
, this prevents any variation between configurations
812 in the contents of the DOC file.
813 Likewise for
${SOME_MACHINE_LISP}.
*/
814 /* Most of this Makefile refers to Lisp files via
${lispsource}, so
815 we also use
${lisp} rather than
${shortlisp} for the dependency since
816 the Makefile uses string equality to decide when we talk about identical
817 files. Apparently we pass
${shortlisp} rather than
${lisp} to make-docfile
818 only in order to reduce the command line length.
--Stef
*/
819 ${etc}DOC
: ${libsrc}make-docfile
${EXEEXT} ${obj} ${lisp} ${SOME_MACHINE_LISP}
821 ${libsrc}make-docfile
-d
${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
822 ${libsrc}make-docfile
-a
${etc}DOC
-d
${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
824 ${libsrc}make-docfile
${EXEEXT}:
825 cd
${libsrc}; ${MAKE} ${MFLAGS} make-docfile
${EXEEXT}
828 echo
"#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h
830 temacs
${EXEEXT}: $(LOCALCPP
) $(STARTFILES
) stamp-oldxmenu
${obj} ${otherobj} prefix-args
${EXEEXT}
831 #ifdef NS_IMPL_GNUSTEP
832 $(CC
) -rdynamic YMF_PASS_LDFLAGS
( ${TEMACS_LDFLAGS} \
833 -L@GNUSTEP_SYSTEM_LIBRARIES@
-lgnustep-gui
-lgnustep-base \
834 -lobjc
$(CONFIG_SYSTEM_LIBS
) -lpthread
) -o temacs \
835 ${obj} ${otherobj} ${LIBES}
837 $(LD
) YMF_PASS_LDFLAGS
(${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS
) \
838 -o temacs
${STARTFILES} ${obj} ${otherobj} \
842 /* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
843 often contain options that have to do with using Emacs
''s crt0
,
844 which are only good with temacs.
*/
845 prefix-args
${EXEEXT}: prefix-args.o
$(config_h
)
846 $(CC
) $(LDFLAGS
) prefix-args.o
-o prefix-args
848 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK)
850 /* We use stamp-xmenu with these two deps
851 to both ensure that lwlib gets remade based on its dependencies
853 and remake temacs if lwlib gets changed by this.
*/
854 stamp-oldxmenu
: ${OLDXMENU} ..
/src
/$(OLDXMENU
)
856 /* Supply an ordering for parallel make.
*/
857 ..
/src
/$(OLDXMENU
): ${OLDXMENU}
859 /* Encode the values of these two macros in Make variables
,
860 so we can use
$(...
) to substitute their values within
"...".
*/
861 C_SWITCH_X_SYSTEM_1
= C_SWITCH_X_SYSTEM
864 $(OLDXMENU
): really-lwlib
867 cd
${lwlibdir}; ${MAKE} ${MFLAGS} \
868 CC
='${CC}' CFLAGS
='${CFLAGS}' MAKE
='${MAKE}' \
869 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)"
870 @true
/* make
-t should not create really-lwlib.
*/
872 #else /* not USE_X_TOOLKIT */
873 $(OLDXMENU
): really-oldXMenu
876 cd
${oldXMenudir}; ${MAKE} ${MFLAGS} \
877 CC
='${CC}' CFLAGS
='${CFLAGS}' MAKE
='${MAKE}' \
878 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)"
879 @true
/* make
-t should not create really-oldXMenu.
*/
880 .PHONY
: really-oldXMenu
881 #endif /* not USE_X_TOOLKIT */
882 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! USE_GTK) */
884 /* We don
''t really need this
, but satisfy the dependency.
*/
887 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! USE_GTK) */
889 ..
/config.status
:: epaths.in
890 @echo
"The file epaths.h needs to be set up from epaths.in."
891 @echo
"Please run the `configure' script again."
894 ..
/config.status
:: config.in
895 @echo
"The file config.h needs to be set up from config.in."
896 @echo
"Please run the `configure' script again."
899 ecrt0.o
: ecrt0.c
$(config_h
)
901 @
-test -d deps || mkdir deps
903 $(CC
) -c
$(ALL_CFLAGS
) ${srcdir}/ecrt0.c
908 atimer.o
: atimer.c atimer.h syssignal.h systime.h lisp.h blockinput.h \
910 bidi.o
: bidi.c buffer.h character.h dispextern.h lisp.h
$(config_h
)
911 buffer.o
: buffer.c buffer.h region-cache.h commands.h window.h \
912 $(INTERVALS_H
) blockinput.h atimer.h systime.h character.h \
913 indent.h keyboard.h coding.h keymap.h frame.h lisp.h
$(config_h
)
914 callint.o
: callint.c window.h commands.h buffer.h keymap.h \
915 keyboard.h dispextern.h systime.h coding.h composite.h lisp.h
$(config_h
)
916 callproc.o
: callproc.c epaths.h buffer.h commands.h lisp.h
$(config_h
) \
917 process.h systty.h syssignal.h character.h coding.h ccl.h msdos.h \
918 composite.h w32.h blockinput.h atimer.h systime.h frame.h termhooks.h \
920 casefiddle.o
: casefiddle.c syntax.h commands.h buffer.h character.h \
921 composite.h keymap.h lisp.h
$(config_h
)
922 casetab.o
: casetab.c buffer.h character.h lisp.h
$(config_h
)
923 category.o
: category.c category.h buffer.h charset.h keymap.h \
924 character.h lisp.h
$(config_h
)
925 ccl.o
: ccl.c ccl.h charset.h character.h coding.h composite.h lisp.h
$(config_h
)
926 character.o
: character.c character.h buffer.h charset.h composite.h disptab.h \
928 charset.o
: charset.c charset.h character.h buffer.h coding.h composite.h \
929 disptab.h lisp.h
$(config_h
)
930 chartab.o
: charset.h character.h ccl.h lisp.h
$(config_h
)
931 coding.o
: coding.c coding.h ccl.h buffer.h character.h charset.h composite.h \
932 window.h dispextern.h frame.h termhooks.h lisp.h
$(config_h
)
933 cm.o
: cm.c frame.h cm.h termhooks.h termchar.h dispextern.h lisp.h
$(config_h
)
934 cmds.o
: cmds.c syntax.h buffer.h character.h commands.h window.h lisp.h
$(config_h
) \
935 msdos.h dispextern.h keyboard.h keymap.h systime.h coding.h frame.h \
937 pre-crt0.o
: pre-crt0.c
938 dbusbind.o
: dbusbind.c termhooks.h frame.h keyboard.h lisp.h
$(config_h
)
939 dired.o
: dired.c commands.h buffer.h lisp.h
$(config_h
) character.h charset.h \
940 coding.h regex.h systime.h blockinput.h atimer.h composite.h
941 dispnew.o
: dispnew.c systime.h commands.h process.h frame.h coding.h \
942 window.h buffer.h termchar.h termopts.h termhooks.h cm.h \
943 disptab.h indent.h
$(INTERVALS_H
) \
944 xterm.h blockinput.h atimer.h character.h msdos.h keyboard.h \
945 syssignal.h lisp.h
$(config_h
)
946 doc.o
: doc.c lisp.h
$(config_h
) epaths.h buffer.h keyboard.h keymap.h \
947 character.h systime.h coding.h composite.h
948 doprnt.o
: doprnt.c character.h lisp.h
$(config_h
)
949 dosfns.o
: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \
950 msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \
952 editfns.o
: editfns.c window.h buffer.h systime.h
$(INTERVALS_H
) character.h \
953 coding.h frame.h blockinput.h atimer.h lisp.h
$(config_h
)
954 emacs.o
: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
955 termhooks.h buffer.h atimer.h systime.h
$(INTERVALS_H
) lisp.h
$(config_h
) \
956 window.h dispextern.h keyboard.h keymap.h frame.h coding.h
957 fileio.o
: fileio.c window.h buffer.h systime.h
$(INTERVALS_H
) character.h \
958 coding.h msdos.h blockinput.h atimer.h lisp.h
$(config_h
) frame.h commands.h
959 filelock.o
: filelock.c buffer.h character.h coding.h systime.h composite.h \
961 filemode.o
: filemode.c
$(config_h
)
962 frame.o
: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
963 blockinput.h atimer.h systime.h buffer.h character.h fontset.h font.h \
964 msdos.h dosfns.h dispextern.h w32term.h termchar.h coding.h composite.h \
965 lisp.h
$(config_h
) termhooks.h ccl.h
966 fringe.o
: fringe.c dispextern.h frame.h window.h buffer.h termhooks.h \
967 blockinput.h atimer.h systime.h lisp.h
$(config_h
)
968 font.o
: font.c dispextern.h frame.h window.h ccl.h character.h charset.h \
969 font.h lisp.h
$(config_h
) buffer.h composite.h fontset.h xterm.h
970 ftfont.o
: dispextern.h frame.h character.h charset.h composite.h font.h \
971 lisp.h
$(config_h
) blockinput.h atimer.h systime.h coding.h fontset.h \
973 fontset.o
: fontset.c fontset.h ccl.h buffer.h character.h \
974 charset.h frame.h keyboard.h termhooks.h font.h lisp.h
$(config_h
) \
975 blockinput.h atimer.h systime.h coding.h
$(INTERVALS_H
) window.h xterm.h
976 getloadavg.o
: getloadavg.c
$(config_h
)
977 gtkutil.o
: gtkutil.c gtkutil.h xterm.h lisp.h frame.h lisp.h
$(config_h
) \
978 blockinput.h window.h atimer.h systime.h termhooks.h keyboard.h \
979 charset.h coding.h syssignal.h dispextern.h composite.h
980 image.o
: image.c frame.h window.h dispextern.h blockinput.h atimer.h \
981 systime.h xterm.h w32term.h w32gui.h font.h epaths.h character.h coding.h \
982 nsterm.h nsgui.h lisp.h
$(config_h
) composite.h termhooks.h ccl.h
983 indent.o
: indent.c frame.h window.h indent.h buffer.h lisp.h
$(config_h
) termchar.h \
984 termopts.h disptab.h region-cache.h character.h category.h \
985 keyboard.h systime.h coding.h
$(INTERVALS_H
)
986 insdel.o
: insdel.c window.h buffer.h
$(INTERVALS_H
) blockinput.h character.h \
987 dispextern.h atimer.h systime.h region-cache.h lisp.h
$(config_h
)
988 keyboard.o
: keyboard.c termchar.h termhooks.h termopts.h buffer.h character.h \
989 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
990 systime.h syntax.h
$(INTERVALS_H
) blockinput.h atimer.h composite.h \
991 xterm.h puresize.h msdos.h keymap.h w32term.h nsterm.h coding.h \
993 keymap.o
: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
994 atimer.h systime.h puresize.h character.h charset.h
$(INTERVALS_H
) keymap.h window.h \
995 coding.h frame.h lisp.h
$(config_h
)
996 lastfile.o
: lastfile.c
$(config_h
)
997 macros.o
: macros.c window.h buffer.h commands.h macros.h keyboard.h \
998 dispextern.h lisp.h
$(config_h
) systime.h coding.h composite.h
999 gmalloc.o
: gmalloc.c
$(config_h
)
1000 ralloc.o
: ralloc.c lisp.h
$(config_h
)
1001 vm-limit.o
: vm-limit.c mem-limits.h lisp.h
$(config_h
)
1002 marker.o
: marker.c buffer.h character.h lisp.h
$(config_h
)
1003 md5.o
: md5.c md5.h
$(config_h
)
1004 minibuf.o
: minibuf.c syntax.h frame.h window.h keyboard.h systime.h \
1005 buffer.h commands.h character.h msdos.h
$(INTERVALS_H
) keymap.h \
1006 termhooks.h lisp.h
$(config_h
) coding.h
1007 mktime.o
: mktime.c
$(config_h
)
1008 msdos.o
: msdos.c msdos.h dosfns.h systime.h termhooks.h dispextern.h frame.h \
1009 termopts.h termchar.h character.h coding.h ccl.h disptab.h window.h \
1010 keyboard.h
$(INTERVALS_H
) buffer.h commands.h blockinput.h atimer.h lisp.h
$(config_h
)
1011 nsfns.o
: nsfns.m charset.h nsterm.h nsgui.h frame.h window.h buffer.h \
1012 dispextern.h nsgui.h fontset.h
$(INTERVALS_H
) keyboard.h blockinput.h \
1013 atimer.h systime.h epaths.h termhooks.h coding.h systime.h lisp.h
$(config_h
)
1014 nsfont.o
: nsterm.h dispextern.h frame.h lisp.h lisp.h
$(config_h
)
1015 nsimage.o
: nsimage.m nsterm.h lisp.h
$(config_h
)
1016 nsmenu.o
: nsmenu.m termhooks.h frame.h window.h dispextern.h \
1017 nsgui.h keyboard.h blockinput.h atimer.h systime.h buffer.h \
1018 nsterm.h lisp.h
$(config_h
)
1019 nsterm.o
: nsterm.m blockinput.h atimer.h systime.h syssignal.h nsterm.h \
1020 nsgui.h frame.h charset.h ccl.h dispextern.h fontset.h termhooks.h \
1021 termopts.h termchar.h disptab.h buffer.h window.h keyboard.h \
1022 $(INTERVALS_H
) process.h coding.h lisp.h
$(config_h
)
1023 nsselect.o
: nsselect.m blockinput.h nsterm.h nsgui.h frame.h lisp.h
$(config_h
)
1024 process.o
: process.c process.h buffer.h window.h termhooks.h termopts.h \
1025 commands.h syssignal.h systime.h systty.h syswait.h frame.h dispextern.h \
1026 blockinput.h atimer.h charset.h coding.h ccl.h msdos.h composite.h \
1027 keyboard.h lisp.h
$(config_h
) character.h xgselect.h sysselect.h
1028 regex.o
: regex.c syntax.h buffer.h lisp.h
$(config_h
) regex.h category.h character.h
1029 region-cache.o
: region-cache.c buffer.h region-cache.h lisp.h
$(config_h
)
1030 scroll.o
: scroll.c termchar.h dispextern.h frame.h msdos.h keyboard.h \
1031 termhooks.h lisp.h
$(config_h
) systime.h coding.h composite.h window.h
1032 search.o
: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
1033 blockinput.h atimer.h systime.h category.h character.h charset.h \
1036 sound.o
: sound.c dispextern.h syssignal.h lisp.h
$(config_h
) atimer.h systime.h
1037 strftime.o
: strftime.c
$(config_h
)
1038 syntax.o
: syntax.c syntax.h buffer.h commands.h category.h character.h \
1039 keymap.h regex.h
$(INTERVALS_H
) lisp.h
$(config_h
)
1040 sysdep.o
: sysdep.c syssignal.h systty.h systime.h syswait.h blockinput.h \
1041 process.h dispextern.h termhooks.h termchar.h termopts.h coding.h \
1042 frame.h atimer.h window.h msdos.h dosfns.h keyboard.h cm.h lisp.h
$(config_h
) \
1044 term.o
: term.c termchar.h termhooks.h termopts.h lisp.h
$(config_h
) cm.h frame.h \
1045 disptab.h keyboard.h character.h charset.h coding.h ccl.h xterm.h \
1046 msdos.h window.h keymap.h blockinput.h atimer.h systime.h systty.h \
1047 syssignal.h
$(INTERVALS_H
) buffer.h
1048 termcap.o
: termcap.c lisp.h
$(config_h
)
1049 terminal.o
: terminal.c frame.h termchar.h termhooks.h charset.h coding.h \
1050 keyboard.h lisp.h
$(config_h
) dispextern.h composite.h systime.h
1051 terminfo.o
: terminfo.c lisp.h
$(config_h
)
1052 tparam.o
: tparam.c lisp.h
$(config_h
)
1053 undo.o
: undo.c buffer.h commands.h window.h dispextern.h lisp.h
$(config_h
)
1054 unexaix.o
: unexaix.c lisp.h
$(config_h
)
1055 unexalpha.o
: unexalpha.c
$(config_h
)
1056 unexcw.o
: unexcw.c lisp.h
$(config_h
)
1057 unexec.o
: unexec.c lisp.h
$(config_h
)
1058 unexelf.o
: unexelf.c
$(config_h
)
1059 unexhp9k800.o
: unexhp9k800.c
$(config_h
)
1060 unexmacosx.o
: unexmacosx.c
$(config_h
)
1061 unexsol.o
: unexsol.c lisp.h
$(config_h
)
1062 unexw32.o
: unexw32.c
$(config_h
)
1063 w16select.o
: w16select.c dispextern.h frame.h blockinput.h atimer.h systime.h \
1064 msdos.h buffer.h charset.h coding.h composite.h lisp.h
$(config_h
)
1065 widget.o
: widget.c xterm.h frame.h dispextern.h widgetprv.h \
1066 $(srcdir)/..
/lwlib
/lwlib.h lisp.h
$(config_h
)
1067 window.o
: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
1068 disptab.h keyboard.h msdos.h coding.h termhooks.h \
1069 keymap.h blockinput.h atimer.h systime.h
$(INTERVALS_H
) \
1070 xterm.h w32term.h nsterm.h lisp.h
$(config_h
)
1071 xdisp.o
: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h \
1072 coding.h termchar.h frame.h window.h disptab.h termhooks.h character.h \
1073 charset.h lisp.h
$(config_h
) keyboard.h
$(INTERVALS_H
) region-cache.h xterm.h \
1074 w32term.h nsterm.h msdos.h composite.h fontset.h ccl.h \
1075 blockinput.h atimer.h systime.h keymap.h font.h
1076 xfaces.o
: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
1077 window.h character.h charset.h msdos.h dosfns.h composite.h atimer.h \
1078 systime.h keyboard.h fontset.h w32term.h nsterm.h coding.h ccl.h \
1079 $(INTERVALS_H
) termchar.h termhooks.h font.h lisp.h
$(config_h
)
1080 xfns.o
: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \
1081 $(srcdir)/..
/lwlib
/lwlib.h blockinput.h atimer.h systime.h epaths.h \
1082 character.h charset.h coding.h gtkutil.h lisp.h
$(config_h
) termhooks.h \
1083 fontset.h termchar.h font.h xsettings.h
$(INTERVALS_H
) ccl.h
1084 xfont.o
: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1085 font.h lisp.h
$(config_h
) atimer.h systime.h fontset.h ccl.h
1086 xftfont.o
: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1087 font.h lisp.h
$(config_h
) atimer.h systime.h fontset.h ccl.h ftfont.h
1088 ftxfont.o
: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1089 font.h lisp.h
$(config_h
) atimer.h systime.h fontset.h ccl.h
1090 menu.o
: menu.c lisp.h keyboard.h keymap.h frame.h termhooks.h blockinput.h \
1091 dispextern.h
$(srcdir)/..
/lwlib
/lwlib.h xterm.h gtkutil.h menu.h \
1092 lisp.h
$(config_h
) systime.h coding.h composite.h window.h atimer.h
1093 xmenu.o
: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \
1094 charset.h keyboard.h
$(srcdir)/..
/lwlib
/lwlib.h blockinput.h atimer.h \
1095 systime.h gtkutil.h msdos.h coding.h menu.h lisp.h
$(config_h
) composite.h \
1096 keymap.h sysselect.h
1097 xterm.o
: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \
1098 dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \
1099 keyboard.h emacs-icon.h character.h charset.h ccl.h fontset.h composite.h \
1100 coding.h process.h gtkutil.h font.h fontset.h lisp.h
$(config_h
) \
1101 xsettings.h intervals.h keymap.h xgselect.h sysselect.h
1102 xselect.o
: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \
1103 buffer.h atimer.h systime.h termhooks.h lisp.h
$(config_h
) keyboard.h \
1104 coding.h composite.h
1105 xgselect.o
: xgselect.h systime.h sysselect.h lisp.h
$(config_h
)
1106 xrdb.o
: xrdb.c lisp.h
$(config_h
) epaths.h
1107 xsmfns.o
: xsmfns.c lisp.h
$(config_h
) systime.h sysselect.h termhooks.h xterm.h \
1108 lisp.h termopts.h frame.h dispextern.h
1109 xsettings.o
: xterm.h xsettings.h lisp.h frame.h termhooks.h
$(config_h
) \
1110 dispextern.h keyboard.h systime.h coding.h composite.h blockinput.h atimer.h \
1112 /* The files of Lisp proper
*/
1114 alloc.o
: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h \
1115 keyboard.h blockinput.h atimer.h systime.h character.h lisp.h
$(config_h
) \
1116 $(INTERVALS_H
) termhooks.h
1117 bytecode.o
: bytecode.c buffer.h syntax.h character.h window.h dispextern.h \
1118 frame.h xterm.h lisp.h
$(config_h
)
1119 data.o
: data.c buffer.h puresize.h character.h syssignal.h keyboard.h frame.h \
1120 termhooks.h systime.h coding.h composite.h dispextern.h font.h ccl.h \
1122 eval.o
: eval.c commands.h keyboard.h blockinput.h atimer.h systime.h \
1123 dispextern.h lisp.h
$(config_h
) coding.h composite.h xterm.h
1124 floatfns.o
: floatfns.c syssignal.h lisp.h
$(config_h
)
1125 fns.o
: fns.c commands.h lisp.h
$(config_h
) frame.h buffer.h character.h keyboard.h \
1126 keymap.h window.h dispextern.h
$(INTERVALS_H
) coding.h md5.h \
1127 blockinput.h atimer.h systime.h xterm.h
1128 print.o
: print.c process.h frame.h window.h buffer.h keyboard.h character.h \
1129 lisp.h
$(config_h
) termchar.h
$(INTERVALS_H
) msdos.h termhooks.h \
1130 blockinput.h atimer.h systime.h font.h charset.h coding.h ccl.h
1131 lread.o
: lread.c commands.h keyboard.h buffer.h epaths.h character.h \
1132 charset.h lisp.h
$(config_h
) $(INTERVALS_H
) termhooks.h coding.h msdos.h \
1133 systime.h frame.h blockinput.h atimer.h
1135 /* Text properties support
*/
1136 composite.o
: composite.c buffer.h character.h coding.h font.h ccl.h \
1137 frame.h termhooks.h
$(INTERVALS_H
) window.h lisp.h
$(config_h
)
1138 intervals.o
: intervals.c buffer.h
$(INTERVALS_H
) keyboard.h puresize.h \
1139 keymap.h lisp.h
$(config_h
) systime.h coding.h
1140 textprop.o
: textprop.c buffer.h window.h
$(INTERVALS_H
) \
1143 #endif /* ! AUTO_DEPEND */
1145 /* System-specific programs to be made.
1147 select which of these should be compiled.
*/
1150 /* In fact
, every .o file depends directly or indirectly on dispextern.h
1151 and hence nsgui.h under NS. But the ones that actually use stuff there
1152 are more limited.
*/
1153 dispnew.o font.o fontset.o frame.o fringe.o image.o keyboard.o menu.o \
1154 window.o xdisp.o xfaces.o
: nsgui.h
1156 ${ns_appdir}: ${ns_appsrc}
1158 mkdir
-p
${ns_appdir}
1159 ( cd
${ns_appsrc} ; tar cfh
- .
) |
( cd
${ns_appdir} ; tar xf
- )
1160 ( cd
${ns_appdir} ; for subdir in
`find . -type d ! -name CVS -print` ; do \
1161 chmod a
+rx
$${subdir} ; \
1162 rm -rf
$${subdir}/CVS
; \
1163 rm -f
$${subdir}/.cvsignore
; done
; )
1165 ${ns_appbindir}Emacs
: emacs
${EXEEXT}
1166 mkdir
-p
${ns_appbindir}
1167 cp
-f emacs
${EXEEXT} ${ns_appbindir}Emacs
1169 ns-app
: ${ns_appdir} ${ns_appbindir}Emacs
1171 #endif /* HAVE_NS */
1174 rm -f temacs
${EXEEXT} prefix-args
${EXEEXT} core
*.core \
#* *.o libXMenu11.a liblw.a
1176 rm -f bootstrap-emacs
${EXEEXT} emacs-
${version}${EXEEXT}
1179 rm -f emacs-
*.
*.
*${EXEEXT} emacs
${EXEEXT}
1184 /* bootstrap-clean is used to
clean up just before a bootstrap.
1185 It should remove
all files generated during a compilation
/bootstrap
,
1186 but not things like config.status or TAGS.
*/
1187 bootstrap-clean
: clean
1188 rm -f epaths.h config.h Makefile.c config.stamp stamp-oldxmenu ..
/etc
/DOC-
*
1189 if
test -f .
/.gdbinit
; then \
1190 mv .
/.gdbinit .
/.gdbinit.save
; \
1191 if
test -f
"${srcdir}/.gdbinit"; then
rm -f .
/.gdbinit.save
; \
1192 else mv .
/.gdbinit.save .
/.gdbinit
; fi
; \
1194 /**/# This is used in making a distribution.
1195 /**/# Do not use it on development directories!
1196 distclean: bootstrap-clean
1198 maintainer-clean
: distclean
1199 @echo
"This command is intended for maintainers to use;"
1200 @echo
"it deletes files that may require special tools to rebuild."
1203 -rm -f emacs
${EXEEXT} emacs-
*.
*.
*${EXEEXT} ..
/etc
/DOC
*
1204 extraclean
: distclean
1205 -rm -f
*~ \
#* m/?*~ s/?*~
1207 /* Arrange to make a
tags table TAGS-LISP for ..
/lisp
,
1208 plus TAGS for the C files
, which includes ..
/lisp
/TAGS by reference.
*/
1210 ctagsfiles1
= [xyzXYZ
]*.
[hcm
]
1211 ctagsfiles2
= [a-wA-W
]*.
[hcm
]
1213 TAGS
: $(srcdir)/$(ctagsfiles1
) $(srcdir)/$(ctagsfiles2
)
1214 ..
/lib-src
/etags
--include=TAGS-LISP
--include=${lwlibdir}/TAGS \
1215 --regex
='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
1216 $(srcdir)/$(ctagsfiles1
) $(srcdir)/$(ctagsfiles2
)
1219 $(MAKE
) -f
${lispdir}Makefile TAGS-LISP ETAGS
=..
/lib-src
/etags
1222 (cd
$(lwlibdir
); $(MAKE
) -f
$(lwlibdir
)Makefile
tags ETAGS
=..
/lib-src
/etags
)
1224 tags: TAGS TAGS-LISP
$(lwlibdir
)TAGS
1228 /* Bootstrapping.
*/
1229 /* Bootstrapping right is difficult because of the circular dependencies.
1230 Furthermore
, we have to deal with the fact that many compilation targets
1231 such
as loaddefs.el or
*.elc can typically be produced by any old
1232 Emacs executable
, so we would like to avoid rebuilding them whenever
1233 we build a new Emacs executable.
1234 To solve the circularity
, we use
2 different Emacs executables
,
1235 "emacs" is the main target and
"bootstrap-emacs" is the one used
1236 to build the
*.elc and loaddefs.el files.
1237 To solve the freshness issue
, we used to use a third file
"witness-emacs"
1238 which was used to witness the fact that there is a bootstrap-emacs
1239 executable
, and then have dependencies on witness-emacs rather than
1240 bootstrap-emacs
, but that lead to problems in parallel builds
(because
1241 witness-emacs needed to be free from dependencies
(to avoid rebuilding
1242 it
), so it was compiled in parallel
, leading typically to having
2
1243 processes dumping bootstrap-emacs at the same time
).
1244 So instead
, we replace the witness-emacs dependencies by conditional
1245 bootstrap-dependencies
(via
${BOOTSTRAPEMACS}). Of course
, since we do
1246 not want to rely on GNU Make features
, we have to rely on an external
1247 script to do the conditional part of the dependency
1248 (i.e. see the
${SUBDIR} rule ..
/Makefile.in
).
*/
1252 /* These
suffix rules do not allow additional dependencies
, sadly
, so
1253 instead of adding a
$(BOOTSTRAPEMACS
) dependency here
, we add it
1255 With GNU Make
, we would just say
"%.el : %.elc $(BOOTSTRAPEMACS)" */
1257 @cd ..
/lisp
; $(MAKE
) $(MFLAGS
) compile-onefile \
1258 THEFILE
=$< EMACS
=${bootstrap_exe}
1260 /* Since the .el.elc rule cannot specify an extra dependency
, we do it here.
*/
1261 ${lisp} ${SOME_MACHINE_LISP}: $(BOOTSTRAPEMACS
)
1263 ${lispsource}loaddefs.el
: $(BOOTSTRAPEMACS
)
1264 cd ..
/lisp
; $(MAKE
) $(MFLAGS
) autoloads EMACS
=${bootstrap_exe}
1266 /* Dump an Emacs executable named bootstrap-emacs containing the
1267 files from loadup.el in source form.
*/
1269 bootstrap-emacs
${EXEEXT}: temacs
${EXEEXT}
1270 cd ..
/lisp
; $(MAKE
) $(MFLAGS
) update-subdirs
1272 ln
-f temacs
${EXEEXT} bootstrap-emacs
${EXEEXT}
1274 $(RUN_TEMACS
) --batch
--load loadup bootstrap
1275 mv
-f emacs
${EXEEXT} bootstrap-emacs
${EXEEXT}
1276 #endif /* ! defined (CANNOT_DUMP) */
1277 @
: Compile some files earlier to speed up further compilation.
1278 cd ..
/lisp
; $(MAKE
) $(MFLAGS
) compile-first EMACS
=${bootstrap_exe}
1281 ALLOBJS
=$(STARTFILES
) ${obj} ${otherobj} prefix-args.o
1282 -include $(ALLOBJS
:%.o
=deps
/%.d
)