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@
80 DBUS_CFLAGS
= @DBUS_CFLAGS@
81 DBUS_LIBS
= @DBUS_LIBS@
84 GCONF_CFLAGS
= @GCONF_CFLAGS@
85 GCONF_LIBS
= @GCONF_LIBS@
96 TOOLKIT_LIBW
=@TOOLKIT_LIBW@
99 CFLAGS_SOUND
= @CFLAGS_SOUND@
101 RSVG_LIBS
= @RSVG_LIBS@
102 RSVG_CFLAGS
= @RSVG_CFLAGS@
104 ## widget.o if USE_X_TOOLKIT, otherwise empty.
105 WIDGET_OBJ
=@WIDGET_OBJ@
108 NS_SUPPORT
=@NS_SUPPORT@
110 LIBSELINUX_LIBS
= @LIBSELINUX_LIBS@
112 INTERVALS_H
= dispextern.h intervals.h composite.h
114 GETLOADAVG_LIBS
= @GETLOADAVG_LIBS@
116 RUN_TEMACS
= `/bin/pwd`/temacs
118 # ========================== start of cpp stuff =======================
119 /* From here on
, comments must be done in C syntax.
*/
121 /* just to be sure the sh is used
*/
124 #define THIS_IS_MAKEFILE
129 DEPFLAGS
= -MMD
-MF deps
/$*.d
132 /* Do not let the file name mktime.c
get messed up.
*/
137 /* Use HAVE_X11
as an alias for X11 in this file
138 to avoid problems with X11
as a subdirectory name
139 in
-I and other such options which pass through this file.
*/
146 /* On some machines
#define register is done in config;
147 do not let it interfere with this file.
*/
150 /* Some machines do not find the standard C libraries in the usual place.
*/
151 #ifndef ORDINARY_LINK
153 #define LIB_STANDARD -lc
161 /* Under GNUstep
, putting libc on the link line causes problems.
*/
162 #ifdef NS_IMPL_GNUSTEP
167 /* Some s
/SYSTEM.h files
define this to request special libraries.
*/
172 /* Some s
/SYSTEM.h files
define this to request special switches in
ld.
*/
173 #ifndef LD_SWITCH_SYSTEM
174 #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
175 #define LD_SWITCH_SYSTEM -X
176 #else /* (defined (BSD_SYSTEM) && !defined (COFF)) */
177 #define LD_SWITCH_SYSTEM
178 #endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */
179 #endif /* LD_SWITCH_SYSTEM */
181 /* This holds special options for linking temacs
182 that should be used for linking anything
else.
*/
183 #ifndef LD_SWITCH_SYSTEM_TEMACS
184 #define LD_SWITCH_SYSTEM_TEMACS
187 /* Some m
/MACHINE.h files
define this to request special switches in
ld.
*/
188 #ifndef LD_SWITCH_MACHINE
189 #define LD_SWITCH_MACHINE
192 /* These macros are for switches specifically related to X Windows.
*/
193 #ifndef LD_SWITCH_X_SITE
194 #define LD_SWITCH_X_SITE
197 STARTFILES
= START_FILES
200 #ifdef NS_IMPL_GNUSTEP
201 /* Pull in stuff from GNUstep-make.
*/
204 include @GNUSTEP_MAKEFILES@
/Additional
/base.make
205 include @GNUSTEP_MAKEFILES@
/Additional
/gui.make
209 /* DO NOT use
-R. There is a special hack described in lastfile.c
210 which is used instead. Some initialized data areas are modified
211 at initial startup
, then labeled
as part of the text area when
212 Emacs is dumped for the first time
, and never changed again.
*/
214 /* -Demacs is needed to make some files produce the correct version
217 -DHAVE_CONFIG_H is needed for some other files to take advantage of
218 the information in
``config.h
''.
*/
220 /* C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM
221 since it may have
-I options that should
override those two.
*/
222 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}
223 ALL_OBJC_CFLAGS
=$(ALL_CFLAGS
) @GNU_OBJC_CFLAGS@
228 @
-test -d deps || mkdir deps
230 $(CC
) -c
$(CPPFLAGS
) $(ALL_CFLAGS
) $<
233 @
-test -d deps || mkdir deps
235 $(CC
) -c
$(CPPFLAGS
) $(ALL_OBJC_CFLAGS
) $<
237 #ifdef HAVE_X_WINDOWS
240 /* The X Menu stuff is present in the X10 distribution
, but missing
241 from X11. If we have X10
, just use the installed library
;
242 otherwise
, use our own copy.
*/
245 OLDXMENU
=${lwlibdir}liblw.a
246 LIBXMENU
= $(OLDXMENU
)
247 #else /* not USE_X_TOOLKIT */
248 OLDXMENU
= ${oldXMenudir}libXMenu11.a
249 LIBXMENU
= $(OLDXMENU
)
250 #endif /* not USE_X_TOOLKIT */
251 #else /* not HAVE_X11 */
253 #endif /* not HAVE_X11 */
255 #else /* not HAVE_MENUS */
257 /* Otherwise
, do not worry about the menu library at
all.
*/
259 #endif /* not HAVE_MENUS */
268 LIBXT
= $(LIBW
) LIBXMU
-lXt
$(LIBXTR6
) -lXext
270 #else /* not USE_X_TOOLKIT */
278 LIBXT
=$(LIBW
) $(LIBXSM
)
279 #endif /* not USE_X_TOOLKIT */
282 X11_LDFLAGS
= LD_SWITCH_X_SITE
283 LIBX
= $(LIBXMENU
) $(X11_LDFLAGS
) $(LIBXT
) $(LIBTIFF
) $(LIBJPEG
) $(LIBPNG
) $(LIBGIF
) $(LIBXPM
) -lX11
$(XFT_LIBS
)
284 #else /* not HAVE_X11 */
285 LIBX
= $(LIBXMENU
) LD_SWITCH_X_SITE
286 #endif /* not HAVE_X11 */
287 #endif /* not HAVE_X_WINDOWS */
289 #ifndef ORDINARY_LINK
290 /* Fix linking if compiled with GCC.
*/
294 #define LINKER_WAS_SPECIFIED
297 /* Versions of GCC
>= 2.0 put their library
, libgcc.a
, in obscure
298 places that are difficult to figure out at make time. Fortunately
,
299 these same versions allow you to pass arbitrary flags on to the
300 linker
, so there is no reason not to use it
as a linker.
302 Well
, it is not quite perfect. The
"-nostdlib" keeps GCC from
303 searching for libraries in its internal directories
, so we have to
304 ask GCC explicitly where to find libgcc.a.
*/
307 #define LINKER $(CC) -nostdlib
311 /* Ask GCC where to find libgcc.a.
*/
312 #define LIB_GCC `$(CC) -print-libgcc-file-name`
313 #endif /* not LIB_GCC */
317 #ifndef LINKER_WAS_SPECIFIED
318 /* GCC passes any argument prefixed with
-Xlinker directly to the
319 linker. See prefix-args.c for an explanation of why we do not do
320 this with the
shell''s
``for
'' construct.
321 Note that some people do not have
'.' in their paths
, so we must
322 use .
/prefix-args.
*/
323 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
325 #define YMF_PASS_LDFLAGS(flags) flags
328 #else /* not __GNUC__ */
331 #endif /* not __GNUC__ */
332 #endif /* not ORDINARY_LINK */
339 #else /* not LINKER */
341 #endif /* not LINKER */
342 #endif /* not ORDINARY_LINK */
344 /* Flags to pass to LD only for temacs.
*/
345 /* Do not split this line with a backslash. That can cause trouble with
347 TEMACS_LDFLAGS
= LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE
349 /* A macro which other sections of Makefile can redefine to munge the
350 flags before they are passed to LD. This is helpful if you have
351 redefined LD to something odd
, like
"gcc".
352 (The YMF
prefix is a holdover from the old name
"ymakefile".
)
354 #ifndef YMF_PASS_LDFLAGS
355 #define YMF_PASS_LDFLAGS(flags) flags
359 #ifdef HAVE_X_WINDOWS
360 MSDOS_OBJ
= dosfns.o msdos.o xmenu.o
362 MSDOS_OBJ
= dosfns.o msdos.o w16select.o xmenu.o termcap.o
371 ns_appdir
=@ns_appdir@
/
372 ns_appbindir
=@ns_appbindir@
/
373 ns_appresdir
=@ns_appresdir@
/
374 ns_appsrc
=@ns_appsrc@
377 #ifdef HAVE_WINDOW_SYSTEM
378 #ifdef HAVE_X_WINDOWS
379 #if defined (HAVE_XFT)
380 FONT_DRIVERS
= xfont.o ftfont.o xftfont.o ftxfont.o
381 #elif defined (HAVE_FREETYPE)
382 FONT_DRIVERS
= xfont.o ftfont.o ftxfont.o
383 #else /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
384 FONT_DRIVERS
= xfont.o
385 #endif /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
386 #endif /* HAVE_X_WINDOWS */
387 #endif /* HAVE_WINDOW_SYSTEM */
389 /* lastfile must follow
all files
390 whose initialized data areas should be dumped
as pure by dump-emacs.
*/
391 obj
= dispnew.o frame.o scroll.o xdisp.o menu.o
$(XMENU_OBJ
) window.o \
392 charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \
393 cm.o term.o terminal.o xfaces.o
$(XOBJ
) $(GTK_OBJ
) $(DBUS_OBJ
) \
394 emacs.o keyboard.o macros.o keymap.o sysdep.o \
395 buffer.o filelock.o insdel.o marker.o \
396 minibuf.o fileio.o dired.o filemode.o \
397 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
398 alloc.o data.o doc.o editfns.o callint.o \
399 eval.o floatfns.o fns.o font.o
print.o lread.o \
400 syntax.o @unexec@ bytecode.o \
401 process.o callproc.o \
402 region-cache.o sound.o atimer.o \
403 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \
404 $(MSDOS_OBJ
) $(NS_OBJ
) $(CYGWIN_OBJ
) $(FONT_DRIVERS
)
406 /* Object files used on some machine or other.
407 These go in the DOC file on
all machines
408 in case they are needed there.
*/
409 SOME_MACHINE_OBJECTS
= dosfns.o msdos.o \
410 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
411 fontset.o dbusbind.o \
412 nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
413 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
414 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o
$(FONT_DRIVERS
)
418 /* Used to be
-ltermcap here. If your machine needs that
,
419 define LIBS_TERMCAP in the m
/MACHINE.h file.
*/
421 #define LIBS_TERMCAP -lcurses
422 #endif /* LIBS_TERMCAP */
423 termcapobj
= terminfo.o
424 #else /* ! defined (TERMINFO) */
427 #endif /* LIBS_TERMCAP */
428 termcapobj
= tparam.o
429 #endif /* ! defined (TERMINFO) */
432 #ifndef SYSTEM_MALLOC
434 #ifndef DOUG_LEA_MALLOC
435 gmallocobj
= gmalloc.o
442 mallocobj
= $(gmallocobj
) $(rallocobj
) vm-limit.o
444 #endif /* SYSTEM_MALLOC */
447 /* define otherobj
as list of object files that make-docfile
448 should not be told about.
*/
450 /* Cygwin differs because of its unexec
().
*/
451 otherobj
= $(termcapobj
) $(gmallocobj
) $(rallocobj
) lastfile.o vm-limit.o
$(WIDGET_OBJ
) $(LIBOBJS
)
453 otherobj
= $(termcapobj
) lastfile.o
$(mallocobj
) $(WIDGET_OBJ
) $(LIBOBJS
)
457 #define MOUSE_SUPPORT ${lispsource}mouse.elc \
458 ${lispsource}select.elc
${lispsource}scroll-bar.elc
461 #define MOUSE_SUPPORT ${lispsource}mouse.elc
463 #define MOUSE_SUPPORT
468 #define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
469 ${lispsource}dos-fns.elc
${lispsource}dos-w32.elc
${lispsource}dos-vars.elc \
470 ${lispsource}term
/internal.elc
${lispsource}term
/pc-win.elc
473 #define MSDOS_SUPPORT
476 #ifdef HAVE_WINDOW_SYSTEM
477 #ifdef HAVE_X_WINDOWS
478 #define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
479 ${lispsource}international
/fontset.elc
${lispsource}dnd.elc \
480 ${lispsource}tool-bar.elc
${lispsource}mwheel.elc
${lispsource}x-dnd.elc \
481 ${lispsource}term
/common-win.elc
${lispsource}term
/x-win.elc \
482 ${lispsource}dynamic-setting.elc
484 #define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
485 ${lispsource}international
/fontset.elc
${lispsource}dnd.elc \
486 ${lispsource}tool-bar.elc
${lispsource}mwheel.elc
489 #define WINDOW_SUPPORT
493 #define WINNT_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
494 ${lispsource}dos-w32.elc
${lispsource}w32-vars.elc \
495 ${lispsource}w32-fns.elc
${lispsource}term
/common-win.elc \
496 ${lispsource}term
/w32-win.elc
498 #define WINNT_SUPPORT
501 #ifdef HAVE_WINDOW_SYSTEM
502 #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc
504 #define TOOLTIP_SUPPORT
507 /* This is the platform-specific list of Lisp files loaded into the
508 dumped Emacs. It is arranged like this because it is easier to generate
509 it semi-mechanically from loadup.el this way.
511 Note that this list should not
include lisp files which might not
512 be present
, like site-load.el and site-init.el
; this makefile
513 expects them
all to be either present or buildable.
515 Files which are loaded unconditionally
(i.e.
, on
all platforms
) should
516 also be in shortlisp. Files which are loaded conditionally
(i.e.
, only
517 on some platforms
) should instead be in SOME_MACHINE_LISP.
*/
519 /* Place loaddefs.el first
, so it gets generated first
, since it is on
520 the critical path
(relevant in parallel compilations
).
*/
523 ${lispsource}loaddefs.el \
524 ${lispsource}abbrev.elc \
525 ${lispsource}buff-menu.elc \
526 ${lispsource}button.elc \
527 ${lispsource}emacs-lisp
/byte-run.elc \
528 ${lispsource}composite.elc \
529 ${lispsource}cus-face.elc \
530 ${lispsource}cus-start.elc \
531 ${lispsource}custom.elc \
532 ${lispsource}emacs-lisp
/backquote.elc \
533 ${lispsource}emacs-lisp
/lisp-mode.elc \
534 ${lispsource}emacs-lisp
/lisp.elc \
535 ${lispsource}env.elc \
536 ${lispsource}faces.elc \
537 ${lispsource}files.elc \
538 ${lispsource}format.elc \
539 ${lispsource}facemenu.elc \
541 ${lispsource}emacs-lisp
/float-sup.elc \
542 ${lispsource}frame.elc \
543 ${lispsource}help.elc \
544 ${lispsource}indent.elc \
545 ${lispsource}isearch.elc \
546 ${lispsource}rfn-eshadow.elc \
547 ${lispsource}loadup.el \
548 ${lispsource}bindings.elc \
549 ${lispsource}emacs-lisp
/map-ynp.elc \
550 ${lispsource}menu-bar.elc \
551 ${lispsource}international
/mule.elc \
552 ${lispsource}international
/mule-conf.elc \
553 ${lispsource}international
/mule-cmds.elc \
554 ${lispsource}international
/characters.elc \
555 ${lispsource}international
/charprop.el \
556 ${lispsource}case-table.elc \
557 ${lispsource}language
/chinese.elc \
558 ${lispsource}language
/cyrillic.elc \
559 ${lispsource}language
/indian.elc \
560 ${lispsource}language
/sinhala.el \
561 ${lispsource}language
/english.el \
562 ${lispsource}language
/ethiopic.elc \
563 ${lispsource}language
/european.elc \
564 ${lispsource}language
/czech.el \
565 ${lispsource}language
/slovak.el \
566 ${lispsource}language
/romanian.el \
567 ${lispsource}language
/greek.el \
568 ${lispsource}language
/hebrew.el \
569 ${lispsource}language
/japanese.el \
570 ${lispsource}language
/korean.el \
571 ${lispsource}language
/lao.el \
572 ${lispsource}language
/cham.el \
573 ${lispsource}language
/tai-viet.el \
574 ${lispsource}language
/thai.el \
575 ${lispsource}language
/tibetan.elc \
576 ${lispsource}language
/vietnamese.elc \
577 ${lispsource}language
/misc-lang.el \
578 ${lispsource}language
/utf-8-lang.el \
579 ${lispsource}language
/georgian.el \
580 ${lispsource}language
/khmer.el \
581 ${lispsource}language
/burmese.el \
582 ${lispsource}paths.el \
583 ${lispsource}register.elc \
584 ${lispsource}replace.elc \
585 ${lispsource}simple.elc \
586 ${lispsource}minibuffer.elc \
587 ${lispsource}startup.elc \
588 ${lispsource}subr.elc \
589 ${lispsource}term
/tty-colors.elc \
590 ${lispsource}font-core.elc \
591 ${lispsource}emacs-lisp
/syntax.elc \
592 ${lispsource}font-lock.elc \
593 ${lispsource}jit-lock.elc \
594 ${lispsource}textmodes
/fill.elc \
595 ${lispsource}textmodes
/page.elc \
596 ${lispsource}textmodes
/paragraphs.elc \
597 ${lispsource}textmodes
/text-mode.elc \
598 ${lispsource}emacs-lisp
/timer.elc \
599 ${lispsource}jka-cmpr-hook.elc \
600 ${lispsource}vc-hooks.elc \
601 ${lispsource}ediff-hook.elc \
602 ${lispsource}epa-hook.elc \
608 ${lispsource}widget.elc \
609 ${lispsource}window.elc \
610 ${lispsource}version.el
612 /* List of relative names for those files from
$lisp that are loaded
613 unconditionally
(i.e. on
all platforms
). Files from
$lisp that
614 are only loaded on some platforms should instead be placed in
615 SOME_MACHINE_LISP. The only reason this variable exists is to prevent
616 the make-docfile command-line getting too long for some systems.
*/
618 ..
/lisp
/loaddefs.el \
620 ..
/lisp
/buff-menu.elc \
622 ..
/lisp
/emacs-lisp
/byte-run.elc \
623 ..
/lisp
/composite.elc \
624 ..
/lisp
/cus-face.elc \
625 ..
/lisp
/cus-start.elc \
627 ..
/lisp
/emacs-lisp
/backquote.elc \
628 ..
/lisp
/emacs-lisp
/lisp-mode.elc \
629 ..
/lisp
/emacs-lisp
/lisp.elc \
630 ..
/lisp
/facemenu.elc \
633 ..
/lisp
/emacs-lisp
/float-sup.elc \
638 ..
/lisp
/isearch.elc \
639 ..
/lisp
/rfn-eshadow.elc \
641 ..
/lisp
/bindings.elc \
642 ..
/lisp
/emacs-lisp
/map-ynp.elc \
644 ..
/lisp
/international
/mule.elc \
645 ..
/lisp
/international
/mule-conf.elc \
646 ..
/lisp
/international
/mule-cmds.elc \
647 ..
/lisp
/international
/characters.elc \
648 ..
/lisp
/case-table.elc \
649 ..
/lisp
/language
/chinese.elc \
650 ..
/lisp
/language
/cyrillic.elc \
651 ..
/lisp
/language
/indian.elc \
652 ..
/lisp
/language
/sinhala.el \
653 ..
/lisp
/language
/english.el \
654 ..
/lisp
/language
/ethiopic.elc \
655 ..
/lisp
/language
/european.elc \
656 ..
/lisp
/language
/czech.el \
657 ..
/lisp
/language
/slovak.el \
658 ..
/lisp
/language
/romanian.el \
659 ..
/lisp
/language
/greek.el \
660 ..
/lisp
/language
/hebrew.el \
661 ..
/lisp
/language
/japanese.el \
662 ..
/lisp
/language
/korean.el \
663 ..
/lisp
/language
/lao.el \
664 ..
/lisp
/language
/cham.el \
665 ..
/lisp
/language
/tai-viet.el \
666 ..
/lisp
/language
/thai.el \
667 ..
/lisp
/language
/tibetan.elc \
668 ..
/lisp
/language
/vietnamese.elc \
669 ..
/lisp
/language
/misc-lang.el \
670 ..
/lisp
/language
/utf-8-lang.el \
671 ..
/lisp
/language
/georgian.el \
672 ..
/lisp
/language
/khmer.el \
673 ..
/lisp
/language
/burmese.el \
674 ..
/lisp
/menu-bar.elc \
676 ..
/lisp
/register.elc \
677 ..
/lisp
/replace.elc \
679 ..
/lisp
/minibuffer.elc \
680 ..
/lisp
/startup.elc \
682 ..
/lisp
/term
/tty-colors.elc \
683 ..
/lisp
/font-core.elc \
684 ..
/lisp
/emacs-lisp
/syntax.elc \
685 ..
/lisp
/font-lock.elc \
686 ..
/lisp
/jit-lock.elc \
687 ..
/lisp
/textmodes
/fill.elc \
688 ..
/lisp
/textmodes
/page.elc \
689 ..
/lisp
/textmodes
/paragraphs.elc \
690 ..
/lisp
/textmodes
/text-mode.elc \
691 ..
/lisp
/emacs-lisp
/timer.elc \
692 ..
/lisp
/vc-hooks.elc \
693 ..
/lisp
/jka-cmpr-hook.elc \
694 ..
/lisp
/ediff-hook.elc \
695 ..
/lisp
/epa-hook.elc \
700 /* Like
$shortlisp, but includes only those files from
$lisp that are loaded
701 conditionally
(i.e.
, only on some platforms
).
*/
702 SOME_MACHINE_LISP
= ..
/lisp
/mouse.elc \
703 ..
/lisp
/select.elc ..
/lisp
/scroll-bar.elc \
704 ..
/lisp
/ls-lisp.elc ..
/lisp
/dos-fns.elc \
705 ..
/lisp
/w32-fns.elc ..
/lisp
/dos-w32.elc \
706 ..
/lisp
/disp-table.elc ..
/lisp
/dos-vars.elc \
707 ..
/lisp
/tooltip.elc ..
/lisp
/image.elc \
708 ..
/lisp
/fringe.elc ..
/lisp
/dnd.elc \
709 ..
/lisp
/mwheel.elc ..
/lisp
/tool-bar.elc \
710 ..
/lisp
/x-dnd.elc ..
/lisp
/dynamic-setting.elc \
711 ..
/lisp
/international
/ccl.elc \
712 ..
/lisp
/international
/fontset.elc \
714 ..
/lisp
/term
/common-win.elc \
715 ..
/lisp
/term
/x-win.elc \
716 ..
/lisp
/term
/pc-win.elc ..
/lisp
/term
/internal.elc \
717 ..
/lisp
/term
/ns-win.elc ..
/lisp
/term
/w32-win.elc \
718 ..
/lisp
/emacs-lisp
/easymenu.elc
720 /* Construct full set of libraries to be linked.
721 Note that SunOS needs
-lm to come before
-lc
; otherwise
, you
get
722 duplicated symbols. If the standard libraries were compiled
723 with GCC
, we might need gnulib again after them.
*/
725 LIBES
= $(LOADLIBES
) $(LIBS
) $(LIBX
) $(LIBSOUND
) $(RSVG_LIBS
) $(DBUS_LIBS
) \
726 @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_TERMCAP \
727 $(GETLOADAVG_LIBS
) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \
728 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
729 $(GNULIB_VAR
) @LIB_MATH@ LIB_STANDARD
$(GNULIB_VAR
)
731 all: emacs
${EXEEXT} $(OTHER_FILES
)
733 emacs
${EXEEXT}: temacs
${EXEEXT} ${etc}DOC
${lisp}
736 ln temacs
${EXEEXT} emacs
${EXEEXT}
737 -EMACSLOADPATH
=${lispsource} .
/emacs
-q
-batch
-f list-load-path-shadows
739 LC_ALL
=C
$(RUN_TEMACS
) -batch
-l loadup dump
740 @
: This new Emacs is
as functional and more efficient then
741 @
: bootstrap-emacs
, so let us replace it.
742 -ln
-f emacs
${EXEEXT} bootstrap-emacs
${EXEEXT}
743 -.
/emacs
-q
-batch
-f list-load-path-shadows
744 #endif /* ! defined (CANNOT_DUMP) */
746 /* We run make-docfile twice because the command line may
get too long
748 /* ${SOME_MACHINE_OBJECTS} comes before
${obj} because some files may
749 or may not be included in
${obj}, but they are always included in
750 ${SOME_MACHINE_OBJECTS}. Since a file is processed when it is mentioned
751 for the first time
, this prevents any variation between configurations
752 in the contents of the DOC file.
753 Likewise for
${SOME_MACHINE_LISP}.
*/
754 /* Most of this Makefile refers to Lisp files via
${lispsource}, so
755 we also use
${lisp} rather than
${shortlisp} for the dependency since
756 the Makefile uses string equality to decide when we talk about identical
757 files. Apparently we pass
${shortlisp} rather than
${lisp} to make-docfile
758 only in order to reduce the command line length.
--Stef
*/
759 ${etc}DOC
: ${libsrc}make-docfile
${EXEEXT} ${obj} ${lisp} ${SOME_MACHINE_LISP}
761 ${libsrc}make-docfile
-d
${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
762 ${libsrc}make-docfile
-a
${etc}DOC
-d
${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
764 ${libsrc}make-docfile
${EXEEXT}:
765 cd
${libsrc}; ${MAKE} ${MFLAGS} make-docfile
${EXEEXT}
768 echo
"#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h
770 temacs
${EXEEXT}: $(LOCALCPP
) $(STARTFILES
) stamp-oldxmenu
${obj} ${otherobj} prefix-args
${EXEEXT}
771 #ifdef NS_IMPL_GNUSTEP
772 $(CC
) -rdynamic YMF_PASS_LDFLAGS
( ${TEMACS_LDFLAGS} \
773 -L@GNUSTEP_SYSTEM_LIBRARIES@
-lgnustep-gui
-lgnustep-base \
774 -lobjc
$(CONFIG_SYSTEM_LIBS
) -lpthread
) -o temacs \
775 ${obj} ${otherobj} ${LIBES}
777 $(LD
) YMF_PASS_LDFLAGS
(${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS
) \
778 -o temacs
${STARTFILES} ${obj} ${otherobj} \
782 /* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
783 often contain options that have to do with using Emacs
''s crt0
,
784 which are only good with temacs.
*/
785 prefix-args
${EXEEXT}: prefix-args.o
$(config_h
)
786 $(CC
) $(LDFLAGS
) prefix-args.o
-o prefix-args
788 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK)
790 /* We use stamp-xmenu with these two deps
791 to both ensure that lwlib gets remade based on its dependencies
793 and remake temacs if lwlib gets changed by this.
*/
794 stamp-oldxmenu
: ${OLDXMENU} ..
/src
/$(OLDXMENU
)
796 /* Supply an ordering for parallel make.
*/
797 ..
/src
/$(OLDXMENU
): ${OLDXMENU}
800 $(OLDXMENU
): really-lwlib
803 cd
${lwlibdir}; ${MAKE} ${MFLAGS} \
804 CC
='${CC}' CFLAGS
='${CFLAGS}' MAKE
='${MAKE}'
805 @true
/* make
-t should not create really-lwlib.
*/
807 #else /* not USE_X_TOOLKIT */
808 $(OLDXMENU
): really-oldXMenu
811 cd
${oldXMenudir}; ${MAKE} ${MFLAGS} \
812 CC
='${CC}' CFLAGS
='${CFLAGS}' MAKE
='${MAKE}'
813 @true
/* make
-t should not create really-oldXMenu.
*/
814 .PHONY
: really-oldXMenu
815 #endif /* not USE_X_TOOLKIT */
816 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! USE_GTK) */
818 /* We don
''t really need this
, but satisfy the dependency.
*/
821 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! USE_GTK) */
823 ..
/config.status
:: epaths.in
824 @echo
"The file epaths.h needs to be set up from epaths.in."
825 @echo
"Please run the `configure' script again."
828 ..
/config.status
:: config.in
829 @echo
"The file config.h needs to be set up from config.in."
830 @echo
"Please run the `configure' script again."
833 ecrt0.o
: ecrt0.c
$(config_h
)
835 @
-test -d deps || mkdir deps
837 $(CC
) -c
$(ALL_CFLAGS
) ${srcdir}/ecrt0.c
842 atimer.o
: atimer.c atimer.h syssignal.h systime.h lisp.h blockinput.h \
844 bidi.o
: bidi.c buffer.h character.h dispextern.h lisp.h
$(config_h
)
845 buffer.o
: buffer.c buffer.h region-cache.h commands.h window.h \
846 $(INTERVALS_H
) blockinput.h atimer.h systime.h character.h \
847 indent.h keyboard.h coding.h keymap.h frame.h lisp.h
$(config_h
)
848 callint.o
: callint.c window.h commands.h buffer.h keymap.h \
849 keyboard.h dispextern.h systime.h coding.h composite.h lisp.h
$(config_h
)
850 callproc.o
: callproc.c epaths.h buffer.h commands.h lisp.h
$(config_h
) \
851 process.h systty.h syssignal.h character.h coding.h ccl.h msdos.h \
852 composite.h w32.h blockinput.h atimer.h systime.h frame.h termhooks.h \
854 casefiddle.o
: casefiddle.c syntax.h commands.h buffer.h character.h \
855 composite.h keymap.h lisp.h
$(config_h
)
856 casetab.o
: casetab.c buffer.h character.h lisp.h
$(config_h
)
857 category.o
: category.c category.h buffer.h charset.h keymap.h \
858 character.h lisp.h
$(config_h
)
859 ccl.o
: ccl.c ccl.h charset.h character.h coding.h composite.h lisp.h
$(config_h
)
860 character.o
: character.c character.h buffer.h charset.h composite.h disptab.h \
862 charset.o
: charset.c charset.h character.h buffer.h coding.h composite.h \
863 disptab.h lisp.h
$(config_h
)
864 chartab.o
: charset.h character.h ccl.h lisp.h
$(config_h
)
865 coding.o
: coding.c coding.h ccl.h buffer.h character.h charset.h composite.h \
866 window.h dispextern.h frame.h termhooks.h lisp.h
$(config_h
)
867 cm.o
: cm.c frame.h cm.h termhooks.h termchar.h dispextern.h lisp.h
$(config_h
)
868 cmds.o
: cmds.c syntax.h buffer.h character.h commands.h window.h lisp.h
$(config_h
) \
869 msdos.h dispextern.h keyboard.h keymap.h systime.h coding.h frame.h \
871 pre-crt0.o
: pre-crt0.c
872 dbusbind.o
: dbusbind.c termhooks.h frame.h keyboard.h lisp.h
$(config_h
)
873 dired.o
: dired.c commands.h buffer.h lisp.h
$(config_h
) character.h charset.h \
874 coding.h regex.h systime.h blockinput.h atimer.h composite.h
875 dispnew.o
: dispnew.c systime.h commands.h process.h frame.h coding.h \
876 window.h buffer.h termchar.h termopts.h termhooks.h cm.h \
877 disptab.h indent.h
$(INTERVALS_H
) \
878 xterm.h blockinput.h atimer.h character.h msdos.h keyboard.h \
879 syssignal.h lisp.h
$(config_h
)
880 doc.o
: doc.c lisp.h
$(config_h
) epaths.h buffer.h keyboard.h keymap.h \
881 character.h systime.h coding.h composite.h
882 doprnt.o
: doprnt.c character.h lisp.h
$(config_h
)
883 dosfns.o
: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \
884 msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \
886 editfns.o
: editfns.c window.h buffer.h systime.h
$(INTERVALS_H
) character.h \
887 coding.h frame.h blockinput.h atimer.h lisp.h
$(config_h
)
888 emacs.o
: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
889 termhooks.h buffer.h atimer.h systime.h
$(INTERVALS_H
) lisp.h
$(config_h
) \
890 window.h dispextern.h keyboard.h keymap.h frame.h coding.h
891 fileio.o
: fileio.c window.h buffer.h systime.h
$(INTERVALS_H
) character.h \
892 coding.h msdos.h blockinput.h atimer.h lisp.h
$(config_h
) frame.h commands.h
893 filelock.o
: filelock.c buffer.h character.h coding.h systime.h composite.h \
895 filemode.o
: filemode.c
$(config_h
)
896 frame.o
: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
897 blockinput.h atimer.h systime.h buffer.h character.h fontset.h font.h \
898 msdos.h dosfns.h dispextern.h w32term.h termchar.h coding.h composite.h \
899 lisp.h
$(config_h
) termhooks.h ccl.h
900 fringe.o
: fringe.c dispextern.h frame.h window.h buffer.h termhooks.h \
901 blockinput.h atimer.h systime.h lisp.h
$(config_h
)
902 font.o
: font.c dispextern.h frame.h window.h ccl.h character.h charset.h \
903 font.h lisp.h
$(config_h
) buffer.h composite.h fontset.h xterm.h
904 ftfont.o
: dispextern.h frame.h character.h charset.h composite.h font.h \
905 lisp.h
$(config_h
) blockinput.h atimer.h systime.h coding.h fontset.h \
907 fontset.o
: fontset.c fontset.h ccl.h buffer.h character.h \
908 charset.h frame.h keyboard.h termhooks.h font.h lisp.h
$(config_h
) \
909 blockinput.h atimer.h systime.h coding.h
$(INTERVALS_H
) window.h xterm.h
910 getloadavg.o
: getloadavg.c
$(config_h
)
911 gtkutil.o
: gtkutil.c gtkutil.h xterm.h lisp.h frame.h lisp.h
$(config_h
) \
912 blockinput.h window.h atimer.h systime.h termhooks.h keyboard.h \
913 charset.h coding.h syssignal.h dispextern.h composite.h
914 image.o
: image.c frame.h window.h dispextern.h blockinput.h atimer.h \
915 systime.h xterm.h w32term.h w32gui.h font.h epaths.h character.h coding.h \
916 nsterm.h nsgui.h lisp.h
$(config_h
) composite.h termhooks.h ccl.h
917 indent.o
: indent.c frame.h window.h indent.h buffer.h lisp.h
$(config_h
) termchar.h \
918 termopts.h disptab.h region-cache.h character.h category.h \
919 keyboard.h systime.h coding.h
$(INTERVALS_H
)
920 insdel.o
: insdel.c window.h buffer.h
$(INTERVALS_H
) blockinput.h character.h \
921 dispextern.h atimer.h systime.h region-cache.h lisp.h
$(config_h
)
922 keyboard.o
: keyboard.c termchar.h termhooks.h termopts.h buffer.h character.h \
923 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
924 systime.h syntax.h
$(INTERVALS_H
) blockinput.h atimer.h composite.h \
925 xterm.h puresize.h msdos.h keymap.h w32term.h nsterm.h coding.h \
927 keymap.o
: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
928 atimer.h systime.h puresize.h character.h charset.h
$(INTERVALS_H
) keymap.h window.h \
929 coding.h frame.h lisp.h
$(config_h
)
930 lastfile.o
: lastfile.c
$(config_h
)
931 macros.o
: macros.c window.h buffer.h commands.h macros.h keyboard.h \
932 dispextern.h lisp.h
$(config_h
) systime.h coding.h composite.h
933 gmalloc.o
: gmalloc.c
$(config_h
)
934 ralloc.o
: ralloc.c lisp.h
$(config_h
)
935 vm-limit.o
: vm-limit.c mem-limits.h lisp.h
$(config_h
)
936 marker.o
: marker.c buffer.h character.h lisp.h
$(config_h
)
937 md5.o
: md5.c md5.h
$(config_h
)
938 minibuf.o
: minibuf.c syntax.h frame.h window.h keyboard.h systime.h \
939 buffer.h commands.h character.h msdos.h
$(INTERVALS_H
) keymap.h \
940 termhooks.h lisp.h
$(config_h
) coding.h
941 mktime.o
: mktime.c
$(config_h
)
942 msdos.o
: msdos.c msdos.h dosfns.h systime.h termhooks.h dispextern.h frame.h \
943 termopts.h termchar.h character.h coding.h ccl.h disptab.h window.h \
944 keyboard.h
$(INTERVALS_H
) buffer.h commands.h blockinput.h atimer.h lisp.h
$(config_h
)
945 nsfns.o
: nsfns.m charset.h nsterm.h nsgui.h frame.h window.h buffer.h \
946 dispextern.h nsgui.h fontset.h
$(INTERVALS_H
) keyboard.h blockinput.h \
947 atimer.h systime.h epaths.h termhooks.h coding.h systime.h lisp.h
$(config_h
)
948 nsfont.o
: nsterm.h dispextern.h frame.h lisp.h lisp.h
$(config_h
)
949 nsimage.o
: nsimage.m nsterm.h lisp.h
$(config_h
)
950 nsmenu.o
: nsmenu.m termhooks.h frame.h window.h dispextern.h \
951 nsgui.h keyboard.h blockinput.h atimer.h systime.h buffer.h \
952 nsterm.h lisp.h
$(config_h
)
953 nsterm.o
: nsterm.m blockinput.h atimer.h systime.h syssignal.h nsterm.h \
954 nsgui.h frame.h charset.h ccl.h dispextern.h fontset.h termhooks.h \
955 termopts.h termchar.h disptab.h buffer.h window.h keyboard.h \
956 $(INTERVALS_H
) process.h coding.h lisp.h
$(config_h
)
957 nsselect.o
: nsselect.m blockinput.h nsterm.h nsgui.h frame.h lisp.h
$(config_h
)
958 process.o
: process.c process.h buffer.h window.h termhooks.h termopts.h \
959 commands.h syssignal.h systime.h systty.h syswait.h frame.h dispextern.h \
960 blockinput.h atimer.h charset.h coding.h ccl.h msdos.h composite.h \
961 keyboard.h lisp.h
$(config_h
) character.h xgselect.h sysselect.h
962 regex.o
: regex.c syntax.h buffer.h lisp.h
$(config_h
) regex.h category.h character.h
963 region-cache.o
: region-cache.c buffer.h region-cache.h lisp.h
$(config_h
)
964 scroll.o
: scroll.c termchar.h dispextern.h frame.h msdos.h keyboard.h \
965 termhooks.h lisp.h
$(config_h
) systime.h coding.h composite.h window.h
966 search.o
: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
967 blockinput.h atimer.h systime.h category.h character.h charset.h \
970 sound.o
: sound.c dispextern.h syssignal.h lisp.h
$(config_h
) atimer.h systime.h
971 strftime.o
: strftime.c
$(config_h
)
972 syntax.o
: syntax.c syntax.h buffer.h commands.h category.h character.h \
973 keymap.h regex.h
$(INTERVALS_H
) lisp.h
$(config_h
)
974 sysdep.o
: sysdep.c syssignal.h systty.h systime.h syswait.h blockinput.h \
975 process.h dispextern.h termhooks.h termchar.h termopts.h coding.h \
976 frame.h atimer.h window.h msdos.h dosfns.h keyboard.h cm.h lisp.h
$(config_h
) \
978 term.o
: term.c termchar.h termhooks.h termopts.h lisp.h
$(config_h
) cm.h frame.h \
979 disptab.h keyboard.h character.h charset.h coding.h ccl.h xterm.h \
980 msdos.h window.h keymap.h blockinput.h atimer.h systime.h systty.h \
981 syssignal.h
$(INTERVALS_H
) buffer.h
982 termcap.o
: termcap.c lisp.h
$(config_h
)
983 terminal.o
: terminal.c frame.h termchar.h termhooks.h charset.h coding.h \
984 keyboard.h lisp.h
$(config_h
) dispextern.h composite.h systime.h
985 terminfo.o
: terminfo.c lisp.h
$(config_h
)
986 tparam.o
: tparam.c lisp.h
$(config_h
)
987 undo.o
: undo.c buffer.h commands.h window.h dispextern.h lisp.h
$(config_h
)
988 unexaix.o
: unexaix.c lisp.h
$(config_h
)
989 unexalpha.o
: unexalpha.c
$(config_h
)
990 unexcw.o
: unexcw.c lisp.h
$(config_h
)
991 unexec.o
: unexec.c lisp.h
$(config_h
)
992 unexelf.o
: unexelf.c
$(config_h
)
993 unexhp9k800.o
: unexhp9k800.c
$(config_h
)
994 unexmacosx.o
: unexmacosx.c
$(config_h
)
995 unexsol.o
: unexsol.c lisp.h
$(config_h
)
996 unexw32.o
: unexw32.c
$(config_h
)
997 w16select.o
: w16select.c dispextern.h frame.h blockinput.h atimer.h systime.h \
998 msdos.h buffer.h charset.h coding.h composite.h lisp.h
$(config_h
)
999 widget.o
: widget.c xterm.h frame.h dispextern.h widgetprv.h \
1000 $(srcdir)/..
/lwlib
/lwlib.h lisp.h
$(config_h
)
1001 window.o
: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
1002 disptab.h keyboard.h msdos.h coding.h termhooks.h \
1003 keymap.h blockinput.h atimer.h systime.h
$(INTERVALS_H
) \
1004 xterm.h w32term.h nsterm.h lisp.h
$(config_h
)
1005 xdisp.o
: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h \
1006 coding.h termchar.h frame.h window.h disptab.h termhooks.h character.h \
1007 charset.h lisp.h
$(config_h
) keyboard.h
$(INTERVALS_H
) region-cache.h xterm.h \
1008 w32term.h nsterm.h msdos.h composite.h fontset.h ccl.h \
1009 blockinput.h atimer.h systime.h keymap.h font.h
1010 xfaces.o
: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
1011 window.h character.h charset.h msdos.h dosfns.h composite.h atimer.h \
1012 systime.h keyboard.h fontset.h w32term.h nsterm.h coding.h ccl.h \
1013 $(INTERVALS_H
) termchar.h termhooks.h font.h lisp.h
$(config_h
)
1014 xfns.o
: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \
1015 $(srcdir)/..
/lwlib
/lwlib.h blockinput.h atimer.h systime.h epaths.h \
1016 character.h charset.h coding.h gtkutil.h lisp.h
$(config_h
) termhooks.h \
1017 fontset.h termchar.h font.h xsettings.h
$(INTERVALS_H
) ccl.h
1018 xfont.o
: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1019 font.h lisp.h
$(config_h
) atimer.h systime.h fontset.h ccl.h
1020 xftfont.o
: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1021 font.h lisp.h
$(config_h
) atimer.h systime.h fontset.h ccl.h ftfont.h
1022 ftxfont.o
: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1023 font.h lisp.h
$(config_h
) atimer.h systime.h fontset.h ccl.h
1024 menu.o
: menu.c lisp.h keyboard.h keymap.h frame.h termhooks.h blockinput.h \
1025 dispextern.h
$(srcdir)/..
/lwlib
/lwlib.h xterm.h gtkutil.h menu.h \
1026 lisp.h
$(config_h
) systime.h coding.h composite.h window.h atimer.h
1027 xmenu.o
: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \
1028 charset.h keyboard.h
$(srcdir)/..
/lwlib
/lwlib.h blockinput.h atimer.h \
1029 systime.h gtkutil.h msdos.h coding.h menu.h lisp.h
$(config_h
) composite.h \
1030 keymap.h sysselect.h
1031 xterm.o
: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \
1032 dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \
1033 keyboard.h emacs-icon.h character.h charset.h ccl.h fontset.h composite.h \
1034 coding.h process.h gtkutil.h font.h fontset.h lisp.h
$(config_h
) \
1035 xsettings.h intervals.h keymap.h xgselect.h sysselect.h
1036 xselect.o
: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \
1037 buffer.h atimer.h systime.h termhooks.h lisp.h
$(config_h
) keyboard.h \
1038 coding.h composite.h
1039 xgselect.o
: xgselect.h systime.h sysselect.h lisp.h
$(config_h
)
1040 xrdb.o
: xrdb.c lisp.h
$(config_h
) epaths.h
1041 xsmfns.o
: xsmfns.c lisp.h
$(config_h
) systime.h sysselect.h termhooks.h xterm.h \
1042 lisp.h termopts.h frame.h dispextern.h
1043 xsettings.o
: xterm.h xsettings.h lisp.h frame.h termhooks.h
$(config_h
) \
1044 dispextern.h keyboard.h systime.h coding.h composite.h blockinput.h atimer.h \
1046 /* The files of Lisp proper
*/
1048 alloc.o
: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h \
1049 keyboard.h blockinput.h atimer.h systime.h character.h lisp.h
$(config_h
) \
1050 $(INTERVALS_H
) termhooks.h
1051 bytecode.o
: bytecode.c buffer.h syntax.h character.h window.h dispextern.h \
1052 frame.h xterm.h lisp.h
$(config_h
)
1053 data.o
: data.c buffer.h puresize.h character.h syssignal.h keyboard.h frame.h \
1054 termhooks.h systime.h coding.h composite.h dispextern.h font.h ccl.h \
1056 eval.o
: eval.c commands.h keyboard.h blockinput.h atimer.h systime.h \
1057 dispextern.h lisp.h
$(config_h
) coding.h composite.h xterm.h
1058 floatfns.o
: floatfns.c syssignal.h lisp.h
$(config_h
)
1059 fns.o
: fns.c commands.h lisp.h
$(config_h
) frame.h buffer.h character.h keyboard.h \
1060 keymap.h window.h dispextern.h
$(INTERVALS_H
) coding.h md5.h \
1061 blockinput.h atimer.h systime.h xterm.h
1062 print.o
: print.c process.h frame.h window.h buffer.h keyboard.h character.h \
1063 lisp.h
$(config_h
) termchar.h
$(INTERVALS_H
) msdos.h termhooks.h \
1064 blockinput.h atimer.h systime.h font.h charset.h coding.h ccl.h
1065 lread.o
: lread.c commands.h keyboard.h buffer.h epaths.h character.h \
1066 charset.h lisp.h
$(config_h
) $(INTERVALS_H
) termhooks.h coding.h msdos.h \
1067 systime.h frame.h blockinput.h atimer.h
1069 /* Text properties support
*/
1070 composite.o
: composite.c buffer.h character.h coding.h font.h ccl.h \
1071 frame.h termhooks.h
$(INTERVALS_H
) window.h lisp.h
$(config_h
)
1072 intervals.o
: intervals.c buffer.h
$(INTERVALS_H
) keyboard.h puresize.h \
1073 keymap.h lisp.h
$(config_h
) systime.h coding.h
1074 textprop.o
: textprop.c buffer.h window.h
$(INTERVALS_H
) \
1077 #endif /* ! AUTO_DEPEND */
1079 /* System-specific programs to be made.
1081 select which of these should be compiled.
*/
1084 /* In fact
, every .o file depends directly or indirectly on dispextern.h
1085 and hence nsgui.h under NS. But the ones that actually use stuff there
1086 are more limited.
*/
1087 dispnew.o font.o fontset.o frame.o fringe.o image.o keyboard.o menu.o \
1088 window.o xdisp.o xfaces.o
: nsgui.h
1090 ${ns_appdir}: ${ns_appsrc}
1092 mkdir
-p
${ns_appdir}
1093 ( cd
${ns_appsrc} ; tar cfh
- .
) |
( cd
${ns_appdir} ; tar xf
- )
1094 ( cd
${ns_appdir} ; for subdir in
`find . -type d ! -name CVS -print` ; do \
1095 chmod a
+rx
$${subdir} ; \
1096 rm -rf
$${subdir}/CVS
; \
1097 rm -f
$${subdir}/.cvsignore
; done
; )
1099 ${ns_appbindir}Emacs
: emacs
${EXEEXT}
1100 mkdir
-p
${ns_appbindir}
1101 cp
-f emacs
${EXEEXT} ${ns_appbindir}Emacs
1103 ns-app
: ${ns_appdir} ${ns_appbindir}Emacs
1105 #endif /* HAVE_NS */
1108 rm -f temacs
${EXEEXT} prefix-args
${EXEEXT} core
*.core \
#* *.o libXMenu11.a liblw.a
1110 rm -f bootstrap-emacs
${EXEEXT} emacs-
${version}${EXEEXT}
1113 rm -f emacs-
*.
*.
*${EXEEXT} emacs
${EXEEXT}
1118 /* bootstrap-clean is used to
clean up just before a bootstrap.
1119 It should remove
all files generated during a compilation
/bootstrap
,
1120 but not things like config.status or TAGS.
*/
1121 bootstrap-clean
: clean
1122 rm -f epaths.h config.h Makefile.c config.stamp stamp-oldxmenu ..
/etc
/DOC-
*
1123 if
test -f .
/.gdbinit
; then \
1124 mv .
/.gdbinit .
/.gdbinit.save
; \
1125 if
test -f
"${srcdir}/.gdbinit"; then
rm -f .
/.gdbinit.save
; \
1126 else mv .
/.gdbinit.save .
/.gdbinit
; fi
; \
1128 /**/# This is used in making a distribution.
1129 /**/# Do not use it on development directories!
1130 distclean: bootstrap-clean
1132 maintainer-clean
: distclean
1133 @echo
"This command is intended for maintainers to use;"
1134 @echo
"it deletes files that may require special tools to rebuild."
1137 -rm -f emacs
${EXEEXT} emacs-
*.
*.
*${EXEEXT} ..
/etc
/DOC
*
1138 extraclean
: distclean
1139 -rm -f
*~ \
#* m/?*~ s/?*~
1141 /* Arrange to make a
tags table TAGS-LISP for ..
/lisp
,
1142 plus TAGS for the C files
, which includes ..
/lisp
/TAGS by reference.
*/
1144 ctagsfiles1
= [xyzXYZ
]*.
[hcm
]
1145 ctagsfiles2
= [a-wA-W
]*.
[hcm
]
1147 TAGS
: $(srcdir)/$(ctagsfiles1
) $(srcdir)/$(ctagsfiles2
)
1148 ..
/lib-src
/etags
--include=TAGS-LISP
--include=${lwlibdir}/TAGS \
1149 --regex
='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
1150 $(srcdir)/$(ctagsfiles1
) $(srcdir)/$(ctagsfiles2
)
1153 $(MAKE
) -f
${lispdir}Makefile TAGS-LISP ETAGS
=..
/lib-src
/etags
1156 (cd
$(lwlibdir
); $(MAKE
) -f
$(lwlibdir
)Makefile
tags ETAGS
=..
/lib-src
/etags
)
1158 tags: TAGS TAGS-LISP
$(lwlibdir
)TAGS
1162 /* Bootstrapping.
*/
1163 /* Bootstrapping right is difficult because of the circular dependencies.
1164 Furthermore
, we have to deal with the fact that many compilation targets
1165 such
as loaddefs.el or
*.elc can typically be produced by any old
1166 Emacs executable
, so we would like to avoid rebuilding them whenever
1167 we build a new Emacs executable.
1168 To solve the circularity
, we use
2 different Emacs executables
,
1169 "emacs" is the main target and
"bootstrap-emacs" is the one used
1170 to build the
*.elc and loaddefs.el files.
1171 To solve the freshness issue
, we used to use a third file
"witness-emacs"
1172 which was used to witness the fact that there is a bootstrap-emacs
1173 executable
, and then have dependencies on witness-emacs rather than
1174 bootstrap-emacs
, but that lead to problems in parallel builds
(because
1175 witness-emacs needed to be free from dependencies
(to avoid rebuilding
1176 it
), so it was compiled in parallel
, leading typically to having
2
1177 processes dumping bootstrap-emacs at the same time
).
1178 So instead
, we replace the witness-emacs dependencies by conditional
1179 bootstrap-dependencies
(via
${BOOTSTRAPEMACS}). Of course
, since we do
1180 not want to rely on GNU Make features
, we have to rely on an external
1181 script to do the conditional part of the dependency
1182 (i.e. see the
${SUBDIR} rule ..
/Makefile.in
).
*/
1186 /* These
suffix rules do not allow additional dependencies
, sadly
, so
1187 instead of adding a
$(BOOTSTRAPEMACS
) dependency here
, we add it
1189 With GNU Make
, we would just say
"%.el : %.elc $(BOOTSTRAPEMACS)" */
1191 @cd ..
/lisp
; $(MAKE
) $(MFLAGS
) compile-onefile \
1192 THEFILE
=$< EMACS
=${bootstrap_exe}
1194 /* Since the .el.elc rule cannot specify an extra dependency
, we do it here.
*/
1195 ${lisp} ${SOME_MACHINE_LISP}: $(BOOTSTRAPEMACS
)
1197 ${lispsource}loaddefs.el
: $(BOOTSTRAPEMACS
)
1198 cd ..
/lisp
; $(MAKE
) $(MFLAGS
) autoloads EMACS
=${bootstrap_exe}
1200 /* Dump an Emacs executable named bootstrap-emacs containing the
1201 files from loadup.el in source form.
*/
1203 bootstrap-emacs
${EXEEXT}: temacs
${EXEEXT}
1204 cd ..
/lisp
; $(MAKE
) $(MFLAGS
) update-subdirs
1206 ln
-f temacs
${EXEEXT} bootstrap-emacs
${EXEEXT}
1208 $(RUN_TEMACS
) --batch
--load loadup bootstrap
1209 mv
-f emacs
${EXEEXT} bootstrap-emacs
${EXEEXT}
1210 #endif /* ! defined (CANNOT_DUMP) */
1211 @
: Compile some files earlier to speed up further compilation.
1212 cd ..
/lisp
; $(MAKE
) $(MFLAGS
) compile-first EMACS
=${bootstrap_exe}
1215 ALLOBJS
=$(STARTFILES
) ${obj} ${otherobj} prefix-args.o
1216 -include $(ALLOBJS
:%.o
=deps
/%.d
)