Mercurial > emacs
view lwlib/Imakefile @ 30411:41f228350eca
Got rid of all byte-compiler warnings on Emacs Load
ada-xref.el before ada-prj.el, so that the Project menu is created
when ada-prj tries to add to it.
(ada-activate-keys-for-case): Suppress the characters that are not
part of the Ada syntax. Better compatibility with else-mode
(ada-adjust-case-interactive): When auto-casing is not active,
correctly insert newlines (used to insert only ^M). Prevent the
syntax table from being changed in case of an error
(or '_' becomes part of a word and some commands are confused).
Do nothing if ada-auto-case is nil.
(ada-after-keyword-p): Ignore keywords that are also attributes
(ada-batch-reformat): Update usage comment
(ada-call-from-contextual-menu): New function
(ada-case-read-exceptions): Reinitialize the casing exception list
first to nil first, so that the casing exception file can be
shared.
(ada-check-defun-name): Handles "configure" keyword for gnatdist
files.
(ada-compile-goto-error): Fix regexp used to detect a file:line
anywhere in the error message
(ada-contextual-menu-last-point): New variable
(ada-create-keymap): If the variable delete-key-deletes-forward is
t on XEmacs, it means that DEL should delete one character
forward.
(ada-create-menu): Use :included instead of :visible for XEmacs.
New submenu "Options".
(ada-end-stmt-re): Correctly indent "select ... then abort"
statements.
(ada-fill-comment-paragraph): Correctly delete all leading '--'
even if they don't match ada-fill-comment-prefix Fix handling of
paragraphs on the first or last line of a file.
(ada-format-paramlist): Fix handling of default parameter values.
(ada-get-body-name): New function.
(ada-get-current-indent): Optimized by searchling directly for an
existing generic part or a statement outside of it. Handle
ada-indent-align-comments when indenting comments Replaced some
regexps by testing directly the next character. This results in a
huge speedup on some files. New indentation scheme for renames
statements. Stop looking for the 'while' or 'for' associated with
a 'loop' at the first semicolon encountered. A "return" can also
match an anonymous access subprogram declaration.
(ada-get-indent-noindent): Ignore strings and comments when
looking for the keywords "record" and "private".
(ada-goto-matching-decl-start): When matching "if", make sure we
are not in fact seeing "end if". Ignore "when" statements except
when initial keyword was "begin". Fix handling of nested
procedures. Add a recursive call to this function to skip over
other 'end' statmts. Fix indentation for "when .. => begin"
(ada-in-open-paren-p): Fix indentation for complex boolean
expressions, where 'and then', 'or else' and parenthesis
statements are mixed up.
(ada-in-paramlist-p): Skip comments while searching for the
beginning Fix handling of operator declarations.
(ada-indent-align-comments): New variable
(ada-indent-current): Change the syntax table only in the
protected section, so that we are sure it is restored correctly.
(ada-indent-on-previous-lines): Use ada-use-indent and
ada-with-indent Correctly indent "select ... then"
(ada-indent-region): Slight speedup.
(ada-indent-renames): New variable.
(ada-last-which-function-subprog, ada-last-which-function-line):
New variables
(ada-looking-at-semi-private): Correctly indent the 'private'
keyword when it is the first word in a package declaration.
(ada-loose-case-word): Stop searching if at the end of the buffer.
(ada-loose-case-word, ada-capitalize-word): Recase the whole word
even if point is not initially at the end of the word.
(ada-matching-decl-start-re): Add "when".
(ada-mode): Add support for abbrev-mode, outline-mode and
which-func-mode Override the old find-file.el entry in
ff-special-constructs since it is using the obsolete
ada-spec-suffix variable
(ada-no-auto-case): New function
(ada-scan-paramlist): When parsing the argument type, accept
spaces (as in "X 'Class", generated by Rational Rose).
(ada-other-file-name): No longer loads the other file.
(ada-popup-menu): Save and restore the current buffer and cursor
position before and after displaying the menu.
(ada-search-ignore-complex-boolean): New function.
(ada-uncomment-region): Emacs21 already knows how to delete
comments not starting in the first column.
(ada-use-indent): New variable
(ada-which-function): New function.
(ada-with-indent): New variable
(ada-xemacs): evaluate it at compile time too, so that ada-mode.el
can be batch-compiled from the command line.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 24 Jul 2000 11:14:26 +0000 |
parents | 648d04be6a9c |
children |
line wrap: on
line source
/**/# Imakefile file for liblw.a, Copyright (c) 1992-1993 Lucid, Inc. /* * If you have Motif and want to provide support for Motif widgets in lwlib, * then define USE_MOTIF. * * If you have OpenLook and want to provide support for OpenLook widgets in * lwlib, then define USE_OLIT. * * Otherwise, define USE_LUCID to use Lucid's own Motif-lookalike widgets, * which are included in this directory. * * You cannot define USE_MOTIF and USE_OLIT at the same time, but USE_LUCID * may be defined along with either of the other two. * * The OLIT menubar is slow, and possibly buggy. We recommend against using * it unless you'd like to try to improve it (which we encourage.) * * The Lucid menubar is much faster than the Motif menubar, but is missing * a few features (most notably stay-up menus and keyboard traversal.) But * since it has the Motif look-and-feel, we recommend using it even if you * have Motif. * * Currently, only the Motif widgets provide support for dialog boxes. If * you don't have Motif, you will not be able to pop up dialog boxes from * emacs. If you define both USE_LUCID and USE_MOTIF, then the menus will * be implemented with Lucid widgets, and the dialog boxes will be * implemented with Motif widgets. * * It shouldn't take much work to add support for non-Motif dialog boxes; * all that one need do is add code that implements Athena versions of the * xm_create_dialog(), xm_update_one_widget(), and xm_update_one_value() * routines in lwlib-Xm.c. If you do this, please send us the code. * * If you have your X11 source tree online, then you should define * INCLUDE_EXTENSIONS to cause this library to contain some useful functions * which Xt should provide but doesn't. You can only do this if you have * the source tree online, because these functions require access to internal * Xt data structures that are not defined in the exported header files. * If you define INCLUDE_EXTENSIONS, then the variable $TOP must point at the * root of the X11 source tree. * * To build a "shared" version of lwlib as well, define BUILD_SHARED_LIB. * If INCLUDE_EXTENSIONS is defined, and you want to link with a dynamic * version of Xt, it may be necessary to build a shared version of lwlib as * well, as the X libraries sometimes put *different code* in the dynamic * and shared versions of their libraries, for some reason I don't understand. * * Remember, if you build and install a shared version of lwlib, you may need * to run ldconfig(8) before anything will realize that it exists. * * To compile with support for Lucid's Energize Programming System, you must * define all of ENERGIZE, USE_LUCID, USE_MOTIF, and INCLUDE_EXTENSIONS. */ #define USE_LUCID /* #define USE_MOTIF */ /* #define USE_OLIT */ /* #define BUILD_SHARED_LIB */ /* #define ENERGIZE */ /* #define INCLUDE_EXTENSIONS */ #ifdef INCLUDE_EXTENSIONS /* this is where it is at our site */ TOP = /$(WHICH_X)/mit #endif /* * * You shouldn't need to edit anything below this point. * */ #ifdef ENERGIZE # if !defined(USE_LUCID) || !defined(USE_MOTIF) || !defined(INCLUDE_EXTENSIONS) ERROR! Energize requires Lucid widgets, Motif, and X Extensions. # endif #endif /* ENERGIZE */ #ifdef BUILD_SHARED_LIB SOLWREV=1.0 #endif #if (ProjectX == 4) STD_DEFINES = LibraryDefines CDEBUGFLAGS = LibraryCDebugFlags EXT_DEFINES = -DTHIS_IS_X11R4 WHICH_X = x11r4 #define SpecialLibObjectRule SpecialObjectRule #else /* !4 */ #if (ProjectX == 5) #ifdef BUILD_SHARED_LIB # define DoSharedLib YES # define DoNormalLib YES #endif #include <Library.tmpl> EXT_DEFINES = -DTHIS_IS_X11R5 -DINCLUDE_ALLOCA_H WHICH_X = x11r5 #else /* !5 */ EXT_DEFINES = "ERROR! Imakefile was unable to determine whether this is X11r4 or X11r5." #endif /* !5 */ #endif /* !4 */ LUCID_SRCS = lwlib-Xlw.c xlwmenu.c LUCID_OBJS = lwlib-Xlw.o xlwmenu.o MOTIF_SRCS = lwlib-Xm.c MOTIF_OBJS = lwlib-Xm.o OLIT_SRCS = lwlib-Xol.c lwlib-Xol-mb.c OLIT_OBJS = lwlib-Xol.o lwlib-Xol-mb.o #ifdef INCLUDE_EXTENSIONS EXT_SRCS = dispatch.c xrdb-cpp.c xrdb.c EXT_OBJS = dispatch.o xrdb-cpp.o xrdb.o #endif #if (defined(USE_MOTIF) && defined(USE_OLIT)) TOOLKIT_DEFINES = "ERROR! You cannot define both USE_MOTIF and USE_OLIT at the same time (in Imakefile)." #else # if (defined(USE_MOTIF) && defined(USE_LUCID)) TOOLKIT_DEFINES = -DUSE_MOTIF -DUSE_LUCID TOOLKIT_SRCS = $(MOTIF_SRC) $(LUCID_SRCS) TOOLKIT_OBJS = $(MOTIF_OBJS) $(LUCID_OBJS) # else # if (defined(USE_OLIT) && defined(USE_LUCID)) DEFINES = -DUSE_OLIT -DUSE_LUCID TOOLKIT_SRCS = $(OLIT_SRC) $(LUCID_SRCS) TOOLKIT_OBJS = $(OLIT_OBJS) $(LUCID_OBJS) # else # if defined(USE_OLIT) TOOLKIT_DEFINES = -DUSE_OLIT TOOLKIT_SRCS = $(OLIT_SRC) TOOLKIT_OBJS = $(OLIT_OBJS) # else # if defined(USE_MOTIF) TOOLKIT_DEFINES = -DUSE_MOTIF TOOLKIT_SRCS = $(MOTIF_SRC) TOOLKIT_OBJS = $(MOTIF_OBJS) # else # if defined(USE_LUCID) TOOLKIT_DEFINES = -DUSE_LUCID TOOLKIT_SRCS = $(LUCID_SRC) TOOLKIT_OBJS = $(LUCID_OBJS) # else TOOLKIT_DEFINES = "ERROR! At least one of USE_MOTIF, USE_LUCID or USE_OLIT must be defined in Imakefile." # endif # endif # endif # endif # endif #endif #ifdef ENERGIZE # ifndef USE_MOTIF EZ_OBJS = "ERROR! ENERGIZE requires USE_MOTIF to be defined in Imakefile." # else EZ_OBJS = energize/blpsheet.o energize/build.o energize/classbr_ps.o \ energize/ctreebr_ps.o energize/debuggerps.o \ energize/editmode.o energize/leb_psheet.o \ energize/projectdisp.o energize/projectps.o \ energize/search.o energize/target.o ENERGIZEP = -DENERGIZE # endif #endif SRCS = lwlib.c $(TOOLKIT_SRCS) lwlib-utils.c $(EXT_SRCS) OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o $(EXT_OBJS) $(EZ_OBJS) EXT_FLAGS = -I$(TOOLKITSRC) $(EXT_DEFINES) LIBNAME = liblw.a #if defined(ENERGIZE) && defined(BUILD_SHARED_LIB) all:: @if [ ! -d shared ]; then mkdir shared; else exit 0; fi @if [ ! -d energize/shared ]; then mkdir energize/shared; \ else exit 0; fi @if [ ! -h shared/energize ]; \ then cd shared ; ln -s ../energize/shared energize ; \ else exit 0; fi clean:: $(RM) shared/energize #endif #ifdef BUILD_SHARED_LIB # if (ProjectX == 4) SharedLibraryObjectRule () NormalSharedLibraryTarget(lw,$(SOLWREV),$(OBJS)) # else /* X != 4 */ LibraryObjectRule () SharedLibraryTarget(lw,$(SOLWREV),$(OBJS),shared,..) # endif /* X != 4 */ #else /* !BUILD_SHARED_LIB */ NormalLibraryObjectRule () #endif /* !BUILD_SHARED_LIB */ NormalLibraryTarget (lw,$(OBJS)) MakefileSubdirs (energize) DependTarget () #ifdef ENERGIZE energize/Imakefile: -mkdir energize -(cd energize ; sh -c "ln -s ../$(VPATH)/energize/* .") /* #### we should automatically edit BUILD_SHARED_LIB into/out of the energize Imakefile, since that's the only thing down there that changes */ energize/Makefile: energize/Imakefile Imakefile $(MAKE) $(MFLAGS) Makefiles Makefile:: $(RM) energize/Makefile $(EZ_OBJS): energize/Makefile ${RM} $@ ; cd energize ; $(MAKE) $(MFLAGS) CC="$(CC)" CFLAGS="$(CFLAGS)" clean:: cd energize ; $(MAKE) $(MFLAGS) clean #endif #if defined(BUILD_SHARED_LIB) && (ProjectX == 4) # define LWObjectRule SpecialSharedObjectRule #else # define LWObjectRule SpecialLibObjectRule #endif CPPDEFS=-DCPP_PROGRAM=\"CppCmd\" LWObjectRule (lwlib.o, lwlib.c, $(TOOLKIT_DEFINES)) LWObjectRule (dispatch.o, dispatch.c, $(EXT_FLAGS)) LWObjectRule (xrdb-cpp.o, xrdb-cpp.c, $(EXT_FLAGS) "$(CPPDEFS)") LWObjectRule (xrdb.o, xrdb.c, $(EXT_FLAGS)) LWObjectRule (lwlib-Xm.o, lwlib-Xm.c, $(ENERGIZEP)) lwlib-utils.o: lwlib-utils.h lwlib.o: lwlib.h lwlib-internal.h lwlib-Xlw.o: lwlib.h lwlib-internal.h lwlib-Xm.o: lwlib.h lwlib-internal.h lwlib-utils.h lwlib-Xol.o: lwlib.h lwlib-internal.h lwlib-Xol-mb.o: lwlib-Xol-mb.h lwlib-Xol-mbP.h