1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
|
#include "Xbae.rules"
XCOMM Copyright(c) 1992 Bell Communications Research, Inc. (Bellcore)
XCOMM Copyright(c) 1995-99 Andrew Lister
XCOMM Copyright 1999, 2000, 2001, 2002 by the LessTif Developers
XCOMM
XCOMM $Id: Xbae.tmpl,v 1.9 2002/03/10 22:45:42 amai Exp $
XCOMM Specify which libraries need to be built. NOTE: If you want to try out
XCOMM demo programs, it is recommended that you only mark DoNormalLib as
XCOMM yes as the demos may have trouble finding the shared library.
#define DoNormalLib YES
#define DoSharedLib YES
#define DoDebugLib YES
#include <Library.tmpl>
XCOMM If your Motif installation needs a hand, enter the paths here
XCOMM The ones provided could be used for Solaris with CDE.
XCOMM It wont hurt to leave these defined anyway...
/* EXTRA_INCLUDES=-I/usr/dt/include /**/
/* EXTRA_LDOPTIONS=-L/usr/dt/lib /**/
/* EXTRA_INCLUDES=-I/apps/motif/include -I/usr/lesstif/include */
/* EXTRA_LDOPTIONS=-L/apps/motif/lib -L/usr/lesstif/lib */
XCOMM If the Motif project root is not the same of X11, we need these two
#ifdef MotifProjectRoot
EXTRA_INCLUDES = -I$(MPROJECTROOT)/include
EXTRA_LDOPTIONS = -L$(MPROJECTROOT)/lib
#endif
XCOMM Some of the examples use Wcl. If you haven't got Wcl, it doesn't
XCOMM change the functionality of the matrix or caption widget. Just
XCOMM some of the examples won't run. This functionality may be
XCOMM deprecated in the very near future. Does anyone use Wcl anymore???
#define HaveWcl NO
XCOMM If Xpm is installed, set to this to yes for colour pixmaps in the
XCOMM draw example. It does not affect the widget compilation but without
XCOMM it, apps will only be able to display two colour (Black & White)
XCOMM bitmaps
XCOMM If you don't have the Xpm library, you *should* get it
XCOMM NOTE: The example program expects the include file to be in
XCOMM ..../X11/xpm.h and the library in the default library location.
#define HaveXpm YES
XCOMM Resizing of columns...
XCOMM Two choices here:
XCOMM 1) Draw the resize column line as a simple line
XCOMM #define DRAW_RESIZE_LINE
XCOMM or
XCOMM 2) Draw the resize column as a shadowed line.
XCOMM #define DRAW_RESIZE_SHADOW
XCOMM #2 looks much cooler but is less efficient, just because
XCOMM it takes more to draw. But it looks much much better.
XCOMM If the overhead of drawing a column, is a bit much for your X server,
XCOMM try defining DRAW_RESIZE_LINE otherwise (as it "looks much cooler", use
XCOMM DRAW_RESIZE_SHADOW. Of course, if you prefer the look of a single line
XCOMM define it here too.
XCOMM I would imagine that drawing a shadow would be capable in most servers.
COLUMN_RESIZE = DRAW_RESIZE_SHADOW
XCOMM If you have editres, the demos can be compiled to allow use of it
XCOMM If you don't set it to NO
#define USE_EDITRES YES
XCOMM Set the slowest scrolling speed for when the pointer is moved out of
XCOMM clip widget. Default is 500 milliseconds (+ computation time). This
XCOMM value is halved each time the pointer moves half a row from the clip
/* #define DEFAULT_SCROLL_SPEED 500 /**/
XCOMM If you want to use two byte characters - eg Kanji you can try defining
XCOMM NEED_WCHAR. The functionality of two byte fonts is still under
XCOMM development and probably doesn't work :(
/* #define NEED_WCHAR /**/
#ifdef SVR4
/* You may or may not need these */
SVR4_LIBS=-lgen
#endif
XCOMM Everything under here should be fine. IE. Don't mess with it unless
XCOMM you know what you are doing
XCOMM A fix from Brian McAllister!
#ifdef AlphaArchitecture
#ifdef __osf__
CCOPTIONS=-std
#endif
#endif
XCOMM Define your favourite compiler and compiler options. Or, do
XCOMM it the easy way and let xmkmf do it for you.
XCOMM CC=gcc
XCOMM CDEBUGFLAGS=-g -Wall -pedantic /* My compiler options */
XCOMM Define your sed program. I imagine even perl would work. Used to
XCOMM generate the real .h files from the .in files used for configure. Sigh.
SED=sed
XCOMM Version to make the shared library. Only used if DoSharedLib is set to
XCOMM YES. Again, don't change this, unless you know what you are doing.
XbaeVERSION=4
XbaeREVISION=8
XbaeUPDATE=4
XBAEVERSION=$(XbaeVERSION).$(XbaeREVISION)
XbaeSharedLibraryRevision=$(XbaeREVISION).$(XbaeUPDATE)
XCOMM You can prevent the header files from being installed by saying
XCOMM so here.
#define INSTALL_HEADERS YES
LOCAL_LDFLAGS = -L../../src $(EXTRA_LDOPTIONS)
DEPLIBS =
INCLUDES = -I../../include
#if ProjectX > 5
X11R6_LIBS = -lSM -lICE
#else
X11R6_LIBS =
#endif
#ifndef XmClientLibs
# define XmClientLibs -lXm $(XTOOLLIB) $(XLIB)
#endif
#ifndef HasSaberC
#define HasSaberC NO
#endif
DEFINES = -D_NO_PROTO
#if USE_EDITRES
EDITRES_LIBS = $(XMULIBONLY)
DEFINES += -DUSE_EDITRES
#endif
/* For LessTif, LessTif.tmpl may define XmVersion and XmRevision. As of
* version 2.x, Motif.tmpl contains the definition of MotifSharedRev, so we
* use it to check for the Motiv version. Not a strong test, but still better
* than nothing.
*
* Motif 1.x does not contain XPM, so we need to link to libXpm and use
* X11/Xpm.h. Motif 2.x already contains XPM, so we use Xm/XpmP.h and don't
* need to link to libXpm.
*/
#if HaveXpm
#if (defined(XmVersion) && XmVersion < 2) || !defined(MotifSharedRev)
LOCAL_LIBRARIES = -lXbae -lXpm $(X11R6_LIBS) $(EDITRES_LIBS) XmClientLibs
DEFINES += -DHAVE_X11_XPM_H
#else
LOCAL_LIBRARIES = -lXbae $(X11R6_LIBS) $(EDITRES_LIBS) XmClientLibs
#endif
#endif
XCOMM If this breaks anybody's build, be sure to let me know...
XCOMM #if HasSaberC
XCOMM saber:
XCOMM load $(ALLDEFINES) $(SRCS)
XCOMM osaber:
XCOMM load $(ALLDEFINES) $(OBJS)
XCOMM #endif
|