aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorKenichi Handa2010-05-14 13:15:58 +0900
committerKenichi Handa2010-05-14 13:15:58 +0900
commitccd3ce49e08b4f0c0e1bcbb34e9055ca4002e21c (patch)
tree0f53c077154c7cd5f05b339d91905dfd2391679d /src/Makefile.in
parent82ebc97b11a369303345927c98e7bc69928c9117 (diff)
parent508197067c434b0111bcb6ded742d424bb738ece (diff)
downloademacs-ccd3ce49e08b4f0c0e1bcbb34e9055ca4002e21c.tar.gz
emacs-ccd3ce49e08b4f0c0e1bcbb34e9055ca4002e21c.zip
merge trunk
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in307
1 files changed, 130 insertions, 177 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 69e37fb236a..3a0339a3f70 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,7 +1,7 @@
1# Makefile for GNU Emacs. 1# Makefile for GNU Emacs.
2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001, 2002, 2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
3# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 3# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4# Free Software Foundation, Inc. 4# Free Software Foundation, Inc.
5 5
6# This file is part of GNU Emacs. 6# This file is part of GNU Emacs.
7 7
@@ -30,6 +30,7 @@
30# Some of the conditionals might be dead now. Finding them and 30# Some of the conditionals might be dead now. Finding them and
31# deleting them would be fine. 31# deleting them would be fine.
32 32
33SHELL = /bin/sh
33 34
34# Here are the things that we expect ../configure to edit. 35# Here are the things that we expect ../configure to edit.
35# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. 36# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
@@ -72,25 +73,59 @@ CRT_DIR=@CRT_DIR@
72C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ 73C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
73## System-specific CFLAGS. 74## System-specific CFLAGS.
74C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ 75C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
76
77## Currently only set if NS_IMPL_GNUSTEP.
78## C_SWITCH_X_SITE may override this.
79C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
80
81## Define C_SWITCH_X_SITE to contain any special flags your compiler
82## may need to deal with X Windows. For instance, if you've defined
83## HAVE_X_WINDOWS and your X include files aren't in a place that your
84## compiler can find on its own, you might want to add "-I/..." or
85## something similar. This is normally set by configure.
86## This is used before C_SWITCH_X_SYSTEM and may override it.
87C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
88
89## Define LD_SWITCH_X_SITE to contain any special flags your loader
90## may need to deal with X Windows. For instance, if your X libraries
91## aren't in a place that your loader can find on its own, you might
92## want to add "-L/..." or something similar. Only used if
93## HAVE_X_WINDOWS.
94## FIXME? configure sets a value for this, but it has never been
95## substituted in this or any other Makefile. Cf C_SWITCH_X_SITE.
96LD_SWITCH_X_SITE=
97
75## This holds any special options for linking temacs only (ie, not 98## This holds any special options for linking temacs only (ie, not
76## used by configure). Not used elsewhere because it sometimes 99## used by configure). Not used elsewhere because it sometimes
77## contains options that have to do with using Emacs's crt0, 100## contains options that have to do with using Emacs's crt0,
78## which are only good with temacs. 101## which are only good with temacs.
79LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@ 102LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@
103
80## Next two must come before LD_SWITCH_SYSTEM. 104## Next two must come before LD_SWITCH_SYSTEM.
81## If needed, a -R option that says where to find X windows at run time. 105## If needed, a -R option that says where to find X windows at run time.
82LD_SWITCH_X_SITE_AUX=@LD_SWITCH_X_SITE_AUX@ 106LD_SWITCH_X_SITE_AUX=@LD_SWITCH_X_SITE_AUX@
83## As above, but using -rpath instead. 107## As above, but using -rpath instead.
84LD_SWITCH_X_SITE_AUX_RPATH=@LD_SWITCH_X_SITE_AUX_RPATH@ 108LD_SWITCH_X_SITE_AUX_RPATH=@LD_SWITCH_X_SITE_AUX_RPATH@
109
85## System-specific LDFLAGS. 110## System-specific LDFLAGS.
86LD_SWITCH_SYSTEM=@LD_SWITCH_SYSTEM@ 111LD_SWITCH_SYSTEM=@LD_SWITCH_SYSTEM@
87LD_SWITCH_SYSTEM_EXTRA=@LD_SWITCH_SYSTEM_EXTRA@ 112LD_SWITCH_SYSTEM_EXTRA=@LD_SWITCH_SYSTEM_EXTRA@
113
88## Flags to pass to ld only for temacs. 114## Flags to pass to ld only for temacs.
89TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_EXTRA) $(LD_SWITCH_SYSTEM_TEMACS) 115TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_EXTRA) $(LD_SWITCH_SYSTEM_TEMACS)
90 116
91## Some systems define this to request special libraries. 117## Some systems define this to request special libraries.
92LIBS_SYSTEM=@LIBS_SYSTEM@ 118LIBS_SYSTEM=@LIBS_SYSTEM@
93 119
120## Where to find libgcc.a, if using gcc and necessary.
121LIB_GCC=@LIB_GCC@
122
123## May use $CRT_DIR.
124LIB_STANDARD=@LIB_STANDARD@
125
126## -lm, or empty.
127LIB_MATH=@LIB_MATH@
128
94LIBTIFF=@LIBTIFF@ 129LIBTIFF=@LIBTIFF@
95LIBJPEG=@LIBJPEG@ 130LIBJPEG=@LIBJPEG@
96LIBPNG=@LIBPNG@ 131LIBPNG=@LIBPNG@
@@ -99,6 +134,15 @@ LIBXPM=@LIBXPM@
99XFT_LIBS=@XFT_LIBS@ 134XFT_LIBS=@XFT_LIBS@
100LIBX_EXTRA=$(LIBTIFF) $(LIBJPEG) $(LIBPNG) $(LIBGIF) $(LIBXPM) -lX11 $(XFT_LIBS) 135LIBX_EXTRA=$(LIBTIFF) $(LIBJPEG) $(LIBPNG) $(LIBGIF) $(LIBXPM) -lX11 $(XFT_LIBS)
101 136
137FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
138FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
139FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
140FREETYPE_LIBS = @FREETYPE_LIBS@
141LIBOTF_CFLAGS = @LIBOTF_CFLAGS@
142LIBOTF_LIBS = @LIBOTF_LIBS@
143M17N_FLT_CFLAGS = @M17N_FLT_CFLAGS@
144M17N_FLT_LIBS = @M17N_FLT_LIBS@
145
102DBUS_CFLAGS = @DBUS_CFLAGS@ 146DBUS_CFLAGS = @DBUS_CFLAGS@
103DBUS_LIBS = @DBUS_LIBS@ 147DBUS_LIBS = @DBUS_LIBS@
104DBUS_OBJ = @DBUS_OBJ@ 148DBUS_OBJ = @DBUS_OBJ@
@@ -140,15 +184,36 @@ WIDGET_OBJ=@WIDGET_OBJ@
140## sheap.o if CYGWIN, otherwise empty. 184## sheap.o if CYGWIN, otherwise empty.
141CYGWIN_OBJ=@CYGWIN_OBJ@ 185CYGWIN_OBJ=@CYGWIN_OBJ@
142 186
187## dosfns.o msdos.o if MSDOS.
188MSDOS_OBJ =
189## w16select.o termcap.o if MSDOS && HAVE_X_WINDOWS.
190MSDOS_X_OBJ =
191MSDOS_SUPPORT_REAL = ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
192 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \
193 ${lispsource}term/internal.elc ${lispsource}term/pc-win.elc
194## $MSDOS_SUPPORT_REAL if MSDOS.
195MSDOS_SUPPORT =
196
143NS_OBJ=@NS_OBJ@ 197NS_OBJ=@NS_OBJ@
144NS_SUPPORT=@NS_SUPPORT@ 198NS_SUPPORT=@NS_SUPPORT@
199## Next two only set if NS_IMPL_GNUSTEP.
200GNU_OBJC_CFLAGS=@GNU_OBJC_CFLAGS@
201GNUSTEP_SYSTEM_LIBRARIES=@GNUSTEP_SYSTEM_LIBRARIES@
145 202
146## Only used if HAVE_X_WINDOWS and HAVE_WINDOW_SYSTEM. 203## Only used if HAVE_X_WINDOWS.
147FONT_OBJ=@FONT_OBJ@ 204FONT_OBJ=@FONT_OBJ@
148 205
149## ${lispsource}mouse.elc if HAVE_GPM, otherwise empty. 206## Used if HAVE_MOUSE.
150## Not used if HAVE_MOUSE. 207REAL_MOUSE_SUPPORT=${lispsource}mouse.elc ${lispsource}select.elc \
151GPM_MOUSE_SUPPORT=@GPM_MOUSE_SUPPORT@ 208 ${lispsource}scroll-bar.elc
209## Used if HAVE_GPM && !HAVE_MOUSE
210GPM_MOUSE_SUPPORT=${lispsource}mouse.elc
211LIBGPM = @LIBGPM@
212## Either of the two preceding options, or empty.
213MOUSE_SUPPORT=@MOUSE_SUPPORT@
214
215## ${lispsource}tooltip.elc if HAVE_WINDOW_SYSTEM, else empty.
216TOOLTIP_SUPPORT=@TOOLTIP_SUPPORT@
152 217
153BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \ 218BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \
154 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \ 219 ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
@@ -157,6 +222,13 @@ BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \
157X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \ 222X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \
158 ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc 223 ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc
159 224
225## If HAVE_X_WINDOWS, both the above
226## else if HAVE_WINDOW_SYSTEM (ie, HAVE_NS) just the former; else empty.
227WINDOW_SUPPORT=@WINDOW_SUPPORT@
228
229## -lresolv, or empty.
230LIBRESOLV = @LIBRESOLV@
231
160LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ 232LIBSELINUX_LIBS = @LIBSELINUX_LIBS@
161 233
162INTERVALS_H = dispextern.h intervals.h composite.h 234INTERVALS_H = dispextern.h intervals.h composite.h
@@ -167,12 +239,11 @@ RUN_TEMACS = `/bin/pwd`/temacs
167 239
168START_FILES = @START_FILES@ 240START_FILES = @START_FILES@
169 241
242UNEXEC_OBJ = @unexec@
243
170# ========================== start of cpp stuff ======================= 244# ========================== start of cpp stuff =======================
171/* From here on, comments must be done in C syntax. */ 245/* From here on, comments must be done in C syntax. */
172 246
173/* just to be sure the sh is used */
174SHELL=/bin/sh
175
176#define NOT_C_CODE 247#define NOT_C_CODE
177#include "config.h" 248#include "config.h"
178 249
@@ -180,42 +251,13 @@ SHELL=/bin/sh
180DEPFLAGS = -MMD -MF deps/$*.d 251DEPFLAGS = -MMD -MF deps/$*.d
181#endif 252#endif
182 253
183/* Do not let the file name mktime.c get messed up. */ 254/* If NS_IMPL_GNUSTEP, some definitions and includes are expanded here. */
184#ifdef mktime 255@NS_IMPL_GNUSTEP_INC@
185#undef mktime
186#endif
187
188/* Use HAVE_X11 as an alias for X11 in this file
189 to avoid problems with X11 as a subdirectory name
190 in -I and other such options which pass through this file. */
191
192#ifdef X11
193#define HAVE_X11
194#undef X11
195#endif
196
197/* On some machines #define register is done in config;
198 do not let it interfere with this file. */
199#undef register
200
201/* This macro is for switches specifically related to X Windows. */
202#ifndef LD_SWITCH_X_SITE
203#define LD_SWITCH_X_SITE
204#endif
205
206#ifdef NS_IMPL_GNUSTEP
207/* Pull in stuff from GNUstep-make. */
208FOUNDATION_LIB=gnu
209GUI_LIB=gnu
210include @GNUSTEP_MAKEFILES@/Additional/base.make
211include @GNUSTEP_MAKEFILES@/Additional/gui.make
212shared=no
213#endif
214 256
215/* DO NOT use -R. There is a special hack described in lastfile.c 257/* DO NOT use -R. There is a special hack described in lastfile.c
216 which is used instead. Some initialized data areas are modified 258 which is used instead. Some initialized data areas are modified
217 at initial startup, then labeled as part of the text area when 259 at initial startup, then labeled as part of the text area when
218 Emacs is dumped for the first time, and never changed again. */ 260 Emacs is dumped for the first time, and never changed again. */
219 261
220/* -Demacs is needed to make some files produce the correct version 262/* -Demacs is needed to make some files produce the correct version
221 for use in Emacs. 263 for use in Emacs.
@@ -224,10 +266,10 @@ shared=no
224 the information in ``config.h''. */ 266 the information in ``config.h''. */
225 267
226/* C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM 268/* C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM
227 since it may have -I options that should override those two. */ 269 since it may have -I options that should override those. */
228/* MYCPPFLAGS only referenced in etc/DEBUG. */ 270/* MYCPPFLAGS only referenced in etc/DEBUG. */
229ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} ${C_SWITCH_MACHINE} ${C_SWITCH_SYSTEM} @C_SWITCH_X_SITE@ @C_SWITCH_X_SYSTEM@ ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ ${DEPFLAGS} 271ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} ${C_SWITCH_MACHINE} ${C_SWITCH_SYSTEM} ${C_SWITCH_X_SITE} ${C_SWITCH_X_SYSTEM} ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} ${FREETYPE_CFLAGS} ${FONTCONFIG_CFLAGS} ${LIBOTF_CFLAGS} ${M17N_FLT_CFLAGS} ${DEPFLAGS}
230ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@ 272ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
231 273
232.SUFFIXES: .m 274.SUFFIXES: .m
233.c.o: 275.c.o:
@@ -242,29 +284,30 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@
242 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< 284 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $<
243 285
244#ifdef HAVE_X_WINDOWS 286#ifdef HAVE_X_WINDOWS
245/* This test needs to say in cpp for the time being, since s/msdos.h
246 defines HAVE_MENUS, and does not use the configure script. */
247#ifdef HAVE_MENUS
248OLDXMENU=@OLDXMENU@ 287OLDXMENU=@OLDXMENU@
249LIBXMENU=@LIBXMENU@ 288LIBXMENU=@LIBXMENU@
250#else /* not HAVE_MENUS */
251OLDXMENU=
252LIBXMENU=
253#endif /* not HAVE_MENUS */
254
255LIBXT=$(TOOLKIT_LIBW) $(LIBXT_OTHER) 289LIBXT=$(TOOLKIT_LIBW) $(LIBXT_OTHER)
256LIBX_BASE=$(LIBXMENU) LD_SWITCH_X_SITE 290LIBX_BASE=$(LIBXMENU) $(LD_SWITCH_X_SITE)
257LIBX_OTHER=@LIBX_OTHER@ 291LIBX_OTHER=@LIBX_OTHER@
258#endif /* not HAVE_X_WINDOWS */ 292FONT_DRIVERS=$(FONT_OBJ)
293#endif /* HAVE_X_WINDOWS */
259 294
260#ifndef ORDINARY_LINK
261/* Fix linking if compiled with GCC. */
262#ifdef __GNUC__
263 295
264#ifdef LINKER 296/* A macro which other sections of Makefile can redefine to munge the
265#define LINKER_WAS_SPECIFIED 297 flags before they are passed to LD. This is helpful if you have
266#endif 298 redefined LD to something odd, like "gcc".
299 (The YMF prefix is a holdover from the old name "ymakefile".) */
300#define YMF_PASS_LDFLAGS(flags) flags
301
302
303#ifdef ORDINARY_LINK
304LD = $(CC)
267 305
306#else /* not ORDINARY_LINK */
307GNULIB_VAR = $(LIB_GCC)
308
309/* Fix linking if compiled with GCC. */
310#if defined (__GNUC__) && ! defined (LINKER)
268/* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure 311/* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
269 places that are difficult to figure out at make time. Fortunately, 312 places that are difficult to figure out at make time. Fortunately,
270 these same versions allow you to pass arbitrary flags on to the 313 these same versions allow you to pass arbitrary flags on to the
@@ -273,78 +316,31 @@ LIBX_OTHER=@LIBX_OTHER@
273 Well, it is not quite perfect. The "-nostdlib" keeps GCC from 316 Well, it is not quite perfect. The "-nostdlib" keeps GCC from
274 searching for libraries in its internal directories, so we have to 317 searching for libraries in its internal directories, so we have to
275 ask GCC explicitly where to find libgcc.a. */ 318 ask GCC explicitly where to find libgcc.a. */
276
277#ifndef LINKER
278#define LINKER $(CC) -nostdlib 319#define LINKER $(CC) -nostdlib
279#endif 320/* GCC passes any argument prefixed with -Xlinker directly to the linker.
280 321 See prefix-args.c for an explanation of why we do not do this with the
281#ifndef LIB_GCC 322 shell''s ``for'' construct. Note that sane people do not have '.' in
282/* Ask GCC where to find libgcc.a. */ 323 their paths, so we must use ./prefix-args. */
283#define LIB_GCC `$(CC) -print-libgcc-file-name` 324#undef YMF_PASS_LDFLAGS
284#endif /* not LIB_GCC */
285
286GNULIB_VAR = LIB_GCC
287
288#ifndef LINKER_WAS_SPECIFIED
289/* GCC passes any argument prefixed with -Xlinker directly to the
290 linker. See prefix-args.c for an explanation of why we do not do
291 this with the shell''s ``for'' construct.
292 Note that some people do not have '.' in their paths, so we must
293 use ./prefix-args. */
294#define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags` 325#define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
295#else 326#endif /* defined (__GNUC__) && ! defined (LINKER) */
296#define YMF_PASS_LDFLAGS(flags) flags
297#endif
298
299#else /* not __GNUC__ */
300GNULIB_VAR =
301
302#endif /* not __GNUC__ */
303#endif /* not ORDINARY_LINK */
304 327
305#ifdef ORDINARY_LINK
306LD = $(CC)
307#else
308#ifdef LINKER 328#ifdef LINKER
309LD=LINKER 329LD=LINKER
310#else /* not LINKER */ 330#else /* not LINKER */
311LD=ld 331LD=ld
312#endif /* not LINKER */ 332#endif /* not LINKER */
313#endif /* not ORDINARY_LINK */
314
315/* A macro which other sections of Makefile can redefine to munge the
316 flags before they are passed to LD. This is helpful if you have
317 redefined LD to something odd, like "gcc".
318 (The YMF prefix is a holdover from the old name "ymakefile".)
319 */
320#ifndef YMF_PASS_LDFLAGS
321#define YMF_PASS_LDFLAGS(flags) flags
322#endif
323 333
324#ifdef MSDOS 334#endif /* not ORDINARY_LINK */
325LIBS_SYSTEM = MSDOS_LIBS_SYSTEM
326#ifdef HAVE_X_WINDOWS
327MSDOS_OBJ = dosfns.o msdos.o
328#else
329MSDOS_OBJ = dosfns.o msdos.o w16select.o termcap.o
330#endif
331#endif
332 335
333#ifdef HAVE_NS 336#ifdef HAVE_NS
334ns_appdir=@ns_appdir@/ 337ns_appdir=@ns_appdir@/
335ns_appbindir=@ns_appbindir@/ 338ns_appbindir=@ns_appbindir@/
336ns_appresdir=@ns_appresdir@/
337ns_appsrc=@ns_appsrc@ 339ns_appsrc=@ns_appsrc@
338#endif /* HAVE_NS */ 340#endif /* HAVE_NS */
339 341
340#ifdef HAVE_WINDOW_SYSTEM 342/* lastfile must follow all files whose initialized data areas should
341#ifdef HAVE_X_WINDOWS 343 be dumped as pure by dump-emacs. */
342FONT_DRIVERS=$(FONT_OBJ)
343#endif /* HAVE_X_WINDOWS */
344#endif /* HAVE_WINDOW_SYSTEM */
345
346/* lastfile must follow all files
347 whose initialized data areas should be dumped as pure by dump-emacs. */
348obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ 344obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \
349 charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \ 345 charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \
350 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ 346 cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \
@@ -354,15 +350,14 @@ obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \
354 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \ 350 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
355 alloc.o data.o doc.o editfns.o callint.o \ 351 alloc.o data.o doc.o editfns.o callint.o \
356 eval.o floatfns.o fns.o font.o print.o lread.o \ 352 eval.o floatfns.o fns.o font.o print.o lread.o \
357 syntax.o @unexec@ bytecode.o \ 353 syntax.o $(UNEXEC_OBJ) bytecode.o \
358 process.o callproc.o \ 354 process.o callproc.o \
359 region-cache.o sound.o atimer.o \ 355 region-cache.o sound.o atimer.o \
360 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \ 356 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \
361 $(MSDOS_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_DRIVERS) 357 $(MSDOS_OBJ) $(MSDOS_X_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_DRIVERS)
362 358
363/* Object files used on some machine or other. 359/* Object files used on some machine or other.
364 These go in the DOC file on all machines 360 These go in the DOC file on all machines in case they are needed. */
365 in case they are needed there. */
366SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ 361SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
367 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \ 362 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
368 fontset.o dbusbind.o \ 363 fontset.o dbusbind.o \
@@ -394,47 +389,6 @@ POST_ALLOC_OBJ=@POST_ALLOC_OBJ@
394otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ 389otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \
395 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) 390 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS)
396 391
397#ifdef HAVE_MOUSE
398#define MOUSE_SUPPORT ${lispsource}mouse.elc \
399 ${lispsource}select.elc ${lispsource}scroll-bar.elc
400#else
401#define MOUSE_SUPPORT $(GPM_MOUSE_SUPPORT)
402#endif
403
404#ifdef MSDOS
405#define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
406 ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \
407 ${lispsource}term/internal.elc ${lispsource}term/pc-win.elc
408
409#else
410#define MSDOS_SUPPORT
411#endif
412
413#ifdef HAVE_WINDOW_SYSTEM
414#ifdef HAVE_X_WINDOWS
415#define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT) $(X_WINDOW_SUPPORT)
416#else
417#define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT)
418#endif
419#else
420#define WINDOW_SUPPORT
421#endif
422
423#ifdef WINDOWSNT
424#define WINNT_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \
425 ${lispsource}dos-w32.elc ${lispsource}w32-vars.elc \
426 ${lispsource}w32-fns.elc ${lispsource}term/common-win.elc \
427 ${lispsource}term/w32-win.elc
428#else
429#define WINNT_SUPPORT
430#endif
431
432#ifdef HAVE_WINDOW_SYSTEM
433#define TOOLTIP_SUPPORT ${lispsource}tooltip.elc
434#else
435#define TOOLTIP_SUPPORT
436#endif
437
438/* This is the platform-specific list of Lisp files loaded into the 392/* This is the platform-specific list of Lisp files loaded into the
439 dumped Emacs. It is arranged like this because it is easier to generate 393 dumped Emacs. It is arranged like this because it is easier to generate
440 it semi-mechanically from loadup.el this way. 394 it semi-mechanically from loadup.el this way.
@@ -468,7 +422,7 @@ lisp= \
468 ${lispsource}files.elc \ 422 ${lispsource}files.elc \
469 ${lispsource}format.elc \ 423 ${lispsource}format.elc \
470 ${lispsource}facemenu.elc \ 424 ${lispsource}facemenu.elc \
471 MOUSE_SUPPORT \ 425 ${MOUSE_SUPPORT} \
472 ${lispsource}emacs-lisp/float-sup.elc \ 426 ${lispsource}emacs-lisp/float-sup.elc \
473 ${lispsource}frame.elc \ 427 ${lispsource}frame.elc \
474 ${lispsource}help.elc \ 428 ${lispsource}help.elc \
@@ -531,10 +485,9 @@ lisp= \
531 ${lispsource}vc-hooks.elc \ 485 ${lispsource}vc-hooks.elc \
532 ${lispsource}ediff-hook.elc \ 486 ${lispsource}ediff-hook.elc \
533 ${lispsource}epa-hook.elc \ 487 ${lispsource}epa-hook.elc \
534 TOOLTIP_SUPPORT \ 488 ${TOOLTIP_SUPPORT} \
535 MSDOS_SUPPORT \ 489 ${MSDOS_SUPPORT} \
536 WINNT_SUPPORT \ 490 ${WINDOW_SUPPORT} \
537 WINDOW_SUPPORT \
538 ${NS_SUPPORT} \ 491 ${NS_SUPPORT} \
539 ${lispsource}widget.elc \ 492 ${lispsource}widget.elc \
540 ${lispsource}window.elc \ 493 ${lispsource}window.elc \
@@ -654,10 +607,10 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \
654 with GCC, we might need gnulib again after them. */ 607 with GCC, we might need gnulib again after them. */
655 608
656LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ 609LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \
657 $(RSVG_LIBS) $(DBUS_LIBS) @LIBGPM@ @LIBRESOLV@ $(LIBS_SYSTEM) \ 610 $(RSVG_LIBS) $(DBUS_LIBS) $(LIBGPM) $(LIBRESOLV) $(LIBS_SYSTEM) \
658 $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ 611 $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \
659 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ 612 $(FREETYPE_LIBS) $(FONTCONFIG_LIBS) $(LIBOTF_LIBS) $(M17N_FLT_LIBS) \
660 $(GNULIB_VAR) @LIB_MATH@ @LIB_STANDARD@ $(GNULIB_VAR) 613 $(GNULIB_VAR) $(LIB_MATH) $(LIB_STANDARD) $(GNULIB_VAR)
661 614
662all: emacs${EXEEXT} $(OTHER_FILES) 615all: emacs${EXEEXT} $(OTHER_FILES)
663 616
@@ -702,7 +655,7 @@ buildobj.h: Makefile
702temacs${EXEEXT}: $(LOCALCPP) $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} 655temacs${EXEEXT}: $(LOCALCPP) $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT}
703#ifdef NS_IMPL_GNUSTEP 656#ifdef NS_IMPL_GNUSTEP
704 $(CC) -rdynamic YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \ 657 $(CC) -rdynamic YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \
705 -L@GNUSTEP_SYSTEM_LIBRARIES@ -lgnustep-gui -lgnustep-base \ 658 -L$(GNUSTEP_SYSTEM_LIBRARIES) -lgnustep-gui -lgnustep-base \
706 -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread ) -o temacs \ 659 -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread ) -o temacs \
707 ${obj} ${otherobj} ${LIBES} 660 ${obj} ${otherobj} ${LIBES}
708#else 661#else
@@ -716,9 +669,8 @@ prefix-args${EXEEXT}: prefix-args.o $(config_h)
716 669
717#if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK) 670#if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK)
718 671
719/* We use stamp-xmenu with these two deps 672/* We use stamp-xmenu with these two deps to both ensure that lwlib
720 to both ensure that lwlib gets remade based on its dependencies 673 gets remade based on its dependencies in its own makefile,
721 in its own makefile,
722 and remake temacs if lwlib gets changed by this. */ 674 and remake temacs if lwlib gets changed by this. */
723stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) 675stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU)
724 touch stamp-oldxmenu 676 touch stamp-oldxmenu
@@ -772,6 +724,8 @@ doc.o: buildobj.h
772Eg callproc.c only depends on w32.h for WINDOWSNT builds. 724Eg callproc.c only depends on w32.h for WINDOWSNT builds.
773One way to fix this would be to replace w32.h (etc) by $(W32_H), 725One way to fix this would be to replace w32.h (etc) by $(W32_H),
774a variable set by configure. Does not seem worth the trouble. 726a variable set by configure. Does not seem worth the trouble.
727Since the w32 build does not even use this file, you might ask
728why these dependencies are here at all...
775 729
776nsgui.h: In fact, every .o file depends directly or indirectly on 730nsgui.h: In fact, every .o file depends directly or indirectly on
777dispextern.h and hence nsgui.h under NS. But the ones that actually 731dispextern.h and hence nsgui.h under NS. But the ones that actually
@@ -981,8 +935,8 @@ xsmfns.o: xsmfns.c lisp.h $(config_h) systime.h sysselect.h termhooks.h xterm.h
981xsettings.o: xterm.h xsettings.h lisp.h frame.h termhooks.h $(config_h) \ 935xsettings.o: xterm.h xsettings.h lisp.h frame.h termhooks.h $(config_h) \
982 dispextern.h keyboard.h systime.h coding.h composite.h blockinput.h atimer.h \ 936 dispextern.h keyboard.h systime.h coding.h composite.h blockinput.h atimer.h \
983 termopts.h 937 termopts.h
984/* The files of Lisp proper */
985 938
939/* The files of Lisp proper. */
986alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h \ 940alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h \
987 keyboard.h blockinput.h atimer.h systime.h character.h lisp.h $(config_h) \ 941 keyboard.h blockinput.h atimer.h systime.h character.h lisp.h $(config_h) \
988 $(INTERVALS_H) termhooks.h 942 $(INTERVALS_H) termhooks.h
@@ -1004,7 +958,7 @@ lread.o: lread.c commands.h keyboard.h buffer.h epaths.h character.h \
1004 charset.h lisp.h $(config_h) $(INTERVALS_H) termhooks.h coding.h msdos.h \ 958 charset.h lisp.h $(config_h) $(INTERVALS_H) termhooks.h coding.h msdos.h \
1005 systime.h frame.h blockinput.h atimer.h 959 systime.h frame.h blockinput.h atimer.h
1006 960
1007/* Text properties support */ 961/* Text properties support. */
1008composite.o: composite.c buffer.h character.h coding.h font.h ccl.h \ 962composite.o: composite.c buffer.h character.h coding.h font.h ccl.h \
1009 frame.h termhooks.h $(INTERVALS_H) window.h lisp.h $(config_h) 963 frame.h termhooks.h $(INTERVALS_H) window.h lisp.h $(config_h)
1010intervals.o: intervals.c buffer.h $(INTERVALS_H) keyboard.h puresize.h \ 964intervals.o: intervals.c buffer.h $(INTERVALS_H) keyboard.h puresize.h \
@@ -1015,8 +969,7 @@ textprop.o: textprop.c buffer.h window.h $(INTERVALS_H) \
1015#endif /* ! AUTO_DEPEND */ 969#endif /* ! AUTO_DEPEND */
1016 970
1017/* System-specific programs to be made. 971/* System-specific programs to be made.
1018 OTHER_FILES 972 OTHER_FILES select which of these should be compiled. */
1019 select which of these should be compiled. */
1020 973
1021#ifdef HAVE_NS 974#ifdef HAVE_NS
1022${ns_appdir}: ${ns_appsrc} 975${ns_appdir}: ${ns_appsrc}