comparison src/Makefile.in.in @ 151:59463afc5666 r20-3b2

Import from CVS: tag r20-3b2
author cvs
date Mon, 13 Aug 2007 09:37:19 +0200
parents 538048ae2ab8
children 25f70ba0133c
comparison
equal deleted inserted replaced
150:8ebb1c0f0f6f 151:59463afc5666
101 /* On some systems we may not be able to use the system make command. */ 101 /* On some systems we may not be able to use the system make command. */
102 #ifdef MAKE_COMMAND 102 #ifdef MAKE_COMMAND
103 MAKE = MAKE_COMMAND 103 MAKE = MAKE_COMMAND
104 #endif 104 #endif
105 105
106 /* Some machines do not have the standard C libraries in the usual place. */
107 #ifndef ORDINARY_LINK
108 #ifndef LIB_STANDARD
109 #define LIB_STANDARD -lc
110 #endif
111 #else
112 #ifndef LIB_STANDARD
113 #define LIB_STANDARD
114 #endif
115 #endif
116
117 /* Unless inhibited or changed, use -lg to link for debugging. */ 106 /* Unless inhibited or changed, use -lg to link for debugging. */
118 #ifndef LIBS_DEBUG 107 #ifndef LIBS_DEBUG
119 #define LIBS_DEBUG -lg 108 #define LIBS_DEBUG -lg
120 #endif 109 #endif
121 110
214 #endif /* HAVE_X_WINDOWS */ 203 #endif /* HAVE_X_WINDOWS */
215 204
216 /* -Demacs is needed to make some files produce the correct version 205 /* -Demacs is needed to make some files produce the correct version
217 for use in Emacs. */ 206 for use in Emacs. */
218 207
219 src_cppflags=-Demacs -I${srcdir} $(LWLIB_CPPFLAGS) $(CPPFLAGS) 208 cppflags = $(CPPFLAGS) -Demacs -I. -I${srcdir} $(LWLIB_CPPFLAGS) $(c_switch_all)
220 cppflags = -I. $(c_switch_all) $(src_cppflags)
221 209
222 cflags= $(CFLAGS) $(cppflags) 210 cflags= $(CFLAGS) $(cppflags)
223 211
224 ldflags = $(ld_switch_all) -L. $(no_gnu_linker) $(LWLIB_LDFLAGS) 212 ldflags = -L. $(LWLIB_LDFLAGS) $(ld_switch_all)
225 213
226 .c.o: 214 .c.o:
227 $(CC) -c $(cflags) $< 215 $(CC) -c $(cflags) $<
228 216
229 /* Create preprocessor output (debugging purposes only) */ 217 /* Create preprocessor output (debugging purposes only) */
304 LD=ld 292 LD=ld
305 #endif /* ! defined (LINKER) */ 293 #endif /* ! defined (LINKER) */
306 #endif /* ! defined (COFF_ENCAPSULATE) */ 294 #endif /* ! defined (COFF_ENCAPSULATE) */
307 #endif /* not ORDINARY_LINK */ 295 #endif /* not ORDINARY_LINK */
308 296
309 /* Allow config.h to specify a replacement file for unexec.c. */
310 #ifndef UNEXEC
311 #define UNEXEC unexec.o
312 #endif
313 #ifndef UNEXEC_SRC
314 #define UNEXEC_SRC unexec.c
315 #endif
316
317 #ifdef ENERGIZE 297 #ifdef ENERGIZE
318 # ifdef EMACS_BTL 298 # ifdef EMACS_BTL
319 BTL_dir=$(srcdir)/../btl 299 BTL_dir=$(srcdir)/../btl
320 BTL_objs = cadillac-btl.o cadillac-btl-process.o cadillac-btl-asm.o cadillac-btl-emacs.o 300 BTL_objs = cadillac-btl.o cadillac-btl-process.o cadillac-btl-asm.o cadillac-btl-emacs.o
321 # endif /* EMACS_BTL */ 301 # endif /* EMACS_BTL */
323 freecheck_objs = free-hook.o 303 freecheck_objs = free-hook.o
324 # endif /* FREE */ 304 # endif /* FREE */
325 energize_objs = energize.o $(freecheck_objs) 305 energize_objs = energize.o $(freecheck_objs)
326 #endif /* ENERGIZE */ 306 #endif /* ENERGIZE */
327 307
328 #ifdef MOCKLISP_SUPPORT
329 mocklisp_objs = mocklisp.o
330 #endif
331
332 #ifdef HAVE_TTY
333 tty_objs = console-tty.o device-tty.o event-tty.o frame-tty.o \
334 objects-tty.o redisplay-tty.o cm.o
335 #endif
336
337 #ifdef HAVE_UNIXOID_EVENT_LOOP 308 #ifdef HAVE_UNIXOID_EVENT_LOOP
338 event_unixoid_objs = event-unixoid.o 309 event_unixoid_objs = event-unixoid.o
339 #endif 310 #endif
340 311
341 /* lastfile must follow all files whose initialized data areas should 312 /* lastfile must follow all files whose initialized data areas should
344 /* NOTE: The last line cannot be all macros, because make will barf 315 /* NOTE: The last line cannot be all macros, because make will barf
345 if they all come out null. */ 316 if they all come out null. */
346 317
347 objs = abbrev.o alloc.o blocktype.o buffer.o bytecode.o \ 318 objs = abbrev.o alloc.o blocktype.o buffer.o bytecode.o \
348 callint.o callproc.o casefiddle.o casetab.o chartab.o \ 319 callint.o callproc.o casefiddle.o casetab.o chartab.o \
349 cmdloop.o cmds.o console.o console-stream.o data.o \ 320 cmdloop.o cmds.o console.o console-stream.o \
350 device.o dired.o \ 321 data.o device.o dired.o doc.o doprnt.o dynarr.o \
351 doc.o doprnt.o dynarr.o editfns.o elhash.o emacs.o \ 322 editfns.o elhash.o emacs.o \
352 $(energize_objs) eval.o events.o $(extra_objs) \ 323 $(energize_objs) eval.o events.o $(extra_objs) \
353 event-stream.o $(event_unixoid_objs) extents.o faces.o \ 324 event-stream.o $(event_unixoid_objs) extents.o faces.o \
354 fileio.o filelock.o filemode.o floatfns.o fns.o font-lock.o \ 325 fileio.o filelock.o filemode.o floatfns.o fns.o font-lock.o \
355 frame.o general.o getloadavg.o glyphs.o \ 326 frame.o general.o getloadavg.o glyphs.o \
356 $(gui_objs) hash.o indent.o inline.o insdel.o intl.o \ 327 $(gui_objs) hash.o indent.o inline.o insdel.o intl.o \
357 keymap.o $(RTC_patch_objs) lread.o lstream.o macros.o \ 328 keymap.o $(RTC_patch_objs) lread.o lstream.o \
358 marker.o md5.o minibuf.o $(mocklisp_objs) \ 329 macros.o marker.o md5.o minibuf.o objects.o opaque.o \
359 objects.o opaque.o \ 330 print.o process.o profile.o pure.o \
360 print.o process.o profile.o pure.o rangetab.o \ 331 rangetab.o redisplay.o redisplay-output.o regex.o \
361 redisplay.o redisplay-output.o regex.o \
362 search.o signal.o sound.o \ 332 search.o signal.o sound.o \
363 specifier.o strftime.o symbols.o syntax.o \ 333 specifier.o strftime.o symbols.o syntax.o sysdep.o \
364 sysdep.o $(tty_objs) undo.o \ 334 undo.o $(x_objs) window.o
365 UNEXEC $(x_objs) window.o
366
367 /* The following is being done in configure.in now - mrb */
368 #undef LIBS_TERMCAP
369 #define LIBS_TERMCAP
370 #if 0
371 #ifdef HAVE_TTY
372 # ifdef HAVE_NCURSES
373 /* If your machine needs -ltermcap, define LIBS_TERMCAP to include
374 -lncurses -ltermcap in your s or m file (conditionalized on
375 HAVE_NCURSES). */
376 # ifndef LIBS_TERMCAP
377 # define LIBS_TERMCAP -lncurses
378 # endif /* LIBS_TERMCAP */
379 termcapobjs = terminfo.o
380 # elif defined (TERMINFO)
381 /* Used to be -ltermcap here. If your machine needs that,
382 define LIBS_TERMCAP in the m/<machine>.h file. */
383 # ifndef LIBS_TERMCAP
384 # define LIBS_TERMCAP -lcurses
385 # endif /* LIBS_TERMCAP */
386 termcapobjs = terminfo.o
387 # else /* ! defined (TERMINFO) */
388 # ifndef LIBS_TERMCAP
389 # define LIBS_TERMCAP
390 termcapobjs = termcap.o tparam.o
391 # else /* LIBS_TERMCAP */
392 termcapobjs = tparam.o
393 # endif /* LIBS_TERMCAP */
394 # endif /* ! defined (TERMINFO) */
395 #else /* !HAVE_TTY */
396 # undef LIBS_TERMCAP
397 # define LIBS_TERMCAP
398 #endif /* !HAVE_TTY */
399 #endif /* 0 */
400 335
401 #ifdef REL_ALLOC 336 #ifdef REL_ALLOC
402 rallocdocsrc = ralloc.c 337 rallocdocsrc = ralloc.c
403 rallocobjs = ralloc.o 338 rallocobjs = ralloc.o
404 #endif 339 #endif
474 X11_objs = EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o $(external_widget_objs) 409 X11_objs = EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o $(external_widget_objs)
475 #endif /* HAVE_X_WINDOWS */ 410 #endif /* HAVE_X_WINDOWS */
476 411
477 /* define otherobjs as list of object files that make-docfile 412 /* define otherobjs as list of object files that make-docfile
478 should not be told about. */ 413 should not be told about. */
479 otherobjs = $(termcapobjs) $(BTL_objs) lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs) 414 otherobjs = $(BTL_objs) lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs)
480 415
481 #ifdef LISP_FLOAT_TYPE 416 #ifdef LISP_FLOAT_TYPE
482 #define FLOAT_LISP ${lispdir}prim/float-sup.elc 417 #define FLOAT_LISP ${lispdir}prim/float-sup.elc
483 #else 418 #else
484 #define FLOAT_LISP 419 #define FLOAT_LISP
699 doc-snarfing routines get confused. */ 634 doc-snarfing routines get confused. */
700 otherlisp= ${lispdir}bytecomp/bytecomp.elc \ 635 otherlisp= ${lispdir}bytecomp/bytecomp.elc \
701 ${lispdir}bytecomp/byte-optimize.elc \ 636 ${lispdir}bytecomp/byte-optimize.elc \
702 ${lispdir}utils/advice.elc 637 ${lispdir}utils/advice.elc
703 638
704 LIBES = $(LWLIB_LIBS) $(energize_libs) $(quantify_libs) \ 639 LIBES = $(LWLIB_LIBS) $(quantify_libs) $(ld_libs_all) LIBS_DEBUG $(GNULIB_VAR)
705 LIBS_DEBUG $(GNULIB_VAR) LIB_STANDARD \
706 $(GNULIB_VAR) $(ld_libs_all)
707 640
708 /* Enable recompilation of certain other files depending on system type. */ 641 /* Enable recompilation of certain other files depending on system type. */
709 642
710 #ifndef OTHER_FILES 643 #ifndef OTHER_FILES
711 #define OTHER_FILES 644 #define OTHER_FILES
1038 Emacs.ad.h: ${srcdir}/${etcdir}Emacs.ad 971 Emacs.ad.h: ${srcdir}/${etcdir}Emacs.ad
1039 @echo "The file Emacs.ad.h needs to be set up from ${srcdir}/${etcdir}Emacs.ad" 972 @echo "The file Emacs.ad.h needs to be set up from ${srcdir}/${etcdir}Emacs.ad"
1040 @echo "Consult the file \`INSTALL' for instructions for building Emacs." 973 @echo "Consult the file \`INSTALL' for instructions for building Emacs."
1041 exit 1 974 exit 1
1042 975
1043 /* Cover your eyes, please */
1044 xemacs-version.h: ../lisp/version.el
1045 @echo "#define main_1 xemacs_`grep emacs-version ../lisp/version.el | sed -e 's/.*\"\(.*\)\.\(.*\)\"/\1_\2/' -e 1q`_`grep -i xemacs.*lucid.*beta ../lisp/version.el | sed -e 's/.*\(beta[0-9]*\).*/\1/' -e 1q`" > xemacs-version.h
1046
1047
1048 /* Some machines have alloca built-in. 976 /* Some machines have alloca built-in.
1049 They should define HAVE_ALLOCA, or may just let alloca.s 977 They should define HAVE_ALLOCA, or may just let alloca.s
1050 be used but generate no code. 978 be used but generate no code.
1051 Some have it written in assembler in alloca.s. 979 Some have it written in assembler in alloca.s.
1052 Some use the C version in alloca.c (these define C_ALLOCA in config.h). 980 Some use the C version in alloca.c (these define C_ALLOCA in config.h).
1111 clean: mostlyclean 1039 clean: mostlyclean
1112 rm -f xemacs libextcli* 1040 rm -f xemacs libextcli*
1113 /**/# This is used in making a distribution. 1041 /**/# This is used in making a distribution.
1114 /**/# Do not use it on development directories! 1042 /**/# Do not use it on development directories!
1115 distclean: clean versionclean 1043 distclean: clean versionclean
1116 rm -f config.h paths.h puresize_adjust.h Emacs.ad.h Makefile Makefile.in .pure version.h 1044 rm -f config.h paths.h puresize_adjust.h Emacs.ad.h \
1045 rm -f Makefile Makefile.in .pure xemacs-version.h
1117 realclean: distclean 1046 realclean: distclean
1118 rm -f TAGS 1047 rm -f TAGS
1119 versionclean: 1048 versionclean:
1120 -rm -f xemacs ${libsrc}DOC 1049 -rm -f xemacs ${libsrc}DOC
1121 extraclean: realclean 1050 extraclean: realclean
1856 emacs.o: process.h 1785 emacs.o: process.h
1857 emacs.o: sysdep.h 1786 emacs.o: sysdep.h
1858 emacs.o: sysfile.h 1787 emacs.o: sysfile.h
1859 emacs.o: systime.h 1788 emacs.o: systime.h
1860 emacs.o: systty.h 1789 emacs.o: systty.h
1861 emacs.o: xemacs-version.h
1862 energize.o: config.h 1790 energize.o: config.h
1863 eval.o: backtrace.h 1791 eval.o: backtrace.h
1864 eval.o: blocktype.h 1792 eval.o: blocktype.h
1865 eval.o: buffer.h 1793 eval.o: buffer.h
1866 eval.o: bufslots.h 1794 eval.o: bufslots.h