7328
|
1 # Makefile for GNU Emacs.
|
49652
|
2 # Copyright (C) 1985, 87, 88, 93, 94, 95, 99, 2000, 2001, 2003
|
35205
|
3 # Free Software Foundation, Inc.
|
4796
|
4
|
7328
|
5 # This file is part of GNU Emacs.
|
4796
|
6
|
7328
|
7 # GNU Emacs is free software; you can redistribute it and/or modify
|
|
8 # it under the terms of the GNU General Public License as published by
|
|
9 # the Free Software Foundation; either version 2, or (at your option)
|
|
10 # any later version.
|
4796
|
11
|
7328
|
12 # GNU Emacs is distributed in the hope that it will be useful,
|
|
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 # GNU General Public License for more details.
|
4796
|
16
|
7328
|
17 # You should have received a copy of the GNU General Public License
|
|
18 # along with GNU Emacs; see the file COPYING. If not, write to
|
14186
|
19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 # Boston, MA 02111-1307, USA.
|
4796
|
21
|
28641
|
22
|
|
23 # Note that this file is edited by msdos/sed1v2.inp for MSDOS. That
|
|
24 # script may need modifying in sync with changes made here. Try to
|
|
25 # avoid shell-ism because the DOS build has to use the DOS shell.
|
|
26
|
39667
|
27 # Don't try to replace the cpp processing using autoconf facilities,
|
28641
|
28 # says rms.
|
|
29
|
7328
|
30 # Here are the things that we expect ../configure to edit.
|
22872
|
31 # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
|
4796
|
32 srcdir=@srcdir@
|
|
33 VPATH=@srcdir@
|
|
34 CC=@CC@
|
|
35 CPP=@CPP@
|
|
36 CFLAGS=@CFLAGS@
|
19038
|
37 CPPFLAGS=@CPPFLAGS@
|
|
38 LDFLAGS=@LDFLAGS@
|
4796
|
39 LN_S=@LN_S@
|
49652
|
40 EXEEXT=@EXEEXT@
|
7328
|
41 # Substitute an assignment for the MAKE variable, because
|
|
42 # BSD doesn't have it as a default.
|
6927
|
43 @SET_MAKE@
|
28641
|
44 # Don't use LIBS. configure puts stuff in it that either shouldn't be
|
|
45 # linked with Emacs or is duplicated by the cpp stuff below.
|
|
46 # LIBS = @LIBS@
|
28586
|
47 LIBOBJS = @LIBOBJS@
|
4796
|
48
|
7328
|
49 # On Xenix and the IBM RS6000, double-dot gets screwed up.
|
4796
|
50 dot = .
|
13761
|
51 dotdot = ${dot}${dot}
|
12539
|
52 lispsource = ${srcdir}/$(dot)$(dot)/lisp/
|
4796
|
53 libsrc = $(dot)$(dot)/lib-src/
|
|
54 etc = $(dot)$(dot)/etc/
|
|
55 oldXMenudir = $(dot)$(dot)/oldXMenu/
|
5670
|
56 lwlibdir = $(dot)$(dot)/lwlib/
|
41654
|
57 lispdir = $(dot)$(dot)/lisp/
|
7045
|
58
|
7328
|
59 # Configuration files for .o files to depend on.
|
7045
|
60 M_FILE = ${srcdir}/@machfile@
|
|
61 S_FILE = ${srcdir}/@opsysfile@
|
|
62 config_h = config.h $(M_FILE) $(S_FILE)
|
4796
|
63
|
14597
|
64 # ========================== start of cpp stuff =======================
|
7328
|
65 /* From here on, comments must be done in C syntax. */
|
|
66
|
5434
|
67 C_SWITCH_SYSTEM=
|
|
68
|
4796
|
69 /* just to be sure the sh is used */
|
|
70 SHELL=/bin/sh
|
|
71
|
13761
|
72 #define THIS_IS_MAKEFILE
|
4796
|
73 #define NO_SHORTNAMES
|
|
74 #define NOT_C_CODE
|
|
75 #include "config.h"
|
|
76
|
8327
|
77 /* We won't really call alloca;
|
|
78 don't let the file name alloca.c get messed up. */
|
|
79 #ifdef alloca
|
|
80 #undef alloca
|
|
81 #endif
|
|
82
|
16082
518683f8b4ce
(mktime): #undef so that we don't mess up the file name mktime.c.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
83 /* Don't let the file name mktime.c get messed up. */
|
518683f8b4ce
(mktime): #undef so that we don't mess up the file name mktime.c.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
84 #ifdef mktime
|
518683f8b4ce
(mktime): #undef so that we don't mess up the file name mktime.c.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
85 #undef mktime
|
518683f8b4ce
(mktime): #undef so that we don't mess up the file name mktime.c.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
86 #endif
|
518683f8b4ce
(mktime): #undef so that we don't mess up the file name mktime.c.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
87
|
4796
|
88 /* Use HAVE_X11 as an alias for X11 in this file
|
|
89 to avoid problems with X11 as a subdirectory name
|
|
90 in -I and other such options which pass through this file. */
|
|
91
|
|
92 #ifdef X11
|
|
93 #define HAVE_X11
|
|
94 #undef X11
|
|
95 #endif
|
|
96
|
|
97 /* On some machines #define register is done in config;
|
|
98 don't let it interfere with this file. */
|
|
99 #undef register
|
|
100
|
|
101 /* On some systems we may not be able to use the system make command. */
|
|
102 #ifdef MAKE_COMMAND
|
|
103 MAKE = MAKE_COMMAND
|
|
104 #endif
|
|
105
|
|
106 #ifdef C_COMPILER
|
|
107 CC = C_COMPILER
|
|
108 #endif
|
|
109
|
7580
|
110 /* GNU libc requires ORDINARY_LINK so that its own crt0 is used.
|
48277
|
111 GNU/Linux is an exception because it uses a funny variant of GNU libc. */
|
7580
|
112 #ifdef __GNU_LIBRARY__
|
41969
|
113 #ifndef GNU_LINUX
|
7580
|
114 #define ORDINARY_LINK
|
|
115 #endif
|
|
116 #endif
|
|
117
|
4796
|
118 /* Some machines don't find the standard C libraries in the usual place. */
|
|
119 #ifndef ORDINARY_LINK
|
|
120 #ifndef LIB_STANDARD
|
|
121 #define LIB_STANDARD -lc
|
|
122 #endif
|
|
123 #else
|
|
124 #ifndef LIB_STANDARD
|
|
125 #define LIB_STANDARD
|
|
126 #endif
|
|
127 #endif
|
|
128
|
|
129 /* Unless inhibited or changed, use -lg to link for debugging. */
|
|
130 #ifndef LIBS_DEBUG
|
|
131 #define LIBS_DEBUG -lg
|
|
132 #endif
|
|
133
|
14589
|
134 /* Some s/SYSTEM.h files define this to request special libraries. */
|
4796
|
135 #ifndef LIBS_SYSTEM
|
|
136 #define LIBS_SYSTEM
|
|
137 #endif
|
|
138
|
14589
|
139 /* Some m/MACHINE.h files define this to request special libraries. */
|
4796
|
140 #ifndef LIBS_MACHINE
|
|
141 #define LIBS_MACHINE
|
|
142 #endif
|
|
143
|
|
144 #ifndef LIB_MATH
|
|
145 # define LIB_MATH -lm
|
|
146 #endif /* LIB_MATH */
|
|
147
|
14589
|
148 /* Some s/SYSTEM.h files define this to request special switches in ld. */
|
4796
|
149 #ifndef LD_SWITCH_SYSTEM
|
16219
|
150 #if !defined (__GNUC__) && (defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)))
|
4796
|
151 #define LD_SWITCH_SYSTEM -X
|
16219
|
152 #else /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */
|
4796
|
153 #define LD_SWITCH_SYSTEM
|
16219
|
154 #endif /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */
|
4796
|
155 #endif /* LD_SWITCH_SYSTEM */
|
|
156
|
18563
|
157 /* This holds special options for linking temacs
|
|
158 that should be used for linking anything else. */
|
|
159 #ifndef LD_SWITCH_SYSTEM_TEMACS
|
|
160 #define LD_SWITCH_SYSTEM_TEMACS
|
|
161 #endif
|
|
162
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
163 /* Some s/SYSTEM.h files define this to request special switches
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
164 for compiling temacs. */
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
165 #ifndef C_SWITCH_SYSTEM_TEMACS
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
166 #define C_SWITCH_SYSTEM_TEMACS
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
167 #endif
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
168
|
14589
|
169 /* Some m/MACHINE.h files define this to request special switches in ld. */
|
4796
|
170 #ifndef LD_SWITCH_MACHINE
|
|
171 #define LD_SWITCH_MACHINE
|
|
172 #endif
|
|
173
|
20099
|
174 /* This holds special options for linking temacs
|
|
175 that should be used for linking anything else. */
|
|
176 #ifndef LD_SWITCH_MACHINE_TEMACS
|
|
177 #define LD_SWITCH_MACHINE_TEMACS
|
|
178 #endif
|
|
179
|
14589
|
180 /* Some m/MACHINE.h files define this to request special switches in cc. */
|
4796
|
181 #ifndef C_SWITCH_MACHINE
|
|
182 #define C_SWITCH_MACHINE
|
|
183 #endif
|
|
184
|
14589
|
185 /* Some s/SYSTEM.h files define this to request special switches in cc. */
|
4796
|
186 #ifndef C_SWITCH_SYSTEM
|
|
187 #define C_SWITCH_SYSTEM
|
|
188 #endif
|
|
189
|
|
190 /* These macros are for switches specifically related to X Windows. */
|
|
191 #ifndef C_SWITCH_X_MACHINE
|
|
192 #define C_SWITCH_X_MACHINE
|
|
193 #endif
|
|
194
|
|
195 #ifndef C_SWITCH_X_SYSTEM
|
|
196 #define C_SWITCH_X_SYSTEM
|
|
197 #endif
|
|
198
|
|
199 #ifndef C_SWITCH_X_SITE
|
|
200 #define C_SWITCH_X_SITE
|
|
201 #endif
|
|
202
|
|
203 #ifndef LD_SWITCH_X_SITE
|
|
204 #define LD_SWITCH_X_SITE
|
|
205 #endif
|
|
206
|
7723
|
207 #ifndef LD_SWITCH_X_DEFAULT
|
|
208 #define LD_SWITCH_X_DEFAULT
|
|
209 #endif
|
|
210
|
4796
|
211 /* These can be passed in from config.h to define special load and
|
|
212 compile switches needed by individual sites */
|
|
213 #ifndef LD_SWITCH_SITE
|
|
214 #define LD_SWITCH_SITE
|
|
215 #endif
|
|
216
|
|
217 #ifndef C_SWITCH_SITE
|
|
218 #define C_SWITCH_SITE
|
|
219 #endif
|
|
220
|
|
221 #ifndef ORDINARY_LINK
|
|
222
|
|
223 #ifndef CRT0_COMPILE
|
13892
|
224 #define CRT0_COMPILE $(CC) -c $(ALL_CFLAGS) C_SWITCH_ASM
|
4796
|
225 #endif
|
|
226
|
|
227 #ifndef START_FILES
|
|
228 #ifdef NO_REMAP
|
|
229 #ifdef COFF_ENCAPSULATE
|
|
230 #define START_FILES pre-crt0.o /usr/local/lib/gcc-crt0.o
|
|
231 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
232 #define START_FILES pre-crt0.o /lib/crt0.o
|
|
233 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
234 #else /* ! defined (NO_REMAP) */
|
10585
|
235 #define START_FILES ecrt0.o
|
4796
|
236 #endif /* ! defined (NO_REMAP) */
|
|
237 #endif /* START_FILES */
|
|
238 STARTFILES = START_FILES
|
|
239
|
|
240 #else /* ORDINARY_LINK */
|
|
241
|
|
242 /* config.h might want to force START_FILES anyway */
|
|
243 #ifdef START_FILES
|
|
244 STARTFILES = START_FILES
|
|
245 #endif /* START_FILES */
|
|
246
|
|
247 #endif /* not ORDINARY_LINK */
|
|
248
|
|
249
|
|
250 /* cc switches needed to make `asm' keyword work.
|
|
251 Nothing special needed on most machines. */
|
|
252 #ifndef C_SWITCH_ASM
|
|
253 #define C_SWITCH_ASM
|
|
254 #endif
|
|
255
|
49322
|
256 #if HAVE_GTK
|
|
257 #define USE_GTK
|
|
258 TOOLKIT_DEFINES = -DUSE_GTK
|
|
259 #endif
|
|
260
|
12095
|
261 #ifdef USE_X_TOOLKIT
|
13461
|
262 #define USE_@X_TOOLKIT_TYPE@
|
12095
|
263 TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@
|
|
264 #else
|
49322
|
265 #ifndef USE_GTK
|
12095
|
266 TOOLKIT_DEFINES =
|
|
267 #endif
|
49322
|
268 #endif
|
12095
|
269
|
4796
|
270 /* DO NOT use -R. There is a special hack described in lastfile.c
|
|
271 which is used instead. Some initialized data areas are modified
|
|
272 at initial startup, then labeled as part of the text area when
|
|
273 Emacs is dumped for the first time, and never changed again. */
|
|
274
|
|
275 /* -Demacs is needed to make some files produce the correct version
|
|
276 for use in Emacs.
|
|
277
|
|
278 -DHAVE_CONFIG_H is needed for some other files to take advantage of
|
|
279 the information in `config.h'. */
|
5030
|
280
|
4796
|
281 /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
|
|
282 since it may have -I options that should override those two. */
|
49365
|
283 ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS}
|
4796
|
284 .c.o:
|
|
285 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
|
|
286
|
|
287 #ifndef LIBX10_MACHINE
|
|
288 #define LIBX10_MACHINE
|
|
289 #endif
|
|
290
|
|
291 #ifndef LIBX11_MACHINE
|
|
292 #define LIBX11_MACHINE
|
|
293 #endif
|
|
294
|
|
295 #ifndef LIBX10_SYSTEM
|
|
296 #define LIBX10_SYSTEM
|
|
297 #endif
|
|
298
|
|
299 #ifndef LIBX11_SYSTEM
|
|
300 #define LIBX11_SYSTEM
|
|
301 #endif
|
|
302
|
|
303 #ifndef LIB_X11_LIB
|
|
304 #define LIB_X11_LIB -lX11
|
|
305 #endif
|
|
306
|
|
307 #ifdef HAVE_X_WINDOWS
|
13846
|
308 #ifdef HAVE_MENUS
|
4796
|
309
|
|
310 /* Include xmenu.o in the list of X object files. */
|
49322
|
311
|
|
312 #ifdef USE_GTK
|
|
313 XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o gtkutil.o
|
|
314 #else
|
43818
|
315 XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o
|
49322
|
316 #endif
|
4796
|
317
|
|
318 /* The X Menu stuff is present in the X10 distribution, but missing
|
|
319 from X11. If we have X10, just use the installed library;
|
|
320 otherwise, use our own copy. */
|
|
321 #ifdef HAVE_X11
|
5670
|
322 #ifdef USE_X_TOOLKIT
|
8787
|
323 OLDXMENU=${lwlibdir}liblw.a
|
5670
|
324 LIBXMENU= $(OLDXMENU)
|
|
325 #else /* not USE_X_TOOLKIT */
|
8787
|
326 OLDXMENU= ${oldXMenudir}libXMenu11.a
|
4796
|
327 LIBXMENU= $(OLDXMENU)
|
5670
|
328 #endif /* not USE_X_TOOLKIT */
|
|
329 #else /* not HAVE_X11 */
|
4796
|
330 LIBXMENU= -lXMenu
|
5670
|
331 #endif /* not HAVE_X11 */
|
4796
|
332
|
13846
|
333 #else /* not HAVE_MENUS */
|
4796
|
334
|
|
335 /* Otherwise, omit xmenu.o from the list of X object files, and
|
|
336 don't worry about the menu library at all. */
|
43818
|
337 XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o
|
4796
|
338 LIBXMENU=
|
13846
|
339 #endif /* not HAVE_MENUS */
|
5670
|
340
|
|
341 #ifdef USE_X_TOOLKIT
|
7479
|
342 #define @X_TOOLKIT_TYPE@
|
|
343 #if defined (LUCID) || defined (ATHENA)
|
25027
|
344 #if HAVE_XAW3D
|
|
345 LIBW= -lXaw3d
|
|
346 #else
|
7479
|
347 LIBW= -lXaw
|
|
348 #endif
|
25027
|
349 #endif
|
7479
|
350 #ifdef MOTIF
|
24630
|
351 #if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP)
|
19474
|
352 #define LIB_MOTIF_EXTRA -lXp
|
|
353 #else
|
|
354 #define LIB_MOTIF_EXTRA
|
|
355 #endif
|
7479
|
356 #ifdef LIB_MOTIF
|
19474
|
357 LIBW= LIB_MOTIF LIB_MOTIF_EXTRA
|
7479
|
358 #else
|
19474
|
359 LIBW= -lXm LIB_MOTIF_EXTRA
|
7479
|
360 #endif
|
|
361 #endif
|
|
362 #ifdef OPEN_LOOK
|
|
363 LIBW= -lXol
|
|
364 #endif
|
|
365
|
7488
|
366 #ifdef HAVE_X11XTR6
|
9205
|
367 #ifdef NEED_LIBW
|
|
368 LIBXTR6 = -lSM -lICE -lw
|
|
369 #else
|
7484
|
370 LIBXTR6 = -lSM -lICE
|
|
371 #endif
|
9205
|
372 #endif
|
7484
|
373
|
12401
|
374 #ifndef LIBXMU
|
|
375 #define LIBXMU -lXmu
|
|
376 #endif
|
|
377
|
13761
|
378 #ifdef LIBXT_STATIC
|
|
379 /* We assume the config files have defined STATIC_OPTION
|
|
380 since that might depend on the operating system.
|
|
381 (Don't forget you need different definitions with and without __GNUC__.) */
|
13892
|
382 LIBXT= STATIC_OPTION $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext DYNAMIC_OPTION
|
13761
|
383 #else /* not LIBXT_STATIC */
|
12401
|
384 LIBXT= $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext
|
13761
|
385 #endif /* not LIBXT_STATIC */
|
|
386
|
|
387 #else /* not USE_X_TOOLKIT */
|
49322
|
388
|
|
389 #ifdef USE_GTK
|
|
390 LIBW=@GTK_LIBS@
|
|
391 OLDXMENU=
|
|
392 LIBXMENU=
|
|
393 #endif /* USE_GTK */
|
|
394
|
43818
|
395 #ifdef HAVE_X_SM
|
49322
|
396 LIBXT=$(LIBW) -lSM -lICE
|
43818
|
397 #else
|
49322
|
398 LIBXT=$(LIBW)
|
43818
|
399 #endif
|
13761
|
400 #endif /* not USE_X_TOOLKIT */
|
4796
|
401
|
25027
|
402 #if HAVE_XPM
|
|
403 #ifndef LIBXPM
|
|
404 #define LIBXPM -lXpm
|
|
405 #endif /* not defined LIBXPM */
|
|
406 #else /* not HAVE_XPM */
|
|
407 #define LIBXPM
|
|
408 #endif /* not HAVE_XPM */
|
|
409
|
|
410 #if HAVE_JPEG
|
|
411 #ifndef LIBJPEG
|
|
412 #define LIBJPEG -ljpeg
|
|
413 #endif /* not defined LIBJPEG */
|
|
414 #else /* not HAVE_JPEG */
|
|
415 #define LIBJPEG
|
|
416 #endif /* not HAVE_JPEG */
|
|
417
|
|
418 #if HAVE_PNG
|
|
419 #ifndef LIBPNG
|
|
420 #define LIBPNG -lpng -lz -lm
|
|
421 #endif /* not defined LIBPNG */
|
|
422 #else /* not HAVE_PNG */
|
|
423 #define LIBPNG
|
|
424 #endif /* not HAVE_PNG */
|
|
425
|
|
426 #if HAVE_TIFF
|
|
427 #ifndef LIBTIFF
|
25204
|
428 #define LIBTIFF -ltiff
|
25027
|
429 #endif /* not defined LIBTIFF */
|
|
430 #else /* not HAVE_TIFF */
|
|
431 #define LIBTIFF
|
|
432 #endif /* not HAVE_TIFF */
|
|
433
|
|
434 #if HAVE_GIF
|
|
435 #ifndef LIBGIF
|
|
436 #define LIBGIF -lungif
|
|
437 #endif /* not defined LIBGIF */
|
|
438 #else /* not HAVE_GIF */
|
|
439 #define LIBGIF
|
|
440 #endif /* not HAVE_GIF */
|
|
441
|
4796
|
442 #ifdef HAVE_X11
|
7723
|
443 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies
|
|
444 options for where to find X libraries, but before those libraries. */
|
9203
|
445 X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT
|
33640
|
446 LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) LIBTIFF LIBJPEG LIBPNG LIBGIF LIBXPM LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
|
5670
|
447 #else /* not HAVE_X11 */
|
4796
|
448 LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM
|
5670
|
449 #endif /* not HAVE_X11 */
|
|
450 #endif /* not HAVE_X_WINDOWS */
|
4796
|
451
|
30079
|
452 LIBSOUND= @LIBSOUND@
|
|
453
|
4796
|
454 #ifndef ORDINARY_LINK
|
|
455 /* Fix linking if compiled with GCC. */
|
|
456 #ifdef __GNUC__
|
|
457
|
|
458 #if __GNUC__ > 1
|
|
459
|
5234
|
460 #ifdef LINKER
|
|
461 #define LINKER_WAS_SPECIFIED
|
|
462 #endif
|
|
463
|
4796
|
464 /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
|
|
465 places that are difficult to figure out at make time. Fortunately,
|
|
466 these same versions allow you to pass arbitrary flags on to the
|
|
467 linker, so there's no reason not to use it as a linker.
|
|
468
|
|
469 Well, it's not quite perfect. The `-nostdlib' keeps GCC from
|
|
470 searching for libraries in its internal directories, so we have to
|
|
471 ask GCC explicitly where to find libgcc.a. */
|
|
472
|
|
473 #ifndef LINKER
|
|
474 #define LINKER $(CC) -nostdlib
|
|
475 #endif
|
|
476
|
|
477 #ifndef LIB_GCC
|
|
478 /* Ask GCC where to find libgcc.a. */
|
|
479 #define LIB_GCC `$(CC) -print-libgcc-file-name`
|
5670
|
480 #endif /* not LIB_GCC */
|
4796
|
481
|
|
482 GNULIB_VAR = LIB_GCC
|
|
483
|
5234
|
484 #ifndef LINKER_WAS_SPECIFIED
|
4796
|
485 /* GCC passes any argument prefixed with -Xlinker directly to the
|
|
486 linker. See prefix-args.c for an explanation of why we don't do
|
|
487 this with the shell's `for' construct.
|
|
488 Note that some people don't have '.' in their paths, so we must
|
|
489 use ./prefix-args. */
|
|
490 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
|
5234
|
491 #else
|
|
492 #define YMF_PASS_LDFLAGS(flags) flags
|
|
493 #endif
|
4796
|
494
|
|
495 #else /* __GNUC__ < 2 */
|
|
496
|
|
497 #ifndef LIB_GCC
|
|
498 #define LIB_GCC /usr/local/lib/gcc-gnulib
|
5670
|
499 #endif /* not LIB_GCC */
|
4796
|
500 GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
|
|
501 #endif /* __GNUC__ < 2 */
|
5670
|
502 #else /* not __GNUC__ */
|
13892
|
503 GNULIB_VAR =
|
4796
|
504
|
5670
|
505 #endif /* not __GNUC__ */
|
4796
|
506 #endif /* not ORDINARY_LINK */
|
|
507
|
|
508 /* Specify address for ld to start loading at,
|
|
509 if requested by configuration. */
|
|
510 #ifdef LD_TEXT_START_ADDR
|
|
511 STARTFLAGS = -T LD_TEXT_START_ADDR -e __start
|
|
512 #endif
|
|
513
|
|
514 #ifdef ORDINARY_LINK
|
|
515 LD = $(CC)
|
|
516 #else
|
|
517 #ifdef COFF_ENCAPSULATE
|
|
518 LD=$(CC) -nostdlib
|
|
519 #else /* not ORDINARY_LINK */
|
|
520 #ifdef LINKER
|
|
521 LD=LINKER
|
5670
|
522 #else /* not LINKER */
|
4796
|
523 LD=ld
|
5670
|
524 #endif /* not LINKER */
|
|
525 #endif /* not COFF_ENCAPSULATE */
|
4796
|
526 #endif /* not ORDINARY_LINK */
|
|
527
|
47186
2effa3424802
(TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS. Don't include LDFLAGS.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
528 /* Flags to pass to LD only for temacs. */
|
49549
|
529 /* Don't split this line with a backslash. That can cause trouble with
|
48541
|
530 some cpps. */
|
|
531 TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE
|
4796
|
532
|
11835
|
533 /* A macro which other sections of Makefile can redefine to munge the
|
4796
|
534 flags before they're passed to LD. This is helpful if you have
|
11835
|
535 redefined LD to something odd, like "gcc".
|
|
536 (The YMF prefix is a holdover from the old name "ymakefile".)
|
|
537 */
|
4796
|
538 #ifndef YMF_PASS_LDFLAGS
|
|
539 #define YMF_PASS_LDFLAGS(flags) flags
|
|
540 #endif
|
|
541
|
|
542 /* Allow config.h to specify a replacement file for unexec.c. */
|
|
543 #ifndef UNEXEC
|
|
544 #define UNEXEC unexec.o
|
|
545 #endif
|
|
546 #ifndef UNEXEC_SRC
|
|
547 #define UNEXEC_SRC unexec.c
|
|
548 #endif
|
|
549
|
28585
|
550 INTERVAL_SRC = intervals.h composite.h
|
4796
|
551
|
29832
|
552 GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
|
28641
|
553
|
9572
|
554 #ifdef MSDOS
|
|
555 #ifdef HAVE_X_WINDOWS
|
28609
|
556 MSDOS_OBJ = dosfns.o msdos.o
|
9572
|
557 #else
|
28609
|
558 MSDOS_OBJ = dosfns.o msdos.o w16select.o
|
9572
|
559 #endif
|
|
560 #endif
|
|
561
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
562 #ifdef HAVE_CARBON
|
48982
|
563 mac = $(dot)$(dot)/mac/
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
564 XMENU_OBJ =
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
565 MAC_OBJ = mac.o macterm.o macfns.o macmenu.o fontset.o
|
48982
|
566 emacsapp = $(PWD)/$(mac)Emacs.app/
|
|
567 emacsappsrc = ${srcdir}/../mac/Emacs.app/
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
568 #else
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
569 XMENU_OBJ = xmenu.o
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
570 #endif
|
9572
|
571
|
4796
|
572 /* lastfile must follow all files
|
14742
|
573 whose initialized data areas should be dumped as pure by dump-emacs. */
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
574 obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \
|
50261
|
575 charset.o coding.o category.o ccl.o \
|
18061
|
576 cm.o term.o xfaces.o $(XOBJ) \
|
4796
|
577 emacs.o keyboard.o macros.o keymap.o sysdep.o \
|
28585
|
578 buffer.o filelock.o insdel.o marker.o \
|
4796
|
579 minibuf.o fileio.o dired.o filemode.o \
|
|
580 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
|
|
581 alloc.o data.o doc.o editfns.o callint.o \
|
|
582 eval.o floatfns.o fns.o print.o lread.o \
|
42279
|
583 abbrev.o syntax.o UNEXEC bytecode.o \
|
4796
|
584 process.o callproc.o \
|
27423
|
585 region-cache.o sound.o atimer.o \
|
34049
|
586 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
587 $(MSDOS_OBJ) $(MAC_OBJ)
|
4796
|
588
|
5401
|
589 /* Object files used on some machine or other.
|
|
590 These go in the DOC file on all machines
|
|
591 in case they are needed there. */
|
28585
|
592 SOME_MACHINE_OBJECTS = sunfns.o dosfns.o msdos.o \
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
593 xterm.o xfns.o xmenu.o xselect.o xrdb.o \
|
46779
|
594 mac.o macterm.o macfns.o macmenu.o fontset.o
|
9595
|
595
|
5401
|
596
|
4796
|
597 #ifdef TERMINFO
|
|
598 /* Used to be -ltermcap here. If your machine needs that,
|
14589
|
599 define LIBS_TERMCAP in the m/MACHINE.h file. */
|
4796
|
600 #ifndef LIBS_TERMCAP
|
|
601 #define LIBS_TERMCAP -lcurses
|
|
602 #endif /* LIBS_TERMCAP */
|
|
603 termcapobj = terminfo.o
|
|
604 #else /* ! defined (TERMINFO) */
|
|
605 #ifndef LIBS_TERMCAP
|
|
606 #define LIBS_TERMCAP
|
|
607 termcapobj = termcap.o tparam.o
|
|
608 #else /* LIBS_TERMCAP */
|
|
609 termcapobj = tparam.o
|
|
610 #endif /* LIBS_TERMCAP */
|
|
611 #endif /* ! defined (TERMINFO) */
|
|
612
|
|
613
|
|
614 #ifndef SYSTEM_MALLOC
|
|
615
|
41542
|
616 #ifndef DOUG_LEA_MALLOC
|
|
617 gmallocobj = gmalloc.o
|
|
618 #endif
|
|
619
|
17349
|
620 #ifdef REL_ALLOC
|
41542
|
621 rallocobj = ralloc.o
|
|
622 #endif
|
|
623
|
|
624 mallocobj = $(gmallocobj) $(rallocobj) vm-limit.o
|
4796
|
625
|
|
626 #endif /* SYSTEM_MALLOC */
|
|
627
|
|
628
|
|
629 #ifndef HAVE_ALLOCA
|
|
630 allocaobj = alloca.o
|
|
631 #else
|
|
632 allocaobj =
|
|
633 #endif
|
|
634
|
5670
|
635 #ifdef USE_X_TOOLKIT
|
|
636 widgetobj= widget.o
|
|
637 #else /* not USE_X_TOOLKIT */
|
|
638 widgetobj=
|
|
639 #endif /* not USE_X_TOOLKIT */
|
|
640
|
4796
|
641
|
|
642 /* define otherobj as list of object files that make-docfile
|
|
643 should not be told about. */
|
29842
|
644 otherobj= $(termcapobj) lastfile.o $(mallocobj) $(allocaobj) $(widgetobj) $(LIBOBJS)
|
4796
|
645
|
11106
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
646 #ifdef HAVE_MOUSE
|
17684
|
647 #define MOUSE_SUPPORT ${lispsource}mouse.elc \
|
12539
|
648 ${lispsource}select.elc ${lispsource}scroll-bar.elc
|
11106
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
649 #else
|
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
650 #define MOUSE_SUPPORT
|
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
651 #endif
|
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
652
|
4796
|
653 #ifdef VMS
|
12539
|
654 #define VMS_SUPPORT ${lispsource}vmsproc.elc ${lispsource}vms-patch.elc
|
4796
|
655 #else
|
|
656 #define VMS_SUPPORT
|
|
657 #endif
|
|
658
|
7654
|
659 #ifdef MSDOS
|
16024
5b31a6ad1a67
(MSDOS_SUPPORT, WINNT_SUPPORT, SOME_MACHINE_LISP): Include dos-nt.elc.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
660 #define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
|
29103
|
661 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \
|
|
662 ${lispsource}international/ccl.elc ${lispsource}international/codepage.elc
|
|
663
|
7654
|
664 #else
|
|
665 #define MSDOS_SUPPORT
|
|
666 #endif
|
|
667
|
11106
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
668 #ifdef WINDOWSNT
|
43512
|
669 #define WINNT_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
|
|
670 ${lispsource}dos-w32.elc ${lispsource}w32-vars.elc \
|
|
671 ${lispsource}w32-fns.elc
|
11106
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
672 #else
|
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
673 #define WINNT_SUPPORT
|
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
674 #endif
|
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
675
|
4796
|
676 /* List of Lisp files loaded into the dumped Emacs. It's arranged
|
|
677 like this because it's easier to generate it semi-mechanically from
|
|
678 loadup.el this way.
|
|
679
|
|
680 Note that this list should not include lisp files which might not
|
|
681 be present, like site-load.el and site-init.el; this makefile
|
13761
|
682 expects them all to be either present or buildable.
|
|
683
|
17898
|
684 Files which are loaded unconditionally should be in shortlisp as well.
|
|
685 Files included conditionally here should be included (unconditionally)
|
|
686 in SOME_MACHINE_LISP. */
|
13761
|
687
|
4796
|
688 lisp= \
|
12539
|
689 ${lispsource}abbrev.elc \
|
|
690 ${lispsource}buff-menu.elc \
|
39648
|
691 ${lispsource}button.elc \
|
51372
|
692 ${lispsource}emacs-lisp/byte-run.elc \
|
48872
|
693 ${lispsource}cus-face.elc \
|
43359
|
694 ${lispsource}cus-start.elc \
|
17684
|
695 ${lispsource}custom.elc \
|
43514
|
696 ${lispsource}emacs-lisp/backquote.elc \
|
18596
|
697 ${lispsource}emacs-lisp/lisp-mode.elc \
|
|
698 ${lispsource}emacs-lisp/lisp.elc \
|
28913
|
699 ${lispsource}env.elc \
|
18061
|
700 ${lispsource}faces.elc \
|
12539
|
701 ${lispsource}files.elc \
|
|
702 ${lispsource}format.elc \
|
28585
|
703 ${lispsource}facemenu.elc \
|
11106
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
704 MOUSE_SUPPORT \
|
51372
|
705 ${lispsource}emacs-lisp/float-sup.elc \
|
50261
|
706 ${lispsource}frame.elc \
|
12539
|
707 ${lispsource}help.elc \
|
|
708 ${lispsource}indent.elc \
|
|
709 ${lispsource}isearch.elc \
|
13461
|
710 ${lispsource}loadup.el \
|
12539
|
711 ${lispsource}loaddefs.el \
|
39648
|
712 ${lispsource}bindings.elc \
|
51372
|
713 ${lispsource}emacs-lisp/map-ynp.elc \
|
17684
|
714 ${lispsource}menu-bar.elc \
|
18470
|
715 ${lispsource}international/mule.elc \
|
|
716 ${lispsource}international/mule-conf.el \
|
|
717 ${lispsource}international/mule-cmds.elc \
|
|
718 ${lispsource}international/characters.elc \
|
44347
|
719 ${lispsource}international/ucs-tables.elc \
|
36517
|
720 ${lispsource}international/utf-8.elc \
|
47700
|
721 ${lispsource}international/utf-16.elc \
|
39481
|
722 ${lispsource}international/latin-1.el \
|
|
723 ${lispsource}international/latin-2.el \
|
|
724 ${lispsource}international/latin-3.el \
|
|
725 ${lispsource}international/latin-4.el \
|
|
726 ${lispsource}international/latin-5.el \
|
|
727 ${lispsource}international/latin-8.el \
|
|
728 ${lispsource}international/latin-9.el \
|
19246
|
729 ${lispsource}case-table.elc \
|
17020
|
730 ${lispsource}language/chinese.elc \
|
|
731 ${lispsource}language/cyrillic.elc \
|
21666
|
732 ${lispsource}language/indian.elc \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
733 ${lispsource}language/devanagari.el \
|
49706
|
734 ${lispsource}language/malayalam.el \
|
|
735 ${lispsource}language/tamil.el \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
736 ${lispsource}language/english.el \
|
17020
|
737 ${lispsource}language/ethiopic.elc \
|
|
738 ${lispsource}language/european.elc \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
739 ${lispsource}language/czech.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
740 ${lispsource}language/slovak.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
741 ${lispsource}language/romanian.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
742 ${lispsource}language/greek.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
743 ${lispsource}language/hebrew.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
744 ${lispsource}language/japanese.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
745 ${lispsource}language/korean.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
746 ${lispsource}language/lao.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
747 ${lispsource}language/thai.el \
|
17329
|
748 ${lispsource}language/tibetan.elc \
|
17020
|
749 ${lispsource}language/vietnamese.elc \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
750 ${lispsource}language/misc-lang.el \
|
42156
|
751 ${lispsource}language/utf-8-lang.el \
|
|
752 ${lispsource}language/georgian.el \
|
12539
|
753 ${lispsource}paths.el \
|
|
754 ${lispsource}register.elc \
|
|
755 ${lispsource}replace.elc \
|
|
756 ${lispsource}simple.elc \
|
|
757 ${lispsource}startup.elc \
|
|
758 ${lispsource}subr.elc \
|
26729
|
759 ${lispsource}term/tty-colors.elc \
|
48872
|
760 ${lispsource}font-core.elc \
|
18596
|
761 ${lispsource}textmodes/fill.elc \
|
|
762 ${lispsource}textmodes/page.elc \
|
|
763 ${lispsource}textmodes/paragraphs.elc \
|
|
764 ${lispsource}textmodes/text-mode.elc \
|
51372
|
765 ${lispsource}emacs-lisp/timer.elc \
|
12539
|
766 ${lispsource}vc-hooks.elc \
|
13135
|
767 ${lispsource}ediff-hook.elc \
|
4796
|
768 VMS_SUPPORT \
|
7654
|
769 MSDOS_SUPPORT \
|
11106
30ec7c9dcdb9
(FRAME_SUPPORT, MSDOS_SUPPORT): Don't list face and mouse related files here.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
770 WINNT_SUPPORT \
|
18563
|
771 ${lispsource}widget.elc \
|
12539
|
772 ${lispsource}window.elc \
|
|
773 ${lispsource}version.el
|
4796
|
774
|
13761
|
775 /* These are relative file names for the Lisp files
|
|
776 that are loaded unconditionally. This is used in make-docfile.
|
|
777 It need not contain the files that are loaded conditionally
|
|
778 because SOME_MACHINE_LISP has those. */
|
|
779 shortlisp= \
|
|
780 ../lisp/abbrev.elc \
|
|
781 ../lisp/buff-menu.elc \
|
39648
|
782 ../lisp/button.elc \
|
51372
|
783 ../lisp/emacs-lisp/byte-run.elc \
|
48872
|
784 ../lisp/cus-face.elc \
|
43359
|
785 ../lisp/cus-start.elc \
|
17898
|
786 ../lisp/custom.elc \
|
39481
|
787 ../lisp/emacs-lisp/backquote.elc \
|
18596
|
788 ../lisp/emacs-lisp/lisp-mode.elc \
|
|
789 ../lisp/emacs-lisp/lisp.elc \
|
28585
|
790 ../lisp/facemenu.elc \
|
18061
|
791 ../lisp/faces.elc \
|
13761
|
792 ../lisp/files.elc \
|
51372
|
793 ../lisp/emacs-lisp/float-sup.elc \
|
13761
|
794 ../lisp/format.elc \
|
28585
|
795 ../lisp/frame.elc \
|
13761
|
796 ../lisp/help.elc \
|
|
797 ../lisp/indent.elc \
|
|
798 ../lisp/isearch.elc \
|
|
799 ../lisp/loadup.el \
|
|
800 ../lisp/loaddefs.el \
|
39648
|
801 ../lisp/bindings.elc \
|
51372
|
802 ../lisp/emacs-lisp/map-ynp.elc \
|
39369
|
803 ../lisp/env.elc \
|
18470
|
804 ../lisp/international/mule.elc \
|
|
805 ../lisp/international/mule-conf.el \
|
|
806 ../lisp/international/mule-cmds.elc \
|
18680
|
807 ../lisp/international/characters.elc \
|
44347
|
808 ../lisp/international/ucs-tables.elc \
|
39481
|
809 ../lisp/international/utf-8.elc \
|
47700
|
810 ../lisp/international/utf-16.elc \
|
39481
|
811 ../lisp/international/latin-1.el \
|
|
812 ../lisp/international/latin-2.el \
|
|
813 ../lisp/international/latin-3.el \
|
|
814 ../lisp/international/latin-4.el \
|
|
815 ../lisp/international/latin-5.el \
|
|
816 ../lisp/international/latin-8.el \
|
|
817 ../lisp/international/latin-9.el \
|
19246
|
818 ../lisp/case-table.elc \
|
17020
|
819 ../lisp/language/chinese.elc \
|
|
820 ../lisp/language/cyrillic.elc \
|
21666
|
821 ../lisp/language/indian.elc \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
822 ../lisp/language/devanagari.el \
|
49706
|
823 ../lisp/language/malayalam.el \
|
|
824 ../lisp/language/tamil.el \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
825 ../lisp/language/english.el \
|
17020
|
826 ../lisp/language/ethiopic.elc \
|
|
827 ../lisp/language/european.elc \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
828 ../lisp/language/czech.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
829 ../lisp/language/slovak.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
830 ../lisp/language/romanian.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
831 ../lisp/language/greek.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
832 ../lisp/language/hebrew.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
833 ../lisp/language/japanese.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
834 ../lisp/language/korean.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
835 ../lisp/language/lao.el \
|
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
836 ../lisp/language/thai.el \
|
17329
|
837 ../lisp/language/tibetan.elc \
|
17020
|
838 ../lisp/language/vietnamese.elc \
|
42144
15ce952e3f47
(lisp, shortlisp): Synchronize with changes to lisp/Makefile.in:DONTCOMPILE.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
839 ../lisp/language/misc-lang.el \
|
42156
|
840 ../lisp/language/utf-8-lang.el \
|
|
841 ../lisp/language/georgian.el \
|
39481
|
842 ../lisp/menu-bar.elc \
|
13761
|
843 ../lisp/paths.el \
|
|
844 ../lisp/register.elc \
|
|
845 ../lisp/replace.elc \
|
|
846 ../lisp/simple.elc \
|
|
847 ../lisp/startup.elc \
|
|
848 ../lisp/subr.elc \
|
26729
|
849 ../lisp/term/tty-colors.elc \
|
45447
|
850 ../lisp/font-core.elc \
|
18596
|
851 ../lisp/textmodes/fill.elc \
|
|
852 ../lisp/textmodes/page.elc \
|
|
853 ../lisp/textmodes/paragraphs.elc \
|
|
854 ../lisp/textmodes/text-mode.elc \
|
51372
|
855 ../lisp/emacs-lisp/timer.elc \
|
13761
|
856 ../lisp/vc-hooks.elc \
|
|
857 ../lisp/ediff-hook.elc \
|
18563
|
858 ../lisp/widget.elc \
|
13761
|
859 ../lisp/window.elc \
|
|
860 ../lisp/version.el
|
|
861
|
11776
|
862 /* Lisp files that may or may not be used.
|
13892
|
863 We must unconditionally put them in the DOC file.
|
13761
|
864 We use ../lisp/ to start the file names
|
|
865 to reduce the size of the argument list for make-docfile
|
44102
|
866 for the sake of systems which can\'t handle large ones. */
|
39481
|
867 SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \
|
13761
|
868 ${dotdot}/lisp/select.elc ${dotdot}/lisp/scroll-bar.elc \
|
|
869 ${dotdot}/lisp/vmsproc.elc ${dotdot}/lisp/vms-patch.elc \
|
|
870 ${dotdot}/lisp/ls-lisp.elc ${dotdot}/lisp/dos-fns.elc \
|
29103
|
871 ${dotdot}/lisp/w32-fns.elc ${dotdot}/lisp/dos-w32.elc \
|
|
872 ${dotdot}/lisp/disp-table.elc ${dotdot}/lisp/dos-vars.elc \
|
|
873 ${dotdot}/lisp/international/ccl.elc \
|
|
874 ${dotdot}/lisp/international/codepage.elc
|
11776
|
875
|
4796
|
876 /* Construct full set of libraries to be linked.
|
|
877 Note that SunOS needs -lm to come before -lc; otherwise, you get
|
4814
|
878 duplicated symbols. If the standard libraries were compiled
|
|
879 with GCC, we might need gnulib again after them. */
|
30079
|
880 LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) \
|
|
881 LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
|
29832
|
882 LIBS_DEBUG $(GETLOADAVG_LIBS) $(GNULIB_VAR) LIB_MATH LIB_STANDARD \
|
|
883 $(GNULIB_VAR)
|
4796
|
884
|
|
885 /* Enable recompilation of certain other files depending on system type. */
|
|
886
|
|
887 #ifndef OTHER_FILES
|
|
888 #define OTHER_FILES
|
|
889 #endif
|
|
890
|
|
891 #ifndef OBJECTS_MACHINE
|
|
892 #define OBJECTS_MACHINE
|
|
893 #endif
|
|
894
|
49652
|
895 all: emacs${EXEEXT} OTHER_FILES
|
4796
|
896
|
49652
|
897 emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp}
|
4796
|
898 #ifdef CANNOT_DUMP
|
49652
|
899 rm -f emacs${EXEEXT}
|
|
900 ln temacs${EXEEXT} emacs${EXEEXT}
|
4796
|
901 #else
|
|
902 #ifdef HAVE_SHM
|
26088
b7aa6ac26872
Add support for large files, 64-bit Solaris, system locale codings.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
903 LC_ALL=C ./temacs -nl -batch -l loadup dump
|
4796
|
904 #else /* ! defined (HAVE_SHM) */
|
26088
b7aa6ac26872
Add support for large files, 64-bit Solaris, system locale codings.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
905 LC_ALL=C ./temacs -batch -l loadup dump
|
4796
|
906 #endif /* ! defined (HAVE_SHM) */
|
|
907 #endif /* ! defined (CANNOT_DUMP) */
|
19530
|
908 -./emacs -q -batch -f list-load-path-shadows
|
4796
|
909
|
10078
|
910 /* We run make-docfile twice because the command line may get too long
|
|
911 on some systems. */
|
11689
|
912 /* ${SOME_MACHINE_OBJECTS} comes before ${obj} because some files may
|
|
913 or may not be included in ${obj}, but they are always included in
|
|
914 ${SOME_MACHINE_OBJECTS}. Since a file is processed when it is mentioned
|
|
915 for the first time, this prevents any variation between configurations
|
11776
|
916 in the contents of the DOC file.
|
|
917 Likewise for ${SOME_MACHINE_LISP}. */
|
35205
|
918 ${etc}DOC: ${libsrc}make-docfile ${obj} ${shortlisp} ${SOME_MACHINE_LISP}
|
7654
|
919 -rm -f ${etc}DOC
|
11689
|
920 ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
|
13761
|
921 ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
|
4796
|
922
|
49652
|
923 ${libsrc}make-docfile${EXEEXT}:
|
|
924 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}
|
4796
|
925
|
|
926 /* Some systems define this to cause parallel Make-ing. */
|
|
927 #ifndef MAKE_PARALLEL
|
|
928 #define MAKE_PARALLEL
|
|
929 #endif
|
|
930
|
49652
|
931 temacs${EXEEXT}: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
|
47186
2effa3424802
(TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS. Don't include LDFLAGS.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
932 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
|
4796
|
933 -o temacs ${STARTFILES} ${obj} ${otherobj} \
|
28585
|
934 OBJECTS_MACHINE ${LIBES}
|
4796
|
935
|
13355
|
936 /* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
|
|
937 often contain options that have to do with using Emacs's crt0,
|
|
938 which are only good with temacs. */
|
49652
|
939 prefix-args${EXEEXT}: prefix-args.c $(config_h)
|
13355
|
940 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
|
4796
|
941
|
|
942 /* Don't lose if this was not defined. */
|
|
943 #ifndef OLDXMENU_OPTIONS
|
|
944 #define OLDXMENU_OPTIONS
|
|
945 #endif
|
|
946
|
14158
9d42246240c3
($(OLDXMENU) rules): Fix conditionals so no rules are defined when !HAVE_MENUS.
Roland McGrath <roland@gnu.org>
diff
changeset
|
947 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS)
|
9d42246240c3
($(OLDXMENU) rules): Fix conditionals so no rules are defined when !HAVE_MENUS.
Roland McGrath <roland@gnu.org>
diff
changeset
|
948
|
16912
|
949 /* We use stamp-xmenu with these two deps
|
|
950 to both ensure that lwlib gets remade based on its dependencies
|
|
951 in its own makefile,
|
|
952 and remake temacs if lwlib gets changed by this. */
|
49549
|
953 stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU)
|
16912
|
954 touch stamp-oldxmenu
|
18963
|
955 /* Supply an ordering for parallel make. */
|
|
956 ../src/$(OLDXMENU): ${OLDXMENU}
|
16912
|
957
|
5670
|
958 #ifdef USE_X_TOOLKIT
|
|
959 $(OLDXMENU): really-lwlib
|
|
960
|
|
961 /* Encode the values of these two macros in Make variables,
|
|
962 so we can use $(...) to substitute their values within "...". */
|
|
963 C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
|
|
964 C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM
|
|
965 C_SWITCH_SITE_1 = C_SWITCH_SITE
|
|
966 C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
|
|
967 C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
|
|
968 C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
|
|
969 really-lwlib:
|
52278
|
970 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \
|
5670
|
971 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
|
|
972 "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \
|
|
973 "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \
|
|
974 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \
|
|
975 "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \
|
|
976 "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \
|
|
977 "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
|
|
978 @true /* make -t should not create really-lwlib. */
|
11460
|
979 .PHONY: really-lwlib
|
5670
|
980 #else /* not USE_X_TOOLKIT */
|
4796
|
981 $(OLDXMENU): really-oldXMenu
|
|
982
|
|
983 /* Encode the values of these two macros in Make variables,
|
|
984 so we can use $(...) to substitute their values within "...". */
|
|
985 C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
|
|
986 C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM
|
|
987 C_SWITCH_SITE_1 = C_SWITCH_SITE
|
|
988 C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
|
|
989 C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
|
|
990 C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
|
|
991 really-oldXMenu:
|
|
992 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} OLDXMENU_OPTIONS \
|
|
993 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
|
|
994 "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \
|
|
995 "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \
|
|
996 "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \
|
|
997 "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \
|
|
998 "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \
|
|
999 "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)"
|
|
1000 @true /* make -t should not create really-oldXMenu. */
|
11460
|
1001 .PHONY: really-oldXMenu
|
5670
|
1002 #endif /* not USE_X_TOOLKIT */
|
18141
|
1003 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS) */
|
|
1004
|
44102
|
1005 /* We don\'t really need this, but satisfy the dependency. */
|
18141
|
1006 stamp-oldxmenu:
|
|
1007 touch stamp-oldxmenu
|
|
1008 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS) */
|
4796
|
1009
|
24411
|
1010 ../config.status:: epaths.in
|
|
1011 @echo "The file epaths.h needs to be set up from epaths.in."
|
15900
|
1012 @echo "Please run the `configure' script again."
|
4796
|
1013 exit 1
|
|
1014
|
15900
|
1015 ../config.status:: config.in
|
12576
|
1016 @echo "The file config.h needs to be set up from config.in."
|
15900
|
1017 @echo "Please run the `configure' script again."
|
4796
|
1018 exit 1
|
|
1019
|
|
1020 /* Some machines have alloca built-in.
|
52278
|
1021 They should define HAVE_ALLOCA.
|
4796
|
1022 Some use the C version in alloca.c (these define C_ALLOCA in config.h).
|
|
1023 */
|
52398
|
1024 alloca.o: alloca.c blockinput.h atimer.h
|
4796
|
1025
|
|
1026 /* Nearly all the following files depend on lisp.h,
|
|
1027 but it is not included as a dependency because
|
|
1028 it is so often changed in ways that do not require any recompilation
|
|
1029 and so rarely changed in ways that do require any. */
|
|
1030
|
30288
|
1031 abbrev.o: abbrev.c buffer.h window.h dispextern.h commands.h charset.h \
|
|
1032 $(config_h)
|
9402
|
1033 buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \
|
30297
|
1034 dispextern.h $(INTERVAL_SRC) blockinput.h atimer.h systime.h charset.h \
|
|
1035 $(config_h)
|
42279
|
1036 callint.o: callint.c window.h commands.h buffer.h \
|
30288
|
1037 keyboard.h dispextern.h $(config_h)
|
24411
|
1038 callproc.o: callproc.c epaths.h buffer.h commands.h $(config_h) \
|
29272
|
1039 process.h systty.h syssignal.h charset.h coding.h ccl.h msdos.h \
|
|
1040 composite.h
|
26836
|
1041 casefiddle.o: casefiddle.c syntax.h commands.h buffer.h composite.h $(config_h)
|
7953
|
1042 casetab.o: casetab.c buffer.h $(config_h)
|
17020
|
1043 category.o: category.c category.h buffer.h charset.h $(config_h)
|
|
1044 ccl.o: ccl.c ccl.h charset.h coding.h $(config_h)
|
31421
|
1045 charset.o: charset.c charset.h buffer.h coding.h composite.h disptab.h \
|
|
1046 $(config_h)
|
52398
|
1047 coding.o: coding.c coding.h ccl.h buffer.h charset.h intervals.h composite.h window.h $(config_h)
|
7953
|
1048 cm.o: cm.c cm.h termhooks.h $(config_h)
|
21802
|
1049 cmds.o: cmds.c syntax.h buffer.h charset.h commands.h window.h $(config_h) \
|
30288
|
1050 msdos.h dispextern.h
|
7953
|
1051 pre-crt0.o: pre-crt0.c
|
10585
|
1052 ecrt0.o: ecrt0.c $(config_h)
|
|
1053 CRT0_COMPILE ${srcdir}/ecrt0.c
|
26088
b7aa6ac26872
Add support for large files, 64-bit Solaris, system locale codings.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
1054 dired.o: dired.c commands.h buffer.h $(config_h) charset.h coding.h regex.h \
|
b7aa6ac26872
Add support for large files, 64-bit Solaris, system locale codings.
Paul Eggert <eggert@twinsun.com>
diff
changeset
|
1055 systime.h
|
44059
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1056 dispnew.o: dispnew.c systty.h systime.h commands.h process.h frame.h \
|
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1057 window.h buffer.h dispextern.h termchar.h termopts.h termhooks.h cm.h \
|
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1058 disptab.h \
|
31199
|
1059 xterm.h blockinput.h atimer.h charset.h msdos.h composite.h keyboard.h \
|
|
1060 $(config_h)
|
26836
|
1061 doc.o: doc.c $(config_h) epaths.h buffer.h keyboard.h charset.h
|
17020
|
1062 doprnt.o: doprnt.c charset.h $(config_h)
|
9572
|
1063 dosfns.o: buffer.h termchar.h termhooks.h frame.h msdos.h dosfns.h $(config_h)
|
28585
|
1064 editfns.o: editfns.c window.h buffer.h systime.h $(INTERVAL_SRC) charset.h \
|
30288
|
1065 coding.h dispextern.h $(config_h)
|
14503
|
1066 emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
|
52398
|
1067 termhooks.h buffer.h atimer.h systime.h $(INTERVAL_SRC) $(config_h) \
|
|
1068 window.h keyboard.h keymap.h
|
28585
|
1069 fileio.o: fileio.c window.h buffer.h systime.h $(INTERVAL_SRC) charset.h \
|
30288
|
1070 coding.h ccl.h msdos.h dispextern.h $(config_h)
|
24411
|
1071 filelock.o: filelock.c buffer.h systime.h epaths.h $(config_h)
|
7953
|
1072 filemode.o: filemode.c $(config_h)
|
16212
|
1073 frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
|
50385
|
1074 blockinput.h atimer.h systime.h buffer.h charset.h fontset.h \
|
|
1075 msdos.h dosfns.h dispextern.h $(config_h)
|
42092
|
1076 fontset.o: dispextern.h fontset.h fontset.c ccl.h buffer.h charset.h frame.h \
|
31199
|
1077 keyboard.h $(config_h)
|
7953
|
1078 getloadavg.o: getloadavg.c $(config_h)
|
|
1079 indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \
|
31199
|
1080 termopts.h disptab.h region-cache.h charset.h composite.h dispextern.h \
|
|
1081 keyboard.h
|
50261
|
1082 insdel.o: insdel.c window.h buffer.h $(INTERVAL_SRC) blockinput.h charset.h \
|
30297
|
1083 dispextern.h atimer.h systime.h $(config_h)
|
17020
|
1084 keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h charset.h \
|
4796
|
1085 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
|
28585
|
1086 systty.h systime.h dispextern.h syntax.h $(INTERVAL_SRC) blockinput.h \
|
30297
|
1087 atimer.h xterm.h puresize.h msdos.h $(config_h)
|
7953
|
1088 keymap.o: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
|
30297
|
1089 atimer.h systime.h puresize.h charset.h intervals.h $(config_h)
|
7953
|
1090 lastfile.o: lastfile.c $(config_h)
|
30288
|
1091 macros.o: macros.c window.h buffer.h commands.h macros.h keyboard.h \
|
|
1092 dispextern.h $(config_h)
|
7953
|
1093 malloc.o: malloc.c $(config_h)
|
|
1094 gmalloc.o: gmalloc.c $(config_h)
|
|
1095 ralloc.o: ralloc.c $(config_h)
|
13892
|
1096 vm-limit.o: vm-limit.c mem-limits.h $(config_h)
|
20542
|
1097 marker.o: marker.c buffer.h charset.h $(config_h)
|
50479
|
1098 md5.o: md5.c md5.h $(config_h)
|
31199
|
1099 minibuf.o: minibuf.c syntax.h dispextern.h frame.h window.h keyboard.h \
|
21802
|
1100 buffer.h commands.h charset.h msdos.h $(config_h)
|
16212
|
1101 mktime.o: mktime.c $(config_h)
|
23824
|
1102 msdos.o: msdos.c msdos.h dosfns.h systime.h termhooks.h dispextern.h frame.h \
|
30712
|
1103 termopts.h termchar.h charset.h coding.h ccl.h disptab.h window.h \
|
52309
|
1104 keyboard.h intervals.h $(config_h)
|
7953
|
1105 process.o: process.c process.h buffer.h window.h termhooks.h termopts.h \
|
30288
|
1106 commands.h syssignal.h systime.h systty.h syswait.h frame.h dispextern.h \
|
31199
|
1107 blockinput.h atimer.h charset.h coding.h ccl.h msdos.h composite.h \
|
|
1108 keyboard.h $(config_h)
|
17020
|
1109 regex.o: regex.c syntax.h buffer.h $(config_h) regex.h category.h charset.h
|
9402
|
1110 region-cache.o: region-cache.c buffer.h region-cache.h
|
31199
|
1111 scroll.o: scroll.c termchar.h dispextern.h frame.h msdos.h keyboard.h \
|
|
1112 $(config_h)
|
9402
|
1113 search.o: search.c regex.h commands.h buffer.h region-cache.h syntax.h \
|
30297
|
1114 blockinput.h atimer.h systime.h category.h charset.h composite.h $(config_h)
|
9077
|
1115 strftime.o: strftime.c $(config_h)
|
17020
|
1116 syntax.o: syntax.c syntax.h buffer.h commands.h category.h charset.h \
|
26836
|
1117 composite.h $(config_h)
|
44059
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1118 sysdep.o: sysdep.c syssignal.h systty.h systime.h syswait.h blockinput.h \
|
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1119 process.h dispextern.h termhooks.h termchar.h termopts.h \
|
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1120 frame.h atimer.h window.h msdos.h dosfns.h keyboard.h $(config_h)
|
7953
|
1121 term.o: term.c termchar.h termhooks.h termopts.h $(config_h) cm.h frame.h \
|
32562
|
1122 disptab.h dispextern.h keyboard.h charset.h coding.h ccl.h msdos.h
|
7953
|
1123 termcap.o: termcap.c $(config_h)
|
|
1124 terminfo.o: terminfo.c $(config_h)
|
|
1125 tparam.o: tparam.c $(config_h)
|
13892
|
1126 undo.o: undo.c buffer.h commands.h $(config_h)
|
7586
db8237533825
(UNEXEC_ALIAS): New variable, used to make the unex...o target.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1127 /* This hack is to discard any space that cpp might put at the beginning
|
db8237533825
(UNEXEC_ALIAS): New variable, used to make the unex...o target.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1128 of UNEXEC when substituting it in. */
|
db8237533825
(UNEXEC_ALIAS): New variable, used to make the unex...o target.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1129 UNEXEC_ALIAS=UNEXEC
|
7953
|
1130 $(UNEXEC_ALIAS): UNEXEC_SRC $(config_h)
|
30297
|
1131 w16select.o: w16select.c dispextern.h frame.h blockinput.h atimer.h systime.h \
|
21802
|
1132 msdos.h $(config_h)
|
14875
|
1133 widget.o: widget.c xterm.h frame.h dispextern.h widgetprv.h \
|
22872
|
1134 $(srcdir)/../lwlib/lwlib.h $(config_h)
|
7953
|
1135 window.o: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
|
26836
|
1136 termhooks.h disptab.h keyboard.h dispextern.h msdos.h composite.h \
|
|
1137 $(config_h)
|
44059
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1138 xdisp.o: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h coding.h \
|
21802
|
1139 termchar.h frame.h window.h disptab.h termhooks.h charset.h $(config_h) \
|
50216
|
1140 msdos.h composite.h fontset.h blockinput.h atimer.h systime.h keymap.h
|
7953
|
1141 xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
|
30297
|
1142 window.h charset.h msdos.h dosfns.h composite.h atimer.h systime.h $(config_h)
|
30288
|
1143 xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \
|
30297
|
1144 $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h epaths.h \
|
49322
|
1145 charset.h gtkutil.h $(config_h)
|
42092
|
1146 xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \
|
|
1147 keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h \
|
52513
|
1148 gtkutil.h msdos.h coding.h $(config_h)
|
42092
|
1149 xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \
|
30297
|
1150 dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \
|
39411
|
1151 keyboard.h gnu.h charset.h ccl.h fontset.h composite.h \
|
49322
|
1152 coding.h process.h gtkutil.h $(config_h)
|
44059
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1153 xselect.o: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \
|
51599
|
1154 buffer.h atimer.h systime.h $(config_h)
|
24411
|
1155 xrdb.o: xrdb.c $(config_h) epaths.h
|
52298
1a4bd2bec861
Create and initialize a client leader window so session management
Jan Djärv <jan.h.d@swipnet.se>
diff
changeset
|
1156 xsmfns.o: xsmfns.c $(config_h) systime.h sysselect.h termhooks.h xterm.h \
|
1a4bd2bec861
Create and initialize a client leader window so session management
Jan Djärv <jan.h.d@swipnet.se>
diff
changeset
|
1157 lisp.h termopts.h
|
49322
|
1158 gtkutil.o: gtkutil.c gtkutil.h xterm.h lisp.h frame.h $(config_h) \
|
52398
|
1159 blockinput.h window.h atimer.h termhooks.h keyboard.h charset.h coding.h
|
49322
|
1160
|
7953
|
1161 hftctl.o: hftctl.c $(config_h)
|
26299
|
1162 sound.o: sound.c dispextern.h $(config_h)
|
27665
105b01b90125
* Makefile.in (LIBX): Link in tiff library before jpeg, since tiff library may
Ken Raeburn <raeburn@raeburn.org>
diff
changeset
|
1163 atimer.o: atimer.c atimer.h systime.h $(config_h)
|
4796
|
1164
|
|
1165 /* The files of Lisp proper */
|
|
1166
|
44059
0cefd7e2b158
(dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o): Depend on process.h.
Richard M. Stallman <rms@gnu.org>
diff
changeset
|
1167 alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h keyboard.h \
|
30297
|
1168 blockinput.h atimer.h systime.h charset.h dispextern.h $(config_h) $(INTERVAL_SRC)
|
52398
|
1169 bytecode.o: bytecode.c buffer.h syntax.h charset.h window.h $(config_h)
|
17020
|
1170 data.o: data.c buffer.h puresize.h charset.h syssignal.h keyboard.h $(config_h)
|
30297
|
1171 eval.o: eval.c commands.h keyboard.h blockinput.h atimer.h systime.h \
|
|
1172 $(config_h)
|
7953
|
1173 floatfns.o: floatfns.c $(config_h)
|
28996
|
1174 fns.o: fns.c commands.h $(config_h) frame.h buffer.h charset.h keyboard.h \
|
52620
|
1175 frame.h window.h dispextern.h $(INTERVAL_SRC) coding.h md5.h
|
50261
|
1176 print.o: print.c process.h frame.h window.h buffer.h keyboard.h charset.h \
|
26836
|
1177 $(config_h) dispextern.h msdos.h composite.h
|
24411
|
1178 lread.o: lread.c commands.h keyboard.h buffer.h epaths.h charset.h $(config_h) \
|
44224
|
1179 termhooks.h coding.h msdos.h
|
4796
|
1180
|
|
1181 /* Text properties support */
|
30288
|
1182 textprop.o: textprop.c buffer.h window.h dispextern.h $(INTERVAL_SRC) \
|
|
1183 $(config_h)
|
28585
|
1184 intervals.o: intervals.c buffer.h $(INTERVAL_SRC) keyboard.h puresize.h $(config_h)
|
|
1185 composite.o: composite.c buffer.h charset.h $(INTERVAL_SRC) $(config_h)
|
4796
|
1186
|
|
1187 /* System-specific programs to be made.
|
28585
|
1188 OTHER_FILES and OBJECTS_MACHINE
|
4796
|
1189 select which of these should be compiled. */
|
|
1190
|
30288
|
1191 sunfns.o: sunfns.c buffer.h window.h dispextern.h $(config_h)
|
4796
|
1192
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1193 #ifdef HAVE_CARBON
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1194 abbrev.o buffer.o callint.o cmds.o dispnew.o editfns.o fileio.o frame.o \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1195 fontset.o indent.o insdel.o keyboard.o macros.o minibuf.o msdos.o process.o \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1196 scroll.o sysdep.o term.o widget.o window.o xdisp.o xfaces.o xfns.o xmenu.o \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1197 xterm.o xselect.o sound.o: macgui.h
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1198 mac.o: mac.c process.h sysselect.h systime.h $(config_h)
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1199 macfns.o: macfns.c charset.h macterm.h macgui.h frame.h window.h buffer.h \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1200 dispextern.h macgui.h fontset.h $(INTERVAL_SRC) keyboard.h blockinput.h \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1201 atimer.h systime.h epaths.h termhooks.h coding.h ccl.h systime.h $(config_h)
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1202 macmenu.o: macmenu.c termhooks.h frame.h window.h dispextern.h macgui.h \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1203 keyboard.h blockinput.h atimer.h systime.h buffer.h macterm.h $(config_h)
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1204 macterm.o: blockinput.h atimer.h systime.h syssignal.h macterm.h macgui.h \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1205 frame.h charset.h ccl.h dispextern.h fontset.h termhooks.h termopts.h \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1206 termchar.h gnu.h disptab.h buffer.h window.h keyboard.h $(INTERVAL_SRC) \
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1207 process.h coding.h $(config_h)
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1208
|
48982
|
1209 ${emacsapp}Contents/Resources/English.lproj:
|
|
1210 mkdir -p $@
|
|
1211
|
|
1212 ifneq (${emacsapp},${emacsappsrc})
|
|
1213 ${emacsapp}Contents/Info.plist: ${emacsappsrc}Contents/Info.plist
|
|
1214 cp $< $@
|
|
1215 ${emacsapp}Contents/PkgInfo: ${emacsappsrc}Contents/PkgInfo
|
|
1216 cp $< $@
|
|
1217 ${emacsapp}Contents/Resources/Emacs.icns: ${emacsappsrc}Contents/Resources/Emacs.icns
|
|
1218 mkdir -p ${emacsapp}Contents/Resources
|
|
1219 cp $< $@
|
|
1220 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings: ${emacsappsrc}Contents/Resources/English.lproj/InfoPlist.strings
|
|
1221 cp $< $@
|
|
1222 endif
|
|
1223
|
|
1224 macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \
|
50261
|
1225 ${emacsapp}Contents/Info.plist ${emacsapp}Contents/PkgInfo \
|
48982
|
1226 ${emacsapp}Contents/Resources/Emacs.icns \
|
|
1227 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings
|
|
1228 macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1229 ${emacsapp}Contents/Resources/Emacs.rsrc
|
49652
|
1230 ${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT}
|
48982
|
1231 mkdir -p ${emacsapp}Contents/MacOS/;
|
49652
|
1232 cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT}
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1233 ${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r
|
48982
|
1234 /Developer/Tools/Rez -useDF \
|
|
1235 -o ${emacsapp}Contents/Resources/Emacs.rsrc \
|
|
1236 /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $<
|
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1237 #endif
|
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
diff
changeset
|
1238
|
49652
|
1239 ${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c
|
|
1240 cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool${EXEEXT}
|
44102
|
1241 bootstrapclean:
|
49652
|
1242 rm -f bootstrap-emacs${EXEEXT}
|
4796
|
1243 mostlyclean:
|
49652
|
1244 rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
|
4796
|
1245 rm -f ../etc/DOC
|
49652
|
1246 rm -f bootstrap-emacs${EXEEXT}
|
4796
|
1247 clean: mostlyclean
|
49652
|
1248 rm -f emacs-*${EXEEXT} emacs${EXEEXT}
|
4796
|
1249 /**/# This is used in making a distribution.
|
|
1250 /**/# Do not use it on development directories!
|
|
1251 distclean: clean
|
24411
|
1252 rm -f epaths.h config.h Makefile Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-*
|
42224
9709e1618364
(distclean): Remove .gdbinit if we are building outside the source tree.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
1253 mv ./.gdbinit ./.gdbinit.save
|
9709e1618364
(distclean): Remove .gdbinit if we are building outside the source tree.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
1254 if test -f "${srcdir}/.gdbinit"; then rm -f ./.gdbinit.save; \
|
9709e1618364
(distclean): Remove .gdbinit if we are building outside the source tree.
Eli Zaretskii <eliz@gnu.org>
diff
changeset
|
1255 else mv ./.gdbinit.save ./.gdbinit; fi
|
10684
|
1256 maintainer-clean: distclean
|
|
1257 @echo "This command is intended for maintainers to use;"
|
|
1258 @echo "it deletes files that may require special tools to rebuild."
|
4796
|
1259 rm -f TAGS
|
|
1260 versionclean:
|
49652
|
1261 -rm -f emacs${EXEEXT} emacs-* ../etc/DOC*
|
4796
|
1262 extraclean: distclean
|
5035
|
1263 -rm -f *~ \#* m/?*~ s/?*~
|
4796
|
1264
|
|
1265 /* The rule for the [sm] files has to be written a little funny to
|
|
1266 avoid looking like a C comment to CPP. */
|
12577
|
1267 SOURCES = *.[ch] [sm]/?* COPYING Makefile.in \
|
24411
|
1268 config.in epaths.in README COPYING ChangeLog vms.pp-trans
|
4796
|
1269 unlock:
|
|
1270 chmod u+w $(SOURCES)
|
|
1271
|
|
1272 relock:
|
|
1273 chmod -w $(SOURCES)
|
24411
|
1274 chmod +w epaths.h
|
6988
|
1275
|
21923
|
1276 /* Arrange to make a tags table TAGS-LISP for ../lisp,
|
|
1277 plus TAGS for the C files, which includes ../lisp/TAGS by reference. */
|
38253
|
1278
|
49549
|
1279 ctagsfiles1 = [xyzXYZ]*.[hc]
|
25027
|
1280 ctagsfiles2 = [a-wA-W]*.[hc]
|
38253
|
1281
|
|
1282 TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
|
28000
|
1283 ../lib-src/etags --include=TAGS-LISP --include=${lwlibdir}/TAGS \
|
22017
|
1284 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
|
25027
|
1285 $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2)
|
21923
|
1286 frc:
|
|
1287 TAGS-LISP: frc
|
41654
|
1288 $(MAKE) -f ${lispdir}Makefile TAGS-LISP ETAGS=../lib-src/etags
|
38253
|
1289
|
|
1290 $(lwlibdir)TAGS:
|
|
1291 (cd $(lwlibdir); $(MAKE) -f $(lwlibdir)Makefile tags ETAGS=../lib-src/etags)
|
|
1292
|
|
1293 tags: TAGS TAGS-LISP $(lwlibdir)TAGS
|
4796
|
1294 .PHONY: tags
|
26147
|
1295
|
|
1296
|
|
1297 /* Bootstrapping. */
|
|
1298
|
49652
|
1299 bootstrap: bootstrap-emacs${EXEEXT}
|
26147
|
1300
|
49549
|
1301 /* Dump an Emacs executable named bootstrap-emacs containing the
|
26147
|
1302 files from loadup.el in source form. */
|
|
1303
|
49652
|
1304 bootstrap-emacs${EXEEXT}: temacs${EXEEXT}
|
26147
|
1305 #ifdef CANNOT_DUMP
|
49652
|
1306 ln temacs${EXEEXT} bootstrap-emacs${EXEEXT}
|
26147
|
1307 #else
|
|
1308 #ifdef HAVE_SHM
|
|
1309 ./temacs -nl -batch -l loadup bootstrap
|
|
1310 #else /* ! defined (HAVE_SHM) */
|
|
1311 ./temacs --batch --load loadup bootstrap
|
|
1312 #endif /* ! defined (HAVE_SHM) */
|
49652
|
1313 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
|
26147
|
1314 #endif /* ! defined (CANNOT_DUMP) */
|
|
1315
|
52410
|
1316 /* arch-tag: 8e915ae5-d15d-4617-8c41-c5c267a23b00
|
|
1317 (do not change this comment) */
|