* configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code
[bpt/emacs.git] / src / Makefile.in
CommitLineData
a0528984 1# Makefile for GNU Emacs.
0b5538bd 2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
8cabe764
GM
3# 2003, 2004, 2005, 2006, 2007, 2008
4# Free Software Foundation, Inc.
a0528984
EZ
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
684d6f5b 10# the Free Software Foundation; either version 3, or (at your option)
a0528984
EZ
11# 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; see the file COPYING. If not, write to
4fc5845f
LK
20# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21# Boston, MA 02110-1301, USA.
a0528984
EZ
22
23
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.
27
5f351ff1 28# Don't try to replace the cpp processing using autoconf facilities,
a0528984 29# says rms.
deeaffe1
DN
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.
34
a0528984
EZ
35
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.
38srcdir=@srcdir@
39VPATH=@srcdir@
40CC=@CC@
41CPP=@CPP@
42CFLAGS=@CFLAGS@
43CPPFLAGS=@CPPFLAGS@
44LDFLAGS=@LDFLAGS@
45LN_S=@LN_S@
108c7c97 46EXEEXT=@EXEEXT@
4a3363c5 47version=@version@
a0528984
EZ
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@
54LIBOBJS = @LIBOBJS@
55
56# On Xenix and the IBM RS6000, double-dot gets screwed up.
57dot = .
58dotdot = ${dot}${dot}
59lispsource = ${srcdir}/$(dot)$(dot)/lisp/
462a725d 60admindir = $(srcdir)/$(dot)$(dot)/admin/
a0528984
EZ
61libsrc = $(dot)$(dot)/lib-src/
62etc = $(dot)$(dot)/etc/
63oldXMenudir = $(dot)$(dot)/oldXMenu/
64lwlibdir = $(dot)$(dot)/lwlib/
99b7e543 65lispdir = $(dot)$(dot)/lisp/
a0528984
EZ
66
67# Configuration files for .o files to depend on.
68M_FILE = ${srcdir}/@machfile@
69S_FILE = ${srcdir}/@opsysfile@
70config_h = config.h $(M_FILE) $(S_FILE)
71
72# ========================== start of cpp stuff =======================
73/* From here on, comments must be done in C syntax. */
74
75C_SWITCH_SYSTEM=
76
77/* just to be sure the sh is used */
78SHELL=/bin/sh
79
80#define THIS_IS_MAKEFILE
81#define NO_SHORTNAMES
82#define NOT_C_CODE
83#include "config.h"
84
be9b5a60 85/* Do not let the file name mktime.c get messed up. */
a0528984
EZ
86#ifdef mktime
87#undef mktime
88#endif
89
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. */
93
94#ifdef X11
95#define HAVE_X11
96#undef X11
97#endif
98
99/* On some machines #define register is done in config;
be9b5a60 100 do not let it interfere with this file. */
a0528984
EZ
101#undef register
102
103/* On some systems we may not be able to use the system make command. */
104#ifdef MAKE_COMMAND
105MAKE = MAKE_COMMAND
106#endif
107
a0528984 108/* GNU libc requires ORDINARY_LINK so that its own crt0 is used.
09fcea18 109 GNU/Linux is an exception because it uses a funny variant of GNU libc. */
a0528984 110#ifdef __GNU_LIBRARY__
8a2a6032 111#ifndef GNU_LINUX
a0528984
EZ
112#define ORDINARY_LINK
113#endif
114#endif
115
be9b5a60 116/* Some machines do not find the standard C libraries in the usual place. */
a0528984
EZ
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
126
127/* Unless inhibited or changed, use -lg to link for debugging. */
128#ifndef LIBS_DEBUG
129#define LIBS_DEBUG -lg
130#endif
131
132/* Some s/SYSTEM.h files define this to request special libraries. */
133#ifndef LIBS_SYSTEM
134#define LIBS_SYSTEM
135#endif
136
137/* Some m/MACHINE.h files define this to request special libraries. */
138#ifndef LIBS_MACHINE
139#define LIBS_MACHINE
140#endif
141
142#ifndef LIB_MATH
143# define LIB_MATH -lm
144#endif /* LIB_MATH */
145
146/* Some s/SYSTEM.h files define this to request special switches in ld. */
147#ifndef LD_SWITCH_SYSTEM
deeaffe1 148#if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
a0528984 149#define LD_SWITCH_SYSTEM -X
deeaffe1 150#else /* (defined (BSD_SYSTEM) && !defined (COFF)) */
a0528984 151#define LD_SWITCH_SYSTEM
deeaffe1 152#endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */
a0528984
EZ
153#endif /* LD_SWITCH_SYSTEM */
154
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
160
e0f712ba
AC
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
166
a0528984
EZ
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
171
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
177
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
182
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
187
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
192
193#ifndef C_SWITCH_X_SYSTEM
194#define C_SWITCH_X_SYSTEM
195#endif
196
197#ifndef C_SWITCH_X_SITE
198#define C_SWITCH_X_SITE
199#endif
200
201#ifndef LD_SWITCH_X_SITE
202#define LD_SWITCH_X_SITE
203#endif
204
205#ifndef LD_SWITCH_X_DEFAULT
206#define LD_SWITCH_X_DEFAULT
207#endif
208
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
214
215#ifndef C_SWITCH_SITE
216#define C_SWITCH_SITE
217#endif
218
219#ifndef ORDINARY_LINK
220
221#ifndef CRT0_COMPILE
4624371d 222#define CRT0_COMPILE $(CC) -c $(ALL_CFLAGS)
a0528984
EZ
223#endif
224
225#ifndef START_FILES
226#ifdef NO_REMAP
a0528984 227#define START_FILES pre-crt0.o /lib/crt0.o
a0528984
EZ
228#else /* ! defined (NO_REMAP) */
229#define START_FILES ecrt0.o
230#endif /* ! defined (NO_REMAP) */
231#endif /* START_FILES */
232STARTFILES = START_FILES
233
234#else /* ORDINARY_LINK */
235
236/* config.h might want to force START_FILES anyway */
237#ifdef START_FILES
238STARTFILES = START_FILES
239#endif /* START_FILES */
240
241#endif /* not ORDINARY_LINK */
242
243
488dd4c4
JD
244#if HAVE_GTK
245#define USE_GTK
246TOOLKIT_DEFINES = -DUSE_GTK
247#endif
248
a0528984
EZ
249#ifdef USE_X_TOOLKIT
250#define USE_@X_TOOLKIT_TYPE@
251TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@
252#else
488dd4c4 253#ifndef USE_GTK
a0528984
EZ
254TOOLKIT_DEFINES =
255#endif
488dd4c4 256#endif
a0528984 257
033b73e2
MA
258#ifdef HAVE_DBUS
259DBUS_CFLAGS = @DBUS_CFLAGS@
260DBUS_LIBS = @DBUS_LIBS@
261DBUS_OBJ = dbusbind.o
262#endif
263
a0528984
EZ
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. */
268
269/* -Demacs is needed to make some files produce the correct version
270 for use in Emacs.
271
272 -DHAVE_CONFIG_H is needed for some other files to take advantage of
5aa17bb2 273 the information in ``config.h''. */
a0528984
EZ
274
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. */
0bd50841 277ALL_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@
a0528984
EZ
278.c.o:
279 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
280
a0528984
EZ
281#ifndef LIBX11_SYSTEM
282#define LIBX11_SYSTEM
283#endif
284
285#ifndef LIB_X11_LIB
286#define LIB_X11_LIB -lX11
287#endif
288
cbf223e1
EZ
289/* xmenu.c should not be compiled on OSX. */
290#ifndef HAVE_CARBON
291XMENU_OBJ = xmenu.o
292#endif
293
a0528984 294#ifdef HAVE_X_WINDOWS
6b61353c
KH
295
296XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o
297
a0528984
EZ
298#ifdef HAVE_MENUS
299
488dd4c4 300#ifdef USE_GTK
6b61353c 301GTK_OBJ= gtkutil.o
488dd4c4 302#endif
a0528984
EZ
303
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
309OLDXMENU=${lwlibdir}liblw.a
310LIBXMENU= $(OLDXMENU)
311#else /* not USE_X_TOOLKIT */
312OLDXMENU= ${oldXMenudir}libXMenu11.a
313LIBXMENU= $(OLDXMENU)
314#endif /* not USE_X_TOOLKIT */
315#else /* not HAVE_X11 */
316LIBXMENU= -lXMenu
317#endif /* not HAVE_X11 */
318
319#else /* not HAVE_MENUS */
320
be9b5a60 321/* Otherwise, do not worry about the menu library at all. */
a0528984
EZ
322LIBXMENU=
323#endif /* not HAVE_MENUS */
324
325#ifdef USE_X_TOOLKIT
326#define @X_TOOLKIT_TYPE@
327#if defined (LUCID) || defined (ATHENA)
328#if HAVE_XAW3D
329LIBW= -lXaw3d
330#else
331LIBW= -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
341LIBW= LIB_MOTIF LIB_MOTIF_EXTRA
342#else
343LIBW= -lXm LIB_MOTIF_EXTRA
344#endif
345#endif
346#ifdef OPEN_LOOK
347LIBW= -lXol
348#endif
349
350#ifdef HAVE_X11XTR6
351#ifdef NEED_LIBW
352LIBXTR6 = -lSM -lICE -lw
353#else
354LIBXTR6 = -lSM -lICE
355#endif
356#endif
357
358#ifndef LIBXMU
359#define LIBXMU -lXmu
360#endif
361
362#ifdef LIBXT_STATIC
363/* We assume the config files have defined STATIC_OPTION
364 since that might depend on the operating system.
be9b5a60 365 (Do not forget you need different definitions with and without __GNUC__.) */
a0528984
EZ
366LIBXT= STATIC_OPTION $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext DYNAMIC_OPTION
367#else /* not LIBXT_STATIC */
368LIBXT= $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext
369#endif /* not LIBXT_STATIC */
370
371#else /* not USE_X_TOOLKIT */
488dd4c4
JD
372
373#ifdef USE_GTK
374LIBW=@GTK_LIBS@
375OLDXMENU=
376LIBXMENU=
377#endif /* USE_GTK */
378
618c30cb 379#ifdef HAVE_X_SM
488dd4c4 380LIBXT=$(LIBW) -lSM -lICE
618c30cb 381#else
488dd4c4 382LIBXT=$(LIBW)
618c30cb 383#endif
a0528984
EZ
384#endif /* not USE_X_TOOLKIT */
385
7e660140 386#if HAVE_XFT
8d097e47 387XFT_LIBS=@XFT_LIBS@
7e660140
JD
388#endif /* HAVE_XFT */
389
a0528984
EZ
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 */
397
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 */
405
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 */
413
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 */
421
422#if HAVE_GIF
423#ifndef LIBGIF
31840c43 424#define LIBGIF -lgif
a0528984
EZ
425#endif /* not defined LIBGIF */
426#else /* not HAVE_GIF */
427#define LIBGIF
428#endif /* not HAVE_GIF */
429
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. */
433X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT
4624371d 434LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_SYSTEM $(XFT_LIBS)
a0528984 435#else /* not HAVE_X11 */
c22140f6 436LIBX= $(LIBXMENU) LD_SWITCH_X_SITE
a0528984 437#endif /* not HAVE_X11 */
6b61353c 438#else /* not HAVE_X_WINDOWS */
a0528984
EZ
439#endif /* not HAVE_X_WINDOWS */
440
26114bc0
JD
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 */
448
b5322ed7
CY
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 */
26114bc0 456
a0528984 457LIBSOUND= @LIBSOUND@
4900d996 458CFLAGS_SOUND= @CFLAGS_SOUND@
a0528984 459
a1b7773a
YM
460RSVG_LIBS= @RSVG_LIBS@
461RSVG_CFLAGS= @RSVG_CFLAGS@
462
a0528984
EZ
463#ifndef ORDINARY_LINK
464/* Fix linking if compiled with GCC. */
465#ifdef __GNUC__
466
467#if __GNUC__ > 1
468
469#ifdef LINKER
470#define LINKER_WAS_SPECIFIED
471#endif
472
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
be9b5a60 476 linker, so there is no reason not to use it as a linker.
a0528984 477
be9b5a60 478 Well, it is not quite perfect. The "-nostdlib" keeps GCC from
a0528984
EZ
479 searching for libraries in its internal directories, so we have to
480 ask GCC explicitly where to find libgcc.a. */
481
482#ifndef LINKER
483#define LINKER $(CC) -nostdlib
484#endif
485
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 */
490
491GNULIB_VAR = LIB_GCC
492
493#ifndef LINKER_WAS_SPECIFIED
494/* GCC passes any argument prefixed with -Xlinker directly to the
be9b5a60 495 linker. See prefix-args.c for an explanation of why we do not do
5aa17bb2 496 this with the shell''s ``for'' construct.
be9b5a60 497 Note that some people do not have '.' in their paths, so we must
a0528984
EZ
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
503
504#else /* __GNUC__ < 2 */
505
506#ifndef LIB_GCC
507#define LIB_GCC /usr/local/lib/gcc-gnulib
508#endif /* not LIB_GCC */
509GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
510#endif /* __GNUC__ < 2 */
511#else /* not __GNUC__ */
512GNULIB_VAR =
513
514#endif /* not __GNUC__ */
515#endif /* not ORDINARY_LINK */
516
a0528984
EZ
517#ifdef ORDINARY_LINK
518LD = $(CC)
519#else
a0528984
EZ
520#ifdef LINKER
521LD=LINKER
522#else /* not LINKER */
523LD=ld
524#endif /* not LINKER */
a0528984
EZ
525#endif /* not ORDINARY_LINK */
526
dfe15ea3 527/* Flags to pass to LD only for temacs. */
be9b5a60 528/* Do not split this line with a backslash. That can cause trouble with
afb44cc2
DL
529 some cpps. */
530TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE
a0528984
EZ
531
532/* A macro which other sections of Makefile can redefine to munge the
be9b5a60 533 flags before they are passed to LD. This is helpful if you have
a0528984
EZ
534 redefined LD to something odd, like "gcc".
535 (The YMF prefix is a holdover from the old name "ymakefile".)
536 */
537#ifndef YMF_PASS_LDFLAGS
538#define YMF_PASS_LDFLAGS(flags) flags
539#endif
540
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
548
549INTERVAL_SRC = intervals.h composite.h
550
551GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
552
553#ifdef MSDOS
554#ifdef HAVE_X_WINDOWS
555MSDOS_OBJ = dosfns.o msdos.o
556#else
557MSDOS_OBJ = dosfns.o msdos.o w16select.o
558#endif
559#endif
560
6b61353c
KH
561#ifdef CYGWIN
562CYGWIN_OBJ = sheap.o
563#endif
564
e0f712ba 565#ifdef HAVE_CARBON
ce0669d4 566mac = $(dot)$(dot)/mac/
03cb0f35 567MAC_OBJ = mac.o macterm.o macfns.o macmenu.o macselect.o fontset.o fringe.o image.o
ce0669d4
ST
568emacsapp = $(PWD)/$(mac)Emacs.app/
569emacsappsrc = ${srcdir}/../mac/Emacs.app/
e0f712ba 570#endif
a0528984 571
7de94409 572#ifdef HAVE_WINDOW_SYSTEM
7de94409 573FONTSRC = font.h
ac96711a 574#ifdef USE_FONT_BACKEND
7de94409
KH
575#ifdef HAVE_X_WINDOWS
576#if defined (HAVE_XFT)
577FONTOBJ = font.o xfont.o ftfont.o xftfont.o ftxfont.o
578#elif defined (HAVE_FREETYPE)
579FONTOBJ = font.o xfont.o ftfont.o ftxfont.o
580#else /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
581FONTOBJ = font.o xfont.o
582#endif /* ! defined (HAVE_XFT) && ! defined (HAVE_FREETYPE) */
583#else /* ! HAVE_X_WINDOWS */
584FONTOBJ = font.o
585#endif /* ! HAVE_X_WINDOWS */
ac96711a
KH
586#else /* ! USE_FONT_BACKEND */
587FONTOBJ = font.o
588#endif /* ! USE_FONT_BACKEND */
7de94409
KH
589#endif /* HAVE_WINDOW_SYSTEM */
590
a0528984
EZ
591/* lastfile must follow all files
592 whose initialized data areas should be dumped as pure by dump-emacs. */
e0f712ba 593obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \
8f924df7 594 charset.o coding.o category.o ccl.o character.o chartab.o \
033b73e2 595 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \
a0528984
EZ
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 \
e047f448 602 syntax.o UNEXEC bytecode.o \
a0528984
EZ
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 \
7de94409 606 $(MSDOS_OBJ) $(MAC_OBJ) $(CYGWIN_OBJ) $(FONTOBJ)
a0528984
EZ
607
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. */
04a697fe 611SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
d87a9ab8 612 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
03cb0f35 613 mac.o macterm.o macfns.o macmenu.o macselect.o fontset.o \
d87a9ab8 614 w32.o w32bdf.o w32console.o w32fns.o w32heap.o w32inevt.o \
7de94409 615 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONTOBJ)
a0528984
EZ
616
617
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 */
624termcapobj = terminfo.o
625#else /* ! defined (TERMINFO) */
626#ifndef LIBS_TERMCAP
627#define LIBS_TERMCAP
628termcapobj = termcap.o tparam.o
629#else /* LIBS_TERMCAP */
630termcapobj = tparam.o
631#endif /* LIBS_TERMCAP */
632#endif /* ! defined (TERMINFO) */
633
634
635#ifndef SYSTEM_MALLOC
636
2fa0eedf
RS
637#ifndef DOUG_LEA_MALLOC
638gmallocobj = gmalloc.o
639#endif
640
a0528984 641#ifdef REL_ALLOC
2fa0eedf
RS
642rallocobj = ralloc.o
643#endif
644
645mallocobj = $(gmallocobj) $(rallocobj) vm-limit.o
a0528984
EZ
646
647#endif /* SYSTEM_MALLOC */
648
649
a0528984
EZ
650#ifdef USE_X_TOOLKIT
651widgetobj= widget.o
652#else /* not USE_X_TOOLKIT */
653widgetobj=
654#endif /* not USE_X_TOOLKIT */
655
656
657/* define otherobj as list of object files that make-docfile
658 should not be told about. */
6b61353c
KH
659#ifdef CYGWIN
660/* Cygwin differs because of its unexec(). */
67d20687 661otherobj= $(termcapobj) $(gmallocobj) $(rallocobj) lastfile.o vm-limit.o $(widgetobj) $(LIBOBJS)
6b61353c 662#else
67d20687 663otherobj= $(termcapobj) lastfile.o $(mallocobj) $(widgetobj) $(LIBOBJS)
6b61353c 664#endif
a0528984
EZ
665
666#ifdef HAVE_MOUSE
667#define MOUSE_SUPPORT ${lispsource}mouse.elc \
668 ${lispsource}select.elc ${lispsource}scroll-bar.elc
669#else
dd7c5963
NR
670#ifdef HAVE_GPM
671#define MOUSE_SUPPORT ${lispsource}mouse.elc
672#else
a0528984
EZ
673#define MOUSE_SUPPORT
674#endif
dd7c5963 675#endif
a0528984
EZ
676
677#ifdef VMS
678#define VMS_SUPPORT ${lispsource}vmsproc.elc ${lispsource}vms-patch.elc
679#else
680#define VMS_SUPPORT
681#endif
682
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
687
688#else
689#define MSDOS_SUPPORT
690#endif
691
414546fb
NR
692#ifdef HAVE_WINDOW_SYSTEM
693#ifdef HAVE_X_WINDOWS
d76c7a77 694#define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
414546fb
NR
695 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
696 ${lispsource}tool-bar.elc ${lispsource}mwheel.elc ${lispsource}x-dnd.elc
697#else
d76c7a77 698#define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
414546fb
NR
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
705
a0528984 706#ifdef WINDOWSNT
1f1bce0e
JR
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
a0528984
EZ
710#else
711#define WINNT_SUPPORT
712#endif
713
875baa34
LT
714#ifdef HAVE_WINDOW_SYSTEM
715#define TOOLTIP_SUPPORT ${lispsource}tooltip.elc
716#else
717#define TOOLTIP_SUPPORT
718#endif
719
be9b5a60
SM
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
a0528984
EZ
722 loadup.el this way.
723
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.
727
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. */
731
732lisp= \
733 ${lispsource}abbrev.elc \
734 ${lispsource}buff-menu.elc \
aae5b722 735 ${lispsource}button.elc \
f984e73e 736 ${lispsource}emacs-lisp/byte-run.elc \
731055f5 737 ${lispsource}composite.elc \
bfcf6dbe 738 ${lispsource}cus-face.elc \
d381a855 739 ${lispsource}cus-start.elc \
a0528984 740 ${lispsource}custom.elc \
6e860d15 741 ${lispsource}emacs-lisp/backquote.elc \
a0528984
EZ
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 \
f984e73e 750 ${lispsource}emacs-lisp/float-sup.elc \
af0ad939 751 ${lispsource}frame.elc \
a0528984
EZ
752 ${lispsource}help.elc \
753 ${lispsource}indent.elc \
754 ${lispsource}isearch.elc \
29f05691 755 ${lispsource}rfn-eshadow.elc \
a0528984
EZ
756 ${lispsource}loadup.el \
757 ${lispsource}loaddefs.el \
aae5b722 758 ${lispsource}bindings.elc \
f984e73e 759 ${lispsource}emacs-lisp/map-ynp.elc \
a0528984
EZ
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 \
15e2814c 765 ${lispsource}international/charprop.el \
a0528984 766 ${lispsource}case-table.elc \
050c6022 767 ${lispsource}language/chinese.el \
7e4c0466 768 ${lispsource}language/cyrillic.el \
054ccc15 769 ${lispsource}language/indian.el \
74fc84af 770 ${lispsource}language/devanagari.el \
6b61353c 771 ${lispsource}language/kannada.el \
ed4049a2
KH
772 ${lispsource}language/malayalam.el \
773 ${lispsource}language/tamil.el \
74fc84af 774 ${lispsource}language/english.el \
a0528984
EZ
775 ${lispsource}language/ethiopic.elc \
776 ${lispsource}language/european.elc \
74fc84af
EZ
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 \
c9228487 785 ${lispsource}language/cham.el \
16460a76 786 ${lispsource}language/tai-viet.el \
74fc84af 787 ${lispsource}language/thai.el \
a0528984 788 ${lispsource}language/tibetan.elc \
7e4c0466 789 ${lispsource}language/vietnamese.el \
74fc84af 790 ${lispsource}language/misc-lang.el \
1e9a6186
DL
791 ${lispsource}language/utf-8-lang.el \
792 ${lispsource}language/georgian.el \
0e45710c 793 ${lispsource}language/khmer.el \
7f6519c5 794 ${lispsource}language/burmese.el \
a0528984
EZ
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 \
bfcf6dbe 802 ${lispsource}font-core.elc \
1f7b1131
DN
803 ${lispsource}emacs-lisp/syntax.elc \
804 ${lispsource}font-lock.elc \
805 ${lispsource}jit-lock.elc \
a0528984
EZ
806 ${lispsource}textmodes/fill.elc \
807 ${lispsource}textmodes/page.elc \
808 ${lispsource}textmodes/paragraphs.elc \
809 ${lispsource}textmodes/text-mode.elc \
f984e73e 810 ${lispsource}emacs-lisp/timer.elc \
6e6851b0 811 ${lispsource}jka-cmpr-hook.elc \
a0528984
EZ
812 ${lispsource}vc-hooks.elc \
813 ${lispsource}ediff-hook.elc \
875baa34 814 TOOLTIP_SUPPORT \
a0528984
EZ
815 VMS_SUPPORT \
816 MSDOS_SUPPORT \
817 WINNT_SUPPORT \
414546fb 818 WINDOW_SUPPORT \
a0528984
EZ
819 ${lispsource}widget.elc \
820 ${lispsource}window.elc \
821 ${lispsource}version.el
822
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. */
827shortlisp= \
828 ../lisp/abbrev.elc \
829 ../lisp/buff-menu.elc \
aae5b722 830 ../lisp/button.elc \
f984e73e 831 ../lisp/emacs-lisp/byte-run.elc \
731055f5 832 ../lisp/composite.elc \
bfcf6dbe 833 ../lisp/cus-face.elc \
d381a855 834 ../lisp/cus-start.elc \
a0528984 835 ../lisp/custom.elc \
f7d5d963 836 ../lisp/emacs-lisp/backquote.elc \
a0528984
EZ
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 \
f984e73e 842 ../lisp/emacs-lisp/float-sup.elc \
a0528984
EZ
843 ../lisp/format.elc \
844 ../lisp/frame.elc \
845 ../lisp/help.elc \
846 ../lisp/indent.elc \
847 ../lisp/isearch.elc \
29f05691 848 ../lisp/rfn-eshadow.elc \
a0528984
EZ
849 ../lisp/loadup.el \
850 ../lisp/loaddefs.el \
aae5b722 851 ../lisp/bindings.elc \
f984e73e 852 ../lisp/emacs-lisp/map-ynp.elc \
a0528984
EZ
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 \
050c6022 859 ../lisp/language/chinese.el \
7e4c0466 860 ../lisp/language/cyrillic.el \
054ccc15 861 ../lisp/language/indian.el \
74fc84af 862 ../lisp/language/devanagari.el \
6b61353c 863 ../lisp/language/kannada.el \
ed4049a2
KH
864 ../lisp/language/malayalam.el \
865 ../lisp/language/tamil.el \
74fc84af 866 ../lisp/language/english.el \
a0528984
EZ
867 ../lisp/language/ethiopic.elc \
868 ../lisp/language/european.elc \
74fc84af
EZ
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 \
c9228487 877 ../lisp/language/cham.el \
16460a76 878 ../lisp/language/tai-viet.el \
74fc84af 879 ../lisp/language/thai.el \
a0528984 880 ../lisp/language/tibetan.elc \
7e4c0466 881 ../lisp/language/vietnamese.el \
74fc84af 882 ../lisp/language/misc-lang.el \
1e9a6186
DL
883 ../lisp/language/utf-8-lang.el \
884 ../lisp/language/georgian.el \
0e45710c 885 ../lisp/language/khmer.el \
7f6519c5 886 ../lisp/language/burmese.el \
f7d5d963 887 ../lisp/menu-bar.elc \
a0528984
EZ
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 \
59809627 895 ../lisp/font-core.elc \
1f7b1131
DN
896 ../lisp/emacs-lisp/syntax.elc \
897 ../lisp/font-lock.elc \
898 ../lisp/jit-lock.elc \
a0528984
EZ
899 ../lisp/textmodes/fill.elc \
900 ../lisp/textmodes/page.elc \
901 ../lisp/textmodes/paragraphs.elc \
902 ../lisp/textmodes/text-mode.elc \
f984e73e 903 ../lisp/emacs-lisp/timer.elc \
a0528984 904 ../lisp/vc-hooks.elc \
6e6851b0 905 ../lisp/jka-cmpr-hook.elc \
a0528984
EZ
906 ../lisp/ediff-hook.elc \
907 ../lisp/widget.elc \
908 ../lisp/window.elc \
909 ../lisp/version.el
910
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
5aa17bb2 915 for the sake of systems which can''t handle large ones. */
f7d5d963 916SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \
a0528984 917 ${dotdot}/lisp/select.elc ${dotdot}/lisp/scroll-bar.elc \
73e72da4 918 VMS_SUPPORT \
a0528984
EZ
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 \
414546fb 922 ${dotdot}/lisp/tooltip.elc ${dotdot}/lisp/image.elc \
6e9fa979
EZ
923 ${dotdot}/lisp/fringe.elc ${dotdot}/lisp/dnd.elc \
924 ${dotdot}/lisp/mwheel.elc ${dotdot}/lisp/tool-bar.elc \
414546fb 925 ${dotdot}/lisp/x-dnd.elc \
a0528984 926 ${dotdot}/lisp/international/ccl.elc \
414546fb 927 ${dotdot}/lisp/international/codepage.elc \
ae4a0f10 928 ${dotdot}/lisp/international/fontset.elc \
c3a63088 929 ${dotdot}/lisp/mouse.elc \
774a8da1 930 ${dotdot}/lisp/term/x-win.elc
a0528984
EZ
931
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. */
033b73e2
MA
936LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
937 LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
22f5bb01 938 LIBS_DEBUG $(GETLOADAVG_LIBS) \
ac96711a 939 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
22f5bb01 940 $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
a0528984
EZ
941
942/* Enable recompilation of certain other files depending on system type. */
943
944#ifndef OTHER_FILES
945#define OTHER_FILES
946#endif
947
948#ifndef OBJECTS_MACHINE
949#define OBJECTS_MACHINE
950#endif
951
462a725d
KH
952#ifdef HAVE_SHM
953RUN_TEMACS = `/bin/pwd`/temacs -nl
954#else
955RUN_TEMACS = `/bin/pwd`/temacs
956#endif
83f1cb94 957
108c7c97 958all: emacs${EXEEXT} OTHER_FILES
a0528984 959
108c7c97 960emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp}
a0528984 961#ifdef CANNOT_DUMP
108c7c97
AS
962 rm -f emacs${EXEEXT}
963 ln temacs${EXEEXT} emacs${EXEEXT}
a0528984 964#else
83f1cb94 965 LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump
a0528984
EZ
966#endif /* ! defined (CANNOT_DUMP) */
967 -./emacs -q -batch -f list-load-path-shadows
968
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}. */
8edacacd 977${etc}DOC: ${libsrc}make-docfile${EXEEXT} ${obj} ${shortlisp} ${SOME_MACHINE_LISP}
a0528984
EZ
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}
981
108c7c97
AS
982${libsrc}make-docfile${EXEEXT}:
983 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}
a0528984 984
462a725d
KH
985#ifdef HAVE_UNIDATA
986UNIDATA=${admindir}unidata/UnicodeData.txt
462a725d 987
9001653a 988${lispsource}international/charprop.el: temacs${EXEEXT} ${UNIDATA}
462a725d
KH
989 RUNEMACS="$(RUN_TEMACS)"; \
990 cd ${admindir}unidata; \
991 $(MAKE) $(MFLAGS) \
992 RUNEMACS="$${RUNEMACS}" DSTDIR=${lispsource}international
1fd0d2b9 993#endif
462a725d 994
deeaffe1 995temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
bd45f31d 996 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst
dfe15ea3 997 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
a0528984
EZ
998 -o temacs ${STARTFILES} ${obj} ${otherobj} \
999 OBJECTS_MACHINE ${LIBES}
1000
be9b5a60 1001/* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
5aa17bb2 1002 often contain options that have to do with using Emacs''s crt0,
a0528984 1003 which are only good with temacs. */
108c7c97 1004prefix-args${EXEEXT}: prefix-args.c $(config_h)
a0528984
EZ
1005 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
1006
16bf4e32 1007#if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (HAVE_GTK)
a0528984
EZ
1008
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. */
c60ee5e7 1013stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU)
a0528984
EZ
1014 touch stamp-oldxmenu
1015/* Supply an ordering for parallel make. */
1016../src/$(OLDXMENU): ${OLDXMENU}
1017
a0528984
EZ
1018/* Encode the values of these two macros in Make variables,
1019 so we can use $(...) to substitute their values within "...". */
1020C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
1021C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM
1022C_SWITCH_SITE_1 = C_SWITCH_SITE
1023C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
1024C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
1025C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
deeaffe1
DN
1026
1027#ifdef USE_X_TOOLKIT
1028$(OLDXMENU): really-lwlib
1029
a0528984 1030really-lwlib:
6b61353c 1031 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \
a0528984
EZ
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
1043
a0528984 1044really-oldXMenu:
9c28b587 1045 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \
a0528984
EZ
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 */
16bf4e32 1056#else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */
a0528984 1057
5aa17bb2 1058/* We don''t really need this, but satisfy the dependency. */
a0528984
EZ
1059stamp-oldxmenu:
1060 touch stamp-oldxmenu
16bf4e32 1061#endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */
a0528984
EZ
1062
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
1067
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
1072
a0528984
EZ
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. */
1077
85969c22 1078abbrev.o: abbrev.c buffer.h window.h dispextern.h commands.h character.h \
21065c92 1079 syntax.h $(config_h)
a0528984 1080buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \
85969c22 1081 dispextern.h $(INTERVAL_SRC) blockinput.h atimer.h systime.h character.h \
a0528984 1082 $(config_h)
21065c92 1083callint.o: callint.c window.h commands.h buffer.h keymap.h \
a0528984
EZ
1084 keyboard.h dispextern.h $(config_h)
1085callproc.o: callproc.c epaths.h buffer.h commands.h $(config_h) \
8f924df7 1086 process.h systty.h syssignal.h character.h coding.h ccl.h msdos.h \
f105f403 1087 composite.h w32.h blockinput.h atimer.h systime.h frame.h termhooks.h
85969c22 1088casefiddle.o: casefiddle.c syntax.h commands.h buffer.h character.h \
a63aa692 1089 composite.h \
21065c92 1090 charset.h keymap.h $(config_h)
a0528984 1091casetab.o: casetab.c buffer.h $(config_h)
a63aa692
MB
1092category.o: category.c category.h buffer.h charset.h keymap.h \
1093 character.h $(config_h)
85969c22
KH
1094ccl.o: ccl.c ccl.h charset.h character.h coding.h $(config_h)
1095character.o: character.c character.h buffer.h charset.h composite.h disptab.h \
1096 $(config.h)
1097charset.o: charset.c charset.h character.h buffer.h coding.h composite.h \
1098 disptab.h $(config_h)
5d4e3d2e 1099chartab.o: charset.h character.h $(config.h)
a63aa692 1100coding.o: coding.c coding.h ccl.h buffer.h character.h charset.h intervals.h composite.h \
267eea21 1101 window.h dispextern.h frame.h termhooks.h $(config_h)
91b726f0 1102cm.o: cm.c frame.h cm.h termhooks.h termchar.h $(config_h)
85969c22 1103cmds.o: cmds.c syntax.h buffer.h character.h commands.h window.h $(config_h) \
21065c92 1104 msdos.h dispextern.h keyboard.h keymap.h
a0528984
EZ
1105pre-crt0.o: pre-crt0.c
1106ecrt0.o: ecrt0.c $(config_h)
1107 CRT0_COMPILE ${srcdir}/ecrt0.c
85969c22 1108dired.o: dired.c commands.h buffer.h $(config_h) character.h charset.h \
d85d3839 1109 coding.h regex.h systime.h blockinput.h atimer.h
985773c9 1110dispnew.o: dispnew.c systime.h commands.h process.h frame.h \
4524691f 1111 window.h buffer.h dispextern.h termchar.h termopts.h termhooks.h cm.h \
21065c92 1112 disptab.h indent.h intervals.h \
85969c22 1113 xterm.h blockinput.h atimer.h character.h msdos.h composite.h keyboard.h \
a0528984 1114 $(config_h)
a63aa692 1115doc.o: doc.c $(config_h) epaths.h buffer.h keyboard.h keymap.h character.h
85969c22 1116doprnt.o: doprnt.c character.h $(config_h)
21065c92 1117dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \
ffb72b67
YM
1118 msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \
1119 $(config_h)
85969c22 1120editfns.o: editfns.c window.h buffer.h systime.h $(INTERVAL_SRC) character.h \
ffb72b67 1121 coding.h dispextern.h frame.h blockinput.h atimer.h $(config_h)
a0528984 1122emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
6b61353c 1123 termhooks.h buffer.h atimer.h systime.h $(INTERVAL_SRC) $(config_h) \
21065c92 1124 window.h dispextern.h keyboard.h keymap.h
85969c22 1125fileio.o: fileio.c window.h buffer.h systime.h $(INTERVAL_SRC) character.h \
ffb72b67 1126 coding.h msdos.h dispextern.h blockinput.h atimer.h $(config_h)
8f924df7
KH
1127filelock.o: filelock.c buffer.h character.h charset.h coding.h systime.h \
1128 epaths.h $(config_h)
a0528984
EZ
1129filemode.o: filemode.c $(config_h)
1130frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
8f924df7 1131 blockinput.h atimer.h systime.h buffer.h character.h fontset.h \
267eea21 1132 msdos.h dosfns.h dispextern.h w32term.h macterm.h termchar.h $(config_h)
47632e43 1133fringe.o: fringe.c dispextern.h frame.h window.h buffer.h termhooks.h $(config_h)
08b1e593
KH
1134font.o: font.c dispextern.h frame.h window.h ccl.h character.h charset.h \
1135 font.h $(config_h)
7de94409 1136ftfont.o: dispextern.h frame.h character.h charset.h font.h $(config_h)
85969c22 1137fontset.o: dispextern.h fontset.h fontset.c ccl.h buffer.h character.h \
c73bd236 1138 charset.h frame.h keyboard.h termhooks.h $(FONTSRC) $(config_h)
a0528984 1139getloadavg.o: getloadavg.c $(config_h)
6b61353c
KH
1140image.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)
a0528984 1142indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \
85969c22
KH
1143 termopts.h disptab.h region-cache.h character.h category.h composite.h \
1144 dispextern.h keyboard.h
1145insdel.o: insdel.c window.h buffer.h $(INTERVAL_SRC) blockinput.h character.h \
21065c92 1146 dispextern.h atimer.h systime.h region-cache.h $(config_h)
85969c22 1147keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h character.h \
a0528984 1148 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
91b726f0 1149 systime.h dispextern.h syntax.h $(INTERVAL_SRC) blockinput.h \
21065c92 1150 atimer.h xterm.h puresize.h msdos.h keymap.h w32term.h macterm.h $(config_h)
a0528984 1151keymap.o: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
46538474 1152 atimer.h systime.h puresize.h character.h intervals.h keymap.h window.h \
b74e16a3 1153 $(config_h)
a0528984
EZ
1154lastfile.o: lastfile.c $(config_h)
1155macros.o: macros.c window.h buffer.h commands.h macros.h keyboard.h \
1156 dispextern.h $(config_h)
1157malloc.o: malloc.c $(config_h)
1158gmalloc.o: gmalloc.c $(config_h)
1159ralloc.o: ralloc.c $(config_h)
1160vm-limit.o: vm-limit.c mem-limits.h $(config_h)
85969c22 1161marker.o: marker.c buffer.h character.h $(config_h)
39c9a034 1162md5.o: md5.c md5.h $(config_h)
a0528984 1163minibuf.o: minibuf.c syntax.h dispextern.h frame.h window.h keyboard.h \
c73bd236 1164 buffer.h commands.h character.h msdos.h $(INTERVAL_SRC) keymap.h \
47632e43 1165 termhooks.h $(config_h)
a0528984 1166mktime.o: mktime.c $(config_h)
a0528984 1167msdos.o: msdos.c msdos.h dosfns.h systime.h termhooks.h dispextern.h frame.h \
85969c22 1168 termopts.h termchar.h character.h coding.h ccl.h disptab.h window.h \
ffb72b67 1169 keyboard.h intervals.h buffer.h commands.h blockinput.h atimer.h $(config_h)
a0528984
EZ
1170process.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)
85969c22
KH
1174regex.o: regex.c syntax.h buffer.h $(config_h) regex.h category.h character.h \
1175 charset.h
dd6ab82f 1176region-cache.o: region-cache.c buffer.h region-cache.h $(config_h)
a0528984 1177scroll.o: scroll.c termchar.h dispextern.h frame.h msdos.h keyboard.h \
91b726f0 1178 termhooks.h $(config_h)
a0528984 1179search.o: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
6660e3a8
KH
1180 blockinput.h atimer.h systime.h category.h character.h charset.h \
1181 composite.h $(INTERVAL_SRC) \
85969c22 1182 $(config_h)
a0528984 1183strftime.o: strftime.c $(config_h)
85969c22 1184syntax.o: syntax.c syntax.h buffer.h commands.h category.h character.h \
21065c92 1185 composite.h keymap.h regex.h $(INTERVAL_SRC) $(config_h)
4524691f
RS
1186sysdep.o: sysdep.c syssignal.h systty.h systime.h syswait.h blockinput.h \
1187 process.h dispextern.h termhooks.h termchar.h termopts.h \
91b726f0 1188 frame.h atimer.h window.h msdos.h dosfns.h keyboard.h cm.h $(config_h)
a0528984 1189term.o: term.c termchar.h termhooks.h termopts.h $(config_h) cm.h frame.h \
85969c22 1190 disptab.h dispextern.h keyboard.h character.h charset.h coding.h ccl.h \
d85d3839 1191 msdos.h window.h keymap.h blockinput.h atimer.h systime.h
a0528984 1192termcap.o: termcap.c $(config_h)
ed8dad6b
KL
1193terminal.o: terminal.c frame.h termchar.h termhooks.h charset.h coding.h \
1194 keyboard.h $(config_h)
a0528984
EZ
1195terminfo.o: terminfo.c $(config_h)
1196tparam.o: tparam.c $(config_h)
9cb38333 1197undo.o: undo.c buffer.h commands.h window.h $(config_h)
a0528984
EZ
1198/* This hack is to discard any space that cpp might put at the beginning
1199 of UNEXEC when substituting it in. */
1200UNEXEC_ALIAS=UNEXEC
1201$(UNEXEC_ALIAS): UNEXEC_SRC $(config_h)
1202w16select.o: w16select.c dispextern.h frame.h blockinput.h atimer.h systime.h \
21065c92 1203 msdos.h buffer.h charset.h coding.h composite.h $(config_h)
a0528984
EZ
1204widget.o: widget.c xterm.h frame.h dispextern.h widgetprv.h \
1205 $(srcdir)/../lwlib/lwlib.h $(config_h)
1206window.o: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
91b726f0 1207 disptab.h keyboard.h dispextern.h msdos.h composite.h \
ffb72b67
YM
1208 keymap.h blockinput.h atimer.h systime.h $(INTERVAL_SRC) \
1209 xterm.h w32term.h macterm.h $(config_h)
a63aa692
MB
1210xdisp.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 \
d85d3839
MB
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 \
7de94409 1214 systime.h keymap.h $(FONTSRC)
a63aa692
MB
1215xfaces.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 \
d85d3839 1217 systime.h keyboard.h fontset.h w32term.h macterm.h $(INTERVAL_SRC) \
c73bd236 1218 termchar.h termhooks.h $(FONTSRC) $(config_h)
a0528984
EZ
1219xfns.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 \
7de94409 1221 character.h charset.h coding.h gtkutil.h $(config_h) termhooks.h \
c73bd236 1222 fontset.h termchar.h $(FONTSRC)
7de94409
KH
1223xfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1224 font.h $(config_h)
1225xftfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1226 font.h $(config_h)
1227ftxfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \
1228 font.h $(config_h)
c2d0b18a 1229xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \
85969c22 1230 charset.h keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h \
6b61353c 1231 systime.h gtkutil.h msdos.h coding.h $(config_h)
c2d0b18a 1232xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \
85969c22
KH
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 \
7de94409 1235 coding.h process.h gtkutil.h $(FONTSRC) $(config_h)
4524691f 1236xselect.o: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \
91b726f0 1237 buffer.h atimer.h systime.h termhooks.h $(config_h)
a0528984 1238xrdb.o: xrdb.c $(config_h) epaths.h
6b61353c
KH
1239xsmfns.o: xsmfns.c $(config_h) systime.h sysselect.h termhooks.h xterm.h \
1240 lisp.h termopts.h
033b73e2 1241gtkutil.o: gtkutil.c gtkutil.h xterm.h lisp.h frame.h $(config_h) \
ffb72b67
YM
1242 blockinput.h window.h atimer.h systime.h termhooks.h keyboard.h \
1243 charset.h coding.h
033b73e2 1244dbusbind.o: dbusbind.c termhooks.h $(config_h)
488dd4c4 1245
a0528984
EZ
1246hftctl.o: hftctl.c $(config_h)
1247sound.o: sound.c dispextern.h $(config_h)
1248atimer.o: atimer.c atimer.h systime.h $(config_h)
1249
1250/* The files of Lisp proper */
1251
4524691f 1252alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h keyboard.h \
85969c22
KH
1253 blockinput.h atimer.h systime.h character.h dispextern.h $(config_h) \
1254 $(INTERVAL_SRC)
a63aa692 1255bytecode.o: bytecode.c buffer.h syntax.h character.h window.h dispextern.h \
21065c92 1256 frame.h xterm.h $(config_h)
a63aa692 1257data.o: data.c buffer.h puresize.h character.h syssignal.h keyboard.h frame.h \
c73bd236 1258 termhooks.h $(config_h)
a0528984 1259eval.o: eval.c commands.h keyboard.h blockinput.h atimer.h systime.h \
6b61353c 1260 dispextern.h $(config_h)
a0528984 1261floatfns.o: floatfns.c $(config_h)
85969c22 1262fns.o: fns.c commands.h $(config_h) frame.h buffer.h character.h keyboard.h \
21065c92 1263 keymap.h frame.h window.h dispextern.h $(INTERVAL_SRC) coding.h md5.h \
e18c7093 1264 blockinput.h atimer.h systime.h xterm.h termhooks.h
85969c22 1265print.o: print.c process.h frame.h window.h buffer.h keyboard.h character.h \
985773c9 1266 $(config_h) dispextern.h termchar.h $(INTERVAL_SRC) msdos.h composite.h \
ffb72b67 1267 blockinput.h atimer.h systime.h
85969c22 1268lread.o: lread.c commands.h keyboard.h buffer.h epaths.h character.h \
985773c9 1269 charset.h $(config_h) $(INTERVAL_SRC) termhooks.h coding.h msdos.h
a0528984
EZ
1270
1271/* Text properties support */
1272textprop.o: textprop.c buffer.h window.h dispextern.h $(INTERVAL_SRC) \
1273 $(config_h)
21065c92
EZ
1274intervals.o: intervals.c buffer.h $(INTERVAL_SRC) keyboard.h puresize.h \
1275 keymap.h $(config_h)
85969c22 1276composite.o: composite.c buffer.h character.h $(INTERVAL_SRC) $(config_h)
a0528984
EZ
1277
1278/* System-specific programs to be made.
1279 OTHER_FILES and OBJECTS_MACHINE
1280 select which of these should be compiled. */
1281
e0f712ba 1282#ifdef HAVE_CARBON
e047f448 1283buffer.o callint.o cmds.o dispnew.o editfns.o fileio.o frame.o \
e0f712ba 1284 fontset.o indent.o insdel.o keyboard.o macros.o minibuf.o msdos.o process.o \
ed8dad6b 1285 scroll.o sysdep.o term.o terminal.o widget.o window.o xdisp.o xfaces.o xfns.o xmenu.o \
e0f712ba 1286 xterm.o xselect.o sound.o: macgui.h
f3cf04d3 1287mac.o: mac.c process.h sysselect.h blockinput.h atimer.h systime.h charset.h \
03cb0f35 1288 coding.h ccl.h $(config_h)
e0f712ba
AC
1289macfns.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 \
ffb72b67 1291 atimer.h systime.h epaths.h termhooks.h coding.h $(config_h)
e0f712ba
AC
1292macmenu.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)
1294macterm.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)
ffb72b67
YM
1298macselect.o: blockinput.h atimer.h systime.h macterm.h macgui.h frame.h \
1299 keymap.h $(config_h)
e0f712ba 1300
ce0669d4
ST
1301${emacsapp}Contents/Resources/English.lproj:
1302 mkdir -p $@
1303
1304ifneq (${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 $< $@
1314endif
1315
1316macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \
af0ad939 1317 ${emacsapp}Contents/Info.plist ${emacsapp}Contents/PkgInfo \
ce0669d4
ST
1318 ${emacsapp}Contents/Resources/Emacs.icns \
1319 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings
bc23733a 1320macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs
108c7c97 1321${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT}
ce0669d4 1322 mkdir -p ${emacsapp}Contents/MacOS/;
108c7c97 1323 cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT}
e0f712ba
AC
1324#endif
1325
a282cc8c 1326bootstrapclean:
4a3363c5 1327 rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
a0528984 1328mostlyclean:
108c7c97 1329 rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
a0528984 1330 rm -f ../etc/DOC
4a3363c5 1331 rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
bd45f31d 1332 rm -f buildobj.lst
a0528984 1333clean: mostlyclean
108c7c97 1334 rm -f emacs-*${EXEEXT} emacs${EXEEXT}
a0528984
EZ
1335/**/# This is used in making a distribution.
1336/**/# Do not use it on development directories!
1337distclean: clean
1338 rm -f epaths.h config.h Makefile Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-*
966bda3a
EZ
1339 mv ./.gdbinit ./.gdbinit.save
1340 if test -f "${srcdir}/.gdbinit"; then rm -f ./.gdbinit.save; \
1341 else mv ./.gdbinit.save ./.gdbinit; fi
a0528984
EZ
1342maintainer-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
1346versionclean:
108c7c97 1347 -rm -f emacs${EXEEXT} emacs-* ../etc/DOC*
a0528984
EZ
1348extraclean: distclean
1349 -rm -f *~ \#* m/?*~ s/?*~
1350
a0528984
EZ
1351/* Arrange to make a tags table TAGS-LISP for ../lisp,
1352 plus TAGS for the C files, which includes ../lisp/TAGS by reference. */
1353
c60ee5e7 1354ctagsfiles1 = [xyzXYZ]*.[hc]
a0528984
EZ
1355ctagsfiles2 = [a-wA-W]*.[hc]
1356
1357TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
1358 ../lib-src/etags --include=TAGS-LISP --include=${lwlibdir}/TAGS \
1359 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
1360 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
1361frc:
1362TAGS-LISP: frc
99b7e543 1363 $(MAKE) -f ${lispdir}Makefile TAGS-LISP ETAGS=../lib-src/etags
a0528984
EZ
1364
1365$(lwlibdir)TAGS:
1366 (cd $(lwlibdir); $(MAKE) -f $(lwlibdir)Makefile tags ETAGS=../lib-src/etags)
1367
1368tags: TAGS TAGS-LISP $(lwlibdir)TAGS
1369.PHONY: tags
1370
1371
1372/* Bootstrapping. */
1373
108c7c97 1374bootstrap: bootstrap-emacs${EXEEXT}
a0528984 1375
c60ee5e7 1376/* Dump an Emacs executable named bootstrap-emacs containing the
a0528984
EZ
1377 files from loadup.el in source form. */
1378
462a725d 1379bootstrap-emacs${EXEEXT}: temacs${EXEEXT} ${lispsource}international/charprop.el
a0528984 1380#ifdef CANNOT_DUMP
108c7c97 1381 ln temacs${EXEEXT} bootstrap-emacs${EXEEXT}
a0528984 1382#else
83f1cb94 1383 $(RUN_TEMACS) --batch --load loadup bootstrap
108c7c97 1384 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
a0528984 1385#endif /* ! defined (CANNOT_DUMP) */