comparison src/Makefile.in.in @ 120:cca96a509cfe r20-1b12

Import from CVS: tag r20-1b12
author cvs
date Mon, 13 Aug 2007 09:25:29 +0200
parents 7d55a9ba150c
children d2f30a177268
comparison
equal deleted inserted replaced
119:d101af7320b8 120:cca96a509cfe
463 463
464 LDFLAGS = LD_SWITCH_SITE LD_SWITCH_X_SITE LD_SWITCH_SYSTEM \ 464 LDFLAGS = LD_SWITCH_SITE LD_SWITCH_X_SITE LD_SWITCH_SYSTEM \
465 LD_SWITCH_X_SYSTEM LD_SWITCH_MACHINE \ 465 LD_SWITCH_X_SYSTEM LD_SWITCH_MACHINE \
466 -L. $(LIBX11_LDFLAGS) ENERGIZE_LDFLAGS XILDOFF NO_GNU_LINKER 466 -L. $(LIBX11_LDFLAGS) ENERGIZE_LDFLAGS XILDOFF NO_GNU_LINKER
467 467
468 #ifdef HAVE_NEXTSTEP
469 .SUFFIXES: .m
470 .m.o:
471 $(CC) -c $(ALL_CFLAGS) $<
472 #endif
473
474 .c.o: 468 .c.o:
475 $(CC) -c $(ALL_CFLAGS) $< 469 $(CC) -c $(ALL_CFLAGS) $<
476 470
477 /* Create preprocessor output (debugging purposes only) */ 471 /* Create preprocessor output (debugging purposes only) */
478 .c.i: 472 .c.i:
539 XMU_LIB = -lXmu 533 XMU_LIB = -lXmu
540 #else 534 #else
541 #define XMU_OBJS xmu.o 535 #define XMU_OBJS xmu.o
542 #endif 536 #endif
543 537
544 #ifdef EPOCH 538 /* LWLIBSRCDIR is defined above regardless of X being used or not.
545 #define EPOCH_OBJS epoch.o 539 This avoids having to conditionalize the dependencies on lwlib.h */
546 #else 540 LWLIBBUILDDIR = $(dot)$(dot)/lwlib
547 #define EPOCH_OBJS 541
548 #endif 542 LIBX11_LDFLAGS = -L$(LWLIBBUILDDIR)
549 543 LIBX11_INCLUDES = -I$(LWLIBSRCDIR)
544
545 #ifdef HAVE_XPM
546 /* Force the Xpm library to be statically linked, always, if at Sun. */
547 # ifdef USAGE_TRACKING
548 XPM_LIBS = -Bstatic -lXpm -Bdynamic
549 # else
550 XPM_LIBS = -lXpm
551 # endif /* at Sun */
552 #endif /* HAVE_XPM */
553
554 #ifdef HAVE_XFACE
555 XFACE_LIBS = -lcompface
556 #endif /* HAVE_XFACE */
557
558 #ifdef USAGE_TRACKING
559 /* Force the ut library to be statically linked, always. */
560 # if defined (SOLARIS2) || defined (SUNOS4)
561 USAGE_TRACKING_LIBS = -Bstatic -lut -Bdynamic
562 # else
563 USAGE_TRACKING_LIBS = -lut
564 # endif /* SOLARIS2 || SUNOS4 */
565 #else
566 USAGE_TRACKING_LIBS =
567 #endif /* USAGE_TRACKING */
568
569
570 #ifdef LWLIB_USES_MOTIF
571 TOOLKIT_LIBS = -lXm
572 #ifdef LWLIB_USES_ATHENA
573 TOOLKIT_LIBS = -lXm -lXaw
574 #endif /* LWLIB_USES_ATHENA */
575 #else /* ! LWLIB_USES_MOTIF */
576 TOOLKIT_LIBS = -lXaw
577 #endif /* ! LWLIB_USES_MOTIF */
578
579 LIBX11_LIBS = -llw $(TOOLKIT_LIBS) $(XPM_LIBS) $(XFACE_LIBS) $(JPEG_LIBS) $(PNG_LIBS) $(USAGE_TRACKING_LIBS)
580
581 #ifdef AIX4
582 # define LIBI18N -li18n
583 #else
584 # define LIBI18N
585 #endif /* AIX4 */
586
587 #if (defined(LINUX) && defined(HAVE_CDE))
588 # define LIBX11_INTL -lXintl
589 #else
590 # define LIBX11_INTL
591 #endif
592
593 #ifdef THIS_IS_X11R6
594 #ifdef NEED_LIBW
595 LIBW= -lw
596 #else
597 LIBW=
598 #endif
599 LIBX= $(LIBX11_LIBS) $(XMU_LIB) -lXt -lSM -lICE $(LIBW) -lXext LIBX11_INTL -lX11 LIBX11_MACHINE LIBX11_SYSTEM LIBI18N
600 #else
601 LIBX= $(LIBX11_LIBS) $(XMU_LIB) -lXt -lXext LIBX11_INTL -lX11 LIBX11_MACHINE LIBX11_SYSTEM LIBI18N
602 #endif
603
604 #else
605 # define XOBJS
606 # define XMU_OBJS
607
608 #endif /* HAVE_X_WINDOWS */
609
610 /* We should be able to deal with Canna and Wnn in tty mode once MULE is */
611 /* ported to tty, right? */
550 #ifdef MULE 612 #ifdef MULE
551 613
552 /* We ignore mule-mcpath.o for the moment. */ 614 /* We ignore mule-mcpath.o for the moment. */
553 615
554 # ifdef HAVE_CANNA 616 # ifdef HAVE_CANNA
585 #define LIB_CANNA 647 #define LIB_CANNA
586 #define LIB_WNN 648 #define LIB_WNN
587 649
588 #endif /* not MULE */ 650 #endif /* not MULE */
589 651
590 /* LWLIBSRCDIR is defined above regardless of X being used or not.
591 This avoids having to conditionalize the dependencies on lwlib.h */
592 LWLIBBUILDDIR = $(dot)$(dot)/lwlib
593
594 LIBX11_LDFLAGS = -L$(LWLIBBUILDDIR)
595 LIBX11_INCLUDES = -I$(LWLIBSRCDIR)
596
597 #ifdef HAVE_XPM
598 /* Force the Xpm library to be statically linked, always, if at Sun. */
599 # ifdef USAGE_TRACKING
600 XPM_LIBS = -Bstatic -lXpm -Bdynamic
601 # else
602 XPM_LIBS = -lXpm
603 # endif /* at Sun */
604 #endif /* HAVE_XPM */
605
606 #ifdef HAVE_XFACE
607 XFACE_LIBS = -lcompface
608 #endif /* HAVE_XFACE */
609
610 #ifdef USAGE_TRACKING
611 /* Force the ut library to be statically linked, always. */
612 # if defined (SOLARIS2) || defined (SUNOS4)
613 USAGE_TRACKING_LIBS = -Bstatic -lut -Bdynamic
614 # else
615 USAGE_TRACKING_LIBS = -lut
616 # endif /* SOLARIS2 || SUNOS4 */
617 #else
618 USAGE_TRACKING_LIBS =
619 #endif /* USAGE_TRACKING */
620
621
622 #ifdef LWLIB_USES_MOTIF
623 TOOLKIT_LIBS = -lXm
624 #ifdef LWLIB_USES_ATHENA
625 TOOLKIT_LIBS = -lXm -lXaw
626 #endif /* LWLIB_USES_ATHENA */
627 #else /* ! LWLIB_USES_MOTIF */
628 TOOLKIT_LIBS = -lXaw
629 #endif /* ! LWLIB_USES_MOTIF */
630
631 LIBX11_LIBS = -llw $(TOOLKIT_LIBS) $(XPM_LIBS) $(XFACE_LIBS) $(JPEG_LIBS) $(PNG_LIBS) $(USAGE_TRACKING_LIBS)
632
633 #ifdef AIX4
634 # define LIBI18N -li18n
635 #else
636 # define LIBI18N
637 #endif /* AIX4 */
638
639 #if (defined(LINUX) && defined(HAVE_CDE))
640 # define LIBX11_INTL -lXintl
641 #else
642 # define LIBX11_INTL
643 #endif
644
645 #ifdef THIS_IS_X11R6
646 #ifdef NEED_LIBW
647 LIBW= -lw
648 #else
649 LIBW=
650 #endif
651 LIBX= $(LIBX11_LIBS) $(XMU_LIB) -lXt -lSM -lICE $(LIBW) -lXext LIBX11_INTL -lX11 LIBX11_MACHINE LIBX11_SYSTEM LIBI18N
652 #else
653 LIBX= $(LIBX11_LIBS) $(XMU_LIB) -lXt -lXext LIBX11_INTL -lX11 LIBX11_MACHINE LIBX11_SYSTEM LIBI18N
654 #endif
655
656 #else
657 # define XOBJS
658 # define XMU_OBJS
659 # define EPOCH_OBJS
660 #endif /* HAVE_X_WINDOWS */
661
662 #ifdef HAVE_NEXTSTEP
663 #ifdef HAVE_TOOLBARS
664 #define TOOLBAR_NS_OBJS toolbar-ns.o
665 #else
666 #define TOOLBAR_NS_OBJS
667 #endif
668 #ifdef HAVE_MENUBARS
669 #define MENUBAR_NS_OBJS menubar-ns.o
670 #else
671 #define MENUBAR_NS_OBJS
672 #endif
673 #ifdef HAVE_SCROLLBARS
674 #define SCROLLBAR_NS_OBJS scrollbar-ns.o
675 #else
676 #define SCROLLBAR_NS_OBJS
677 #endif
678 #ifdef HAVE_DIALOGS
679 #define DIALOG_NS_OBJS dialog-ns.o
680 #else
681 #define DIALOG_NS_OBJS
682 #endif
683 #define NSOBJS console-ns.o device-ns.o DIALOG_NS_OBJS event-ns.o frame-ns.o \
684 glyphs-ns.o MENUBAR_NS_OBJS nsselect.o objects-ns.o \
685 redisplay-ns.o SCROLLBAR_NS_OBJS TOOLBAR_NS_OBJS
686 #else
687 # define NSOBJS
688 #endif /* HAVE_NEXTSTEP */
689
690 #ifndef ORDINARY_LINK 652 #ifndef ORDINARY_LINK
691 /* Fix linking if compiled with GCC. */ 653 /* Fix linking if compiled with GCC. */
692 #ifdef __GNUC__ 654 #ifdef __GNUC__
693 655
694 #if __GNUC__ > 1 656 #if __GNUC__ > 1
903 objs= abbrev.o alloc.o blocktype.o buffer.o bytecode.o \ 865 objs= abbrev.o alloc.o blocktype.o buffer.o bytecode.o \
904 callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o \ 866 callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o \
905 cmds.o console.o console-stream.o \ 867 cmds.o console.o console-stream.o \
906 data.o DATABASE_OBJS DEBUG_OBJS device.o DIALOG_OBJS dired.o doc.o \ 868 data.o DATABASE_OBJS DEBUG_OBJS device.o DIALOG_OBJS dired.o doc.o \
907 doprnt.o dynarr.o \ 869 doprnt.o dynarr.o \
908 editfns.o elhash.o emacs.o ENERGIZE_OBJS EPOCH_OBJS eval.o events.o \ 870 editfns.o elhash.o emacs.o ENERGIZE_OBJS eval.o events.o \
909 event-stream.o EVENT_UNIXOID_OBJS extents.o \ 871 event-stream.o EVENT_UNIXOID_OBJS extents.o \
910 faces.o fileio.o filelock.o filemode.o floatfns.o fns.o font-lock.o \ 872 faces.o fileio.o filelock.o filemode.o floatfns.o fns.o font-lock.o \
911 frame.o \ 873 frame.o \
912 general.o getloadavg.o GIF_OBJS glyphs.o GUI_OBJS \ 874 general.o getloadavg.o GIF_OBJS glyphs.o GUI_OBJS \
913 hash.o \ 875 hash.o \
914 indent.o inline.o insdel.o intl.o \ 876 indent.o inline.o insdel.o intl.o \
915 keymap.o $(RTC_PATCH_O) \ 877 keymap.o $(RTC_PATCH_O) \
916 lread.o lstream.o \ 878 lread.o lstream.o \
917 macros.o marker.o md5.o MENUBAR_OBJS minibuf.o MOCKLISPOBJS \ 879 macros.o marker.o md5.o MENUBAR_OBJS minibuf.o MOCKLISPOBJS \
918 NAS_OBJS NSOBJS \ 880 NAS_OBJS \
919 objects.o opaque.o \ 881 objects.o opaque.o \
920 print.o process.o profile.o pure.o \ 882 print.o process.o profile.o pure.o \
921 rangetab.o REALPATH_OBJS redisplay.o redisplay-output.o regex.o \ 883 rangetab.o REALPATH_OBJS redisplay.o redisplay-output.o regex.o \
922 SCROLLBAR_OBJS search.o signal.o sound.o SOUND_OBJS specifier.o \ 884 SCROLLBAR_OBJS search.o signal.o sound.o SOUND_OBJS specifier.o \
923 strftime.o SUNPRO_OBJS symbols.o syntax.o sysdep.o \ 885 strftime.o SUNPRO_OBJS symbols.o syntax.o sysdep.o \
1083 ${lispdir}x11/x-init.elc 1045 ${lispdir}x11/x-init.elc
1084 #else 1046 #else
1085 #define X11_LISP 1047 #define X11_LISP
1086 #endif 1048 #endif
1087 1049
1088 #ifdef HAVE_NEXTSTEP
1089 /* lisp files preloaded if compiled with support for NeXTstep */
1090 #define NS_LISP
1091 #else
1092 #define NS_LISP
1093 #endif
1094
1095 #ifdef HAVE_TTY 1050 #ifdef HAVE_TTY
1096 /* lisp files preloaded if compiled with support for NeXTstep */ 1051 /* lisp files preloaded if compiled with support for tty */
1097 #define TTY_LISP ${lispdir}term/tty-init.elc 1052 #define TTY_LISP ${lispdir}term/tty-init.elc
1098 #else 1053 #else
1099 #define TTY_LISP 1054 #define TTY_LISP
1100 #endif 1055 #endif
1101 1056
1128 1083
1129 #define NOMULE_LISP 1084 #define NOMULE_LISP
1130 #else 1085 #else
1131 #define MULE_LISP 1086 #define MULE_LISP
1132 #define NOMULE_LISP ${lispdir}prim/files-nomule.elc 1087 #define NOMULE_LISP ${lispdir}prim/files-nomule.elc
1133 #endif
1134
1135 #ifdef EPOCH
1136 #define EPOCH_LISP ${lispdir}epoch/epoch.elc
1137 #else
1138 #define EPOCH_LISP
1139 #endif 1088 #endif
1140 1089
1141 #ifdef ENERGIZE 1090 #ifdef ENERGIZE
1142 /* Lisp files preloaded if compiled with support for Energize */ 1091 /* Lisp files preloaded if compiled with support for Energize */
1143 #define ENERGIZE_LISP \ 1092 #define ENERGIZE_LISP \
1268 ${lispdir}modes/text-mode.elc ${lispdir}prim/fill.elc \ 1217 ${lispdir}modes/text-mode.elc ${lispdir}prim/fill.elc \
1269 ${lispdir}prim/isearch-mode.elc ${lispdir}prim/misc.elc \ 1218 ${lispdir}prim/isearch-mode.elc ${lispdir}prim/misc.elc \
1270 ${lispdir}packages/vc-hooks.elc \ 1219 ${lispdir}packages/vc-hooks.elc \
1271 ${lispdir}prim/replace.elc ${lispdir}prim/specifier.elc \ 1220 ${lispdir}prim/replace.elc ${lispdir}prim/specifier.elc \
1272 ${lispdir}modes/auto-show.elc SUNPRO_LISP TTY_LISP \ 1221 ${lispdir}modes/auto-show.elc SUNPRO_LISP TTY_LISP \
1273 ${lispdir}bytecomp/bytecomp-runtime.elc FLOAT_LISP EPOCH_LISP \ 1222 ${lispdir}bytecomp/bytecomp-runtime.elc FLOAT_LISP \
1274 ${lispdir}prim/itimer.elc ${lispdir}prim/itimer-autosave.elc \ 1223 ${lispdir}prim/itimer.elc ${lispdir}prim/itimer-autosave.elc \
1275 ${lispdir}ediff/ediff-hook.elc \ 1224 ${lispdir}ediff/ediff-hook.elc \
1276 ${lispdir}custom/widget.elc \ 1225 ${lispdir}custom/widget.elc \
1277 ${lispdir}custom/custom.elc ${lispdir}prim/custom-load.elc \ 1226 ${lispdir}custom/custom.elc ${lispdir}prim/custom-load.elc \
1278 ${lispdir}packages/fontl-hooks.elc SCROLLBAR_LISP \ 1227 ${lispdir}packages/fontl-hooks.elc SCROLLBAR_LISP \
1279 ${lispdir}prim/buffer.elc MENUBAR_LISP \ 1228 ${lispdir}prim/buffer.elc MENUBAR_LISP \
1280 ${lispdir}packages/buff-menu.elc DIALOG_LISP MULE_LISP NOMULE_LISP \ 1229 ${lispdir}packages/buff-menu.elc DIALOG_LISP MULE_LISP NOMULE_LISP \
1281 ${lispdir}modes/abbrev.elc X11_LISP NS_LISP ENERGIZE_LISP TOOLTALK_LISP 1230 ${lispdir}modes/abbrev.elc X11_LISP ENERGIZE_LISP TOOLTALK_LISP
1282 1231
1283 /* Other Lisp files that are not dumped out but where it is convenient 1232 /* Other Lisp files that are not dumped out but where it is convenient
1284 (or required?) for them to be byte-compiled early, before xemacs is 1233 (or required?) for them to be byte-compiled early, before xemacs is
1285 dumped out. Avoid listing them in ${lisp} because then the 1234 dumped out. Avoid listing them in ${lisp} because then the
1286 doc-snarfing routines get confused. */ 1235 doc-snarfing routines get confused. */
1637 Emacs.ad.h: ${srcdir}/${etcdir}Emacs.ad 1586 Emacs.ad.h: ${srcdir}/${etcdir}Emacs.ad
1638 @echo "The file Emacs.ad.h needs to be set up from ${srcdir}/${etcdir}Emacs.ad" 1587 @echo "The file Emacs.ad.h needs to be set up from ${srcdir}/${etcdir}Emacs.ad"
1639 @echo "Consult the file \`INSTALL' for instructions for building Emacs." 1588 @echo "Consult the file \`INSTALL' for instructions for building Emacs."
1640 exit 1 1589 exit 1
1641 1590
1591 /* Cover your eyes, please */
1592 xemacs-version.h: ${lispdir}version.el
1593 @echo "#define main_1 xemacs_`grep emacs-version ${lispdir}version.el | sed 's/.*\"\(.*\)\.\(.*\)\"/\1_\2/ \
1594 1q'`_`grep -i xemacs.*lucid.*beta ${lispdir}version.el | sed 's/.*\(beta[0-9]*\).*/\1/ \
1595 1q'`" > xemacs-version.h
1596
1597
1642 /* Some machines have alloca built-in. 1598 /* Some machines have alloca built-in.
1643 They should define HAVE_ALLOCA, or may just let alloca.s 1599 They should define HAVE_ALLOCA, or may just let alloca.s
1644 be used but generate no code. 1600 be used but generate no code.
1645 Some have it written in assembler in alloca.s. 1601 Some have it written in assembler in alloca.s.
1646 Some use the C version in alloca.c (these define C_ALLOCA in config.h). 1602 Some use the C version in alloca.c (these define C_ALLOCA in config.h).
1745 clean: mostlyclean 1701 clean: mostlyclean
1746 rm -f xemacs libextcli* 1702 rm -f xemacs libextcli*
1747 /**/# This is used in making a distribution. 1703 /**/# This is used in making a distribution.
1748 /**/# Do not use it on development directories! 1704 /**/# Do not use it on development directories!
1749 distclean: clean versionclean 1705 distclean: clean versionclean
1750 rm -f config.h paths.h puresize_adjust.h Emacs.ad.h Makefile Makefile.in .pure 1706 rm -f config.h paths.h puresize_adjust.h Emacs.ad.h Makefile Makefile.in .pure version.h
1751 realclean: distclean 1707 realclean: distclean
1752 rm -f TAGS 1708 rm -f TAGS
1753 versionclean: 1709 versionclean:
1754 -rm -f xemacs ${libsrc}DOC 1710 -rm -f xemacs ${libsrc}DOC
1755 extraclean: realclean 1711 extraclean: realclean
1756 -rm -f *~ \#* m/?*~ s/?*~ 1712 -rm -f *~ \#* m/?*~ s/?*~
1757 1713
1758 /* The rule for the [sm] files has to be written a little funny to 1714 /* The rule for the [sm] files has to be written a little funny to
1759 avoid looking like a C comment to CPP. */ 1715 avoid looking like a C comment to CPP. */
1760 SOURCES = *.[chm] *.pswm [sm]/?* COPYING paths.h.in Makefile.in.in \ 1716 SOURCES = *.[chm] *.pswm [sm]/?* COPYING paths.h.in Makefile.in.in \
1761 config.h.in README COPYING ChangeLog vms.pp-trans 1717 config.h.in README COPYING ChangeLog
1762 unlock: 1718 unlock:
1763 chmod u+w $(SOURCES) 1719 chmod u+w $(SOURCES)
1764 1720
1765 relock: 1721 relock:
1766 chmod -w $(SOURCES) 1722 chmod -w $(SOURCES)
2502 emacs.o: process.h 2458 emacs.o: process.h
2503 emacs.o: sysdep.h 2459 emacs.o: sysdep.h
2504 emacs.o: sysfile.h 2460 emacs.o: sysfile.h
2505 emacs.o: systime.h 2461 emacs.o: systime.h
2506 emacs.o: systty.h 2462 emacs.o: systty.h
2463 emacs.o: xemacs-version.h
2507 energize.o: config.h 2464 energize.o: config.h
2508 epoch.o: blocktype.h
2509 epoch.o: config.h
2510 epoch.o: conslots.h
2511 epoch.o: console-x.h
2512 epoch.o: console.h
2513 epoch.o: device.h
2514 epoch.o: dynarr.h
2515 epoch.o: events.h
2516 epoch.o: frame.h
2517 epoch.o: frameslots.h
2518 epoch.o: objects-x.h
2519 epoch.o: objects.h
2520 epoch.o: scrollbar.h
2521 epoch.o: specifier.h
2522 epoch.o: systime.h
2523 epoch.o: toolbar.h
2524 epoch.o: xintrinsic.h
2525 eval.o: backtrace.h 2465 eval.o: backtrace.h
2526 eval.o: blocktype.h 2466 eval.o: blocktype.h
2527 eval.o: buffer.h 2467 eval.o: buffer.h
2528 eval.o: bufslots.h 2468 eval.o: bufslots.h
2529 eval.o: bytecode.h 2469 eval.o: bytecode.h
3614 undo.o: extents.h 3554 undo.o: extents.h
3615 vm-limit.o: blocktype.h 3555 vm-limit.o: blocktype.h
3616 vm-limit.o: config.h 3556 vm-limit.o: config.h
3617 vm-limit.o: dynarr.h 3557 vm-limit.o: dynarr.h
3618 vm-limit.o: mem-limits.h 3558 vm-limit.o: mem-limits.h
3619 vmsproc.o: vmsproc.h
3620 window.o: blocktype.h 3559 window.o: blocktype.h
3621 window.o: buffer.h 3560 window.o: buffer.h
3622 window.o: bufslots.h 3561 window.o: bufslots.h
3623 window.o: commands.h 3562 window.o: commands.h
3624 window.o: config.h 3563 window.o: config.h