Mercurial > emacs
comparison src/Makefile.in @ 72633:d1bad4e0b838
Double all single and back quotes in C-style
comments to help fontifier.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 04 Sep 2006 13:36:50 +0000 |
parents | a2f8a3822239 |
children | 66699c76726f c358d0861b16 |
comparison
equal
deleted
inserted
replaced
72632:d69718b12697 | 72633:d1bad4e0b838 |
---|---|
72 #define THIS_IS_MAKEFILE | 72 #define THIS_IS_MAKEFILE |
73 #define NO_SHORTNAMES | 73 #define NO_SHORTNAMES |
74 #define NOT_C_CODE | 74 #define NOT_C_CODE |
75 #include "config.h" | 75 #include "config.h" |
76 | 76 |
77 /* We won't really call alloca; | 77 /* We won''t really call alloca; |
78 don't let the file name alloca.c get messed up. */ | 78 don''t let the file name alloca.c get messed up. */ |
79 #ifdef alloca | 79 #ifdef alloca |
80 #undef alloca | 80 #undef alloca |
81 #endif | 81 #endif |
82 | 82 |
83 /* Don't let the file name mktime.c get messed up. */ | 83 /* Don''t let the file name mktime.c get messed up. */ |
84 #ifdef mktime | 84 #ifdef mktime |
85 #undef mktime | 85 #undef mktime |
86 #endif | 86 #endif |
87 | 87 |
88 /* Use HAVE_X11 as an alias for X11 in this file | 88 /* Use HAVE_X11 as an alias for X11 in this file |
93 #define HAVE_X11 | 93 #define HAVE_X11 |
94 #undef X11 | 94 #undef X11 |
95 #endif | 95 #endif |
96 | 96 |
97 /* On some machines #define register is done in config; | 97 /* On some machines #define register is done in config; |
98 don't let it interfere with this file. */ | 98 don''t let it interfere with this file. */ |
99 #undef register | 99 #undef register |
100 | 100 |
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 |
113 #ifndef GNU_LINUX | 113 #ifndef GNU_LINUX |
114 #define ORDINARY_LINK | 114 #define ORDINARY_LINK |
115 #endif | 115 #endif |
116 #endif | 116 #endif |
117 | 117 |
118 /* Some machines don't find the standard C libraries in the usual place. */ | 118 /* Some machines don''t find the standard C libraries in the usual place. */ |
119 #ifndef ORDINARY_LINK | 119 #ifndef ORDINARY_LINK |
120 #ifndef LIB_STANDARD | 120 #ifndef LIB_STANDARD |
121 #define LIB_STANDARD -lc | 121 #define LIB_STANDARD -lc |
122 #endif | 122 #endif |
123 #else | 123 #else |
245 #endif /* START_FILES */ | 245 #endif /* START_FILES */ |
246 | 246 |
247 #endif /* not ORDINARY_LINK */ | 247 #endif /* not ORDINARY_LINK */ |
248 | 248 |
249 | 249 |
250 /* cc switches needed to make `asm' keyword work. | 250 /* cc switches needed to make ``asm'' keyword work. |
251 Nothing special needed on most machines. */ | 251 Nothing special needed on most machines. */ |
252 #ifndef C_SWITCH_ASM | 252 #ifndef C_SWITCH_ASM |
253 #define C_SWITCH_ASM | 253 #define C_SWITCH_ASM |
254 #endif | 254 #endif |
255 | 255 |
274 | 274 |
275 /* -Demacs is needed to make some files produce the correct version | 275 /* -Demacs is needed to make some files produce the correct version |
276 for use in Emacs. | 276 for use in Emacs. |
277 | 277 |
278 -DHAVE_CONFIG_H is needed for some other files to take advantage of | 278 -DHAVE_CONFIG_H is needed for some other files to take advantage of |
279 the information in `config.h'. */ | 279 the information in ``config.h''. */ |
280 | 280 |
281 /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM | 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. */ | 282 since it may have -I options that should override those two. */ |
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_SOUND} ${CFLAGS} | 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_SOUND} ${CFLAGS} |
284 .c.o: | 284 .c.o: |
334 LIBXMENU= -lXMenu | 334 LIBXMENU= -lXMenu |
335 #endif /* not HAVE_X11 */ | 335 #endif /* not HAVE_X11 */ |
336 | 336 |
337 #else /* not HAVE_MENUS */ | 337 #else /* not HAVE_MENUS */ |
338 | 338 |
339 /* Otherwise, don't worry about the menu library at all. */ | 339 /* Otherwise, don''t worry about the menu library at all. */ |
340 LIBXMENU= | 340 LIBXMENU= |
341 #endif /* not HAVE_MENUS */ | 341 #endif /* not HAVE_MENUS */ |
342 | 342 |
343 #ifdef USE_X_TOOLKIT | 343 #ifdef USE_X_TOOLKIT |
344 #define @X_TOOLKIT_TYPE@ | 344 #define @X_TOOLKIT_TYPE@ |
378 #endif | 378 #endif |
379 | 379 |
380 #ifdef LIBXT_STATIC | 380 #ifdef LIBXT_STATIC |
381 /* We assume the config files have defined STATIC_OPTION | 381 /* We assume the config files have defined STATIC_OPTION |
382 since that might depend on the operating system. | 382 since that might depend on the operating system. |
383 (Don't forget you need different definitions with and without __GNUC__.) */ | 383 (Don''t forget you need different definitions with and without __GNUC__.) */ |
384 LIBXT= STATIC_OPTION $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext DYNAMIC_OPTION | 384 LIBXT= STATIC_OPTION $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext DYNAMIC_OPTION |
385 #else /* not LIBXT_STATIC */ | 385 #else /* not LIBXT_STATIC */ |
386 LIBXT= $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext | 386 LIBXT= $(LIBW) LIBXMU -lXt $(LIBXTR6) -lXext |
387 #endif /* not LIBXT_STATIC */ | 387 #endif /* not LIBXT_STATIC */ |
388 | 388 |
466 #endif | 466 #endif |
467 | 467 |
468 /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure | 468 /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure |
469 places that are difficult to figure out at make time. Fortunately, | 469 places that are difficult to figure out at make time. Fortunately, |
470 these same versions allow you to pass arbitrary flags on to the | 470 these same versions allow you to pass arbitrary flags on to the |
471 linker, so there's no reason not to use it as a linker. | 471 linker, so there''s no reason not to use it as a linker. |
472 | 472 |
473 Well, it's not quite perfect. The `-nostdlib' keeps GCC from | 473 Well, it''s not quite perfect. The ``-nostdlib'' keeps GCC from |
474 searching for libraries in its internal directories, so we have to | 474 searching for libraries in its internal directories, so we have to |
475 ask GCC explicitly where to find libgcc.a. */ | 475 ask GCC explicitly where to find libgcc.a. */ |
476 | 476 |
477 #ifndef LINKER | 477 #ifndef LINKER |
478 #define LINKER $(CC) -nostdlib | 478 #define LINKER $(CC) -nostdlib |
485 | 485 |
486 GNULIB_VAR = LIB_GCC | 486 GNULIB_VAR = LIB_GCC |
487 | 487 |
488 #ifndef LINKER_WAS_SPECIFIED | 488 #ifndef LINKER_WAS_SPECIFIED |
489 /* GCC passes any argument prefixed with -Xlinker directly to the | 489 /* GCC passes any argument prefixed with -Xlinker directly to the |
490 linker. See prefix-args.c for an explanation of why we don't do | 490 linker. See prefix-args.c for an explanation of why we don''t do |
491 this with the shell's `for' construct. | 491 this with the shell''s ``for'' construct. |
492 Note that some people don't have '.' in their paths, so we must | 492 Note that some people don''t have '.' in their paths, so we must |
493 use ./prefix-args. */ | 493 use ./prefix-args. */ |
494 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags` | 494 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags` |
495 #else | 495 #else |
496 #define YMF_PASS_LDFLAGS(flags) flags | 496 #define YMF_PASS_LDFLAGS(flags) flags |
497 #endif | 497 #endif |
528 #endif /* not LINKER */ | 528 #endif /* not LINKER */ |
529 #endif /* not COFF_ENCAPSULATE */ | 529 #endif /* not COFF_ENCAPSULATE */ |
530 #endif /* not ORDINARY_LINK */ | 530 #endif /* not ORDINARY_LINK */ |
531 | 531 |
532 /* Flags to pass to LD only for temacs. */ | 532 /* Flags to pass to LD only for temacs. */ |
533 /* Don't split this line with a backslash. That can cause trouble with | 533 /* Don''t split this line with a backslash. That can cause trouble with |
534 some cpps. */ | 534 some cpps. */ |
535 TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE | 535 TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE |
536 | 536 |
537 /* A macro which other sections of Makefile can redefine to munge the | 537 /* A macro which other sections of Makefile can redefine to munge the |
538 flags before they're passed to LD. This is helpful if you have | 538 flags before they''re passed to LD. This is helpful if you have |
539 redefined LD to something odd, like "gcc". | 539 redefined LD to something odd, like "gcc". |
540 (The YMF prefix is a holdover from the old name "ymakefile".) | 540 (The YMF prefix is a holdover from the old name "ymakefile".) |
541 */ | 541 */ |
542 #ifndef YMF_PASS_LDFLAGS | 542 #ifndef YMF_PASS_LDFLAGS |
543 #define YMF_PASS_LDFLAGS(flags) flags | 543 #define YMF_PASS_LDFLAGS(flags) flags |
703 #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc | 703 #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc |
704 #else | 704 #else |
705 #define TOOLTIP_SUPPORT | 705 #define TOOLTIP_SUPPORT |
706 #endif | 706 #endif |
707 | 707 |
708 /* List of Lisp files loaded into the dumped Emacs. It's arranged | 708 /* List of Lisp files loaded into the dumped Emacs. It''s arranged |
709 like this because it's easier to generate it semi-mechanically from | 709 like this because it''s easier to generate it semi-mechanically from |
710 loadup.el this way. | 710 loadup.el this way. |
711 | 711 |
712 Note that this list should not include lisp files which might not | 712 Note that this list should not include lisp files which might not |
713 be present, like site-load.el and site-init.el; this makefile | 713 be present, like site-load.el and site-init.el; this makefile |
714 expects them all to be either present or buildable. | 714 expects them all to be either present or buildable. |
907 | 907 |
908 /* Lisp files that may or may not be used. | 908 /* Lisp files that may or may not be used. |
909 We must unconditionally put them in the DOC file. | 909 We must unconditionally put them in the DOC file. |
910 We use ../lisp/ to start the file names | 910 We use ../lisp/ to start the file names |
911 to reduce the size of the argument list for make-docfile | 911 to reduce the size of the argument list for make-docfile |
912 for the sake of systems which can\'t handle large ones. */ | 912 for the sake of systems which can''t handle large ones. */ |
913 SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \ | 913 SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \ |
914 ${dotdot}/lisp/select.elc ${dotdot}/lisp/scroll-bar.elc \ | 914 ${dotdot}/lisp/select.elc ${dotdot}/lisp/scroll-bar.elc \ |
915 ${dotdot}/lisp/vmsproc.elc ${dotdot}/lisp/vms-patch.elc \ | 915 ${dotdot}/lisp/vmsproc.elc ${dotdot}/lisp/vms-patch.elc \ |
916 ${dotdot}/lisp/ls-lisp.elc ${dotdot}/lisp/dos-fns.elc \ | 916 ${dotdot}/lisp/ls-lisp.elc ${dotdot}/lisp/dos-fns.elc \ |
917 ${dotdot}/lisp/w32-fns.elc ${dotdot}/lisp/dos-w32.elc \ | 917 ${dotdot}/lisp/w32-fns.elc ${dotdot}/lisp/dos-w32.elc \ |
985 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst | 985 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst |
986 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ | 986 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ |
987 -o temacs ${STARTFILES} ${obj} ${otherobj} \ | 987 -o temacs ${STARTFILES} ${obj} ${otherobj} \ |
988 OBJECTS_MACHINE ${LIBES} | 988 OBJECTS_MACHINE ${LIBES} |
989 | 989 |
990 /* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE | 990 /* We don''t use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE |
991 often contain options that have to do with using Emacs's crt0, | 991 often contain options that have to do with using Emacs''s crt0, |
992 which are only good with temacs. */ | 992 which are only good with temacs. */ |
993 prefix-args${EXEEXT}: prefix-args.c $(config_h) | 993 prefix-args${EXEEXT}: prefix-args.c $(config_h) |
994 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args | 994 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args |
995 | 995 |
996 /* Don't lose if this was not defined. */ | 996 /* Don''t lose if this was not defined. */ |
997 #ifndef OLDXMENU_OPTIONS | 997 #ifndef OLDXMENU_OPTIONS |
998 #define OLDXMENU_OPTIONS | 998 #define OLDXMENU_OPTIONS |
999 #endif | 999 #endif |
1000 | 1000 |
1001 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (HAVE_GTK) | 1001 #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (HAVE_GTK) |
1054 @true /* make -t should not create really-oldXMenu. */ | 1054 @true /* make -t should not create really-oldXMenu. */ |
1055 .PHONY: really-oldXMenu | 1055 .PHONY: really-oldXMenu |
1056 #endif /* not USE_X_TOOLKIT */ | 1056 #endif /* not USE_X_TOOLKIT */ |
1057 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */ | 1057 #else /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */ |
1058 | 1058 |
1059 /* We don\'t really need this, but satisfy the dependency. */ | 1059 /* We don''t really need this, but satisfy the dependency. */ |
1060 stamp-oldxmenu: | 1060 stamp-oldxmenu: |
1061 touch stamp-oldxmenu | 1061 touch stamp-oldxmenu |
1062 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */ | 1062 #endif /* not (HAVE_X_WINDOWS && HAVE_X11 && HAVE_MENUS && ! HAVE_GTK) */ |
1063 | 1063 |
1064 ../config.status:: epaths.in | 1064 ../config.status:: epaths.in |