(lisp, shortlisp): Add bindings.el and case-table.elc.
[bpt/emacs.git] / src / Makefile.in
1 # Makefile for GNU Emacs.
2 # Copyright (C) 1985, 87, 88, 93, 94, 95 Free Software Foundation, Inc.
3
4 # This file is part of GNU Emacs.
5
6 # GNU Emacs is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10
11 # GNU Emacs is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Emacs; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
20
21 # Here are the things that we expect ../configure to edit.
22 srcdir=@srcdir@
23 VPATH=@srcdir@
24 CC=@CC@
25 CPP=@CPP@
26 CFLAGS=@CFLAGS@
27 CPPFLAGS=@CPPFLAGS@
28 LDFLAGS=@LDFLAGS@
29 LN_S=@LN_S@
30 # Substitute an assignment for the MAKE variable, because
31 # BSD doesn't have it as a default.
32 @SET_MAKE@
33
34 # On Xenix and the IBM RS6000, double-dot gets screwed up.
35 dot = .
36 dotdot = ${dot}${dot}
37 lispsource = ${srcdir}/$(dot)$(dot)/lisp/
38 libsrc = $(dot)$(dot)/lib-src/
39 etc = $(dot)$(dot)/etc/
40 shortnamesdir = $(dot)$(dot)/shortnames/
41 cppdir = $(dot)$(dot)/cpp/
42 oldXMenudir = $(dot)$(dot)/oldXMenu/
43 lwlibdir = $(dot)$(dot)/lwlib/
44
45 # Configuration files for .o files to depend on.
46 M_FILE = ${srcdir}/@machfile@
47 S_FILE = ${srcdir}/@opsysfile@
48 config_h = config.h $(M_FILE) $(S_FILE)
49
50 # ========================== start of cpp stuff =======================
51 /* From here on, comments must be done in C syntax. */
52
53 C_SWITCH_SYSTEM=
54
55 /* just to be sure the sh is used */
56 SHELL=/bin/sh
57
58 #define THIS_IS_MAKEFILE
59 #define NO_SHORTNAMES
60 #define NOT_C_CODE
61 #include "config.h"
62
63 /* We won't really call alloca;
64 don't let the file name alloca.c get messed up. */
65 #ifdef alloca
66 #undef alloca
67 #endif
68
69 /* Don't let the file name mktime.c get messed up. */
70 #ifdef mktime
71 #undef mktime
72 #endif
73
74 /* Use HAVE_X11 as an alias for X11 in this file
75 to avoid problems with X11 as a subdirectory name
76 in -I and other such options which pass through this file. */
77
78 #ifdef X11
79 #define HAVE_X11
80 #undef X11
81 #endif
82
83 /* On some machines #define register is done in config;
84 don't let it interfere with this file. */
85 #undef register
86
87 /* On some systems we may not be able to use the system make command. */
88 #ifdef MAKE_COMMAND
89 MAKE = MAKE_COMMAND
90 #endif
91
92 #ifdef C_COMPILER
93 CC = C_COMPILER
94 #endif
95
96 /* GNU libc requires ORDINARY_LINK so that its own crt0 is used.
97 Linux is an exception because it uses a funny variant of GNU libc. */
98 #ifdef __GNU_LIBRARY__
99 #ifndef LINUX
100 #define ORDINARY_LINK
101 #endif
102 #endif
103
104 /* Some machines don't find the standard C libraries in the usual place. */
105 #ifndef ORDINARY_LINK
106 #ifndef LIB_STANDARD
107 #define LIB_STANDARD -lc
108 #endif
109 #else
110 #ifndef LIB_STANDARD
111 #define LIB_STANDARD
112 #endif
113 #endif
114
115 /* Unless inhibited or changed, use -lg to link for debugging. */
116 #ifndef LIBS_DEBUG
117 #define LIBS_DEBUG -lg
118 #endif
119
120 /* Some s/SYSTEM.h files define this to request special libraries. */
121 #ifndef LIBS_SYSTEM
122 #define LIBS_SYSTEM
123 #endif
124
125 /* Some m/MACHINE.h files define this to request special libraries. */
126 #ifndef LIBS_MACHINE
127 #define LIBS_MACHINE
128 #endif
129
130 #ifndef LIB_MATH
131 # ifdef LISP_FLOAT_TYPE
132 # define LIB_MATH -lm
133 # else /* ! defined (LISP_FLOAT_TYPE) */
134 # define LIB_MATH
135 # endif /* ! defined (LISP_FLOAT_TYPE) */
136 #endif /* LIB_MATH */
137
138 /* Some s/SYSTEM.h files define this to request special switches in ld. */
139 #ifndef LD_SWITCH_SYSTEM
140 #if !defined (__GNUC__) && (defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)))
141 #define LD_SWITCH_SYSTEM -X
142 #else /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */
143 #define LD_SWITCH_SYSTEM
144 #endif /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */
145 #endif /* LD_SWITCH_SYSTEM */
146
147 /* This holds special options for linking temacs
148 that should be used for linking anything else. */
149 #ifndef LD_SWITCH_SYSTEM_TEMACS
150 #define LD_SWITCH_SYSTEM_TEMACS
151 #endif
152
153 /* Some m/MACHINE.h files define this to request special switches in ld. */
154 #ifndef LD_SWITCH_MACHINE
155 #define LD_SWITCH_MACHINE
156 #endif
157
158 /* Some m/MACHINE.h files define this to request special switches in cc. */
159 #ifndef C_SWITCH_MACHINE
160 #define C_SWITCH_MACHINE
161 #endif
162
163 /* Some s/SYSTEM.h files define this to request special switches in cc. */
164 #ifndef C_SWITCH_SYSTEM
165 #define C_SWITCH_SYSTEM
166 #endif
167
168 /* These macros are for switches specifically related to X Windows. */
169 #ifndef C_SWITCH_X_MACHINE
170 #define C_SWITCH_X_MACHINE
171 #endif
172
173 #ifndef C_SWITCH_X_SYSTEM
174 #define C_SWITCH_X_SYSTEM
175 #endif
176
177 #ifndef C_SWITCH_X_SITE
178 #define C_SWITCH_X_SITE
179 #endif
180
181 #ifndef LD_SWITCH_X_SITE
182 #define LD_SWITCH_X_SITE
183 #endif
184
185 #ifndef LD_SWITCH_X_DEFAULT
186 #define LD_SWITCH_X_DEFAULT
187 #endif
188
189 /* These can be passed in from config.h to define special load and
190 compile switches needed by individual sites */
191 #ifndef LD_SWITCH_SITE
192 #define LD_SWITCH_SITE
193 #endif
194
195 #ifndef C_SWITCH_SITE
196 #define C_SWITCH_SITE
197 #endif
198
199 #ifndef ORDINARY_LINK
200
201 #ifndef CRT0_COMPILE
202 #define CRT0_COMPILE $(CC) -c $(ALL_CFLAGS) C_SWITCH_ASM
203 #endif
204
205 #ifndef START_FILES
206 #ifdef NO_REMAP
207 #ifdef COFF_ENCAPSULATE
208 #define START_FILES pre-crt0.o /usr/local/lib/gcc-crt0.o
209 #else /* ! defined (COFF_ENCAPSULATE) */
210 #define START_FILES pre-crt0.o /lib/crt0.o
211 #endif /* ! defined (COFF_ENCAPSULATE) */
212 #else /* ! defined (NO_REMAP) */
213 #define START_FILES ecrt0.o
214 #endif /* ! defined (NO_REMAP) */
215 #endif /* START_FILES */
216 STARTFILES = START_FILES
217
218 #else /* ORDINARY_LINK */
219
220 /* config.h might want to force START_FILES anyway */
221 #ifdef START_FILES
222 STARTFILES = START_FILES
223 #endif /* START_FILES */
224
225 #endif /* not ORDINARY_LINK */
226
227
228 /* cc switches needed to make `asm' keyword work.
229 Nothing special needed on most machines. */
230 #ifndef C_SWITCH_ASM
231 #define C_SWITCH_ASM
232 #endif
233
234 /* Figure out whether the system cpp can handle long names.
235 Do it by testing it right now.
236 If it loses, arrange to use the GNU cpp. */
237
238 #define LONGNAMEBBBFOOX
239 #ifdef LONGNAMEBBBARFOOX
240 /* Installed cpp fails to distinguish those names! */
241 /* Arrange to compile the GNU cpp later on */
242 #define NEED_CPP
243 /* Cause cc to invoke the cpp that comes with Emacs,
244 which will be in a file named localcpp. */
245 MYCPPFLAG= -Blocal
246 /* LOCALCPP is the local one or nothing.
247 CPP is the local one or the standard one. */
248 LOCALCPP= localcpp
249 #endif /* ! defined (LONGNAMEBBBARFOOX) */
250
251 #ifdef SHORTNAMES
252 SHORT= shortnames
253 #endif
254
255 #ifdef USE_X_TOOLKIT
256 #define USE_@X_TOOLKIT_TYPE@
257 TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@
258 #else
259 TOOLKIT_DEFINES =
260 #endif
261
262 /* DO NOT use -R. There is a special hack described in lastfile.c
263 which is used instead. Some initialized data areas are modified
264 at initial startup, then labeled as part of the text area when
265 Emacs is dumped for the first time, and never changed again. */
266
267 /* -Demacs is needed to make some files produce the correct version
268 for use in Emacs.
269
270 -DHAVE_CONFIG_H is needed for some other files to take advantage of
271 the information in `config.h'. */
272
273 /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
274 since it may have -I options that should override those two. */
275 ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAG) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM ${CFLAGS}
276 .c.o:
277 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
278
279 #ifndef LIBX10_MACHINE
280 #define LIBX10_MACHINE
281 #endif
282
283 #ifndef LIBX11_MACHINE
284 #define LIBX11_MACHINE
285 #endif
286
287 #ifndef LIBX10_SYSTEM
288 #define LIBX10_SYSTEM
289 #endif
290
291 #ifndef LIBX11_SYSTEM
292 #define LIBX11_SYSTEM
293 #endif
294
295 #ifndef LIB_X11_LIB
296 #define LIB_X11_LIB -lX11
297 #endif
298
299 #ifdef HAVE_X_WINDOWS
300 #ifdef HAVE_MENUS
301
302 /* Include xmenu.o in the list of X object files. */
303 XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o
304
305 /* The X Menu stuff is present in the X10 distribution, but missing
306 from X11. If we have X10, just use the installed library;
307 otherwise, use our own copy. */
308 #ifdef HAVE_X11
309 #ifdef USE_X_TOOLKIT
310 OLDXMENU=${lwlibdir}liblw.a
311 LIBXMENU= $(OLDXMENU)
312 #else /* not USE_X_TOOLKIT */
313 OLDXMENU= ${oldXMenudir}libXMenu11.a
314 LIBXMENU= $(OLDXMENU)
315 #endif /* not USE_X_TOOLKIT */
316 #else /* not HAVE_X11 */
317 LIBXMENU= -lXMenu
318 #endif /* not HAVE_X11 */
319
320 #else /* not HAVE_MENUS */
321
322 /* Otherwise, omit xmenu.o from the list of X object files, and
323 don't worry about the menu library at all. */
324 XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o
325 LIBXMENU=
326 #endif /* not HAVE_MENUS */
327
328 #ifdef USE_X_TOOLKIT
329 #define @X_TOOLKIT_TYPE@
330 #if defined (LUCID) || defined (ATHENA)
331 LIBW= -lXaw
332 #endif
333 #ifdef MOTIF
334 #ifdef LIB_MOTIF
335 LIBW= LIB_MOTIF
336 #else
337 LIBW= -lXm
338 #endif
339 #endif
340 #ifdef OPEN_LOOK
341 LIBW= -lXol
342 #endif
343
344 #ifdef HAVE_X11XTR6
345 #ifdef NEED_LIBW
346 LIBXTR6 = -lSM -lICE -lw
347 #else
348 LIBXTR6 = -lSM -lICE
349 #endif
350 #endif
351
352 #ifndef LIBXMU
353 #define LIBXMU -lXmu
354 #endif
355
356 #ifdef LIBXT_STATIC
357 /* We assume the config files have defined STATIC_OPTION
358 since that might depend on the operating system.
359 (Don't forget you need different definitions with and without __GNUC__.) */
360 LIBXT= STATIC_OPTION $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext DYNAMIC_OPTION
361 #else /* not LIBXT_STATIC */
362 LIBXT= $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext
363 #endif /* not LIBXT_STATIC */
364
365 #else /* not USE_X_TOOLKIT */
366 LIBXT=
367 #endif /* not USE_X_TOOLKIT */
368
369 #ifdef HAVE_X11
370 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies
371 options for where to find X libraries, but before those libraries. */
372 X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT
373 LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
374 #else /* not HAVE_X11 */
375 LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM
376 #endif /* not HAVE_X11 */
377 #endif /* not HAVE_X_WINDOWS */
378
379 #ifndef ORDINARY_LINK
380 /* Fix linking if compiled with GCC. */
381 #ifdef __GNUC__
382
383 #if __GNUC__ > 1
384
385 #ifdef LINKER
386 #define LINKER_WAS_SPECIFIED
387 #endif
388
389 /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
390 places that are difficult to figure out at make time. Fortunately,
391 these same versions allow you to pass arbitrary flags on to the
392 linker, so there's no reason not to use it as a linker.
393
394 Well, it's not quite perfect. The `-nostdlib' keeps GCC from
395 searching for libraries in its internal directories, so we have to
396 ask GCC explicitly where to find libgcc.a. */
397
398 #ifndef LINKER
399 #define LINKER $(CC) -nostdlib
400 #endif
401
402 #ifndef LIB_GCC
403 /* Ask GCC where to find libgcc.a. */
404 #define LIB_GCC `$(CC) -print-libgcc-file-name`
405 #endif /* not LIB_GCC */
406
407 GNULIB_VAR = LIB_GCC
408
409 #ifndef LINKER_WAS_SPECIFIED
410 /* GCC passes any argument prefixed with -Xlinker directly to the
411 linker. See prefix-args.c for an explanation of why we don't do
412 this with the shell's `for' construct.
413 Note that some people don't have '.' in their paths, so we must
414 use ./prefix-args. */
415 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
416 #else
417 #define YMF_PASS_LDFLAGS(flags) flags
418 #endif
419
420 #else /* __GNUC__ < 2 */
421
422 #ifndef LIB_GCC
423 #define LIB_GCC /usr/local/lib/gcc-gnulib
424 #endif /* not LIB_GCC */
425 GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
426 #endif /* __GNUC__ < 2 */
427 #else /* not __GNUC__ */
428 GNULIB_VAR =
429
430 #endif /* not __GNUC__ */
431 #endif /* not ORDINARY_LINK */
432
433 /* Specify address for ld to start loading at,
434 if requested by configuration. */
435 #ifdef LD_TEXT_START_ADDR
436 STARTFLAGS = -T LD_TEXT_START_ADDR -e __start
437 #endif
438
439 #ifdef ORDINARY_LINK
440 LD = $(CC)
441 #else
442 #ifdef COFF_ENCAPSULATE
443 LD=$(CC) -nostdlib
444 #else /* not ORDINARY_LINK */
445 #ifdef LINKER
446 LD=LINKER
447 #else /* not LINKER */
448 LD=ld
449 #endif /* not LINKER */
450 #endif /* not COFF_ENCAPSULATE */
451 #endif /* not ORDINARY_LINK */
452
453 ALL_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE \
454 LD_SWITCH_SITE $(LDFLAGS)
455
456 /* A macro which other sections of Makefile can redefine to munge the
457 flags before they're passed to LD. This is helpful if you have
458 redefined LD to something odd, like "gcc".
459 (The YMF prefix is a holdover from the old name "ymakefile".)
460 */
461 #ifndef YMF_PASS_LDFLAGS
462 #define YMF_PASS_LDFLAGS(flags) flags
463 #endif
464
465 /* Allow config.h to specify a replacement file for unexec.c. */
466 #ifndef UNEXEC
467 #define UNEXEC unexec.o
468 #endif
469 #ifndef UNEXEC_SRC
470 #define UNEXEC_SRC unexec.c
471 #endif
472
473 #ifdef USE_TEXT_PROPERTIES
474 #define INTERVAL_SRC intervals.h
475 #define INTERVAL_OBJ intervals.o textprop.o
476 #else
477 #define INTERVAL_SRC
478 #define INTERVAL_OBJ
479 #endif
480
481 #ifdef HAVE_GETLOADAVG
482 #define GETLOADAVG_OBJ
483 #else
484 #define GETLOADAVG_OBJ getloadavg.o
485 #endif
486
487 #if HAVE_MKTIME && ! BROKEN_MKTIME
488 #define MKTIME_OBJ
489 #else
490 #define MKTIME_OBJ mktime.o
491 #endif
492
493 #ifdef MSDOS
494 #ifdef HAVE_X_WINDOWS
495 #define MSDOS_OBJ dosfns.o msdos.o
496 #else
497 #define MSDOS_OBJ dosfns.o msdos.o w16select.o
498 #endif
499 #else
500 #define MSDOS_OBJ
501 #endif
502
503
504 /* lastfile must follow all files
505 whose initialized data areas should be dumped as pure by dump-emacs. */
506 obj= dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o \
507 charset.o coding.o category.o ccl.o\
508 cm.o term.o xfaces.o $(XOBJ) \
509 emacs.o keyboard.o macros.o keymap.o sysdep.o \
510 buffer.o filelock.o insdel.o marker.o INTERVAL_OBJ \
511 minibuf.o fileio.o dired.o filemode.o \
512 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
513 alloc.o data.o doc.o editfns.o callint.o \
514 eval.o floatfns.o fns.o print.o lread.o \
515 abbrev.o syntax.o UNEXEC mocklisp.o bytecode.o \
516 process.o callproc.o \
517 region-cache.o \
518 doprnt.o strftime.o MKTIME_OBJ GETLOADAVG_OBJ MSDOS_OBJ
519
520 /* Object files used on some machine or other.
521 These go in the DOC file on all machines
522 in case they are needed there. */
523 SOME_MACHINE_OBJECTS = sunfns.o dosfns.o msdos.o intervals.o textprop.o \
524 xterm.o xfns.o xmenu.o xselect.o xrdb.o
525
526
527 #ifdef TERMINFO
528 /* Used to be -ltermcap here. If your machine needs that,
529 define LIBS_TERMCAP in the m/MACHINE.h file. */
530 #ifndef LIBS_TERMCAP
531 #define LIBS_TERMCAP -lcurses
532 #endif /* LIBS_TERMCAP */
533 termcapobj = terminfo.o
534 #else /* ! defined (TERMINFO) */
535 #ifndef LIBS_TERMCAP
536 #define LIBS_TERMCAP
537 termcapobj = termcap.o tparam.o
538 #else /* LIBS_TERMCAP */
539 termcapobj = tparam.o
540 #endif /* LIBS_TERMCAP */
541 #endif /* ! defined (TERMINFO) */
542
543
544 #ifndef SYSTEM_MALLOC
545
546 #ifdef DOUG_LEA_MALLOC
547 #ifdef REL_ALLOC
548 mallocobj = ralloc.o vm-limit.o
549 #else /* ! defined (REL_ALLOC) */
550 mallocobj = vm-limit.o
551 #endif /* ! defined (REL_ALLOC) */
552 #else /* ! defined (DOUG_LEA_MALLOC) */
553 #ifdef REL_ALLOC
554 mallocobj = gmalloc.o ralloc.o vm-limit.o
555 #else /* ! defined (REL_ALLOC) */
556 mallocobj = gmalloc.o vm-limit.o
557 #endif /* ! defined (REL_ALLOC) */
558 #endif /* ! defined (DOUG_LEA_MALLOC) */
559
560 #endif /* SYSTEM_MALLOC */
561
562
563 #ifndef HAVE_ALLOCA
564 allocaobj = alloca.o
565 #else
566 allocaobj =
567 #endif
568
569 #ifdef USE_X_TOOLKIT
570 widgetobj= widget.o
571 #else /* not USE_X_TOOLKIT */
572 widgetobj=
573 #endif /* not USE_X_TOOLKIT */
574
575
576 /* define otherobj as list of object files that make-docfile
577 should not be told about. */
578 otherobj= $(termcapobj) lastfile.o $(mallocobj) $(allocaobj) $(widgetobj)
579
580 #ifdef HAVE_FACES
581 #define FACE_SUPPORT ${lispsource}facemenu.elc
582 #else
583 #define FACE_SUPPORT
584 #endif
585
586 #ifdef LISP_FLOAT_TYPE
587 #define FLOAT_SUPPORT ${lispsource}float-sup.elc
588 #else
589 #define FLOAT_SUPPORT
590 #endif
591
592 #ifdef HAVE_MOUSE
593 #define MOUSE_SUPPORT ${lispsource}mouse.elc \
594 ${lispsource}select.elc ${lispsource}scroll-bar.elc
595 #else
596 #define MOUSE_SUPPORT
597 #endif
598
599 #ifdef HAVE_X_WINDOWS
600 #define X_WINDOWS_SUPPORT
601 #else
602 #define X_WINDOWS_SUPPORT
603 #endif
604
605 #ifdef VMS
606 #define VMS_SUPPORT ${lispsource}vmsproc.elc ${lispsource}vms-patch.elc
607 #else
608 #define VMS_SUPPORT
609 #endif
610
611 #ifdef MSDOS
612 #define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
613 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc
614 #else
615 #define MSDOS_SUPPORT
616 #endif
617
618 #ifdef WINDOWSNT
619 #define WINNT_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}w32-fns.elc \
620 ${lispsource}dos-w32.elc
621 #else
622 #define WINNT_SUPPORT
623 #endif
624
625 /* List of Lisp files loaded into the dumped Emacs. It's arranged
626 like this because it's easier to generate it semi-mechanically from
627 loadup.el this way.
628
629 Note that this list should not include lisp files which might not
630 be present, like site-load.el and site-init.el; this makefile
631 expects them all to be either present or buildable.
632
633 Files which are loaded unconditionally should be in shortlisp as well.
634 Files included conditionally here should be included (unconditionally)
635 in SOME_MACHINE_LISP. */
636
637 lisp= \
638 ${lispsource}abbrev.elc \
639 ${lispsource}buff-menu.elc \
640 ${lispsource}byte-run.elc \
641 ${lispsource}cus-start.el \
642 ${lispsource}custom.elc \
643 ${lispsource}emacs-lisp/lisp-mode.elc \
644 ${lispsource}emacs-lisp/lisp.elc \
645 ${lispsource}faces.elc \
646 ${lispsource}files.elc \
647 ${lispsource}format.elc \
648 FACE_SUPPORT \
649 MOUSE_SUPPORT \
650 FLOAT_SUPPORT \
651 ${lispsource}frame.elc\
652 X_WINDOWS_SUPPORT \
653 ${lispsource}help.elc \
654 ${lispsource}indent.elc \
655 ${lispsource}isearch.elc \
656 ${lispsource}loadup.el \
657 ${lispsource}loaddefs.el \
658 ${lispsource}bindings.el \
659 ${lispsource}map-ynp.elc \
660 ${lispsource}menu-bar.elc \
661 ${lispsource}international/mule.elc \
662 ${lispsource}international/mule-conf.el \
663 ${lispsource}international/mule-cmds.elc \
664 ${lispsource}international/characters.elc \
665 ${lispsource}case-table.elc \
666 ${lispsource}language/chinese.elc \
667 ${lispsource}language/cyrillic.elc \
668 ${lispsource}language/devanagari.elc \
669 ${lispsource}language/english.elc \
670 ${lispsource}language/ethiopic.elc \
671 ${lispsource}language/european.elc \
672 ${lispsource}language/greek.elc \
673 ${lispsource}language/hebrew.elc \
674 ${lispsource}language/indian.elc \
675 ${lispsource}language/japanese.elc \
676 ${lispsource}language/korean.elc \
677 ${lispsource}language/lao.elc \
678 ${lispsource}language/thai.elc \
679 ${lispsource}language/tibetan.elc \
680 ${lispsource}language/vietnamese.elc \
681 ${lispsource}language/misc-lang.elc \
682 ${lispsource}paths.el \
683 ${lispsource}register.elc \
684 ${lispsource}replace.elc \
685 ${lispsource}simple.elc \
686 ${lispsource}startup.elc \
687 ${lispsource}subr.elc \
688 ${lispsource}textmodes/fill.elc \
689 ${lispsource}textmodes/page.elc \
690 ${lispsource}textmodes/paragraphs.elc \
691 ${lispsource}textmodes/text-mode.elc \
692 ${lispsource}vc-hooks.elc \
693 ${lispsource}ediff-hook.elc \
694 VMS_SUPPORT \
695 MSDOS_SUPPORT \
696 WINNT_SUPPORT \
697 ${lispsource}widget.elc \
698 ${lispsource}window.elc \
699 ${lispsource}version.el
700
701 /* These are relative file names for the Lisp files
702 that are loaded unconditionally. This is used in make-docfile.
703 It need not contain the files that are loaded conditionally
704 because SOME_MACHINE_LISP has those. */
705 shortlisp= \
706 ../lisp/abbrev.elc \
707 ../lisp/buff-menu.elc \
708 ../lisp/byte-run.elc \
709 ../lisp/cus-start.el \
710 ../lisp/custom.elc \
711 ../lisp/emacs-lisp/lisp-mode.elc \
712 ../lisp/emacs-lisp/lisp.elc \
713 ../lisp/faces.elc \
714 ../lisp/files.elc \
715 ../lisp/format.elc \
716 ../lisp/help.elc \
717 ../lisp/indent.elc \
718 ../lisp/isearch.elc \
719 ../lisp/loadup.el \
720 ../lisp/loaddefs.el \
721 ../lisp/bindings.el \
722 ../lisp/map-ynp.elc \
723 ../lisp/international/mule.elc \
724 ../lisp/international/mule-conf.el \
725 ../lisp/international/mule-cmds.elc \
726 ../lisp/international/characters.elc \
727 ../lisp/case-table.elc \
728 ../lisp/language/chinese.elc \
729 ../lisp/language/cyrillic.elc \
730 ../lisp/language/devanagari.elc \
731 ../lisp/language/english.elc \
732 ../lisp/language/ethiopic.elc \
733 ../lisp/language/european.elc \
734 ../lisp/language/greek.elc \
735 ../lisp/language/hebrew.elc \
736 ../lisp/language/indian.elc \
737 ../lisp/language/japanese.elc \
738 ../lisp/language/korean.elc \
739 ../lisp/language/lao.elc \
740 ../lisp/language/thai.elc \
741 ../lisp/language/tibetan.elc \
742 ../lisp/language/vietnamese.elc \
743 ../lisp/language/misc-lang.elc \
744 ../lisp/paths.el \
745 ../lisp/register.elc \
746 ../lisp/replace.elc \
747 ../lisp/simple.elc \
748 ../lisp/startup.elc \
749 ../lisp/subr.elc \
750 ../lisp/textmodes/fill.elc \
751 ../lisp/textmodes/page.elc \
752 ../lisp/textmodes/paragraphs.elc \
753 ../lisp/textmodes/text-mode.elc \
754 ../lisp/vc-hooks.elc \
755 ../lisp/ediff-hook.elc \
756 ../lisp/widget.elc \
757 ../lisp/window.elc \
758 ../lisp/version.el
759
760 /* Lisp files that may or may not be used.
761 We must unconditionally put them in the DOC file.
762 We use ../lisp/ to start the file names
763 to reduce the size of the argument list for make-docfile
764 for the sake of systems which can't handle large ones. */
765 SOME_MACHINE_LISP = ${dotdot}/lisp/facemenu.elc \
766 ${dotdot}/lisp/float-sup.elc ${dotdot}/lisp/frame.elc \
767 ${dotdot}/lisp/menu-bar.elc ${dotdot}/lisp/mouse.elc \
768 ${dotdot}/lisp/select.elc ${dotdot}/lisp/scroll-bar.elc \
769 ${dotdot}/lisp/vmsproc.elc ${dotdot}/lisp/vms-patch.elc \
770 ${dotdot}/lisp/ls-lisp.elc ${dotdot}/lisp/dos-fns.elc \
771 ${dotdot}/lisp/w32-fns.elc ${dotdot}/lisp/dos-w32.elc
772
773 /* Construct full set of libraries to be linked.
774 Note that SunOS needs -lm to come before -lc; otherwise, you get
775 duplicated symbols. If the standard libraries were compiled
776 with GCC, we might need gnulib again after them. */
777 LIBES = $(LOADLIBES) $(LDLIBS) $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
778 LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
779
780 /* Enable recompilation of certain other files depending on system type. */
781
782 #ifndef OTHER_FILES
783 #define OTHER_FILES
784 #endif
785
786 /* Enable inclusion of object files in temacs depending on system type. */
787 #ifndef OBJECTS_SYSTEM
788 #define OBJECTS_SYSTEM
789 #endif
790
791 #ifndef OBJECTS_MACHINE
792 #define OBJECTS_MACHINE
793 #endif
794
795 all: emacs OTHER_FILES
796
797 emacs: temacs ${etc}DOC ${lisp}
798 #ifdef CANNOT_DUMP
799 rm -f emacs
800 ln temacs emacs
801 #else
802 #ifdef HAVE_SHM
803 ./temacs -nl -batch -l loadup dump
804 #else /* ! defined (HAVE_SHM) */
805 ./temacs -batch -l loadup dump
806 #endif /* ! defined (HAVE_SHM) */
807 #endif /* ! defined (CANNOT_DUMP) */
808
809 /* We run make-docfile twice because the command line may get too long
810 on some systems. */
811 /* ${SOME_MACHINE_OBJECTS} comes before ${obj} because some files may
812 or may not be included in ${obj}, but they are always included in
813 ${SOME_MACHINE_OBJECTS}. Since a file is processed when it is mentioned
814 for the first time, this prevents any variation between configurations
815 in the contents of the DOC file.
816 Likewise for ${SOME_MACHINE_LISP}. */
817 ${etc}DOC: ${libsrc}make-docfile ${obj} ${lisp}
818 -rm -f ${etc}DOC
819 ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
820 ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
821
822 ${libsrc}make-docfile:
823 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile
824
825 /* Some systems define this to cause parallel Make-ing. */
826 #ifndef MAKE_PARALLEL
827 #define MAKE_PARALLEL
828 #endif
829
830 temacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE prefix-args
831 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${ALL_LDFLAGS}) \
832 -o temacs ${STARTFILES} ${obj} ${otherobj} \
833 OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
834
835 /* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
836 often contain options that have to do with using Emacs's crt0,
837 which are only good with temacs. */
838 prefix-args: prefix-args.c $(config_h)
839 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
840
841 /* These are needed for C compilation, on the systems that need them */
842 #ifdef NEED_CPP
843 CPP = ./localcpp
844 localcpp:
845 cd ${cppdir}; ${MAKE} ${MFLAGS} EMACS=-DEMACS
846 ln ${cppdir}cpp localcpp /* Name where ALL_CFLAGS will refer to it */
847 /* cc appears to be cretinous and require all of these to exist
848 if -B is specified -- we can't use one local pass and let the
849 others be the standard ones. What a loser.
850 We can't even use ln, since they are probably
851 on different disks. */
852 cp /lib/ccom localccom
853 -cp /lib/optim localoptim
854 -cp /lib/c2 localc2
855 cp /bin/as localas
856 #else /* ! defined (NEED_CPP) */
857 CPP = $(CC) -E
858 #endif /* ! defined (NEED_CPP) */
859
860 #ifdef SHORTNAMES
861 shortnames:
862 cd ${shortnamesdir}; ${MAKE} ${MFLAGS}
863 #endif
864
865 /* Don't lose if this was not defined. */
866 #ifndef OLDXMENU_OPTIONS
867 #define OLDXMENU_OPTIONS
868 #endif
869
870 /* Don't lose if this was not defined. */
871 #ifndef LWLIB_OPTIONS
872 #define LWLIB_OPTIONS
873 #endif
874
875 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS)
876
877 /* We use stamp-xmenu with these two deps
878 to both ensure that lwlib gets remade based on its dependencies
879 in its own makefile,
880 and remake temacs if lwlib gets changed by this. */
881 stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU)
882 touch stamp-oldxmenu
883 /* Supply an ordering for parallel make. */
884 ../src/$(OLDXMENU): ${OLDXMENU}
885
886 #ifdef USE_X_TOOLKIT
887 $(OLDXMENU): really-lwlib
888
889 /* Encode the values of these two macros in Make variables,
890 so we can use $(...) to substitute their values within "...". */
891 C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
892 C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM
893 C_SWITCH_SITE_1 = C_SWITCH_SITE
894 C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
895 C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
896 C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
897 really-lwlib:
898 cd ${lwlibdir}; ${MAKE} ${MFLAGS} LWLIB_OPTIONS \
899 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
900 "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \
901 "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \
902 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \
903 "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \
904 "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \
905 "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
906 @true /* make -t should not create really-lwlib. */
907 .PHONY: really-lwlib
908 #else /* not USE_X_TOOLKIT */
909 $(OLDXMENU): really-oldXMenu
910
911 /* Encode the values of these two macros in Make variables,
912 so we can use $(...) to substitute their values within "...". */
913 C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
914 C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM
915 C_SWITCH_SITE_1 = C_SWITCH_SITE
916 C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
917 C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
918 C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
919 really-oldXMenu:
920 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} OLDXMENU_OPTIONS \
921 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
922 "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \
923 "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \
924 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \
925 "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \
926 "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \
927 "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
928 @true /* make -t should not create really-oldXMenu. */
929 .PHONY: really-oldXMenu
930 #endif /* not USE_X_TOOLKIT */
931 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS) */
932
933 /* We don't really need this, but satisfy the dependency. */
934 stamp-oldxmenu:
935 touch stamp-oldxmenu
936 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS) */
937
938 ../config.status:: paths.in
939 @echo "The file paths.h needs to be set up from paths.in."
940 @echo "Please run the `configure' script again."
941 exit 1
942
943 ../config.status:: config.in
944 @echo "The file config.h needs to be set up from config.in."
945 @echo "Please run the `configure' script again."
946 exit 1
947
948 /* Some machines have alloca built-in.
949 They should define HAVE_ALLOCA, or may just let alloca.s
950 be used but generate no code.
951 Some have it written in assembler in alloca.s.
952 Some use the C version in alloca.c (these define C_ALLOCA in config.h).
953 */
954
955 #ifdef C_ALLOCA
956 /* We could put something in alloca.c to #define free and malloc
957 whenever emacs was #defined, but that's not appropriate for all
958 users of alloca in Emacs. Check out ../lib-src/getopt.c. */
959 alloca.o : alloca.c
960 $(CC) -c $(CPPFLAGS) -Dfree=xfree -Dmalloc=xmalloc \
961 $(ALL_CFLAGS) ${srcdir}/alloca.c
962 #else
963 #ifndef HAVE_ALLOCA
964 alloca.o : alloca.s $(config_h)
965 /* $(CPP) is cc -E, which may get confused by filenames
966 that do not end in .c. So copy file to a safe name. */
967 -rm -f allocatem.c
968 cp ${srcdir}/alloca.s allocatem.c
969 /* Remove any ^L, blank lines, and preprocessor comments,
970 since some assemblers barf on them. Use a different basename for the
971 output file, since some stupid compilers (Green Hill's) use that
972 name for the intermediate assembler file. */
973 $(CPP) $(CPPFLAGS) $(ALL_CFLAGS) allocatem.c | \
974 sed -e 's/\f//' -e 's/^#.*//' | \
975 sed -n -e '/^..*$$/p' > allocax.s
976 -rm -f alloca.o
977 /* Xenix, in particular, needs to run assembler via cc. */
978 $(CC) -c allocax.s
979 mv allocax.o alloca.o
980 -rm -f allocax.s allocatem.c
981 #endif /* HAVE_ALLOCA */
982 #endif /* ! defined (C_ALLOCA) */
983
984 /* Nearly all the following files depend on lisp.h,
985 but it is not included as a dependency because
986 it is so often changed in ways that do not require any recompilation
987 and so rarely changed in ways that do require any. */
988
989 abbrev.o: abbrev.c buffer.h window.h commands.h $(config_h)
990 buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \
991 INTERVAL_SRC blockinput.h charset.h $(config_h)
992 callint.o: callint.c window.h commands.h buffer.h mocklisp.h \
993 keyboard.h $(config_h)
994 callproc.o: callproc.c paths.h buffer.h commands.h $(config_h) \
995 process.h systty.h syssignal.h charset.h coding.h
996 casefiddle.o: casefiddle.c syntax.h commands.h buffer.h $(config_h)
997 casetab.o: casetab.c buffer.h $(config_h)
998 category.o: category.c category.h buffer.h charset.h $(config_h)
999 ccl.o: ccl.c ccl.h charset.h coding.h $(config_h)
1000 charset.o: charset.c charset.h buffer.h coding.h disptab.h $(config_h)
1001 coding.o: coding.c coding.h buffer.h charset.h $(config_h)
1002 cm.o: cm.c cm.h termhooks.h $(config_h)
1003 cmds.o: cmds.c syntax.h buffer.h charset.h commands.h window.h $(config_h)
1004 pre-crt0.o: pre-crt0.c
1005 ecrt0.o: ecrt0.c $(config_h)
1006 CRT0_COMPILE ${srcdir}/ecrt0.c
1007 dired.o: dired.c commands.h buffer.h $(config_h) regex.h
1008 dispnew.o: dispnew.c commands.h frame.h window.h buffer.h dispextern.h \
1009 termchar.h termopts.h termhooks.h cm.h disptab.h systty.h systime.h \
1010 xterm.h blockinput.h charset.h $(config_h)
1011 doc.o: doc.c $(config_h) paths.h buffer.h keyboard.h
1012 doprnt.o: doprnt.c charset.h $(config_h)
1013 dosfns.o: buffer.h termchar.h termhooks.h frame.h msdos.h dosfns.h $(config_h)
1014 editfns.o: editfns.c window.h buffer.h systime.h INTERVAL_SRC charset.h \
1015 $(config_h)
1016 emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
1017 INTERVAL_SRC $(config_h)
1018 fileio.o: fileio.c window.h buffer.h systime.h INTERVAL_SRC charset.h \
1019 coding.h $(config_h)
1020 filelock.o: filelock.c buffer.h paths.h $(config_h)
1021 filemode.o: filemode.c $(config_h)
1022 frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
1023 buffer.h charset.h fontset.h $(config_h)
1024 fontset.o: fontset.h fontset.c ccl.h charset.h frame.h $(config_h)
1025 getloadavg.o: getloadavg.c $(config_h)
1026 indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \
1027 termopts.h disptab.h region-cache.h charset.h
1028 insdel.o: insdel.c window.h buffer.h INTERVAL_SRC blockinput.h charset.h\
1029 $(config_h)
1030 keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h charset.h \
1031 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
1032 systty.h systime.h dispextern.h intervals.h blockinput.h xterm.h $(config_h)
1033 keymap.o: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
1034 puresize.h charset.h $(config_h)
1035 lastfile.o: lastfile.c $(config_h)
1036 macros.o: macros.c window.h buffer.h commands.h macros.h keyboard.h $(config_h)
1037 malloc.o: malloc.c $(config_h)
1038 gmalloc.o: gmalloc.c $(config_h)
1039 ralloc.o: ralloc.c $(config_h)
1040 vm-limit.o: vm-limit.c mem-limits.h $(config_h)
1041 marker.o: marker.c buffer.h $(config_h)
1042 minibuf.o: minibuf.c syntax.h dispextern.h frame.h window.h \
1043 buffer.h commands.h charset.h $(config_h)
1044 mktime.o: mktime.c $(config_h)
1045 mocklisp.o: mocklisp.c buffer.h $(config_h)
1046 msdos.o: msdos.c msdos.h dosfns.h systime.h termhooks.h dispextern.h \
1047 termopts.h frame.h window.h $(config_h)
1048 process.o: process.c process.h buffer.h window.h termhooks.h termopts.h \
1049 commands.h syssignal.h systime.h systty.h syswait.h frame.h \
1050 blockinput.h charset.h coding.h $(config_h)
1051 regex.o: regex.c syntax.h buffer.h $(config_h) regex.h category.h charset.h
1052 region-cache.o: region-cache.c buffer.h region-cache.h
1053 scroll.o: scroll.c termchar.h dispextern.h frame.h $(config_h)
1054 search.o: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
1055 blockinput.h category.h charset.h $(config_h)
1056 strftime.o: strftime.c $(config_h)
1057 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -Dstrftime=emacs_strftime $<
1058 syntax.o: syntax.c syntax.h buffer.h commands.h category.h charset.h \
1059 $(config_h)
1060 sysdep.o: sysdep.c $(config_h) dispextern.h termhooks.h termchar.h termopts.h \
1061 frame.h syssignal.h systty.h systime.h syswait.h blockinput.h window.h
1062 term.o: term.c termchar.h termhooks.h termopts.h $(config_h) cm.h frame.h \
1063 disptab.h keyboard.h charset.h coding.h
1064 termcap.o: termcap.c $(config_h)
1065 terminfo.o: terminfo.c $(config_h)
1066 tparam.o: tparam.c $(config_h)
1067 undo.o: undo.c buffer.h commands.h $(config_h)
1068 /* This hack is to discard any space that cpp might put at the beginning
1069 of UNEXEC when substituting it in. */
1070 UNEXEC_ALIAS=UNEXEC
1071 $(UNEXEC_ALIAS): UNEXEC_SRC $(config_h)
1072 w16select.o: w16select.c lisp.h dispextern.h frame.h blockinput.h
1073 widget.o: widget.c xterm.h frame.h dispextern.h widgetprv.h \
1074 ../lwlib/lwlib.h $(config_h)
1075 window.o: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
1076 termhooks.h disptab.h keyboard.h $(config_h)
1077 xdisp.o: xdisp.c macros.h commands.h indent.h buffer.h dispextern.h coding.h \
1078 termchar.h frame.h window.h disptab.h termhooks.h charset.h $(config_h)
1079 xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
1080 window.h charset.h $(config_h)
1081 xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h\
1082 ../lwlib/lwlib.h blockinput.h paths.h charset.h $(config_h)
1083 xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h keyboard.h \
1084 ../lwlib/lwlib.h blockinput.h puresize.h msdos.h $(config_h)
1085 xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h \
1086 dispextern.h frame.h disptab.h blockinput.h systime.h syssignal.h \
1087 keyboard.h gnu.h sink.h sinkmask.h charset.h ccl.h fontset.h $(config_h)
1088 xselect.o: xselect.c dispextern.h frame.h xterm.h blockinput.h charset.h \
1089 $(config_h)
1090 xrdb.o: xrdb.c $(config_h)
1091 hftctl.o: hftctl.c $(config_h)
1092
1093 /* The files of Lisp proper */
1094
1095 alloc.o: alloc.c frame.h window.h buffer.h puresize.h syssignal.h keyboard.h \
1096 blockinput.h $(config_h) INTERVAL_SRC
1097 bytecode.o: bytecode.c buffer.h syntax.h $(config_h)
1098 data.o: data.c buffer.h puresize.h charset.h syssignal.h keyboard.h $(config_h)
1099 eval.o: eval.c commands.h keyboard.h blockinput.h $(config_h)
1100 floatfns.o: floatfns.c $(config_h)
1101 fns.o: fns.c commands.h $(config_h) frame.h buffer.h keyboard.h \
1102 frame.h window.h INTERVAL_SRC
1103 print.o: print.c process.h frame.h window.h buffer.h keyboard.h charset.h\
1104 $(config_h)
1105 lread.o: lread.c commands.h keyboard.h buffer.h paths.h charset.h $(config_h) \
1106 termhooks.h
1107
1108 /* Text properties support */
1109 textprop.o: textprop.c buffer.h window.h intervals.h $(config_h)
1110 intervals.o: intervals.c buffer.h intervals.h keyboard.h puresize.h $(config_h)
1111
1112 /* System-specific programs to be made.
1113 OTHER_FILES, OBJECTS_SYSTEM and OBJECTS_MACHINE
1114 select which of these should be compiled. */
1115
1116 sunfns.o: sunfns.c buffer.h window.h $(config_h)
1117
1118 ${libsrc}emacstool: ${libsrc}emacstool.c
1119 cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool
1120 mostlyclean:
1121 rm -f temacs prefix-args core \#* *.o libXMenu11.a liblw.a
1122 rm -f ../etc/DOC
1123 clean: mostlyclean
1124 rm -f emacs-* emacs
1125 /**/# This is used in making a distribution.
1126 /**/# Do not use it on development directories!
1127 distclean: clean
1128 rm -f paths.h config.h Makefile Makefile.c ../etc/DOC-*
1129 maintainer-clean: distclean
1130 @echo "This command is intended for maintainers to use;"
1131 @echo "it deletes files that may require special tools to rebuild."
1132 rm -f TAGS
1133 versionclean:
1134 -rm -f emacs emacs-* ../etc/DOC*
1135 extraclean: distclean
1136 -rm -f *~ \#* m/?*~ s/?*~
1137
1138 /* The rule for the [sm] files has to be written a little funny to
1139 avoid looking like a C comment to CPP. */
1140 SOURCES = *.[ch] [sm]/?* COPYING Makefile.in \
1141 config.in paths.in README COPYING ChangeLog vms.pp-trans
1142 unlock:
1143 chmod u+w $(SOURCES)
1144
1145 relock:
1146 chmod -w $(SOURCES)
1147 chmod +w paths.h
1148
1149 /* Arrange to make a tags table in ../lisp, and another in this dir
1150 which includes ../lisp/TAGS by reference. */
1151 ctagsfiles = [a-zA-Z]*.[hc]
1152 lisptagsfiles = ../lisp/[a-zA-Z]*.el
1153 TAGS: $(srcdir)/$(ctagsfiles)
1154 export DIR; DIR=`pwd`; cd ${srcdir}; \
1155 $$DIR/../lib-src/etags --include=../lisp/TAGS \
1156 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' $(ctagsfiles)
1157 ${lispsource}TAGS: ${lispsource}$(lisptagsfiles)
1158 export DIR; DIR=`pwd`; cd ${lispsource}; \
1159 $(MAKE) TAGS ETAGS=$$DIR/../lib-src/etags
1160 tags: TAGS ${lispsource}TAGS
1161 .PHONY: tags