Move LIBXTR6 from cpp to autoconf.
[bpt/emacs.git] / src / Makefile.in
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.
5
6 # This file is part of GNU Emacs.
7
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.
12
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.
17
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/>.
20
21
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.
25
26 # Don't try to replace the cpp processing using autoconf facilities,
27 # says rms.
28 # Replacing a particular part of the conditionals to work via autoconf
29 # is OK.
30 # Some of the conditionals might be dead now. Finding them and
31 # deleting them would be fine.
32
33
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.
36 srcdir = @srcdir@
37 abs_builddir = @abs_builddir@
38 VPATH = $(srcdir)
39 CC = @CC@
40 CPP = @CPP@
41 CFLAGS = @CFLAGS@
42 CPPFLAGS = @CPPFLAGS@
43 LDFLAGS = @LDFLAGS@
44 LN_S = @LN_S@
45 EXEEXT = @EXEEXT@
46 version = @version@
47 # Substitute an assignment for the MAKE variable, because
48 # BSD doesn't have it as a default.
49 @SET_MAKE@
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.
52 # LIBS = @LIBS@
53 LIBOBJS = @LIBOBJS@
54
55 lispsource = ${srcdir}/../lisp/
56 libsrc = ../lib-src/
57 etc = ../etc/
58 oldXMenudir = ../oldXMenu/
59 lwlibdir = ../lwlib/
60 lispdir = ../lisp/
61
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)
66
67 bootstrap_exe = ${abs_builddir}/bootstrap-emacs${EXEEXT}
68
69 OTHER_FILES = @OTHER_FILES@
70
71 CRT_DIR=@CRT_DIR@
72
73 LIBTIFF=@LIBTIFF@
74 LIBJPEG=@LIBJPEG@
75 LIBPNG=@LIBPNG@
76 LIBGIF=@LIBGIF@
77 LIBXPM=@LIBXPM@
78 XFT_LIBS=@XFT_LIBS@
79
80 DBUS_CFLAGS = @DBUS_CFLAGS@
81 DBUS_LIBS = @DBUS_LIBS@
82 DBUS_OBJ = @DBUS_OBJ@
83
84 GCONF_CFLAGS = @GCONF_CFLAGS@
85 GCONF_LIBS = @GCONF_LIBS@
86
87 GTK_OBJ=@GTK_OBJ@
88
89 LIBXSM=@LIBXSM@
90
91 LIBXTR6=@LIBXTR6@
92
93 XMENU_OBJ=@XMENU_OBJ@
94 XOBJ=@XOBJ@
95
96 TOOLKIT_LIBW=@TOOLKIT_LIBW@
97
98 LIBSOUND= @LIBSOUND@
99 CFLAGS_SOUND= @CFLAGS_SOUND@
100
101 RSVG_LIBS= @RSVG_LIBS@
102 RSVG_CFLAGS= @RSVG_CFLAGS@
103
104 ## widget.o if USE_X_TOOLKIT, otherwise empty.
105 WIDGET_OBJ=@WIDGET_OBJ@
106
107 LIBSELINUX_LIBS = @LIBSELINUX_LIBS@
108
109 INTERVALS_H = dispextern.h intervals.h composite.h
110
111 GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
112
113 RUN_TEMACS = `/bin/pwd`/temacs
114
115 # ========================== start of cpp stuff =======================
116 /* From here on, comments must be done in C syntax. */
117
118 /* just to be sure the sh is used */
119 SHELL=/bin/sh
120
121 #define THIS_IS_MAKEFILE
122 #define NOT_C_CODE
123 #include "config.h"
124
125 #ifdef AUTO_DEPEND
126 DEPFLAGS = -MMD -MF deps/$*.d
127 #endif
128
129 /* Do not let the file name mktime.c get messed up. */
130 #ifdef mktime
131 #undef mktime
132 #endif
133
134 /* Use HAVE_X11 as an alias for X11 in this file
135 to avoid problems with X11 as a subdirectory name
136 in -I and other such options which pass through this file. */
137
138 #ifdef X11
139 #define HAVE_X11
140 #undef X11
141 #endif
142
143 /* On some machines #define register is done in config;
144 do not let it interfere with this file. */
145 #undef register
146
147 /* Some machines do not find the standard C libraries in the usual place. */
148 #ifndef ORDINARY_LINK
149 #ifndef LIB_STANDARD
150 #define LIB_STANDARD -lc
151 #endif
152 #else
153 #ifndef LIB_STANDARD
154 #define LIB_STANDARD
155 #endif
156 #endif
157
158 /* Under GNUstep, putting libc on the link line causes problems. */
159 #ifdef NS_IMPL_GNUSTEP
160 #undef LIB_STANDARD
161 #define LIB_STANDARD
162 #endif
163
164 /* Some s/SYSTEM.h files define this to request special libraries. */
165 #ifndef LIBS_SYSTEM
166 #define LIBS_SYSTEM
167 #endif
168
169 /* Some s/SYSTEM.h files define this to request special switches in ld. */
170 #ifndef LD_SWITCH_SYSTEM
171 #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
172 #define LD_SWITCH_SYSTEM -X
173 #else /* (defined (BSD_SYSTEM) && !defined (COFF)) */
174 #define LD_SWITCH_SYSTEM
175 #endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */
176 #endif /* LD_SWITCH_SYSTEM */
177
178 /* This holds special options for linking temacs
179 that should be used for linking anything else. */
180 #ifndef LD_SWITCH_SYSTEM_TEMACS
181 #define LD_SWITCH_SYSTEM_TEMACS
182 #endif
183
184 /* Some m/MACHINE.h files define this to request special switches in ld. */
185 #ifndef LD_SWITCH_MACHINE
186 #define LD_SWITCH_MACHINE
187 #endif
188
189 /* These macros are for switches specifically related to X Windows. */
190 #ifndef LD_SWITCH_X_SITE
191 #define LD_SWITCH_X_SITE
192 #endif
193
194 STARTFILES = START_FILES
195
196
197 #ifdef NS_IMPL_GNUSTEP
198 /* Pull in stuff from GNUstep-make. */
199 FOUNDATION_LIB=gnu
200 GUI_LIB=gnu
201 include @GNUSTEP_MAKEFILES@/Additional/base.make
202 include @GNUSTEP_MAKEFILES@/Additional/gui.make
203 shared=no
204 #endif
205
206 /* DO NOT use -R. There is a special hack described in lastfile.c
207 which is used instead. Some initialized data areas are modified
208 at initial startup, then labeled as part of the text area when
209 Emacs is dumped for the first time, and never changed again. */
210
211 /* -Demacs is needed to make some files produce the correct version
212 for use in Emacs.
213
214 -DHAVE_CONFIG_H is needed for some other files to take advantage of
215 the information in ``config.h''. */
216
217 /* C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM
218 since it may have -I options that should override those two. */
219 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}
220 ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@
221
222 .SUFFIXES: .m
223 .c.o:
224 #ifdef AUTO_DEPEND
225 @-test -d deps || mkdir deps
226 #endif
227 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
228 .m.o:
229 #ifdef AUTO_DEPEND
230 @-test -d deps || mkdir deps
231 #endif
232 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $<
233
234 #ifdef HAVE_X_WINDOWS
235 #ifdef HAVE_MENUS
236
237 /* The X Menu stuff is present in the X10 distribution, but missing
238 from X11. If we have X10, just use the installed library;
239 otherwise, use our own copy. */
240 #ifdef HAVE_X11
241 #ifdef USE_X_TOOLKIT
242 OLDXMENU=${lwlibdir}liblw.a
243 LIBXMENU= $(OLDXMENU)
244 #else /* not USE_X_TOOLKIT */
245 OLDXMENU= ${oldXMenudir}libXMenu11.a
246 LIBXMENU= $(OLDXMENU)
247 #endif /* not USE_X_TOOLKIT */
248 #else /* not HAVE_X11 */
249 LIBXMENU= -lXMenu
250 #endif /* not HAVE_X11 */
251
252 #else /* not HAVE_MENUS */
253
254 /* Otherwise, do not worry about the menu library at all. */
255 LIBXMENU=
256 #endif /* not HAVE_MENUS */
257
258 #ifdef USE_X_TOOLKIT
259 LIBW=$(TOOLKIT_LIBW)
260
261 #ifndef LIBXMU
262 #define LIBXMU -lXmu
263 #endif
264
265 LIBXT= $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext
266
267 #else /* not USE_X_TOOLKIT */
268
269 #ifdef USE_GTK
270 LIBW=@GTK_LIBS@
271 OLDXMENU=
272 LIBXMENU=
273 #endif /* USE_GTK */
274
275 LIBXT=$(LIBW) $(LIBXSM)
276 #endif /* not USE_X_TOOLKIT */
277
278 #ifdef HAVE_X11
279 X11_LDFLAGS = LD_SWITCH_X_SITE
280 LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) $(LIBTIFF) $(LIBJPEG) $(LIBPNG) $(LIBGIF) $(LIBXPM) -lX11 $(XFT_LIBS)
281 #else /* not HAVE_X11 */
282 LIBX= $(LIBXMENU) LD_SWITCH_X_SITE
283 #endif /* not HAVE_X11 */
284 #endif /* not HAVE_X_WINDOWS */
285
286 #ifndef ORDINARY_LINK
287 /* Fix linking if compiled with GCC. */
288 #ifdef __GNUC__
289
290 #ifdef LINKER
291 #define LINKER_WAS_SPECIFIED
292 #endif
293
294 /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
295 places that are difficult to figure out at make time. Fortunately,
296 these same versions allow you to pass arbitrary flags on to the
297 linker, so there is no reason not to use it as a linker.
298
299 Well, it is not quite perfect. The "-nostdlib" keeps GCC from
300 searching for libraries in its internal directories, so we have to
301 ask GCC explicitly where to find libgcc.a. */
302
303 #ifndef LINKER
304 #define LINKER $(CC) -nostdlib
305 #endif
306
307 #ifndef LIB_GCC
308 /* Ask GCC where to find libgcc.a. */
309 #define LIB_GCC `$(CC) -print-libgcc-file-name`
310 #endif /* not LIB_GCC */
311
312 GNULIB_VAR = LIB_GCC
313
314 #ifndef LINKER_WAS_SPECIFIED
315 /* GCC passes any argument prefixed with -Xlinker directly to the
316 linker. See prefix-args.c for an explanation of why we do not do
317 this with the shell''s ``for'' construct.
318 Note that some people do not have '.' in their paths, so we must
319 use ./prefix-args. */
320 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
321 #else
322 #define YMF_PASS_LDFLAGS(flags) flags
323 #endif
324
325 #else /* not __GNUC__ */
326 GNULIB_VAR =
327
328 #endif /* not __GNUC__ */
329 #endif /* not ORDINARY_LINK */
330
331 #ifdef ORDINARY_LINK
332 LD = $(CC)
333 #else
334 #ifdef LINKER
335 LD=LINKER
336 #else /* not LINKER */
337 LD=ld
338 #endif /* not LINKER */
339 #endif /* not ORDINARY_LINK */
340
341 /* Flags to pass to LD only for temacs. */
342 /* Do not split this line with a backslash. That can cause trouble with
343 some cpps. */
344 TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE
345
346 /* A macro which other sections of Makefile can redefine to munge the
347 flags before they are passed to LD. This is helpful if you have
348 redefined LD to something odd, like "gcc".
349 (The YMF prefix is a holdover from the old name "ymakefile".)
350 */
351 #ifndef YMF_PASS_LDFLAGS
352 #define YMF_PASS_LDFLAGS(flags) flags
353 #endif
354
355 #ifdef MSDOS
356 #ifdef HAVE_X_WINDOWS
357 MSDOS_OBJ = dosfns.o msdos.o xmenu.o
358 #else
359 MSDOS_OBJ = dosfns.o msdos.o w16select.o xmenu.o termcap.o
360 #endif
361 #endif
362
363 #ifdef CYGWIN
364 CYGWIN_OBJ = sheap.o
365 #endif
366
367 #ifdef HAVE_NS
368 ns_appdir=@ns_appdir@/
369 ns_appbindir=@ns_appbindir@/
370 ns_appresdir=@ns_appresdir@/
371 ns_appsrc=@ns_appsrc@
372 /* Object files for NeXTstep */
373 NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
374 fontset.o fringe.o image.o
375 #endif /* HAVE_NS */
376
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 */
388
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)
405
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)
415
416
417 #ifdef TERMINFO
418 /* Used to be -ltermcap here. If your machine needs that,
419 define LIBS_TERMCAP in the m/MACHINE.h file. */
420 #ifndef LIBS_TERMCAP
421 #define LIBS_TERMCAP -lcurses
422 #endif /* LIBS_TERMCAP */
423 termcapobj = terminfo.o
424 #else /* ! defined (TERMINFO) */
425 #ifndef LIBS_TERMCAP
426 #define LIBS_TERMCAP
427 #endif /* LIBS_TERMCAP */
428 termcapobj = tparam.o
429 #endif /* ! defined (TERMINFO) */
430
431
432 #ifndef SYSTEM_MALLOC
433
434 #ifndef DOUG_LEA_MALLOC
435 gmallocobj = gmalloc.o
436 #endif
437
438 #ifdef REL_ALLOC
439 rallocobj = ralloc.o
440 #endif
441
442 mallocobj = $(gmallocobj) $(rallocobj) vm-limit.o
443
444 #endif /* SYSTEM_MALLOC */
445
446
447 /* define otherobj as list of object files that make-docfile
448 should not be told about. */
449 #ifdef CYGWIN
450 /* Cygwin differs because of its unexec(). */
451 otherobj= $(termcapobj) $(gmallocobj) $(rallocobj) lastfile.o vm-limit.o $(WIDGET_OBJ) $(LIBOBJS)
452 #else
453 otherobj= $(termcapobj) lastfile.o $(mallocobj) $(WIDGET_OBJ) $(LIBOBJS)
454 #endif
455
456 #ifdef HAVE_MOUSE
457 #define MOUSE_SUPPORT ${lispsource}mouse.elc \
458 ${lispsource}select.elc ${lispsource}scroll-bar.elc
459 #else
460 #ifdef HAVE_GPM
461 #define MOUSE_SUPPORT ${lispsource}mouse.elc
462 #else
463 #define MOUSE_SUPPORT
464 #endif
465 #endif
466
467 #ifdef MSDOS
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
471
472 #else
473 #define MSDOS_SUPPORT
474 #endif
475
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
483 #else
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
487 #endif
488 #else
489 #define WINDOW_SUPPORT
490 #endif
491
492 #ifdef WINDOWSNT
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
497 #else
498 #define WINNT_SUPPORT
499 #endif
500
501 #ifdef HAVE_WINDOW_SYSTEM
502 #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc
503 #else
504 #define TOOLTIP_SUPPORT
505 #endif
506
507 #ifdef HAVE_NS
508 #define NS_SUPPORT ${lispsource}emacs-lisp/easymenu.elc \
509 ${lispsource}term/ns-win.elc
510 #else
511 #define NS_SUPPORT
512 #endif
513
514 /* This is the platform-specific list of Lisp files loaded into the
515 dumped Emacs. It is arranged like this because it is easier to generate
516 it semi-mechanically from loadup.el this way.
517
518 Note that this list should not include lisp files which might not
519 be present, like site-load.el and site-init.el; this makefile
520 expects them all to be either present or buildable.
521
522 Files which are loaded unconditionally (i.e., on all platforms) should
523 also be in shortlisp. Files which are loaded conditionally (i.e., only
524 on some platforms) should instead be in SOME_MACHINE_LISP. */
525
526 /* Place loaddefs.el first, so it gets generated first, since it is on
527 the critical path (relevant in parallel compilations). */
528
529 lisp= \
530 ${lispsource}loaddefs.el \
531 ${lispsource}abbrev.elc \
532 ${lispsource}buff-menu.elc \
533 ${lispsource}button.elc \
534 ${lispsource}emacs-lisp/byte-run.elc \
535 ${lispsource}composite.elc \
536 ${lispsource}cus-face.elc \
537 ${lispsource}cus-start.elc \
538 ${lispsource}custom.elc \
539 ${lispsource}emacs-lisp/backquote.elc \
540 ${lispsource}emacs-lisp/lisp-mode.elc \
541 ${lispsource}emacs-lisp/lisp.elc \
542 ${lispsource}env.elc \
543 ${lispsource}faces.elc \
544 ${lispsource}files.elc \
545 ${lispsource}format.elc \
546 ${lispsource}facemenu.elc \
547 MOUSE_SUPPORT \
548 ${lispsource}emacs-lisp/float-sup.elc \
549 ${lispsource}frame.elc \
550 ${lispsource}help.elc \
551 ${lispsource}indent.elc \
552 ${lispsource}isearch.elc \
553 ${lispsource}rfn-eshadow.elc \
554 ${lispsource}loadup.el \
555 ${lispsource}bindings.elc \
556 ${lispsource}emacs-lisp/map-ynp.elc \
557 ${lispsource}menu-bar.elc \
558 ${lispsource}international/mule.elc \
559 ${lispsource}international/mule-conf.elc \
560 ${lispsource}international/mule-cmds.elc \
561 ${lispsource}international/characters.elc \
562 ${lispsource}international/charprop.el \
563 ${lispsource}case-table.elc \
564 ${lispsource}language/chinese.elc \
565 ${lispsource}language/cyrillic.elc \
566 ${lispsource}language/indian.elc \
567 ${lispsource}language/sinhala.el \
568 ${lispsource}language/english.el \
569 ${lispsource}language/ethiopic.elc \
570 ${lispsource}language/european.elc \
571 ${lispsource}language/czech.el \
572 ${lispsource}language/slovak.el \
573 ${lispsource}language/romanian.el \
574 ${lispsource}language/greek.el \
575 ${lispsource}language/hebrew.el \
576 ${lispsource}language/japanese.el \
577 ${lispsource}language/korean.el \
578 ${lispsource}language/lao.el \
579 ${lispsource}language/cham.el \
580 ${lispsource}language/tai-viet.el \
581 ${lispsource}language/thai.el \
582 ${lispsource}language/tibetan.elc \
583 ${lispsource}language/vietnamese.elc \
584 ${lispsource}language/misc-lang.el \
585 ${lispsource}language/utf-8-lang.el \
586 ${lispsource}language/georgian.el \
587 ${lispsource}language/khmer.el \
588 ${lispsource}language/burmese.el \
589 ${lispsource}paths.el \
590 ${lispsource}register.elc \
591 ${lispsource}replace.elc \
592 ${lispsource}simple.elc \
593 ${lispsource}minibuffer.elc \
594 ${lispsource}startup.elc \
595 ${lispsource}subr.elc \
596 ${lispsource}term/tty-colors.elc \
597 ${lispsource}font-core.elc \
598 ${lispsource}emacs-lisp/syntax.elc \
599 ${lispsource}font-lock.elc \
600 ${lispsource}jit-lock.elc \
601 ${lispsource}textmodes/fill.elc \
602 ${lispsource}textmodes/page.elc \
603 ${lispsource}textmodes/paragraphs.elc \
604 ${lispsource}textmodes/text-mode.elc \
605 ${lispsource}emacs-lisp/timer.elc \
606 ${lispsource}jka-cmpr-hook.elc \
607 ${lispsource}vc-hooks.elc \
608 ${lispsource}ediff-hook.elc \
609 ${lispsource}epa-hook.elc \
610 TOOLTIP_SUPPORT \
611 MSDOS_SUPPORT \
612 WINNT_SUPPORT \
613 WINDOW_SUPPORT \
614 NS_SUPPORT \
615 ${lispsource}widget.elc \
616 ${lispsource}window.elc \
617 ${lispsource}version.el
618
619 /* List of relative names for those files from $lisp that are loaded
620 unconditionally (i.e. on all platforms). Files from $lisp that
621 are only loaded on some platforms should instead be placed in
622 SOME_MACHINE_LISP. The only reason this variable exists is to prevent
623 the make-docfile command-line getting too long for some systems. */
624 shortlisp= \
625 ../lisp/loaddefs.el \
626 ../lisp/abbrev.elc \
627 ../lisp/buff-menu.elc \
628 ../lisp/button.elc \
629 ../lisp/emacs-lisp/byte-run.elc \
630 ../lisp/composite.elc \
631 ../lisp/cus-face.elc \
632 ../lisp/cus-start.elc \
633 ../lisp/custom.elc \
634 ../lisp/emacs-lisp/backquote.elc \
635 ../lisp/emacs-lisp/lisp-mode.elc \
636 ../lisp/emacs-lisp/lisp.elc \
637 ../lisp/facemenu.elc \
638 ../lisp/faces.elc \
639 ../lisp/files.elc \
640 ../lisp/emacs-lisp/float-sup.elc \
641 ../lisp/format.elc \
642 ../lisp/frame.elc \
643 ../lisp/help.elc \
644 ../lisp/indent.elc \
645 ../lisp/isearch.elc \
646 ../lisp/rfn-eshadow.elc \
647 ../lisp/loadup.el \
648 ../lisp/bindings.elc \
649 ../lisp/emacs-lisp/map-ynp.elc \
650 ../lisp/env.elc \
651 ../lisp/international/mule.elc \
652 ../lisp/international/mule-conf.elc \
653 ../lisp/international/mule-cmds.elc \
654 ../lisp/international/characters.elc \
655 ../lisp/case-table.elc \
656 ../lisp/language/chinese.elc \
657 ../lisp/language/cyrillic.elc \
658 ../lisp/language/indian.elc \
659 ../lisp/language/sinhala.el \
660 ../lisp/language/english.el \
661 ../lisp/language/ethiopic.elc \
662 ../lisp/language/european.elc \
663 ../lisp/language/czech.el \
664 ../lisp/language/slovak.el \
665 ../lisp/language/romanian.el \
666 ../lisp/language/greek.el \
667 ../lisp/language/hebrew.el \
668 ../lisp/language/japanese.el \
669 ../lisp/language/korean.el \
670 ../lisp/language/lao.el \
671 ../lisp/language/cham.el \
672 ../lisp/language/tai-viet.el \
673 ../lisp/language/thai.el \
674 ../lisp/language/tibetan.elc \
675 ../lisp/language/vietnamese.elc \
676 ../lisp/language/misc-lang.el \
677 ../lisp/language/utf-8-lang.el \
678 ../lisp/language/georgian.el \
679 ../lisp/language/khmer.el \
680 ../lisp/language/burmese.el \
681 ../lisp/menu-bar.elc \
682 ../lisp/paths.el \
683 ../lisp/register.elc \
684 ../lisp/replace.elc \
685 ../lisp/simple.elc \
686 ../lisp/minibuffer.elc \
687 ../lisp/startup.elc \
688 ../lisp/subr.elc \
689 ../lisp/term/tty-colors.elc \
690 ../lisp/font-core.elc \
691 ../lisp/emacs-lisp/syntax.elc \
692 ../lisp/font-lock.elc \
693 ../lisp/jit-lock.elc \
694 ../lisp/textmodes/fill.elc \
695 ../lisp/textmodes/page.elc \
696 ../lisp/textmodes/paragraphs.elc \
697 ../lisp/textmodes/text-mode.elc \
698 ../lisp/emacs-lisp/timer.elc \
699 ../lisp/vc-hooks.elc \
700 ../lisp/jka-cmpr-hook.elc \
701 ../lisp/ediff-hook.elc \
702 ../lisp/epa-hook.elc \
703 ../lisp/widget.elc \
704 ../lisp/window.elc \
705 ../lisp/version.el
706
707 /* Like $shortlisp, but includes only those files from $lisp that are loaded
708 conditionally (i.e., only on some platforms). */
709 SOME_MACHINE_LISP = ../lisp/mouse.elc \
710 ../lisp/select.elc ../lisp/scroll-bar.elc \
711 ../lisp/ls-lisp.elc ../lisp/dos-fns.elc \
712 ../lisp/w32-fns.elc ../lisp/dos-w32.elc \
713 ../lisp/disp-table.elc ../lisp/dos-vars.elc \
714 ../lisp/tooltip.elc ../lisp/image.elc \
715 ../lisp/fringe.elc ../lisp/dnd.elc \
716 ../lisp/mwheel.elc ../lisp/tool-bar.elc \
717 ../lisp/x-dnd.elc ../lisp/dynamic-setting.elc \
718 ../lisp/international/ccl.elc \
719 ../lisp/international/fontset.elc \
720 ../lisp/mouse.elc \
721 ../lisp/term/common-win.elc \
722 ../lisp/term/x-win.elc \
723 ../lisp/term/pc-win.elc ../lisp/term/internal.elc \
724 ../lisp/term/ns-win.elc ../lisp/term/w32-win.elc \
725 ../lisp/emacs-lisp/easymenu.elc
726
727 /* Construct full set of libraries to be linked.
728 Note that SunOS needs -lm to come before -lc; otherwise, you get
729 duplicated symbols. If the standard libraries were compiled
730 with GCC, we might need gnulib again after them. */
731
732 LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
733 @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_TERMCAP \
734 $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \
735 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
736 $(GNULIB_VAR) @LIB_MATH@ LIB_STANDARD $(GNULIB_VAR)
737
738 all: emacs${EXEEXT} $(OTHER_FILES)
739
740 emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp}
741 #ifdef CANNOT_DUMP
742 rm -f emacs${EXEEXT}
743 ln temacs${EXEEXT} emacs${EXEEXT}
744 -EMACSLOADPATH=${lispsource} ./emacs -q -batch -f list-load-path-shadows
745 #else
746 LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump
747 @: This new Emacs is as functional and more efficient then
748 @: bootstrap-emacs, so let us replace it.
749 -ln -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
750 -./emacs -q -batch -f list-load-path-shadows
751 #endif /* ! defined (CANNOT_DUMP) */
752
753 /* We run make-docfile twice because the command line may get too long
754 on some systems. */
755 /* ${SOME_MACHINE_OBJECTS} comes before ${obj} because some files may
756 or may not be included in ${obj}, but they are always included in
757 ${SOME_MACHINE_OBJECTS}. Since a file is processed when it is mentioned
758 for the first time, this prevents any variation between configurations
759 in the contents of the DOC file.
760 Likewise for ${SOME_MACHINE_LISP}. */
761 /* Most of this Makefile refers to Lisp files via ${lispsource}, so
762 we also use ${lisp} rather than ${shortlisp} for the dependency since
763 the Makefile uses string equality to decide when we talk about identical
764 files. Apparently we pass ${shortlisp} rather than ${lisp} to make-docfile
765 only in order to reduce the command line length. --Stef */
766 ${etc}DOC: ${libsrc}make-docfile${EXEEXT} ${obj} ${lisp} ${SOME_MACHINE_LISP}
767 -rm -f ${etc}DOC
768 ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
769 ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
770
771 ${libsrc}make-docfile${EXEEXT}:
772 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}
773
774 buildobj.h: Makefile
775 echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h
776
777 temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT}
778 #ifdef NS_IMPL_GNUSTEP
779 $(CC) -rdynamic YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \
780 -L@GNUSTEP_SYSTEM_LIBRARIES@ -lgnustep-gui -lgnustep-base \
781 -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread ) -o temacs \
782 ${obj} ${otherobj} ${LIBES}
783 #else
784 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
785 -o temacs ${STARTFILES} ${obj} ${otherobj} \
786 ${LIBES}
787 #endif
788
789 /* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
790 often contain options that have to do with using Emacs''s crt0,
791 which are only good with temacs. */
792 prefix-args${EXEEXT}: prefix-args.o $(config_h)
793 $(CC) $(LDFLAGS) prefix-args.o -o prefix-args
794
795 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK)
796
797 /* We use stamp-xmenu with these two deps
798 to both ensure that lwlib gets remade based on its dependencies
799 in its own makefile,
800 and remake temacs if lwlib gets changed by this. */
801 stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU)
802 touch stamp-oldxmenu
803 /* Supply an ordering for parallel make. */
804 ../src/$(OLDXMENU): ${OLDXMENU}
805
806 #ifdef USE_X_TOOLKIT
807 $(OLDXMENU): really-lwlib
808
809 really-lwlib:
810 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \
811 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
812 @true /* make -t should not create really-lwlib. */
813 .PHONY: really-lwlib
814 #else /* not USE_X_TOOLKIT */
815 $(OLDXMENU): really-oldXMenu
816
817 really-oldXMenu:
818 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \
819 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
820 @true /* make -t should not create really-oldXMenu. */
821 .PHONY: really-oldXMenu
822 #endif /* not USE_X_TOOLKIT */
823 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! USE_GTK) */
824
825 /* We don''t really need this, but satisfy the dependency. */
826 stamp-oldxmenu:
827 touch stamp-oldxmenu
828 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! USE_GTK) */
829
830 ../config.status:: epaths.in
831 @echo "The file epaths.h needs to be set up from epaths.in."
832 @echo "Please run the `configure' script again."
833 exit 1
834
835 ../config.status:: config.in
836 @echo "The file config.h needs to be set up from config.in."
837 @echo "Please run the `configure' script again."
838 exit 1
839
840 ecrt0.o: ecrt0.c $(config_h)
841 #ifdef AUTO_DEPEND
842 @-test -d deps || mkdir deps
843 #endif
844 $(CC) -c $(ALL_CFLAGS) ${srcdir}/ecrt0.c
845 doc.o: buildobj.h
846
847 #ifndef AUTO_DEPEND
848
849 atimer.o: atimer.c atimer.h syssignal.h systime.h lisp.h blockinput.h \
850 $(config_h)
851 bidi.o: bidi.c buffer.h character.h dispextern.h lisp.h $(config_h)
852 buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \
853 $(INTERVALS_H) blockinput.h atimer.h systime.h character.h \
854 indent.h keyboard.h coding.h keymap.h frame.h lisp.h $(config_h)
855 callint.o: callint.c window.h commands.h buffer.h keymap.h \
856 keyboard.h dispextern.h systime.h coding.h composite.h lisp.h $(config_h)
857 callproc.o: callproc.c epaths.h buffer.h commands.h lisp.h $(config_h) \
858 process.h systty.h syssignal.h character.h coding.h ccl.h msdos.h \
859 composite.h w32.h blockinput.h atimer.h systime.h frame.h termhooks.h \
860 buffer.h
861 casefiddle.o: casefiddle.c syntax.h commands.h buffer.h character.h \
862 composite.h keymap.h lisp.h $(config_h)
863 casetab.o: casetab.c buffer.h character.h lisp.h $(config_h)
864 category.o: category.c category.h buffer.h charset.h keymap.h \
865 character.h lisp.h $(config_h)
866 ccl.o: ccl.c ccl.h charset.h character.h coding.h composite.h lisp.h $(config_h)
867 character.o: character.c character.h buffer.h charset.h composite.h disptab.h \
868 lisp.h $(config_h)
869 charset.o: charset.c charset.h character.h buffer.h coding.h composite.h \
870 disptab.h lisp.h $(config_h)
871 chartab.o: charset.h character.h ccl.h lisp.h $(config_h)
872 coding.o: coding.c coding.h ccl.h buffer.h character.h charset.h composite.h \
873 window.h dispextern.h frame.h termhooks.h lisp.h $(config_h)
874 cm.o: cm.c frame.h cm.h termhooks.h termchar.h dispextern.h lisp.h $(config_h)
875 cmds.o: cmds.c syntax.h buffer.h character.h commands.h window.h lisp.h $(config_h) \
876 msdos.h dispextern.h keyboard.h keymap.h systime.h coding.h frame.h \
877 composite.h
878 pre-crt0.o: pre-crt0.c
879 dbusbind.o: dbusbind.c termhooks.h frame.h keyboard.h lisp.h $(config_h)
880 dired.o: dired.c commands.h buffer.h lisp.h $(config_h) character.h charset.h \
881 coding.h regex.h systime.h blockinput.h atimer.h composite.h
882 dispnew.o: dispnew.c systime.h commands.h process.h frame.h coding.h \
883 window.h buffer.h termchar.h termopts.h termhooks.h cm.h \
884 disptab.h indent.h $(INTERVALS_H) \
885 xterm.h blockinput.h atimer.h character.h msdos.h keyboard.h \
886 syssignal.h lisp.h $(config_h)
887 doc.o: doc.c lisp.h $(config_h) epaths.h buffer.h keyboard.h keymap.h \
888 character.h systime.h coding.h composite.h
889 doprnt.o: doprnt.c character.h lisp.h $(config_h)
890 dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \
891 msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \
892 lisp.h $(config_h)
893 editfns.o: editfns.c window.h buffer.h systime.h $(INTERVALS_H) character.h \
894 coding.h frame.h blockinput.h atimer.h lisp.h $(config_h)
895 emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
896 termhooks.h buffer.h atimer.h systime.h $(INTERVALS_H) lisp.h $(config_h) \
897 window.h dispextern.h keyboard.h keymap.h frame.h coding.h
898 fileio.o: fileio.c window.h buffer.h systime.h $(INTERVALS_H) character.h \
899 coding.h msdos.h blockinput.h atimer.h lisp.h $(config_h) frame.h commands.h
900 filelock.o: filelock.c buffer.h character.h coding.h systime.h composite.h \
901 lisp.h $(config_h)
902 filemode.o: filemode.c $(config_h)
903 frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
904 blockinput.h atimer.h systime.h buffer.h character.h fontset.h font.h \
905 msdos.h dosfns.h dispextern.h w32term.h termchar.h coding.h composite.h \
906 lisp.h $(config_h) termhooks.h ccl.h
907 fringe.o: fringe.c dispextern.h frame.h window.h buffer.h termhooks.h \
908 blockinput.h atimer.h systime.h lisp.h $(config_h)
909 font.o: font.c dispextern.h frame.h window.h ccl.h character.h charset.h \
910 font.h lisp.h $(config_h) buffer.h composite.h fontset.h xterm.h
911 ftfont.o: dispextern.h frame.h character.h charset.h composite.h font.h \
912 lisp.h $(config_h) blockinput.h atimer.h systime.h coding.h fontset.h \
913 ccl.h ftfont.h
914 fontset.o: fontset.c fontset.h ccl.h buffer.h character.h \
915 charset.h frame.h keyboard.h termhooks.h font.h lisp.h $(config_h) \
916 blockinput.h atimer.h systime.h coding.h $(INTERVALS_H) window.h xterm.h
917 getloadavg.o: getloadavg.c $(config_h)
918 gtkutil.o: gtkutil.c gtkutil.h xterm.h lisp.h frame.h lisp.h $(config_h) \
919 blockinput.h window.h atimer.h systime.h termhooks.h keyboard.h \
920 charset.h coding.h syssignal.h dispextern.h composite.h
921 image.o: image.c frame.h window.h dispextern.h blockinput.h atimer.h \
922 systime.h xterm.h w32term.h w32gui.h font.h epaths.h character.h coding.h \
923 nsterm.h nsgui.h lisp.h $(config_h) composite.h termhooks.h ccl.h
924 indent.o: indent.c frame.h window.h indent.h buffer.h lisp.h $(config_h) termchar.h \
925 termopts.h disptab.h region-cache.h character.h category.h \
926 keyboard.h systime.h coding.h $(INTERVALS_H)
927 insdel.o: insdel.c window.h buffer.h $(INTERVALS_H) blockinput.h character.h \
928 dispextern.h atimer.h systime.h region-cache.h lisp.h $(config_h)
929 keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h character.h \
930 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
931 systime.h syntax.h $(INTERVALS_H) blockinput.h atimer.h composite.h \
932 xterm.h puresize.h msdos.h keymap.h w32term.h nsterm.h coding.h \
933 lisp.h $(config_h)
934 keymap.o: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
935 atimer.h systime.h puresize.h character.h charset.h $(INTERVALS_H) keymap.h window.h \
936 coding.h frame.h lisp.h $(config_h)
937 lastfile.o: lastfile.c $(config_h)
938 macros.o: macros.c window.h buffer.h commands.h macros.h keyboard.h \
939 dispextern.h lisp.h $(config_h) systime.h coding.h composite.h
940 gmalloc.o: gmalloc.c $(config_h)
941 ralloc.o: ralloc.c lisp.h $(config_h)
942 vm-limit.o: vm-limit.c mem-limits.h lisp.h $(config_h)
943 marker.o: marker.c buffer.h character.h lisp.h $(config_h)
944 md5.o: md5.c md5.h $(config_h)
945 minibuf.o: minibuf.c syntax.h frame.h window.h keyboard.h systime.h \
946 buffer.h commands.h character.h msdos.h $(INTERVALS_H) keymap.h \
947 termhooks.h lisp.h $(config_h) coding.h
948 mktime.o: mktime.c $(config_h)
949 msdos.o: msdos.c msdos.h dosfns.h systime.h termhooks.h dispextern.h frame.h \
950 termopts.h termchar.h character.h coding.h ccl.h disptab.h window.h \
951 keyboard.h $(INTERVALS_H) buffer.h commands.h blockinput.h atimer.h lisp.h $(config_h)
952 nsfns.o: nsfns.m charset.h nsterm.h nsgui.h frame.h window.h buffer.h \
953 dispextern.h nsgui.h fontset.h $(INTERVALS_H) keyboard.h blockinput.h \
954 atimer.h systime.h epaths.h termhooks.h coding.h systime.h lisp.h $(config_h)
955 nsfont.o: nsterm.h dispextern.h frame.h lisp.h lisp.h $(config_h)
956 nsimage.o: nsimage.m nsterm.h lisp.h $(config_h)
957 nsmenu.o: nsmenu.m termhooks.h frame.h window.h dispextern.h \
958 nsgui.h keyboard.h blockinput.h atimer.h systime.h buffer.h \
959 nsterm.h lisp.h $(config_h)
960 nsterm.o: nsterm.m blockinput.h atimer.h systime.h syssignal.h nsterm.h \
961 nsgui.h frame.h charset.h ccl.h dispextern.h fontset.h termhooks.h \
962 termopts.h termchar.h disptab.h buffer.h window.h keyboard.h \
963 $(INTERVALS_H) process.h coding.h lisp.h $(config_h)
964 nsselect.o: nsselect.m blockinput.h nsterm.h nsgui.h frame.h lisp.h $(config_h)
965 process.o: process.c process.h buffer.h window.h termhooks.h termopts.h \
966 commands.h syssignal.h systime.h systty.h syswait.h frame.h dispextern.h \
967 blockinput.h atimer.h charset.h coding.h ccl.h msdos.h composite.h \
968 keyboard.h lisp.h $(config_h) character.h xgselect.h sysselect.h
969 regex.o: regex.c syntax.h buffer.h lisp.h $(config_h) regex.h category.h character.h
970 region-cache.o: region-cache.c buffer.h region-cache.h lisp.h $(config_h)
971 scroll.o: scroll.c termchar.h dispextern.h frame.h msdos.h keyboard.h \
972 termhooks.h lisp.h $(config_h) systime.h coding.h composite.h window.h
973 search.o: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
974 blockinput.h atimer.h systime.h category.h character.h charset.h \
975 $(INTERVALS_H) \
976 lisp.h $(config_h)
977 sound.o: sound.c dispextern.h syssignal.h lisp.h $(config_h) atimer.h systime.h
978 strftime.o: strftime.c $(config_h)
979 syntax.o: syntax.c syntax.h buffer.h commands.h category.h character.h \
980 keymap.h regex.h $(INTERVALS_H) lisp.h $(config_h)
981 sysdep.o: sysdep.c syssignal.h systty.h systime.h syswait.h blockinput.h \
982 process.h dispextern.h termhooks.h termchar.h termopts.h coding.h \
983 frame.h atimer.h window.h msdos.h dosfns.h keyboard.h cm.h lisp.h $(config_h) \
984 composite.h
985 term.o: term.c termchar.h termhooks.h termopts.h lisp.h $(config_h) cm.h frame.h \
986 disptab.h keyboard.h character.h charset.h coding.h ccl.h xterm.h \
987 msdos.h window.h keymap.h blockinput.h atimer.h systime.h systty.h \
988 syssignal.h $(INTERVALS_H) buffer.h
989 termcap.o: termcap.c lisp.h $(config_h)
990 terminal.o: terminal.c frame.h termchar.h termhooks.h charset.h coding.h \
991 keyboard.h lisp.h $(config_h) dispextern.h composite.h systime.h
992 terminfo.o: terminfo.c lisp.h $(config_h)
993 tparam.o: tparam.c lisp.h $(config_h)
994 undo.o: undo.c buffer.h commands.h window.h dispextern.h lisp.h $(config_h)
995 unexaix.o: unexaix.c lisp.h $(config_h)
996 unexalpha.o: unexalpha.c $(config_h)
997 unexcw.o: unexcw.c lisp.h $(config_h)
998 unexec.o: unexec.c lisp.h $(config_h)
999 unexelf.o: unexelf.c $(config_h)
1000 unexhp9k800.o: unexhp9k800.c $(config_h)
1001 unexmacosx.o: unexmacosx.c $(config_h)
1002 unexsol.o: unexsol.c lisp.h $(config_h)
1003 unexw32.o: unexw32.c $(config_h)
1004 w16select.o: w16select.c dispextern.h frame.h blockinput.h atimer.h systime.h \
1005 msdos.h buffer.h charset.h coding.h composite.h lisp.h $(config_h)
1006 widget.o: widget.c xterm.h frame.h dispextern.h widgetprv.h \
1007 $(srcdir)/../lwlib/lwlib.h lisp.h $(config_h)
1008 window.o: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
1009 disptab.h keyboard.h msdos.h coding.h termhooks.h \
1010 keymap.h blockinput.h atimer.h systime.h $(INTERVALS_H) \
1011 xterm.h w32term.h nsterm.h lisp.h $(config_h)
1012 xdisp.o: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h \
1013 coding.h termchar.h frame.h window.h disptab.h termhooks.h character.h \
1014 charset.h lisp.h $(config_h) keyboard.h $(INTERVALS_H) region-cache.h xterm.h \
1015 w32term.h nsterm.h msdos.h composite.h fontset.h ccl.h \
1016 blockinput.h atimer.h systime.h keymap.h font.h
1017 xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
1018 window.h character.h charset.h msdos.h dosfns.h composite.h atimer.h \
1019 systime.h keyboard.h fontset.h w32term.h nsterm.h coding.h ccl.h \
1020 $(INTERVALS_H) termchar.h termhooks.h font.h lisp.h $(config_h)
1021 xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \
1022 $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h epaths.h \
1023 character.h charset.h coding.h gtkutil.h lisp.h $(config_h) termhooks.h \
1024 fontset.h termchar.h font.h xsettings.h $(INTERVALS_H) ccl.h
1025 xfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1026 font.h lisp.h $(config_h) atimer.h systime.h fontset.h ccl.h
1027 xftfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1028 font.h lisp.h $(config_h) atimer.h systime.h fontset.h ccl.h ftfont.h
1029 ftxfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1030 font.h lisp.h $(config_h) atimer.h systime.h fontset.h ccl.h
1031 menu.o: menu.c lisp.h keyboard.h keymap.h frame.h termhooks.h blockinput.h \
1032 dispextern.h $(srcdir)/../lwlib/lwlib.h xterm.h gtkutil.h menu.h \
1033 lisp.h $(config_h) systime.h coding.h composite.h window.h atimer.h
1034 xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \
1035 charset.h keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h \
1036 systime.h gtkutil.h msdos.h coding.h menu.h lisp.h $(config_h) composite.h \
1037 keymap.h sysselect.h
1038 xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \
1039 dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \
1040 keyboard.h emacs-icon.h character.h charset.h ccl.h fontset.h composite.h \
1041 coding.h process.h gtkutil.h font.h fontset.h lisp.h $(config_h) \
1042 xsettings.h intervals.h keymap.h xgselect.h sysselect.h
1043 xselect.o: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \
1044 buffer.h atimer.h systime.h termhooks.h lisp.h $(config_h) keyboard.h \
1045 coding.h composite.h
1046 xgselect.o: xgselect.h systime.h sysselect.h lisp.h $(config_h)
1047 xrdb.o: xrdb.c lisp.h $(config_h) epaths.h
1048 xsmfns.o: xsmfns.c lisp.h $(config_h) systime.h sysselect.h termhooks.h xterm.h \
1049 lisp.h termopts.h frame.h dispextern.h
1050 xsettings.o: xterm.h xsettings.h lisp.h frame.h termhooks.h $(config_h) \
1051 dispextern.h keyboard.h systime.h coding.h composite.h blockinput.h atimer.h \
1052 termopts.h
1053 /* The files of Lisp proper */
1054
1055 alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h \
1056 keyboard.h blockinput.h atimer.h systime.h character.h lisp.h $(config_h) \
1057 $(INTERVALS_H) termhooks.h
1058 bytecode.o: bytecode.c buffer.h syntax.h character.h window.h dispextern.h \
1059 frame.h xterm.h lisp.h $(config_h)
1060 data.o: data.c buffer.h puresize.h character.h syssignal.h keyboard.h frame.h \
1061 termhooks.h systime.h coding.h composite.h dispextern.h font.h ccl.h \
1062 lisp.h $(config_h)
1063 eval.o: eval.c commands.h keyboard.h blockinput.h atimer.h systime.h \
1064 dispextern.h lisp.h $(config_h) coding.h composite.h xterm.h
1065 floatfns.o: floatfns.c syssignal.h lisp.h $(config_h)
1066 fns.o: fns.c commands.h lisp.h $(config_h) frame.h buffer.h character.h keyboard.h \
1067 keymap.h window.h dispextern.h $(INTERVALS_H) coding.h md5.h \
1068 blockinput.h atimer.h systime.h xterm.h
1069 print.o: print.c process.h frame.h window.h buffer.h keyboard.h character.h \
1070 lisp.h $(config_h) termchar.h $(INTERVALS_H) msdos.h termhooks.h \
1071 blockinput.h atimer.h systime.h font.h charset.h coding.h ccl.h
1072 lread.o: lread.c commands.h keyboard.h buffer.h epaths.h character.h \
1073 charset.h lisp.h $(config_h) $(INTERVALS_H) termhooks.h coding.h msdos.h \
1074 systime.h frame.h blockinput.h atimer.h
1075
1076 /* Text properties support */
1077 composite.o: composite.c buffer.h character.h coding.h font.h ccl.h \
1078 frame.h termhooks.h $(INTERVALS_H) window.h lisp.h $(config_h)
1079 intervals.o: intervals.c buffer.h $(INTERVALS_H) keyboard.h puresize.h \
1080 keymap.h lisp.h $(config_h) systime.h coding.h
1081 textprop.o: textprop.c buffer.h window.h $(INTERVALS_H) \
1082 lisp.h $(config_h)
1083
1084 #endif /* ! AUTO_DEPEND */
1085
1086 /* System-specific programs to be made.
1087 OTHER_FILES
1088 select which of these should be compiled. */
1089
1090 #ifdef HAVE_NS
1091 /* In fact, every .o file depends directly or indirectly on dispextern.h
1092 and hence nsgui.h under NS. But the ones that actually use stuff there
1093 are more limited. */
1094 dispnew.o font.o fontset.o frame.o fringe.o image.o keyboard.o menu.o \
1095 window.o xdisp.o xfaces.o: nsgui.h
1096
1097 ${ns_appdir}: ${ns_appsrc}
1098 rm -fr ${ns_appdir}
1099 mkdir -p ${ns_appdir}
1100 ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; tar xf - )
1101 ( cd ${ns_appdir} ; for subdir in `find . -type d ! -name CVS -print` ; do \
1102 chmod a+rx $${subdir} ; \
1103 rm -rf $${subdir}/CVS ; \
1104 rm -f $${subdir}/.cvsignore ; done ; )
1105
1106 ${ns_appbindir}Emacs: emacs${EXEEXT}
1107 mkdir -p ${ns_appbindir}
1108 cp -f emacs${EXEEXT} ${ns_appbindir}Emacs
1109
1110 ns-app: ${ns_appdir} ${ns_appbindir}Emacs
1111
1112 #endif /* HAVE_NS */
1113
1114 mostlyclean:
1115 rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
1116 rm -f ../etc/DOC
1117 rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
1118 rm -f buildobj.h
1119 clean: mostlyclean
1120 rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT}
1121 -rm -rf deps
1122 #ifdef HAVE_NS
1123 rm -fr ${ns_appdir}
1124 #endif
1125 /* bootstrap-clean is used to clean up just before a bootstrap.
1126 It should remove all files generated during a compilation/bootstrap,
1127 but not things like config.status or TAGS. */
1128 bootstrap-clean: clean
1129 rm -f epaths.h config.h Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-*
1130 if test -f ./.gdbinit; then \
1131 mv ./.gdbinit ./.gdbinit.save; \
1132 if test -f "${srcdir}/.gdbinit"; then rm -f ./.gdbinit.save; \
1133 else mv ./.gdbinit.save ./.gdbinit; fi; \
1134 fi
1135 /**/# This is used in making a distribution.
1136 /**/# Do not use it on development directories!
1137 distclean: bootstrap-clean
1138 rm -f Makefile
1139 maintainer-clean: distclean
1140 @echo "This command is intended for maintainers to use;"
1141 @echo "it deletes files that may require special tools to rebuild."
1142 rm -f TAGS
1143 versionclean:
1144 -rm -f emacs${EXEEXT} emacs-*.*.*${EXEEXT} ../etc/DOC*
1145 extraclean: distclean
1146 -rm -f *~ \#* m/?*~ s/?*~
1147
1148 /* Arrange to make a tags table TAGS-LISP for ../lisp,
1149 plus TAGS for the C files, which includes ../lisp/TAGS by reference. */
1150
1151 ctagsfiles1 = [xyzXYZ]*.[hcm]
1152 ctagsfiles2 = [a-wA-W]*.[hcm]
1153
1154 TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
1155 ../lib-src/etags --include=TAGS-LISP --include=${lwlibdir}/TAGS \
1156 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
1157 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
1158 frc:
1159 TAGS-LISP: frc
1160 $(MAKE) -f ${lispdir}Makefile TAGS-LISP ETAGS=../lib-src/etags
1161
1162 $(lwlibdir)TAGS:
1163 (cd $(lwlibdir); $(MAKE) -f $(lwlibdir)Makefile tags ETAGS=../lib-src/etags)
1164
1165 tags: TAGS TAGS-LISP $(lwlibdir)TAGS
1166 .PHONY: tags
1167
1168
1169 /* Bootstrapping. */
1170 /* Bootstrapping right is difficult because of the circular dependencies.
1171 Furthermore, we have to deal with the fact that many compilation targets
1172 such as loaddefs.el or *.elc can typically be produced by any old
1173 Emacs executable, so we would like to avoid rebuilding them whenever
1174 we build a new Emacs executable.
1175 To solve the circularity, we use 2 different Emacs executables,
1176 "emacs" is the main target and "bootstrap-emacs" is the one used
1177 to build the *.elc and loaddefs.el files.
1178 To solve the freshness issue, we used to use a third file "witness-emacs"
1179 which was used to witness the fact that there is a bootstrap-emacs
1180 executable, and then have dependencies on witness-emacs rather than
1181 bootstrap-emacs, but that lead to problems in parallel builds (because
1182 witness-emacs needed to be free from dependencies (to avoid rebuilding
1183 it), so it was compiled in parallel, leading typically to having 2
1184 processes dumping bootstrap-emacs at the same time).
1185 So instead, we replace the witness-emacs dependencies by conditional
1186 bootstrap-dependencies (via ${BOOTSTRAPEMACS}). Of course, since we do
1187 not want to rely on GNU Make features, we have to rely on an external
1188 script to do the conditional part of the dependency
1189 (i.e. see the ${SUBDIR} rule ../Makefile.in). */
1190
1191 .SUFFIXES: .elc .el
1192
1193 /* These suffix rules do not allow additional dependencies, sadly, so
1194 instead of adding a $(BOOTSTRAPEMACS) dependency here, we add it
1195 separately below.
1196 With GNU Make, we would just say "%.el : %.elc $(BOOTSTRAPEMACS)" */
1197 .el.elc:
1198 @cd ../lisp; $(MAKE) $(MFLAGS) compile-onefile \
1199 THEFILE=$< EMACS=${bootstrap_exe}
1200
1201 /* Since the .el.elc rule cannot specify an extra dependency, we do it here. */
1202 ${lisp} ${SOME_MACHINE_LISP}: $(BOOTSTRAPEMACS)
1203
1204 ${lispsource}loaddefs.el: $(BOOTSTRAPEMACS)
1205 cd ../lisp; $(MAKE) $(MFLAGS) autoloads EMACS=${bootstrap_exe}
1206
1207 /* Dump an Emacs executable named bootstrap-emacs containing the
1208 files from loadup.el in source form. */
1209
1210 bootstrap-emacs${EXEEXT}: temacs${EXEEXT}
1211 cd ../lisp; $(MAKE) $(MFLAGS) update-subdirs
1212 #ifdef CANNOT_DUMP
1213 ln -f temacs${EXEEXT} bootstrap-emacs${EXEEXT}
1214 #else
1215 $(RUN_TEMACS) --batch --load loadup bootstrap
1216 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
1217 #endif /* ! defined (CANNOT_DUMP) */
1218 @: Compile some files earlier to speed up further compilation.
1219 cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=${bootstrap_exe}
1220
1221 #ifdef AUTO_DEPEND
1222 ALLOBJS=$(STARTFILES) ${obj} ${otherobj} prefix-args.o
1223 -include $(ALLOBJS:%.o=deps/%.d)
1224 #endif