/usr/lib/X11/config/XView.tmpl is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | #ifndef XViewTmpl
#define XViewTmpl YES
#include <XView.cf>
XCOMM ###########################################################################
XCOMM # @(#)XView.tmpl 1.15 12 May 1993 SMI
XCOMM # XView.tmpl for XView release 3.2. Template to add additional config
XCOMM # rules to those supplied with X Version 11 release 5.
/***************************************************************************/
/***************************************************************************/
/*
* NOTE:The variables that can be changed without significantly
* affecting the build process have been defined with the
* "#ifndef value, #define value, #endif" CPP notation which allows
* one to override any of these definitions in the site.def
* file. The site.def file is included before this file in the process of
* creating the Makefile.
*
***************************************************************************/
/***************************************************************************/
/*
* Where to install XView libraries
*/
#ifndef XVLibraryDestination
#define XVLibraryDestination $(XVDESTDIR)/lib
#endif
/*
* Where to install XView lint libraries
*/
#ifndef XVLintLibraryDestination
#define XVLintLibraryDestination $(XVDESTDIR)/lib/lint
#endif
/*
* Where to install the XView clients. By default, the MIT configuration
* files set this to be $(DESTDIR)/usr/bin/X11.
* These are set up to go into $(XVDESTDIR)/usr/bin/xview by default so
* these programs do not overwrite any others that may be installed
* on the system.
*/
#ifndef XVBinDest
#define XVBinDest $(XVDESTDIR)/bin
#endif
/*
* Where to install the XView man pages. By default, the MIT config
* files set this to be $(DESTDIR)/usr/man. This allows the XView.cf
* file to provide an obvious way to change the behavior without
* delving too much into the intricacies of Imake and associated
* conventions used by X.V11R4.
*/
#if InstallManPagesInXVDestDir
# ifndef XVManPath
# define XVManPath $(XVDESTDIR)/man
# endif
#else
# define XVManPath ManPath
#endif
/*
* Where to install the include files.
*/
#ifndef XVHeaderDest
#define XVHeaderDest $(XVDESTDIR)/include
#endif
/*
* Where to install the source examples.
*/
#ifndef XVSourceDest
#define XVSourceDest $(XVDESTDIR)/share/src/xview
#endif
/*
* Where to install the documentation files.
*/
#ifndef XVDocDest
#define XVDocDest $(XVDESTDIR)/share/doc/xview
#endif
/*
* Where to install the help files for spot help.
*/
#ifndef XVHelpDest
/*#define XVHelpDest $(LIBRARY_DEST)/help*/
#define XVHelpDest $(XVDESTDIR)/share/openwin/help
#endif
/*
* Where to install the extra support files.
*/
#ifndef XVExtrasDest
#define XVExtrasDest $(LIBRARY_DEST)
#endif
/*
* What to call the text extras file and where to find it.
* By default, looks for "/usr/lib/.text_extras_menu".
*/
#ifndef TextExtrasMenuFileName
#define TextExtrasMenuFileName XVExtrasDest/**//.text_extras_menu
#endif
/*
* Work around small conflict with Project.tmpl file
*/
#ifndef __linux__
#if UseInstalled
MKDIRHIER = BourneShell BinDir/mkdirhier
#endif
#endif
#if OsHasLocale
LOCALE_DEFINES = -DOS_HAS_LOCALE
#endif
#if OsHasMmap
MMAP_DEFINES = -DOS_HAS_MMAP
#endif
#if XvUseAllocFuncs
XV_ALLOC_DEFINES = -DXV_USE_ALLOC_FUNCS
#endif
#if XvNoStrdup
XV_STRDUP_DEFINES = -DXV_NO_STRDUP
#endif
#if SharedLibXView
XV_CFLAGS.optimized =
XV_CFLAGS.shared = -DDYNAMICLIB
#else
XV_CFLAGS.optimized = -DOPTIMIZED
XV_CFLAGS.shared =
#endif
DEFINES = $(LOCALE_DEFINES) $(MMAP_DEFINES) $(XV_ALLOC_DEFINES) \
$(XV_STRDUP_DEFINES) $(XV_CFLAGS.optimized) $(XV_CFLAGS.shared)
#ifdef XVDestDir
XVDESTDIR = XVDestDir
LIBRARY_DEST = XVLibraryDestination
LINT_LIBRARY_DEST = XVLintLibraryDestination
BINDIR = XVBinDest
MANPATH = XVManPath
HEADER_DEST = XVHeaderDest
SRC_DEST = XVSourceDest
DOC_DEST = XVDocDest
#else
LIBRARY_DEST = $(USRLIBDIR)
LINT_LIBRARY_DEST = $(LINTLIBDIR)
HEADER_DEST = $(INCROOT)
#ifdef ProjectRoot
SRC_DEST = $(PROJECTROOT)/share/src/xview
DOC_DEST = $(PROJECTROOT)/share/doc/xview
#else
SRC_DEST = /usr/share/src/xview
DOC_DEST = /usr/share/doc/xview
#endif
#endif
/*
* If you do need these files installed, then put them in an XView
* location, so need to override the value for configdir.
* Also affects commands line when using Imake...
*/
#if !OnlyNeedsNewXViewConfigInstalled
# ifndef XVConfigdir
# define XVConfigdir $(LIBRARY_DEST)/xview/config
# endif
CONFIGDIR = XVConfigdir
#endif
XVLIBSRC = $(TOP)/lib
HELP_DEST = XVHelpDest
LIBRARY_DEST_EXTRAS = XVExtrasDest
TEXT_EXTRAS_MENU = TextExtrasMenuFileName
AR = ArchiveCommand
CHMOD = ChangePermissionsCommand
#if HasOpenWindows
PSDIR = OpenWindowsHome/etc/NeWS
NEWSHDRS = OpenWindowsHome/include
NEWSLIBDIR = OpenWindowsHome/lib
CPSLIB = -L$(NEWSLIBDIR) -lcps
CPS = OpenWindowsHome/bin/cps
DESKSETDIR = OpenWindowsHome/lib
LIBDESKSET = -L$(DESKSETDIR) -ldeskset
#endif
/*
* DEC 3100 Config options
*/
#ifdef UltrixArchitecture
INSTALL = InstallCommand
#endif
/*
* Also, we assume that the X11 library has been built by this point, so
* override this variable with a null value.
*/
DEPXLIB = XVDependentXLib
/*
* Flags and rules used when compiling assembler source files
* Currently, these are not used, so commented out.
AFLAGS = -P
AS = as
*/
/*
* use the same trick X11R5 does for defining rules for installed libs
*/
#undef _Use
#ifdef UseInstalled
#define _Use(a,b) a
#else
#define _Use(a,b) b
#endif
/*
* Temporary directory used during build process before the include
* files are installed. This is just a place where symbolic links are
* placed to point back to the actual files in the build hierarchy to
* save on disk space.
*/
#ifndef XVBuildIncludesDir
#define XVBuildIncludesDir $(TOP)/build
#endif
/*
* This is the path from the include directory to the top of the XView
* source hierarchy. By default, the includes install in
* <XVIEW>/build/include/name, so that would be three ".." directories
* back to get back to the <XVIEW> directory.
*/
#ifndef XVBuildIncludeTop
#define XVBuildIncludeTop ../../..
#endif
BUILDINCDIR = XVBuildIncludesDir
BUILDINCTOP = XVBuildIncludeTop
/*
* Used for installation of includes during build and installation
* afterwards.
*/
#ifndef XVIncludeDirName
#define XVIncludeDirName /include
#endif
INCDIR = XVIncludeDirName
/*
* The following names should not be changed as the XView library
* sources depend on these names being consistent.
*/
XVPUBINC = xview
XVPRIINC = xview_private
OLPUBINC = olgx
OLPRIINC = olgx_private
PSPUBINC = xvps
PSPRIINC = xvps_private
IMAGEINC = images
BITMAPINC = bitmaps
PIXRECT_INCDIR = $(INCDIR)/pixrect
XVPUB_INCDIR = $(INCDIR)/$(XVPUBINC)
XVPRI_INCDIR = $(INCDIR)/$(XVPRIINC)
OLPUB_INCDIR = $(INCDIR)/$(OLPUBINC)
OLPRI_INCDIR = $(INCDIR)/$(OLPRIINC)
PSPUB_INCDIR = $(INCDIR)/$(PSPUBINC)
PSPRI_INCDIR = $(INCDIR)/$(PSPRIINC)
IMAGE_INCDIR = $(INCDIR)/$(IMAGEINC)
BITMAP_INCDIR = $(INCDIR)/$(BITMAPINC)
PIXRECT_HEADER_DEST = $(HEADER_DEST)/pixrect
XVPUB_HEADER_DEST = $(HEADER_DEST)/$(XVPUBINC)
XVPRI_HEADER_DEST = $(HEADER_DEST)/$(XVPRIINC)
OLPUB_HEADER_DEST = $(HEADER_DEST)/$(OLPUBINC)
OLPRI_HEADER_DEST = $(HEADER_DEST)/$(OLPRIINC)
PSPUB_HEADER_DEST = $(HEADER_DEST)/$(PSPUBINC)
PSPRI_HEADER_DEST = $(HEADER_DEST)/$(PSPRIINC)
IMAGES_DEST = $(HEADER_DEST)/$(IMAGEINC)
BITMAP_DEST = $(HEADER_DEST)/$(BITMAPINC)
/*
* For pre-R4, FONTINSTDIR should be $(LIBDIR)/fonts, also need to
* change LIBDIR above to the location of fonts for pre-R4 servers.
* For R5, FONTINSTDIR should be $(LIBDIR)/fonts. Note, do not need to
* install fonts if you have X.V11R4 FCS or X.V11R5 FCS .
*/
#if InstallOpenLookFonts
# ifndef XVFontDest
# define XVFontDest $(LIBDIR)/fonts
# endif
# ifndef XVOLFontDest
# define XVOLFontDest $(FONTINSTDIR)
# endif
# ifndef XVTextFontDest
# define XVTextFontDest $(FONTINSTDIR)
# endif
FONTINSTDIR = XVFontDest
OPENLOOK_FONTINSTDIR = XVOLFontDest
TEXTFONT_FONTINSTDIR = XVTextFontDest
#endif
/*
* Rules for compiling lint library.
*/
LINTDIR = $(LINT_LIBRARY_DEST)
/*
* Definitions used for compiling shared libraries
*/
#if SharedLibXView
# ifndef InstSharedLibFlags
# define InstSharedLibFlags -m 0755
# endif
# ifndef PositionIndependentCodeFlag
# define PositionIndependentCodeFlag -pic
# endif
# ifndef ExtractedStringArrayName
# define ExtractedStringArrayName _libxview_xstr
# endif
# ifndef ObjectSortCommand
# define ObjectSortCommand ./objsort.sh
# endif
# ifndef ObjectOrderListFile
# define ObjectOrderListFile ./lorder-sparc
# endif
PIC = PositionIndependentCodeFlag
STRCONST = StringConstantFlag
XSTR = ExtractStringCommand
XSTR_ARRAY = ExtractedStringArrayName
OBJSORT = ObjectSortCommand
OBJLIST = ObjectOrderListFile
INSTSHAREDLIBFLAGS = InstSharedLibFlags
#endif
/*
* If compiling with shared libraries, sort the objects in the .so
* library so the strings are at the top and the global data
* initialization routines are at the tail. Other ordering would
* need to be based on an analysis of usage patterns over time. If
* a module is omitted from the ORDER_FILE, it will be at the tail of
* the library by default.
*/
#if SharedLibXView
# ifndef SortObjects
# define SortObjects NO
# endif
#endif
/*
* set up compile time dependencies for XView clients.
* These rules would be very handy for the site.def file.
*/
#if SharedLibXView
DEPXVIEWLIB =
XVIEWLIB = -L$(LIBRARY_DEST) -lxview
#else
DEPXVIEWLIB = _Use($(LIBRARY_DEST),$(XVLIBSRC)/libxview)/libxview.a
XVIEWLIB = LoaderLibPrefix -L$(LIBRARY_DEST) -lxview
#endif
#if SharedLibXView
DEPOLGXLIB =
OLGXLIB = -L$(LIBRARY_DEST) -lolgx
#else
DEPOLGXLIB = _Use($(LIBRARY_DEST),$(XVLIBSRC)/libolgx)/libolgx.a
OLGXLIB = LoaderLibPrefix -L$(LIBRARY_DEST) -lolgx
#endif
#if SharedLibXView
DEPXVPSLIB =
XVPSLIB = -L$(LIBRARY_DEST) -lxvps
#else
DEPXVPSLIB = _Use($(LIBRARY_DEST),$(XVLIBSRC)/libxvps)/libxvps.a
XVPSLIB = LoaderLibPrefix -L$(LIBRARY_DEST) -lxvps
#endif
#if SharedLibX
XLIB = $(EXTENSIONLIB) -lX11
#else
XLIB = $(EXTENSIONLIB) LoaderLibPrefix -lX11
#endif
#if SystemV4
SYSV_CLIENT_LIB = -lintl -ldl
XVCLIENTSYSDEFINES = -DSVR4 -DSYSV
#else
SYSV_CLIENT_LIB =
XVCLIENTSYSDEFINES = -DSUNOS41
#endif
/*
* XvI18nLevel causes different options to be set for compiling
* the clients. If XvI18nLevel is set to 4 and X11R5 has not been
* built Level 4 internationalized then XVCLIENTI18NDEFINES needs
* to be changed to : -DOW_I18N_L3 -DOW_I18N -DFULL_R5
* for olwm to be built correctly.
*/
#if XvI18nLevel == 4
XVCLIENTI18NDEFINES = -DOW_I18N_L4 -DOW_I18N_L3 -DOW_I18N -DFULL_R5
XVCLIENTMISCLIB = -lw
XVCLIENTINCLUDES = -I$(OPENWINHOME)/include
#else
XVCLIENTI18NDEFINES = -DOW_I18N_L3
XVCLIENTMISCLIB =
XVCLIENTINCLUDES =
#endif
XVCLIENTDEFINES = $(XVCLIENTSYSDEFINES) $(XVCLIENTI18NDEFINES)
/*
* Define libraries for XView clients
*/
#ifndef XViewClientDepLibs
#define XViewClientDepLibs
#endif
#ifndef XViewClientLibs
#define XViewClientLibs $(XVIEWLIB) $(OLGXLIB) $(XLIB) $(XVCLIENTMISCLIB)
#endif
/*
* Define libraries for XView clients using XVPS
*/
#if HasOpenWindows
# ifndef XViewPSClientDepLibs
# define XViewPSClientDepLibs
# endif
# ifndef XViewPSClientLibs
# define XViewPSClientLibs $(XVPSLIB) $(XVIEWLIB) $(OLGXLIB) $(XLIB) $(CPSLIB)
# endif
#endif
/*
* Do not change this revision number unless you know why.
* System V does not use the minor revision number so it will have the
* rev number 3. For 4.x systems 3.2, corresponds to the rev number for
* the XView 3.2 release.
*/
#if SharedLibXView
# ifndef SharedXViewRev
#ifdef __linux__
#define SharedXViewRev 3.2.4
#else
#if SystemV4
# define SharedXViewRev 3
#else
# define SharedXViewRev 3.2
#endif
#endif
# endif
SOXVIEWREV = SharedXViewRev
SOOLGXREV = SharedXViewRev
# if HasOpenWindows
SOXVPSREV = 0.2
# endif
#endif
/*
* Define the subdir names for the text files and the data files for
* building a shared library.
*/
#if SharedLibXView
SODIR = shared
SADIR = unshared
#endif
/*
* If your machine does not understand "..", then can define these to be
* an absolute path instead of relative paths.
*/
#if SharedLibXView
SHARED_DIR = $(TARGETDIR)xshared
UNSHARED_DIR = $(TARGETDIR)xunshared
XSTR_STRINGS_FILE = $(TARGETDIR)xstrings
#endif
/*
* Define the product name and release used in Imakefiles...
*/
#ifndef ProductNameAndRelease
#define ProductNameAndRelease "XView release 3.2"
#endif
/*
* Include the XView specific makefile macros.
*/
/* This is just needed here because X11 is installed with gcc as
a default compiler.
lumpi@dobag.in-berlin.de
#undef CcCmd
#define CcCmd cc
#define LibraryCcCmd cc */
#include <XView.rules>
#endif /* XViewTmpl */
|