diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.in | 89 |
1 files changed, 69 insertions, 20 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index cd767777a6c..444bc46b7fd 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -39,6 +39,7 @@ etc = $(dot)$(dot)/etc/ | |||
| 39 | shortnamesdir = $(dot)$(dot)/shortnames/ | 39 | shortnamesdir = $(dot)$(dot)/shortnames/ |
| 40 | cppdir = $(dot)$(dot)/cpp/ | 40 | cppdir = $(dot)$(dot)/cpp/ |
| 41 | oldXMenudir = $(dot)$(dot)/oldXMenu/ | 41 | oldXMenudir = $(dot)$(dot)/oldXMenu/ |
| 42 | lwlibdir = $(dot)$(dot)/lwlib/ | ||
| 42 | config_h = config.h | 43 | config_h = config.h |
| 43 | 44 | ||
| 44 | CPPFLAGS= | 45 | CPPFLAGS= |
| @@ -268,26 +269,37 @@ XOBJ= xterm.o xfns.o xfaces.o xmenu.o xselect.o xrdb.o | |||
| 268 | from X11. If we have X10, just use the installed library; | 269 | from X11. If we have X10, just use the installed library; |
| 269 | otherwise, use our own copy. */ | 270 | otherwise, use our own copy. */ |
| 270 | #ifdef HAVE_X11 | 271 | #ifdef HAVE_X11 |
| 272 | #ifdef USE_X_TOOLKIT | ||
| 273 | OLDXMENU=liblw.a | ||
| 274 | LIBXMENU= $(OLDXMENU) | ||
| 275 | #else /* not USE_X_TOOLKIT */ | ||
| 271 | OLDXMENU= libXMenu11.a | 276 | OLDXMENU= libXMenu11.a |
| 272 | LIBXMENU= $(OLDXMENU) | 277 | LIBXMENU= $(OLDXMENU) |
| 273 | #else /* ! defined (HAVE_X11) */ | 278 | #endif /* not USE_X_TOOLKIT */ |
| 279 | #else /* not HAVE_X11 */ | ||
| 274 | LIBXMENU= -lXMenu | 280 | LIBXMENU= -lXMenu |
| 275 | #endif /* ! defined (HAVE_X11) */ | 281 | #endif /* not HAVE_X11 */ |
| 276 | 282 | ||
| 277 | #else /* ! defined (HAVE_X_MENU) */ | 283 | #else /* not HAVE_X_MENU */ |
| 278 | 284 | ||
| 279 | /* Otherwise, omit xmenu.o from the list of X object files, and | 285 | /* Otherwise, omit xmenu.o from the list of X object files, and |
| 280 | don't worry about the menu library at all. */ | 286 | don't worry about the menu library at all. */ |
| 281 | XOBJ= xterm.o xfns.o xfaces.o xselect.o xrdb.o | 287 | XOBJ= xterm.o xfns.o xfaces.o xselect.o xrdb.o |
| 282 | LIBXMENU= | 288 | LIBXMENU= |
| 283 | #endif /* ! defined (HAVE_X_MENU) */ | 289 | #endif /* not HAVE_X_MENU */ |
| 290 | |||
| 291 | #ifdef USE_X_TOOLKIT | ||
| 292 | LIBXT= -lXaw -lXt -lXmu | ||
| 293 | #else | ||
| 294 | LIBXT= | ||
| 295 | #endif | ||
| 284 | 296 | ||
| 285 | #ifdef HAVE_X11 | 297 | #ifdef HAVE_X11 |
| 286 | LIBX= $(LIBXMENU) LD_SWITCH_X_SITE LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | 298 | LIBX= $(LIBXMENU) $(LIBXT) LD_SWITCH_X_SITE LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM |
| 287 | #else /* ! defined (HAVE_X11) */ | 299 | #else /* not HAVE_X11 */ |
| 288 | LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM | 300 | LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM |
| 289 | #endif /* ! defined (HAVE_X11) */ | 301 | #endif /* not HAVE_X11 */ |
| 290 | #endif /* ! defined (HAVE_X_WINDOWS) */ | 302 | #endif /* not HAVE_X_WINDOWS */ |
| 291 | 303 | ||
| 292 | #ifndef ORDINARY_LINK | 304 | #ifndef ORDINARY_LINK |
| 293 | /* Fix linking if compiled with GCC. */ | 305 | /* Fix linking if compiled with GCC. */ |
| @@ -315,7 +327,7 @@ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM | |||
| 315 | #ifndef LIB_GCC | 327 | #ifndef LIB_GCC |
| 316 | /* Ask GCC where to find libgcc.a. */ | 328 | /* Ask GCC where to find libgcc.a. */ |
| 317 | #define LIB_GCC `$(CC) -print-libgcc-file-name` | 329 | #define LIB_GCC `$(CC) -print-libgcc-file-name` |
| 318 | #endif /* LIB_GCC */ | 330 | #endif /* not LIB_GCC */ |
| 319 | 331 | ||
| 320 | GNULIB_VAR = LIB_GCC | 332 | GNULIB_VAR = LIB_GCC |
| 321 | 333 | ||
| @@ -334,13 +346,13 @@ GNULIB_VAR = LIB_GCC | |||
| 334 | 346 | ||
| 335 | #ifndef LIB_GCC | 347 | #ifndef LIB_GCC |
| 336 | #define LIB_GCC /usr/local/lib/gcc-gnulib | 348 | #define LIB_GCC /usr/local/lib/gcc-gnulib |
| 337 | #endif /* LIB_GCC */ | 349 | #endif /* not LIB_GCC */ |
| 338 | GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi` | 350 | GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi` |
| 339 | #endif /* __GNUC__ < 2 */ | 351 | #endif /* __GNUC__ < 2 */ |
| 340 | #else /* ! defined (__GNUC__) */ | 352 | #else /* not __GNUC__ */ |
| 341 | GNULIB_VAR = | 353 | GNULIB_VAR = |
| 342 | 354 | ||
| 343 | #endif /* ! defined (__GNUC__) */ | 355 | #endif /* not __GNUC__ */ |
| 344 | #endif /* not ORDINARY_LINK */ | 356 | #endif /* not ORDINARY_LINK */ |
| 345 | 357 | ||
| 346 | /* Specify address for ld to start loading at, | 358 | /* Specify address for ld to start loading at, |
| @@ -357,10 +369,10 @@ LD=$(CC) -nostdlib | |||
| 357 | #else /* not ORDINARY_LINK */ | 369 | #else /* not ORDINARY_LINK */ |
| 358 | #ifdef LINKER | 370 | #ifdef LINKER |
| 359 | LD=LINKER | 371 | LD=LINKER |
| 360 | #else /* ! defined (LINKER) */ | 372 | #else /* not LINKER */ |
| 361 | LD=ld | 373 | LD=ld |
| 362 | #endif /* ! defined (LINKER) */ | 374 | #endif /* not LINKER */ |
| 363 | #endif /* ! defined (COFF_ENCAPSULATE) */ | 375 | #endif /* not COFF_ENCAPSULATE */ |
| 364 | #endif /* not ORDINARY_LINK */ | 376 | #endif /* not ORDINARY_LINK */ |
| 365 | 377 | ||
| 366 | ALL_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_MACHINE LD_SWITCH_SITE | 378 | ALL_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_MACHINE LD_SWITCH_SITE |
| @@ -451,10 +463,16 @@ allocaobj = alloca.o | |||
| 451 | allocaobj = | 463 | allocaobj = |
| 452 | #endif | 464 | #endif |
| 453 | 465 | ||
| 466 | #ifdef USE_X_TOOLKIT | ||
| 467 | widgetobj= widget.o | ||
| 468 | #else /* not USE_X_TOOLKIT */ | ||
| 469 | widgetobj= | ||
| 470 | #endif /* not USE_X_TOOLKIT */ | ||
| 471 | |||
| 454 | 472 | ||
| 455 | /* define otherobj as list of object files that make-docfile | 473 | /* define otherobj as list of object files that make-docfile |
| 456 | should not be told about. */ | 474 | should not be told about. */ |
| 457 | otherobj= $(termcapobj) lastfile.o $(mallocobj) $(allocaobj) | 475 | otherobj= $(termcapobj) lastfile.o $(mallocobj) $(allocaobj) $(widgetobj) |
| 458 | 476 | ||
| 459 | #ifdef LISP_FLOAT_TYPE | 477 | #ifdef LISP_FLOAT_TYPE |
| 460 | #define FLOAT_SUPPORT ${lispdir}float-sup.elc | 478 | #define FLOAT_SUPPORT ${lispdir}float-sup.elc |
| @@ -599,9 +617,38 @@ shortnames: | |||
| 599 | #define OLDXMENU_OPTIONS | 617 | #define OLDXMENU_OPTIONS |
| 600 | #endif | 618 | #endif |
| 601 | 619 | ||
| 620 | /* Don't lose if this was not defined. */ | ||
| 621 | #ifndef LWLIB_OPTIONS | ||
| 622 | #define LWLIB_OPTIONS | ||
| 623 | #endif | ||
| 624 | |||
| 602 | #ifdef HAVE_X_WINDOWS | 625 | #ifdef HAVE_X_WINDOWS |
| 603 | #ifdef HAVE_X_MENU | ||
| 604 | #ifdef HAVE_X11 | 626 | #ifdef HAVE_X11 |
| 627 | #ifdef USE_X_TOOLKIT | ||
| 628 | $(OLDXMENU): really-lwlib | ||
| 629 | -rm -f $(OLDXMENU) /* We might have a link to an old version. */ | ||
| 630 | ${LN_S} ${lwlibdir}liblw.a $(OLDXMENU) | ||
| 631 | |||
| 632 | /* Encode the values of these two macros in Make variables, | ||
| 633 | so we can use $(...) to substitute their values within "...". */ | ||
| 634 | C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE | ||
| 635 | C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM | ||
| 636 | C_SWITCH_SITE_1 = C_SWITCH_SITE | ||
| 637 | C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE | ||
| 638 | C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE | ||
| 639 | C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM | ||
| 640 | really-lwlib: | ||
| 641 | cd ${lwlibdir}; ${MAKE} ${MFLAGS} LWLIB_OPTIONS \ | ||
| 642 | CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ | ||
| 643 | "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \ | ||
| 644 | "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \ | ||
| 645 | "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \ | ||
| 646 | "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \ | ||
| 647 | "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \ | ||
| 648 | "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)" | ||
| 649 | @true /* make -t should not create really-lwlib. */ | ||
| 650 | #else /* not USE_X_TOOLKIT */ | ||
| 651 | #ifdef HAVE_X_MENU | ||
| 605 | $(OLDXMENU): really-oldXMenu | 652 | $(OLDXMENU): really-oldXMenu |
| 606 | -rm -f $(OLDXMENU) /* We might have a link to an old version. */ | 653 | -rm -f $(OLDXMENU) /* We might have a link to an old version. */ |
| 607 | ${LN_S} ${oldXMenudir}libXMenu11.a $(OLDXMENU) | 654 | ${LN_S} ${oldXMenudir}libXMenu11.a $(OLDXMENU) |
| @@ -624,9 +671,10 @@ really-oldXMenu: | |||
| 624 | "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \ | 671 | "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \ |
| 625 | "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)" | 672 | "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)" |
| 626 | @true /* make -t should not create really-oldXMenu. */ | 673 | @true /* make -t should not create really-oldXMenu. */ |
| 627 | #endif /* ! defined (HAVE_X11) */ | 674 | #endif /* HAVE_X_MENU */ |
| 628 | #endif /* ! defined (HAVE_X_MENU) */ | 675 | #endif /* not USE_X_TOOLKIT */ |
| 629 | #endif /* ! defined (HAVE_X_WINDOWS) */ | 676 | #endif /* HAVE_X11 */ |
| 677 | #endif /* HAVE_X_WINDOWS */ | ||
| 630 | 678 | ||
| 631 | paths.h: paths.h.in | 679 | paths.h: paths.h.in |
| 632 | @echo "The file paths.h needs to be set up from paths.h.in." | 680 | @echo "The file paths.h needs to be set up from paths.h.in." |
| @@ -739,6 +787,7 @@ terminfo.o : terminfo.c $(config_h) | |||
| 739 | tparam.o : tparam.c $(config_h) | 787 | tparam.o : tparam.c $(config_h) |
| 740 | undo.o : undo.c buffer.h commands.h $(config_h) | 788 | undo.o : undo.c buffer.h commands.h $(config_h) |
| 741 | UNEXEC : UNEXEC_SRC $(config_h) | 789 | UNEXEC : UNEXEC_SRC $(config_h) |
| 790 | widget.o : widget.c xterm.h frame.h dispextern.h widgetprv.h $(config_h) | ||
| 742 | window.o : window.c indent.h commands.h frame.h window.h buffer.h termchar.h \ | 791 | window.o : window.c indent.h commands.h frame.h window.h buffer.h termchar.h \ |
| 743 | termhooks.h disptab.h keyboard.h $(config_h) | 792 | termhooks.h disptab.h keyboard.h $(config_h) |
| 744 | xdisp.o : xdisp.c macros.h commands.h indent.h buffer.h dispextern.h \ | 793 | xdisp.o : xdisp.c macros.h commands.h indent.h buffer.h dispextern.h \ |