(ASET): Check bounds.
[emacs.git] / src / Makefile.in
blobbaf41d4af3d18cd85f9ded97e9954200c0d410b5
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
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, or (at your option)
11 # 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; see the file COPYING. If not, write to
20 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 # Boston, MA 02110-1301, USA.
24 # Note that this file is edited by msdos/sed1v2.inp for MSDOS. That
25 # script may need modifying in sync with changes made here. Try to
26 # avoid shell-ism because the DOS build has to use the DOS shell.
28 # Don't try to replace the cpp processing using autoconf facilities,
29 # says rms.
30 # Replacing a particular part of the conditionals to work via autoconf
31 # is OK.
32 # Some of the conditionals might be dead now. Finding them and
33 # deleting them would be fine.
36 # Here are the things that we expect ../configure to edit.
37 # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
38 srcdir=@srcdir@
39 VPATH=@srcdir@
40 CC=@CC@
41 CPP=@CPP@
42 CFLAGS=@CFLAGS@
43 CPPFLAGS=@CPPFLAGS@
44 LDFLAGS=@LDFLAGS@
45 LN_S=@LN_S@
46 EXEEXT=@EXEEXT@
47 version=@version@
48 # Substitute an assignment for the MAKE variable, because
49 # BSD doesn't have it as a default.
50 @SET_MAKE@
51 # Don't use LIBS. configure puts stuff in it that either shouldn't be
52 # linked with Emacs or is duplicated by the cpp stuff below.
53 # LIBS = @LIBS@
54 LIBOBJS = @LIBOBJS@
56 # On Xenix and the IBM RS6000, double-dot gets screwed up.
57 dot = .
58 dotdot = ${dot}${dot}
59 lispsource = ${srcdir}/$(dot)$(dot)/lisp/
60 admindir = $(srcdir)/$(dot)$(dot)/admin/
61 libsrc = $(dot)$(dot)/lib-src/
62 etc = $(dot)$(dot)/etc/
63 oldXMenudir = $(dot)$(dot)/oldXMenu/
64 lwlibdir = $(dot)$(dot)/lwlib/
65 lispdir = $(dot)$(dot)/lisp/
67 # Configuration files for .o files to depend on.
68 M_FILE = ${srcdir}/@machfile@
69 S_FILE = ${srcdir}/@opsysfile@
70 config_h = config.h $(M_FILE) $(S_FILE)
72 # ========================== start of cpp stuff =======================
73 /* From here on, comments must be done in C syntax. */
75 C_SWITCH_SYSTEM=
77 /* just to be sure the sh is used */
78 SHELL=/bin/sh
80 #define THIS_IS_MAKEFILE
81 #define NO_SHORTNAMES
82 #define NOT_C_CODE
83 #include "config.h"
85 /* Do not let the file name mktime.c get messed up. */
86 #ifdef mktime
87 #undef mktime
88 #endif
90 /* Use HAVE_X11 as an alias for X11 in this file
91 to avoid problems with X11 as a subdirectory name
92 in -I and other such options which pass through this file. */
94 #ifdef X11
95 #define HAVE_X11
96 #undef X11
97 #endif
99 /* On some machines #define register is done in config;
100 do not let it interfere with this file. */
101 #undef register
103 /* On some systems we may not be able to use the system make command. */
104 #ifdef MAKE_COMMAND
105 MAKE = MAKE_COMMAND
106 #endif
108 /* GNU libc requires ORDINARY_LINK so that its own crt0 is used.
109 GNU/Linux is an exception because it uses a funny variant of GNU libc. */
110 #ifdef __GNU_LIBRARY__
111 #ifndef GNU_LINUX
112 #define ORDINARY_LINK
113 #endif
114 #endif
116 /* Some machines do not find the standard C libraries in the usual place. */
117 #ifndef ORDINARY_LINK
118 #ifndef LIB_STANDARD
119 #define LIB_STANDARD -lc
120 #endif
121 #else
122 #ifndef LIB_STANDARD
123 #define LIB_STANDARD
124 #endif
125 #endif
127 /* Unless inhibited or changed, use -lg to link for debugging. */
128 #ifndef LIBS_DEBUG
129 #define LIBS_DEBUG -lg
130 #endif
132 /* Some s/SYSTEM.h files define this to request special libraries. */
133 #ifndef LIBS_SYSTEM
134 #define LIBS_SYSTEM
135 #endif
137 /* Some m/MACHINE.h files define this to request special libraries. */
138 #ifndef LIBS_MACHINE
139 #define LIBS_MACHINE
140 #endif
142 #ifndef LIB_MATH
143 # define LIB_MATH -lm
144 #endif /* LIB_MATH */
146 /* Some s/SYSTEM.h files define this to request special switches in ld. */
147 #ifndef LD_SWITCH_SYSTEM
148 #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
149 #define LD_SWITCH_SYSTEM -X
150 #else /* (defined (BSD_SYSTEM) && !defined (COFF)) */
151 #define LD_SWITCH_SYSTEM
152 #endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */
153 #endif /* LD_SWITCH_SYSTEM */
155 /* This holds special options for linking temacs
156 that should be used for linking anything else. */
157 #ifndef LD_SWITCH_SYSTEM_TEMACS
158 #define LD_SWITCH_SYSTEM_TEMACS
159 #endif
161 /* Some s/SYSTEM.h files define this to request special switches
162 for compiling temacs. */
163 #ifndef C_SWITCH_SYSTEM_TEMACS
164 #define C_SWITCH_SYSTEM_TEMACS
165 #endif
167 /* Some m/MACHINE.h files define this to request special switches in ld. */
168 #ifndef LD_SWITCH_MACHINE
169 #define LD_SWITCH_MACHINE
170 #endif
172 /* This holds special options for linking temacs
173 that should be used for linking anything else. */
174 #ifndef LD_SWITCH_MACHINE_TEMACS
175 #define LD_SWITCH_MACHINE_TEMACS
176 #endif
178 /* Some m/MACHINE.h files define this to request special switches in cc. */
179 #ifndef C_SWITCH_MACHINE
180 #define C_SWITCH_MACHINE
181 #endif
183 /* Some s/SYSTEM.h files define this to request special switches in cc. */
184 #ifndef C_SWITCH_SYSTEM
185 #define C_SWITCH_SYSTEM
186 #endif
188 /* These macros are for switches specifically related to X Windows. */
189 #ifndef C_SWITCH_X_MACHINE
190 #define C_SWITCH_X_MACHINE
191 #endif
193 #ifndef C_SWITCH_X_SYSTEM
194 #define C_SWITCH_X_SYSTEM
195 #endif
197 #ifndef C_SWITCH_X_SITE
198 #define C_SWITCH_X_SITE
199 #endif
201 #ifndef LD_SWITCH_X_SITE
202 #define LD_SWITCH_X_SITE
203 #endif
205 #ifndef LD_SWITCH_X_DEFAULT
206 #define LD_SWITCH_X_DEFAULT
207 #endif
209 /* These can be passed in from config.h to define special load and
210 compile switches needed by individual sites */
211 #ifndef LD_SWITCH_SITE
212 #define LD_SWITCH_SITE
213 #endif
215 #ifndef C_SWITCH_SITE
216 #define C_SWITCH_SITE
217 #endif
219 #ifndef ORDINARY_LINK
221 #ifndef CRT0_COMPILE
222 #define CRT0_COMPILE $(CC) -c $(ALL_CFLAGS)
223 #endif
225 #ifndef START_FILES
226 #ifdef NO_REMAP
227 #define START_FILES pre-crt0.o /lib/crt0.o
228 #else /* ! defined (NO_REMAP) */
229 #define START_FILES ecrt0.o
230 #endif /* ! defined (NO_REMAP) */
231 #endif /* START_FILES */
232 STARTFILES = START_FILES
234 #else /* ORDINARY_LINK */
236 /* config.h might want to force START_FILES anyway */
237 #ifdef START_FILES
238 STARTFILES = START_FILES
239 #endif /* START_FILES */
241 #endif /* not ORDINARY_LINK */
244 #if HAVE_GTK
245 #define USE_GTK
246 TOOLKIT_DEFINES = -DUSE_GTK
247 #endif
249 #ifdef USE_X_TOOLKIT
250 #define USE_@X_TOOLKIT_TYPE@
251 TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@
252 #else
253 #ifndef USE_GTK
254 TOOLKIT_DEFINES =
255 #endif
256 #endif
258 #ifdef HAVE_DBUS
259 DBUS_CFLAGS = @DBUS_CFLAGS@
260 DBUS_LIBS = @DBUS_LIBS@
261 DBUS_OBJ = dbusbind.o
262 #endif
264 /* DO NOT use -R. There is a special hack described in lastfile.c
265 which is used instead. Some initialized data areas are modified
266 at initial startup, then labeled as part of the text area when
267 Emacs is dumped for the first time, and never changed again. */
269 /* -Demacs is needed to make some files produce the correct version
270 for use in Emacs.
272 -DHAVE_CONFIG_H is needed for some other files to take advantage of
273 the information in ``config.h''. */
275 /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
276 since it may have -I options that should override those two. */
277 ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@
278 .c.o:
279 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
281 #ifndef LIBX11_SYSTEM
282 #define LIBX11_SYSTEM
283 #endif
285 #ifndef LIB_X11_LIB
286 #define LIB_X11_LIB -lX11
287 #endif
289 /* xmenu.c should not be compiled on OSX. */
290 #ifndef HAVE_CARBON
291 XMENU_OBJ = xmenu.o
292 #endif
294 #ifdef HAVE_X_WINDOWS
296 XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o
298 #ifdef HAVE_MENUS
300 #ifdef USE_GTK
301 GTK_OBJ= gtkutil.o
302 #endif
304 /* The X Menu stuff is present in the X10 distribution, but missing
305 from X11. If we have X10, just use the installed library;
306 otherwise, use our own copy. */
307 #ifdef HAVE_X11
308 #ifdef USE_X_TOOLKIT
309 OLDXMENU=${lwlibdir}liblw.a
310 LIBXMENU= $(OLDXMENU)
311 #else /* not USE_X_TOOLKIT */
312 OLDXMENU= ${oldXMenudir}libXMenu11.a
313 LIBXMENU= $(OLDXMENU)
314 #endif /* not USE_X_TOOLKIT */
315 #else /* not HAVE_X11 */
316 LIBXMENU= -lXMenu
317 #endif /* not HAVE_X11 */
319 #else /* not HAVE_MENUS */
321 /* Otherwise, do not worry about the menu library at all. */
322 LIBXMENU=
323 #endif /* not HAVE_MENUS */
325 #ifdef USE_X_TOOLKIT
326 #define @X_TOOLKIT_TYPE@
327 #if defined (LUCID) || defined (ATHENA)
328 #if HAVE_XAW3D
329 LIBW= -lXaw3d
330 #else
331 LIBW= -lXaw
332 #endif
333 #endif
334 #ifdef MOTIF
335 #if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP)
336 #define LIB_MOTIF_EXTRA -lXp
337 #else
338 #define LIB_MOTIF_EXTRA
339 #endif
340 #ifdef LIB_MOTIF
341 LIBW= LIB_MOTIF LIB_MOTIF_EXTRA
342 #else
343 LIBW= -lXm LIB_MOTIF_EXTRA
344 #endif
345 #endif
346 #ifdef OPEN_LOOK
347 LIBW= -lXol
348 #endif
350 #ifdef HAVE_X11XTR6
351 #ifdef NEED_LIBW
352 LIBXTR6 = -lSM -lICE -lw
353 #else
354 LIBXTR6 = -lSM -lICE
355 #endif
356 #endif
358 #ifndef LIBXMU
359 #define LIBXMU -lXmu
360 #endif
362 #ifdef LIBXT_STATIC
363 /* We assume the config files have defined STATIC_OPTION
364 since that might depend on the operating system.
365 (Do not forget you need different definitions with and without __GNUC__.) */
366 LIBXT= STATIC_OPTION $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext DYNAMIC_OPTION
367 #else /* not LIBXT_STATIC */
368 LIBXT= $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext
369 #endif /* not LIBXT_STATIC */
371 #else /* not USE_X_TOOLKIT */
373 #ifdef USE_GTK
374 LIBW=@GTK_LIBS@
375 OLDXMENU=
376 LIBXMENU=
377 #endif /* USE_GTK */
379 #ifdef HAVE_X_SM
380 LIBXT=$(LIBW) -lSM -lICE
381 #else
382 LIBXT=$(LIBW)
383 #endif
384 #endif /* not USE_X_TOOLKIT */
386 #if HAVE_XFT
387 XFT_LIBS=@XFT_LIBS@
388 #endif /* HAVE_XFT */
390 #if HAVE_XPM
391 #ifndef LIBXPM
392 #define LIBXPM -lXpm
393 #endif /* not defined LIBXPM */
394 #else /* not HAVE_XPM */
395 #define LIBXPM
396 #endif /* not HAVE_XPM */
398 #if HAVE_JPEG
399 #ifndef LIBJPEG
400 #define LIBJPEG -ljpeg
401 #endif /* not defined LIBJPEG */
402 #else /* not HAVE_JPEG */
403 #define LIBJPEG
404 #endif /* not HAVE_JPEG */
406 #if HAVE_PNG
407 #ifndef LIBPNG
408 #define LIBPNG -lpng -lz -lm
409 #endif /* not defined LIBPNG */
410 #else /* not HAVE_PNG */
411 #define LIBPNG
412 #endif /* not HAVE_PNG */
414 #if HAVE_TIFF
415 #ifndef LIBTIFF
416 #define LIBTIFF -ltiff
417 #endif /* not defined LIBTIFF */
418 #else /* not HAVE_TIFF */
419 #define LIBTIFF
420 #endif /* not HAVE_TIFF */
422 #if HAVE_GIF
423 #ifndef LIBGIF
424 #define LIBGIF -lgif
425 #endif /* not defined LIBGIF */
426 #else /* not HAVE_GIF */
427 #define LIBGIF
428 #endif /* not HAVE_GIF */
430 #ifdef HAVE_X11
431 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies
432 options for where to find X libraries, but before those libraries. */
433 X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT
434 LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_SYSTEM $(XFT_LIBS)
435 #else /* not HAVE_X11 */
436 LIBX= $(LIBXMENU) LD_SWITCH_X_SITE
437 #endif /* not HAVE_X11 */
438 #else /* not HAVE_X_WINDOWS */
439 #endif /* not HAVE_X_WINDOWS */
441 #if HAVE_GPM
442 #ifndef LIBGPM
443 #define LIBGPM -lgpm
444 #endif /* not defined LIBGPM */
445 #else /* not HAVE_GPM */
446 #define LIBGPM
447 #endif /* not HAVE_GPM */
449 #if HAVE_LIBRESOLV
450 #ifndef LIBRESOLV
451 #define LIBRESOLV -lresolv
452 #endif /* not defined LIBRESOLV */
453 #else /* not HAVE_LIBRESOLV */
454 #define LIBRESOLV
455 #endif /* not HAVE_LIBRESOLV */
457 LIBSOUND= @LIBSOUND@
458 CFLAGS_SOUND= @CFLAGS_SOUND@
460 RSVG_LIBS= @RSVG_LIBS@
461 RSVG_CFLAGS= @RSVG_CFLAGS@
463 #ifndef ORDINARY_LINK
464 /* Fix linking if compiled with GCC. */
465 #ifdef __GNUC__
467 #if __GNUC__ > 1
469 #ifdef LINKER
470 #define LINKER_WAS_SPECIFIED
471 #endif
473 /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
474 places that are difficult to figure out at make time. Fortunately,
475 these same versions allow you to pass arbitrary flags on to the
476 linker, so there is no reason not to use it as a linker.
478 Well, it is not quite perfect. The "-nostdlib" keeps GCC from
479 searching for libraries in its internal directories, so we have to
480 ask GCC explicitly where to find libgcc.a. */
482 #ifndef LINKER
483 #define LINKER $(CC) -nostdlib
484 #endif
486 #ifndef LIB_GCC
487 /* Ask GCC where to find libgcc.a. */
488 #define LIB_GCC `$(CC) -print-libgcc-file-name`
489 #endif /* not LIB_GCC */
491 GNULIB_VAR = LIB_GCC
493 #ifndef LINKER_WAS_SPECIFIED
494 /* GCC passes any argument prefixed with -Xlinker directly to the
495 linker. See prefix-args.c for an explanation of why we do not do
496 this with the shell''s ``for'' construct.
497 Note that some people do not have '.' in their paths, so we must
498 use ./prefix-args. */
499 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
500 #else
501 #define YMF_PASS_LDFLAGS(flags) flags
502 #endif
504 #else /* __GNUC__ < 2 */
506 #ifndef LIB_GCC
507 #define LIB_GCC /usr/local/lib/gcc-gnulib
508 #endif /* not LIB_GCC */
509 GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
510 #endif /* __GNUC__ < 2 */
511 #else /* not __GNUC__ */
512 GNULIB_VAR =
514 #endif /* not __GNUC__ */
515 #endif /* not ORDINARY_LINK */
517 #ifdef ORDINARY_LINK
518 LD = $(CC)
519 #else
520 #ifdef LINKER
521 LD=LINKER
522 #else /* not LINKER */
523 LD=ld
524 #endif /* not LINKER */
525 #endif /* not ORDINARY_LINK */
527 /* Flags to pass to LD only for temacs. */
528 /* Do not split this line with a backslash. That can cause trouble with
529 some cpps. */
530 TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE
532 /* A macro which other sections of Makefile can redefine to munge the
533 flags before they are passed to LD. This is helpful if you have
534 redefined LD to something odd, like "gcc".
535 (The YMF prefix is a holdover from the old name "ymakefile".)
537 #ifndef YMF_PASS_LDFLAGS
538 #define YMF_PASS_LDFLAGS(flags) flags
539 #endif
541 /* Allow config.h to specify a replacement file for unexec.c. */
542 #ifndef UNEXEC
543 #define UNEXEC unexec.o
544 #endif
545 #ifndef UNEXEC_SRC
546 #define UNEXEC_SRC unexec.c
547 #endif
549 INTERVAL_SRC = intervals.h composite.h
551 GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
553 #ifdef MSDOS
554 #ifdef HAVE_X_WINDOWS
555 MSDOS_OBJ = dosfns.o msdos.o
556 #else
557 MSDOS_OBJ = dosfns.o msdos.o w16select.o
558 #endif
559 #endif
561 #ifdef CYGWIN
562 CYGWIN_OBJ = sheap.o
563 #endif
565 #ifdef HAVE_CARBON
566 mac = $(dot)$(dot)/mac/
567 MAC_OBJ = mac.o macterm.o macfns.o macmenu.o macselect.o fontset.o fringe.o image.o
568 emacsapp = $(PWD)/$(mac)Emacs.app/
569 emacsappsrc = ${srcdir}/../mac/Emacs.app/
570 #endif
572 #ifdef HAVE_WINDOW_SYSTEM
573 FONTSRC = font.h
574 #ifdef USE_FONT_BACKEND
575 #ifdef HAVE_X_WINDOWS
576 #if defined (HAVE_XFT)
577 FONTOBJ = font.o xfont.o ftfont.o xftfont.o ftxfont.o
578 #elif defined (HAVE_FREETYPE)
579 FONTOBJ = font.o xfont.o ftfont.o ftxfont.o
580 #else /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
581 FONTOBJ = font.o xfont.o
582 #endif /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
583 #else /* ! HAVE_X_WINDOWS */
584 FONTOBJ = font.o
585 #endif /* ! HAVE_X_WINDOWS */
586 #else /* ! USE_FONT_BACKEND */
587 FONTOBJ = font.o
588 #endif /* ! USE_FONT_BACKEND */
589 #endif /* HAVE_WINDOW_SYSTEM */
591 /* lastfile must follow all files
592 whose initialized data areas should be dumped as pure by dump-emacs. */
593 obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \
594 charset.o coding.o category.o ccl.o character.o chartab.o \
595 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \
596 emacs.o keyboard.o macros.o keymap.o sysdep.o \
597 buffer.o filelock.o insdel.o marker.o \
598 minibuf.o fileio.o dired.o filemode.o \
599 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
600 alloc.o data.o doc.o editfns.o callint.o \
601 eval.o floatfns.o fns.o print.o lread.o \
602 syntax.o UNEXEC bytecode.o \
603 process.o callproc.o \
604 region-cache.o sound.o atimer.o \
605 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \
606 $(MSDOS_OBJ) $(MAC_OBJ) $(CYGWIN_OBJ) $(FONTOBJ)
608 /* Object files used on some machine or other.
609 These go in the DOC file on all machines
610 in case they are needed there. */
611 SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
612 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
613 mac.o macterm.o macfns.o macmenu.o macselect.o fontset.o \
614 w32.o w32bdf.o w32console.o w32fns.o w32heap.o w32inevt.o \
615 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONTOBJ)
618 #ifdef TERMINFO
619 /* Used to be -ltermcap here. If your machine needs that,
620 define LIBS_TERMCAP in the m/MACHINE.h file. */
621 #ifndef LIBS_TERMCAP
622 #define LIBS_TERMCAP -lcurses
623 #endif /* LIBS_TERMCAP */
624 termcapobj = terminfo.o
625 #else /* ! defined (TERMINFO) */
626 #ifndef LIBS_TERMCAP
627 #define LIBS_TERMCAP
628 termcapobj = termcap.o tparam.o
629 #else /* LIBS_TERMCAP */
630 termcapobj = tparam.o
631 #endif /* LIBS_TERMCAP */
632 #endif /* ! defined (TERMINFO) */
635 #ifndef SYSTEM_MALLOC
637 #ifndef DOUG_LEA_MALLOC
638 gmallocobj = gmalloc.o
639 #endif
641 #ifdef REL_ALLOC
642 rallocobj = ralloc.o
643 #endif
645 mallocobj = $(gmallocobj) $(rallocobj) vm-limit.o
647 #endif /* SYSTEM_MALLOC */
650 #ifdef USE_X_TOOLKIT
651 widgetobj= widget.o
652 #else /* not USE_X_TOOLKIT */
653 widgetobj=
654 #endif /* not USE_X_TOOLKIT */
657 /* define otherobj as list of object files that make-docfile
658 should not be told about. */
659 #ifdef CYGWIN
660 /* Cygwin differs because of its unexec(). */
661 otherobj= $(termcapobj) $(gmallocobj) $(rallocobj) lastfile.o vm-limit.o $(widgetobj) $(LIBOBJS)
662 #else
663 otherobj= $(termcapobj) lastfile.o $(mallocobj) $(widgetobj) $(LIBOBJS)
664 #endif
666 #ifdef HAVE_MOUSE
667 #define MOUSE_SUPPORT ${lispsource}mouse.elc \
668 ${lispsource}select.elc ${lispsource}scroll-bar.elc
669 #else
670 #ifdef HAVE_GPM
671 #define MOUSE_SUPPORT ${lispsource}mouse.elc
672 #else
673 #define MOUSE_SUPPORT
674 #endif
675 #endif
677 #ifdef VMS
678 #define VMS_SUPPORT ${lispsource}vmsproc.elc ${lispsource}vms-patch.elc
679 #else
680 #define VMS_SUPPORT
681 #endif
683 #ifdef MSDOS
684 #define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
685 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \
686 ${lispsource}international/ccl.elc ${lispsource}international/codepage.elc
688 #else
689 #define MSDOS_SUPPORT
690 #endif
692 #ifdef HAVE_WINDOW_SYSTEM
693 #ifdef HAVE_X_WINDOWS
694 #define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
695 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
696 ${lispsource}tool-bar.elc ${lispsource}mwheel.elc ${lispsource}x-dnd.elc
697 #else
698 #define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
699 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
700 ${lispsource}tool-bar.elc ${lispsource}mwheel.elc
701 #endif
702 #else
703 #define WINDOW_SUPPORT
704 #endif
706 #ifdef WINDOWSNT
707 #define WINNT_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
708 ${lispsource}dos-w32.elc ${lispsource}w32-vars.elc \
709 ${lispsource}w32-fns.elc
710 #else
711 #define WINNT_SUPPORT
712 #endif
714 #ifdef HAVE_WINDOW_SYSTEM
715 #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc
716 #else
717 #define TOOLTIP_SUPPORT
718 #endif
720 /* List of Lisp files loaded into the dumped Emacs. It is arranged
721 like this because it is easier to generate it semi-mechanically from
722 loadup.el this way.
724 Note that this list should not include lisp files which might not
725 be present, like site-load.el and site-init.el; this makefile
726 expects them all to be either present or buildable.
728 Files which are loaded unconditionally should be in shortlisp as well.
729 Files included conditionally here should be included (unconditionally)
730 in SOME_MACHINE_LISP. */
732 lisp= \
733 ${lispsource}abbrev.elc \
734 ${lispsource}buff-menu.elc \
735 ${lispsource}button.elc \
736 ${lispsource}emacs-lisp/byte-run.elc \
737 ${lispsource}composite.elc \
738 ${lispsource}cus-face.elc \
739 ${lispsource}cus-start.elc \
740 ${lispsource}custom.elc \
741 ${lispsource}emacs-lisp/backquote.elc \
742 ${lispsource}emacs-lisp/lisp-mode.elc \
743 ${lispsource}emacs-lisp/lisp.elc \
744 ${lispsource}env.elc \
745 ${lispsource}faces.elc \
746 ${lispsource}files.elc \
747 ${lispsource}format.elc \
748 ${lispsource}facemenu.elc \
749 MOUSE_SUPPORT \
750 ${lispsource}emacs-lisp/float-sup.elc \
751 ${lispsource}frame.elc \
752 ${lispsource}help.elc \
753 ${lispsource}indent.elc \
754 ${lispsource}isearch.elc \
755 ${lispsource}rfn-eshadow.elc \
756 ${lispsource}loadup.el \
757 ${lispsource}loaddefs.el \
758 ${lispsource}bindings.elc \
759 ${lispsource}emacs-lisp/map-ynp.elc \
760 ${lispsource}menu-bar.elc \
761 ${lispsource}international/mule.elc \
762 ${lispsource}international/mule-conf.el \
763 ${lispsource}international/mule-cmds.elc \
764 ${lispsource}international/characters.elc \
765 ${lispsource}international/charprop.el \
766 ${lispsource}case-table.elc \
767 ${lispsource}language/chinese.el \
768 ${lispsource}language/cyrillic.el \
769 ${lispsource}language/indian.el \
770 ${lispsource}language/devanagari.el \
771 ${lispsource}language/kannada.el \
772 ${lispsource}language/malayalam.el \
773 ${lispsource}language/tamil.el \
774 ${lispsource}language/english.el \
775 ${lispsource}language/ethiopic.elc \
776 ${lispsource}language/european.elc \
777 ${lispsource}language/czech.el \
778 ${lispsource}language/slovak.el \
779 ${lispsource}language/romanian.el \
780 ${lispsource}language/greek.el \
781 ${lispsource}language/hebrew.el \
782 ${lispsource}language/japanese.el \
783 ${lispsource}language/korean.el \
784 ${lispsource}language/lao.el \
785 ${lispsource}language/cham.el \
786 ${lispsource}language/tai-viet.el \
787 ${lispsource}language/thai.el \
788 ${lispsource}language/tibetan.elc \
789 ${lispsource}language/vietnamese.el \
790 ${lispsource}language/misc-lang.el \
791 ${lispsource}language/utf-8-lang.el \
792 ${lispsource}language/georgian.el \
793 ${lispsource}language/khmer.el \
794 ${lispsource}language/burmese.el \
795 ${lispsource}paths.el \
796 ${lispsource}register.elc \
797 ${lispsource}replace.elc \
798 ${lispsource}simple.elc \
799 ${lispsource}startup.elc \
800 ${lispsource}subr.elc \
801 ${lispsource}term/tty-colors.elc \
802 ${lispsource}font-core.elc \
803 ${lispsource}emacs-lisp/syntax.elc \
804 ${lispsource}font-lock.elc \
805 ${lispsource}jit-lock.elc \
806 ${lispsource}textmodes/fill.elc \
807 ${lispsource}textmodes/page.elc \
808 ${lispsource}textmodes/paragraphs.elc \
809 ${lispsource}textmodes/text-mode.elc \
810 ${lispsource}emacs-lisp/timer.elc \
811 ${lispsource}jka-cmpr-hook.elc \
812 ${lispsource}vc-hooks.elc \
813 ${lispsource}ediff-hook.elc \
814 TOOLTIP_SUPPORT \
815 VMS_SUPPORT \
816 MSDOS_SUPPORT \
817 WINNT_SUPPORT \
818 WINDOW_SUPPORT \
819 ${lispsource}widget.elc \
820 ${lispsource}window.elc \
821 ${lispsource}version.el
823 /* These are relative file names for the Lisp files
824 that are loaded unconditionally. This is used in make-docfile.
825 It need not contain the files that are loaded conditionally
826 because SOME_MACHINE_LISP has those. */
827 shortlisp= \
828 ../lisp/abbrev.elc \
829 ../lisp/buff-menu.elc \
830 ../lisp/button.elc \
831 ../lisp/emacs-lisp/byte-run.elc \
832 ../lisp/composite.elc \
833 ../lisp/cus-face.elc \
834 ../lisp/cus-start.elc \
835 ../lisp/custom.elc \
836 ../lisp/emacs-lisp/backquote.elc \
837 ../lisp/emacs-lisp/lisp-mode.elc \
838 ../lisp/emacs-lisp/lisp.elc \
839 ../lisp/facemenu.elc \
840 ../lisp/faces.elc \
841 ../lisp/files.elc \
842 ../lisp/emacs-lisp/float-sup.elc \
843 ../lisp/format.elc \
844 ../lisp/frame.elc \
845 ../lisp/help.elc \
846 ../lisp/indent.elc \
847 ../lisp/isearch.elc \
848 ../lisp/rfn-eshadow.elc \
849 ../lisp/loadup.el \
850 ../lisp/loaddefs.el \
851 ../lisp/bindings.elc \
852 ../lisp/emacs-lisp/map-ynp.elc \
853 ../lisp/env.elc \
854 ../lisp/international/mule.elc \
855 ../lisp/international/mule-conf.el \
856 ../lisp/international/mule-cmds.elc \
857 ../lisp/international/characters.elc \
858 ../lisp/case-table.elc \
859 ../lisp/language/chinese.el \
860 ../lisp/language/cyrillic.el \
861 ../lisp/language/indian.el \
862 ../lisp/language/devanagari.el \
863 ../lisp/language/kannada.el \
864 ../lisp/language/malayalam.el \
865 ../lisp/language/tamil.el \
866 ../lisp/language/english.el \
867 ../lisp/language/ethiopic.elc \
868 ../lisp/language/european.elc \
869 ../lisp/language/czech.el \
870 ../lisp/language/slovak.el \
871 ../lisp/language/romanian.el \
872 ../lisp/language/greek.el \
873 ../lisp/language/hebrew.el \
874 ../lisp/language/japanese.el \
875 ../lisp/language/korean.el \
876 ../lisp/language/lao.el \
877 ../lisp/language/cham.el \
878 ../lisp/language/tai-viet.el \
879 ../lisp/language/thai.el \
880 ../lisp/language/tibetan.elc \
881 ../lisp/language/vietnamese.el \
882 ../lisp/language/misc-lang.el \
883 ../lisp/language/utf-8-lang.el \
884 ../lisp/language/georgian.el \
885 ../lisp/language/khmer.el \
886 ../lisp/language/burmese.el \
887 ../lisp/menu-bar.elc \
888 ../lisp/paths.el \
889 ../lisp/register.elc \
890 ../lisp/replace.elc \
891 ../lisp/simple.elc \
892 ../lisp/startup.elc \
893 ../lisp/subr.elc \
894 ../lisp/term/tty-colors.elc \
895 ../lisp/font-core.elc \
896 ../lisp/emacs-lisp/syntax.elc \
897 ../lisp/font-lock.elc \
898 ../lisp/jit-lock.elc \
899 ../lisp/textmodes/fill.elc \
900 ../lisp/textmodes/page.elc \
901 ../lisp/textmodes/paragraphs.elc \
902 ../lisp/textmodes/text-mode.elc \
903 ../lisp/emacs-lisp/timer.elc \
904 ../lisp/vc-hooks.elc \
905 ../lisp/jka-cmpr-hook.elc \
906 ../lisp/ediff-hook.elc \
907 ../lisp/widget.elc \
908 ../lisp/window.elc \
909 ../lisp/version.el
911 /* Lisp files that may or may not be used.
912 We must unconditionally put them in the DOC file.
913 We use ../lisp/ to start the file names
914 to reduce the size of the argument list for make-docfile
915 for the sake of systems which can''t handle large ones. */
916 SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \
917 ${dotdot}/lisp/select.elc ${dotdot}/lisp/scroll-bar.elc \
918 VMS_SUPPORT \
919 ${dotdot}/lisp/ls-lisp.elc ${dotdot}/lisp/dos-fns.elc \
920 ${dotdot}/lisp/w32-fns.elc ${dotdot}/lisp/dos-w32.elc \
921 ${dotdot}/lisp/disp-table.elc ${dotdot}/lisp/dos-vars.elc \
922 ${dotdot}/lisp/tooltip.elc ${dotdot}/lisp/image.elc \
923 ${dotdot}/lisp/fringe.elc ${dotdot}/lisp/dnd.elc \
924 ${dotdot}/lisp/mwheel.elc ${dotdot}/lisp/tool-bar.elc \
925 ${dotdot}/lisp/x-dnd.elc \
926 ${dotdot}/lisp/international/ccl.elc \
927 ${dotdot}/lisp/international/codepage.elc \
928 ${dotdot}/lisp/international/fontset.elc \
929 ${dotdot}/lisp/mouse.elc \
930 ${dotdot}/lisp/term/x-win.elc
932 /* Construct full set of libraries to be linked.
933 Note that SunOS needs -lm to come before -lc; otherwise, you get
934 duplicated symbols. If the standard libraries were compiled
935 with GCC, we might need gnulib again after them. */
936 LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
937 LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
938 LIBS_DEBUG $(GETLOADAVG_LIBS) \
939 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
940 $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
942 /* Enable recompilation of certain other files depending on system type. */
944 #ifndef OTHER_FILES
945 #define OTHER_FILES
946 #endif
948 #ifndef OBJECTS_MACHINE
949 #define OBJECTS_MACHINE
950 #endif
952 #ifdef HAVE_SHM
953 RUN_TEMACS = `/bin/pwd`/temacs -nl
954 #else
955 RUN_TEMACS = `/bin/pwd`/temacs
956 #endif
958 all: emacs${EXEEXT} OTHER_FILES
960 emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp}
961 #ifdef CANNOT_DUMP
962 rm -f emacs${EXEEXT}
963 ln temacs${EXEEXT} emacs${EXEEXT}
964 #else
965 LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump
966 #endif /* ! defined (CANNOT_DUMP) */
967 -./emacs -q -batch -f list-load-path-shadows
969 /* We run make-docfile twice because the command line may get too long
970 on some systems. */
971 /* ${SOME_MACHINE_OBJECTS} comes before ${obj} because some files may
972 or may not be included in ${obj}, but they are always included in
973 ${SOME_MACHINE_OBJECTS}. Since a file is processed when it is mentioned
974 for the first time, this prevents any variation between configurations
975 in the contents of the DOC file.
976 Likewise for ${SOME_MACHINE_LISP}. */
977 ${etc}DOC: ${libsrc}make-docfile${EXEEXT} ${obj} ${shortlisp} ${SOME_MACHINE_LISP}
978 -rm -f ${etc}DOC
979 ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
980 ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
982 ${libsrc}make-docfile${EXEEXT}:
983 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}
985 #ifdef HAVE_UNIDATA
986 UNIDATA=${admindir}unidata/UnicodeData.txt
988 ${lispsource}international/charprop.el: temacs${EXEEXT} ${UNIDATA}
989 RUNEMACS="$(RUN_TEMACS)"; \
990 cd ${admindir}unidata; \
991 $(MAKE) $(MFLAGS) \
992 RUNEMACS="$${RUNEMACS}" DSTDIR=${lispsource}international
993 #endif
995 temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
996 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst
997 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
998 -o temacs ${STARTFILES} ${obj} ${otherobj} \
999 OBJECTS_MACHINE ${LIBES}
1001 /* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
1002 often contain options that have to do with using Emacs''s crt0,
1003 which are only good with temacs. */
1004 prefix-args${EXEEXT}: prefix-args.c $(config_h)
1005 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
1007 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (HAVE_GTK)
1009 /* We use stamp-xmenu with these two deps
1010 to both ensure that lwlib gets remade based on its dependencies
1011 in its own makefile,
1012 and remake temacs if lwlib gets changed by this. */
1013 stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU)
1014 touch stamp-oldxmenu
1015 /* Supply an ordering for parallel make. */
1016 ../src/$(OLDXMENU): ${OLDXMENU}
1018 /* Encode the values of these two macros in Make variables,
1019 so we can use $(...) to substitute their values within "...". */
1020 C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
1021 C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM
1022 C_SWITCH_SITE_1 = C_SWITCH_SITE
1023 C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
1024 C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
1025 C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
1027 #ifdef USE_X_TOOLKIT
1028 $(OLDXMENU): really-lwlib
1030 really-lwlib:
1031 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \
1032 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
1033 "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \
1034 "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \
1035 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \
1036 "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \
1037 "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \
1038 "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
1039 @true /* make -t should not create really-lwlib. */
1040 .PHONY: really-lwlib
1041 #else /* not USE_X_TOOLKIT */
1042 $(OLDXMENU): really-oldXMenu
1044 really-oldXMenu:
1045 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \
1046 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
1047 "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \
1048 "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \
1049 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \
1050 "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \
1051 "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \
1052 "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
1053 @true /* make -t should not create really-oldXMenu. */
1054 .PHONY: really-oldXMenu
1055 #endif /* not USE_X_TOOLKIT */
1056 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */
1058 /* We don''t really need this, but satisfy the dependency. */
1059 stamp-oldxmenu:
1060 touch stamp-oldxmenu
1061 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */
1063 ../config.status:: epaths.in
1064 @echo "The file epaths.h needs to be set up from epaths.in."
1065 @echo "Please run the `configure' script again."
1066 exit 1
1068 ../config.status:: config.in
1069 @echo "The file config.h needs to be set up from config.in."
1070 @echo "Please run the `configure' script again."
1071 exit 1
1073 /* Nearly all the following files depend on lisp.h,
1074 but it is not included as a dependency because
1075 it is so often changed in ways that do not require any recompilation
1076 and so rarely changed in ways that do require any. */
1078 abbrev.o: abbrev.c buffer.h window.h dispextern.h commands.h character.h \
1079 syntax.h $(config_h)
1080 buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \
1081 dispextern.h $(INTERVAL_SRC) blockinput.h atimer.h systime.h character.h \
1082 $(config_h)
1083 callint.o: callint.c window.h commands.h buffer.h keymap.h \
1084 keyboard.h dispextern.h $(config_h)
1085 callproc.o: callproc.c epaths.h buffer.h commands.h $(config_h) \
1086 process.h systty.h syssignal.h character.h coding.h ccl.h msdos.h \
1087 composite.h w32.h blockinput.h atimer.h systime.h frame.h termhooks.h
1088 casefiddle.o: casefiddle.c syntax.h commands.h buffer.h character.h \
1089 composite.h \
1090 charset.h keymap.h $(config_h)
1091 casetab.o: casetab.c buffer.h $(config_h)
1092 category.o: category.c category.h buffer.h charset.h keymap.h \
1093 character.h $(config_h)
1094 ccl.o: ccl.c ccl.h charset.h character.h coding.h $(config_h)
1095 character.o: character.c character.h buffer.h charset.h composite.h disptab.h \
1096 $(config.h)
1097 charset.o: charset.c charset.h character.h buffer.h coding.h composite.h \
1098 disptab.h $(config_h)
1099 chartab.o: charset.h character.h $(config.h)
1100 coding.o: coding.c coding.h ccl.h buffer.h character.h charset.h intervals.h composite.h \
1101 window.h dispextern.h frame.h termhooks.h $(config_h)
1102 cm.o: cm.c frame.h cm.h termhooks.h termchar.h $(config_h)
1103 cmds.o: cmds.c syntax.h buffer.h character.h commands.h window.h $(config_h) \
1104 msdos.h dispextern.h keyboard.h keymap.h
1105 pre-crt0.o: pre-crt0.c
1106 ecrt0.o: ecrt0.c $(config_h)
1107 CRT0_COMPILE ${srcdir}/ecrt0.c
1108 dired.o: dired.c commands.h buffer.h $(config_h) character.h charset.h \
1109 coding.h regex.h systime.h blockinput.h atimer.h
1110 dispnew.o: dispnew.c systime.h commands.h process.h frame.h \
1111 window.h buffer.h dispextern.h termchar.h termopts.h termhooks.h cm.h \
1112 disptab.h indent.h intervals.h \
1113 xterm.h blockinput.h atimer.h character.h msdos.h composite.h keyboard.h \
1114 $(config_h)
1115 doc.o: doc.c $(config_h) epaths.h buffer.h keyboard.h keymap.h character.h
1116 doprnt.o: doprnt.c character.h $(config_h)
1117 dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \
1118 msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \
1119 $(config_h)
1120 editfns.o: editfns.c window.h buffer.h systime.h $(INTERVAL_SRC) character.h \
1121 coding.h dispextern.h frame.h blockinput.h atimer.h $(config_h)
1122 emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
1123 termhooks.h buffer.h atimer.h systime.h $(INTERVAL_SRC) $(config_h) \
1124 window.h dispextern.h keyboard.h keymap.h
1125 fileio.o: fileio.c window.h buffer.h systime.h $(INTERVAL_SRC) character.h \
1126 coding.h msdos.h dispextern.h blockinput.h atimer.h $(config_h)
1127 filelock.o: filelock.c buffer.h character.h charset.h coding.h systime.h \
1128 epaths.h $(config_h)
1129 filemode.o: filemode.c $(config_h)
1130 frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
1131 blockinput.h atimer.h systime.h buffer.h character.h fontset.h \
1132 msdos.h dosfns.h dispextern.h w32term.h macterm.h termchar.h $(config_h)
1133 fringe.o: fringe.c dispextern.h frame.h window.h buffer.h termhooks.h $(config_h)
1134 font.o: font.c dispextern.h frame.h window.h ccl.h character.h charset.h \
1135 font.h $(config_h)
1136 ftfont.o: dispextern.h frame.h character.h charset.h font.h $(config_h)
1137 fontset.o: dispextern.h fontset.h fontset.c ccl.h buffer.h character.h \
1138 charset.h frame.h keyboard.h termhooks.h $(FONTSRC) $(config_h)
1139 getloadavg.o: getloadavg.c $(config_h)
1140 image.o: image.c frame.h window.h dispextern.h blockinput.h atimer.h \
1141 systime.h xterm.h w32term.h w32gui.h macterm.h macgui.h $(config_h)
1142 indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \
1143 termopts.h disptab.h region-cache.h character.h category.h composite.h \
1144 dispextern.h keyboard.h
1145 insdel.o: insdel.c window.h buffer.h $(INTERVAL_SRC) blockinput.h character.h \
1146 dispextern.h atimer.h systime.h region-cache.h $(config_h)
1147 keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h character.h \
1148 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
1149 systime.h dispextern.h syntax.h $(INTERVAL_SRC) blockinput.h \
1150 atimer.h xterm.h puresize.h msdos.h keymap.h w32term.h macterm.h $(config_h)
1151 keymap.o: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
1152 atimer.h systime.h puresize.h character.h intervals.h keymap.h window.h \
1153 $(config_h)
1154 lastfile.o: lastfile.c $(config_h)
1155 macros.o: macros.c window.h buffer.h commands.h macros.h keyboard.h \
1156 dispextern.h $(config_h)
1157 malloc.o: malloc.c $(config_h)
1158 gmalloc.o: gmalloc.c $(config_h)
1159 ralloc.o: ralloc.c $(config_h)
1160 vm-limit.o: vm-limit.c mem-limits.h $(config_h)
1161 marker.o: marker.c buffer.h character.h $(config_h)
1162 md5.o: md5.c md5.h $(config_h)
1163 minibuf.o: minibuf.c syntax.h dispextern.h frame.h window.h keyboard.h \
1164 buffer.h commands.h character.h msdos.h $(INTERVAL_SRC) keymap.h \
1165 termhooks.h $(config_h)
1166 mktime.o: mktime.c $(config_h)
1167 msdos.o: msdos.c msdos.h dosfns.h systime.h termhooks.h dispextern.h frame.h \
1168 termopts.h termchar.h character.h coding.h ccl.h disptab.h window.h \
1169 keyboard.h intervals.h buffer.h commands.h blockinput.h atimer.h $(config_h)
1170 process.o: process.c process.h buffer.h window.h termhooks.h termopts.h \
1171 commands.h syssignal.h systime.h systty.h syswait.h frame.h dispextern.h \
1172 blockinput.h atimer.h charset.h coding.h ccl.h msdos.h composite.h \
1173 keyboard.h $(config_h)
1174 regex.o: regex.c syntax.h buffer.h $(config_h) regex.h category.h character.h \
1175 charset.h
1176 region-cache.o: region-cache.c buffer.h region-cache.h $(config_h)
1177 scroll.o: scroll.c termchar.h dispextern.h frame.h msdos.h keyboard.h \
1178 termhooks.h $(config_h)
1179 search.o: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
1180 blockinput.h atimer.h systime.h category.h character.h charset.h \
1181 composite.h $(INTERVAL_SRC) \
1182 $(config_h)
1183 strftime.o: strftime.c $(config_h)
1184 syntax.o: syntax.c syntax.h buffer.h commands.h category.h character.h \
1185 composite.h keymap.h regex.h $(INTERVAL_SRC) $(config_h)
1186 sysdep.o: sysdep.c syssignal.h systty.h systime.h syswait.h blockinput.h \
1187 process.h dispextern.h termhooks.h termchar.h termopts.h \
1188 frame.h atimer.h window.h msdos.h dosfns.h keyboard.h cm.h $(config_h)
1189 term.o: term.c termchar.h termhooks.h termopts.h $(config_h) cm.h frame.h \
1190 disptab.h dispextern.h keyboard.h character.h charset.h coding.h ccl.h \
1191 msdos.h window.h keymap.h blockinput.h atimer.h systime.h
1192 termcap.o: termcap.c $(config_h)
1193 terminal.o: terminal.c frame.h termchar.h termhooks.h charset.h coding.h \
1194 keyboard.h $(config_h)
1195 terminfo.o: terminfo.c $(config_h)
1196 tparam.o: tparam.c $(config_h)
1197 undo.o: undo.c buffer.h commands.h window.h $(config_h)
1198 /* This hack is to discard any space that cpp might put at the beginning
1199 of UNEXEC when substituting it in. */
1200 UNEXEC_ALIAS=UNEXEC
1201 $(UNEXEC_ALIAS): UNEXEC_SRC $(config_h)
1202 w16select.o: w16select.c dispextern.h frame.h blockinput.h atimer.h systime.h \
1203 msdos.h buffer.h charset.h coding.h composite.h $(config_h)
1204 widget.o: widget.c xterm.h frame.h dispextern.h widgetprv.h \
1205 $(srcdir)/../lwlib/lwlib.h $(config_h)
1206 window.o: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
1207 disptab.h keyboard.h dispextern.h msdos.h composite.h \
1208 keymap.h blockinput.h atimer.h systime.h $(INTERVAL_SRC) \
1209 xterm.h w32term.h macterm.h $(config_h)
1210 xdisp.o: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h \
1211 coding.h termchar.h frame.h window.h disptab.h termhooks.h character.h \
1212 charset.h $(config_h) keyboard.h $(INTERVAL_SRC) region-cache.h xterm.h \
1213 w32term.h macterm.h msdos.h composite.h fontset.h blockinput.h atimer.h \
1214 systime.h keymap.h $(FONTSRC)
1215 xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
1216 window.h character.h charset.h msdos.h dosfns.h composite.h atimer.h \
1217 systime.h keyboard.h fontset.h w32term.h macterm.h $(INTERVAL_SRC) \
1218 termchar.h termhooks.h $(FONTSRC) $(config_h)
1219 xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \
1220 $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h epaths.h \
1221 character.h charset.h coding.h gtkutil.h $(config_h) termhooks.h \
1222 fontset.h termchar.h $(FONTSRC)
1223 xfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1224 font.h $(config_h)
1225 xftfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1226 font.h $(config_h)
1227 ftxfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1228 font.h $(config_h)
1229 xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \
1230 charset.h keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h \
1231 systime.h gtkutil.h msdos.h coding.h $(config_h)
1232 xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \
1233 dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \
1234 keyboard.h gnu.h character.h charset.h ccl.h fontset.h composite.h \
1235 coding.h process.h gtkutil.h $(FONTSRC) $(config_h)
1236 xselect.o: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \
1237 buffer.h atimer.h systime.h termhooks.h $(config_h)
1238 xrdb.o: xrdb.c $(config_h) epaths.h
1239 xsmfns.o: xsmfns.c $(config_h) systime.h sysselect.h termhooks.h xterm.h \
1240 lisp.h termopts.h
1241 gtkutil.o: gtkutil.c gtkutil.h xterm.h lisp.h frame.h $(config_h) \
1242 blockinput.h window.h atimer.h systime.h termhooks.h keyboard.h \
1243 charset.h coding.h
1244 dbusbind.o: dbusbind.c termhooks.h $(config_h)
1246 hftctl.o: hftctl.c $(config_h)
1247 sound.o: sound.c dispextern.h $(config_h)
1248 atimer.o: atimer.c atimer.h systime.h $(config_h)
1250 /* The files of Lisp proper */
1252 alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h keyboard.h \
1253 blockinput.h atimer.h systime.h character.h dispextern.h $(config_h) \
1254 $(INTERVAL_SRC)
1255 bytecode.o: bytecode.c buffer.h syntax.h character.h window.h dispextern.h \
1256 frame.h xterm.h $(config_h)
1257 data.o: data.c buffer.h puresize.h character.h syssignal.h keyboard.h frame.h \
1258 termhooks.h $(config_h)
1259 eval.o: eval.c commands.h keyboard.h blockinput.h atimer.h systime.h \
1260 dispextern.h $(config_h)
1261 floatfns.o: floatfns.c $(config_h)
1262 fns.o: fns.c commands.h $(config_h) frame.h buffer.h character.h keyboard.h \
1263 keymap.h frame.h window.h dispextern.h $(INTERVAL_SRC) coding.h md5.h \
1264 blockinput.h atimer.h systime.h xterm.h termhooks.h
1265 print.o: print.c process.h frame.h window.h buffer.h keyboard.h character.h \
1266 $(config_h) dispextern.h termchar.h $(INTERVAL_SRC) msdos.h composite.h \
1267 blockinput.h atimer.h systime.h
1268 lread.o: lread.c commands.h keyboard.h buffer.h epaths.h character.h \
1269 charset.h $(config_h) $(INTERVAL_SRC) termhooks.h coding.h msdos.h
1271 /* Text properties support */
1272 textprop.o: textprop.c buffer.h window.h dispextern.h $(INTERVAL_SRC) \
1273 $(config_h)
1274 intervals.o: intervals.c buffer.h $(INTERVAL_SRC) keyboard.h puresize.h \
1275 keymap.h $(config_h)
1276 composite.o: composite.c buffer.h character.h $(INTERVAL_SRC) $(config_h)
1278 /* System-specific programs to be made.
1279 OTHER_FILES and OBJECTS_MACHINE
1280 select which of these should be compiled. */
1282 #ifdef HAVE_CARBON
1283 buffer.o callint.o cmds.o dispnew.o editfns.o fileio.o frame.o \
1284 fontset.o indent.o insdel.o keyboard.o macros.o minibuf.o msdos.o process.o \
1285 scroll.o sysdep.o term.o terminal.o widget.o window.o xdisp.o xfaces.o xfns.o xmenu.o \
1286 xterm.o xselect.o sound.o: macgui.h
1287 mac.o: mac.c process.h sysselect.h blockinput.h atimer.h systime.h charset.h \
1288 coding.h ccl.h $(config_h)
1289 macfns.o: macfns.c charset.h macterm.h macgui.h frame.h window.h buffer.h \
1290 dispextern.h macgui.h fontset.h $(INTERVAL_SRC) keyboard.h blockinput.h \
1291 atimer.h systime.h epaths.h termhooks.h coding.h $(config_h)
1292 macmenu.o: macmenu.c termhooks.h frame.h window.h dispextern.h macgui.h \
1293 keyboard.h blockinput.h atimer.h systime.h buffer.h macterm.h $(config_h)
1294 macterm.o: blockinput.h atimer.h systime.h syssignal.h macterm.h macgui.h \
1295 frame.h charset.h ccl.h dispextern.h fontset.h termhooks.h termopts.h \
1296 termchar.h gnu.h disptab.h buffer.h window.h keyboard.h $(INTERVAL_SRC) \
1297 process.h coding.h $(config_h)
1298 macselect.o: blockinput.h atimer.h systime.h macterm.h macgui.h frame.h \
1299 keymap.h $(config_h)
1301 ${emacsapp}Contents/Resources/English.lproj:
1302 mkdir -p $@
1304 ifneq (${emacsapp},${emacsappsrc})
1305 ${emacsapp}Contents/Info.plist: ${emacsappsrc}Contents/Info.plist
1306 cp $< $@
1307 ${emacsapp}Contents/PkgInfo: ${emacsappsrc}Contents/PkgInfo
1308 cp $< $@
1309 ${emacsapp}Contents/Resources/Emacs.icns: ${emacsappsrc}Contents/Resources/Emacs.icns
1310 mkdir -p ${emacsapp}Contents/Resources
1311 cp $< $@
1312 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings: ${emacsappsrc}Contents/Resources/English.lproj/InfoPlist.strings
1313 cp $< $@
1314 endif
1316 macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \
1317 ${emacsapp}Contents/Info.plist ${emacsapp}Contents/PkgInfo \
1318 ${emacsapp}Contents/Resources/Emacs.icns \
1319 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings
1320 macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs
1321 ${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT}
1322 mkdir -p ${emacsapp}Contents/MacOS/;
1323 cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT}
1324 #endif
1326 bootstrapclean:
1327 rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
1328 mostlyclean:
1329 rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
1330 rm -f ../etc/DOC
1331 rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
1332 rm -f buildobj.lst
1333 clean: mostlyclean
1334 rm -f emacs-*${EXEEXT} emacs${EXEEXT}
1335 /**/# This is used in making a distribution.
1336 /**/# Do not use it on development directories!
1337 distclean: clean
1338 rm -f epaths.h config.h Makefile Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-*
1339 mv ./.gdbinit ./.gdbinit.save
1340 if test -f "${srcdir}/.gdbinit"; then rm -f ./.gdbinit.save; \
1341 else mv ./.gdbinit.save ./.gdbinit; fi
1342 maintainer-clean: distclean
1343 @echo "This command is intended for maintainers to use;"
1344 @echo "it deletes files that may require special tools to rebuild."
1345 rm -f TAGS
1346 versionclean:
1347 -rm -f emacs${EXEEXT} emacs-* ../etc/DOC*
1348 extraclean: distclean
1349 -rm -f *~ \#* m/?*~ s/?*~
1351 /* Arrange to make a tags table TAGS-LISP for ../lisp,
1352 plus TAGS for the C files, which includes ../lisp/TAGS by reference. */
1354 ctagsfiles1 = [xyzXYZ]*.[hc]
1355 ctagsfiles2 = [a-wA-W]*.[hc]
1357 TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
1358 ../lib-src/etags --include=TAGS-LISP --include=${lwlibdir}/TAGS \
1359 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
1360 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
1361 frc:
1362 TAGS-LISP: frc
1363 $(MAKE) -f ${lispdir}Makefile TAGS-LISP ETAGS=../lib-src/etags
1365 $(lwlibdir)TAGS:
1366 (cd $(lwlibdir); $(MAKE) -f $(lwlibdir)Makefile tags ETAGS=../lib-src/etags)
1368 tags: TAGS TAGS-LISP $(lwlibdir)TAGS
1369 .PHONY: tags
1372 /* Bootstrapping. */
1374 bootstrap: bootstrap-emacs${EXEEXT}
1376 /* Dump an Emacs executable named bootstrap-emacs containing the
1377 files from loadup.el in source form. */
1379 bootstrap-emacs${EXEEXT}: temacs${EXEEXT} ${lispsource}international/charprop.el
1380 #ifdef CANNOT_DUMP
1381 ln temacs${EXEEXT} bootstrap-emacs${EXEEXT}
1382 #else
1383 $(RUN_TEMACS) --batch --load loadup bootstrap
1384 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
1385 #endif /* ! defined (CANNOT_DUMP) */