Mercurial > emacs
changeset 5670:1c506424bb84
(widgetobj): New variable.
(otherobj): Use widgetobj.
(XOBJ): Undo previous change.
(LWLIB_OPTIONS): Define if not defined.
(LIBXT): New variable.
(LIBX): Use LIBXT.
(widget.o): New target.
(XOBJ) [USE_X_TOOLKIT]: Add widget.o.
(lwlibdir): New variable.
($(OLDXMENU)) [USE_X_TOOLKIT]: Alternate rule.
(OLDXMENU) [USE_X_TOOLKIT]: Alternate value.
(really-lwlib): New rule.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 26 Jan 1994 05:10:53 +0000 |
parents | ee396244a9a6 |
children | 5c597b8fbabe |
files | src/Makefile.in |
diffstat | 1 files changed, 69 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Makefile.in Tue Jan 25 15:04:07 1994 +0000 +++ b/src/Makefile.in Wed Jan 26 05:10:53 1994 +0000 @@ -39,6 +39,7 @@ shortnamesdir = $(dot)$(dot)/shortnames/ cppdir = $(dot)$(dot)/cpp/ oldXMenudir = $(dot)$(dot)/oldXMenu/ +lwlibdir = $(dot)$(dot)/lwlib/ config_h = config.h CPPFLAGS= @@ -268,26 +269,37 @@ from X11. If we have X10, just use the installed library; otherwise, use our own copy. */ #ifdef HAVE_X11 +#ifdef USE_X_TOOLKIT +OLDXMENU=liblw.a +LIBXMENU= $(OLDXMENU) +#else /* not USE_X_TOOLKIT */ OLDXMENU= libXMenu11.a LIBXMENU= $(OLDXMENU) -#else /* ! defined (HAVE_X11) */ +#endif /* not USE_X_TOOLKIT */ +#else /* not HAVE_X11 */ LIBXMENU= -lXMenu -#endif /* ! defined (HAVE_X11) */ +#endif /* not HAVE_X11 */ -#else /* ! defined (HAVE_X_MENU) */ +#else /* not HAVE_X_MENU */ /* Otherwise, omit xmenu.o from the list of X object files, and don't worry about the menu library at all. */ XOBJ= xterm.o xfns.o xfaces.o xselect.o xrdb.o LIBXMENU= -#endif /* ! defined (HAVE_X_MENU) */ +#endif /* not HAVE_X_MENU */ + +#ifdef USE_X_TOOLKIT +LIBXT= -lXaw -lXt -lXmu +#else +LIBXT= +#endif #ifdef HAVE_X11 -LIBX= $(LIBXMENU) LD_SWITCH_X_SITE LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM -#else /* ! defined (HAVE_X11) */ +LIBX= $(LIBXMENU) $(LIBXT) LD_SWITCH_X_SITE LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM +#else /* not HAVE_X11 */ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM -#endif /* ! defined (HAVE_X11) */ -#endif /* ! defined (HAVE_X_WINDOWS) */ +#endif /* not HAVE_X11 */ +#endif /* not HAVE_X_WINDOWS */ #ifndef ORDINARY_LINK /* Fix linking if compiled with GCC. */ @@ -315,7 +327,7 @@ #ifndef LIB_GCC /* Ask GCC where to find libgcc.a. */ #define LIB_GCC `$(CC) -print-libgcc-file-name` -#endif /* LIB_GCC */ +#endif /* not LIB_GCC */ GNULIB_VAR = LIB_GCC @@ -334,13 +346,13 @@ #ifndef LIB_GCC #define LIB_GCC /usr/local/lib/gcc-gnulib -#endif /* LIB_GCC */ +#endif /* not LIB_GCC */ GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi` #endif /* __GNUC__ < 2 */ -#else /* ! defined (__GNUC__) */ +#else /* not __GNUC__ */ GNULIB_VAR = -#endif /* ! defined (__GNUC__) */ +#endif /* not __GNUC__ */ #endif /* not ORDINARY_LINK */ /* Specify address for ld to start loading at, @@ -357,10 +369,10 @@ #else /* not ORDINARY_LINK */ #ifdef LINKER LD=LINKER -#else /* ! defined (LINKER) */ +#else /* not LINKER */ LD=ld -#endif /* ! defined (LINKER) */ -#endif /* ! defined (COFF_ENCAPSULATE) */ +#endif /* not LINKER */ +#endif /* not COFF_ENCAPSULATE */ #endif /* not ORDINARY_LINK */ ALL_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_MACHINE LD_SWITCH_SITE @@ -451,10 +463,16 @@ allocaobj = #endif +#ifdef USE_X_TOOLKIT +widgetobj= widget.o +#else /* not USE_X_TOOLKIT */ +widgetobj= +#endif /* not USE_X_TOOLKIT */ + /* define otherobj as list of object files that make-docfile should not be told about. */ -otherobj= $(termcapobj) lastfile.o $(mallocobj) $(allocaobj) +otherobj= $(termcapobj) lastfile.o $(mallocobj) $(allocaobj) $(widgetobj) #ifdef LISP_FLOAT_TYPE #define FLOAT_SUPPORT ${lispdir}float-sup.elc @@ -599,9 +617,38 @@ #define OLDXMENU_OPTIONS #endif +/* Don't lose if this was not defined. */ +#ifndef LWLIB_OPTIONS +#define LWLIB_OPTIONS +#endif + #ifdef HAVE_X_WINDOWS +#ifdef HAVE_X11 +#ifdef USE_X_TOOLKIT +$(OLDXMENU): really-lwlib + -rm -f $(OLDXMENU) /* We might have a link to an old version. */ + ${LN_S} ${lwlibdir}liblw.a $(OLDXMENU) + +/* Encode the values of these two macros in Make variables, + so we can use $(...) to substitute their values within "...". */ +C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE +C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM +C_SWITCH_SITE_1 = C_SWITCH_SITE +C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE +C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE +C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM +really-lwlib: + cd ${lwlibdir}; ${MAKE} ${MFLAGS} LWLIB_OPTIONS \ + CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ + "C_SWITCH_X_SITE=$(C_SWITCH_X_SITE_1)" \ + "C_SWITCH_X_MACHINE=$(C_SWITCH_X_MACHINE_1)" \ + "C_SWITCH_X_SYSTEM=$(C_SWITCH_X_SYSTEM_1)" \ + "C_SWITCH_SITE=$(C_SWITCH_SITE_1)" \ + "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \ + "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)" + @true /* make -t should not create really-lwlib. */ +#else /* not USE_X_TOOLKIT */ #ifdef HAVE_X_MENU -#ifdef HAVE_X11 $(OLDXMENU): really-oldXMenu -rm -f $(OLDXMENU) /* We might have a link to an old version. */ ${LN_S} ${oldXMenudir}libXMenu11.a $(OLDXMENU) @@ -624,9 +671,10 @@ "C_SWITCH_MACHINE=$(C_SWITCH_MACHINE_1)" \ "C_SWITCH_SYSTEM=$(C_SWITCH_SYSTEM_1)" @true /* make -t should not create really-oldXMenu. */ -#endif /* ! defined (HAVE_X11) */ -#endif /* ! defined (HAVE_X_MENU) */ -#endif /* ! defined (HAVE_X_WINDOWS) */ +#endif /* HAVE_X_MENU */ +#endif /* not USE_X_TOOLKIT */ +#endif /* HAVE_X11 */ +#endif /* HAVE_X_WINDOWS */ paths.h: paths.h.in @echo "The file paths.h needs to be set up from paths.h.in." @@ -739,6 +787,7 @@ tparam.o : tparam.c $(config_h) undo.o : undo.c buffer.h commands.h $(config_h) UNEXEC : UNEXEC_SRC $(config_h) +widget.o : widget.c xterm.h frame.h dispextern.h widgetprv.h $(config_h) window.o : window.c indent.h commands.h frame.h window.h buffer.h termchar.h \ termhooks.h disptab.h keyboard.h $(config_h) xdisp.o : xdisp.c macros.h commands.h indent.h buffer.h dispextern.h \