/usr/lib/X11/config/Motif.tmpl is in xutils-dev 1:7.7+3ubuntu2.
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 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 | /*
* @OSF_COPYRIGHT@
* COPYRIGHT NOTICE
* Copyright (c) 1990, 1991, 1992, 1993, 1998 The Open Group, Inc.
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
* the full copyright text.
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1996 Hewlett-Packard Company.
* (c) Copyright 1996 International Business Machines Corp.
* (c) Copyright 1996 Sun Microsystems, Inc.
* (c) Copyright 1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*/
XCOMM $Xorg: Motif.tmpl,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
/* Include the X11 project template file. */
#include <X11.tmpl>
#ifdef AUTOMATION
# ifndef Automation
# define Automation YES
# endif
#else
# define NO_AUTOMATION
#endif
#ifdef USE_VISTACC
# ifndef UseVista
# define UseVista
# endif
# ifndef CATCMD
# define CATCMD cat
# endif
#endif
#ifdef USE_PURIFY
# ifndef UsePurify
# define UsePurify
# endif
#endif
#ifdef DEBUG_GEOMETRY
# ifndef DebugGeometry
# define DebugGeometry YES
# endif
#endif
#ifndef _MUse
# if UseInstalledMotif
# define _MUse(a,b) a
# else
# define _MUse(a,b) b
# endif
#endif
#ifndef _MUseCat
# if (defined(__STDC__) && !defined(UnixCpp)) || defined(AnsiCpp)
# if UseInstalledMotif
# define _MUseCat(a,b,c) a##c
# else
# define _MUseCat(a,b,c) b##c
# endif
# else
# if UseInstalledMotif
# define _MUseCat(a,b,c) a/**/c
# else
# define _MUseCat(a,b,c) b/**/c
# endif
# endif
#endif
#ifndef MTop
# if ImportMotif
# define MTop $(TOP)/imports/motif
# else
# define MTop $(TOP)
# endif
#endif
#ifndef BuildDocDir
# define BuildDocDir $(BUILDINCROOT)/doc
#endif
#ifndef BuildLocDir
# define BuildLocDir $(BUILDINCROOT)/localized
#endif
#ifndef MotifDefines
# define MotifDefines /**/
#endif
#ifndef XmDefines
# define XmDefines /**/
#endif
/* To compile without SHAPE extension, set this to -DNO_SHAPE */
#ifndef MwmDefines
# define MwmDefines /**/
#endif
#ifndef UilFlags
# define UilFlags /**/
#endif
#ifndef TestDefines
# define TestDefines /**/
#endif
#ifndef AutoDefines
# if Automation
# define AutoDefines -DAUTOMATION
# else
# define AutoDefines /**/
# endif
#endif
#ifndef AutoIncludes
# if Automation
# define AutoIncludes -I$(AUTOSCRIPTSRC)
# else
# define AutoIncludes /**/
# endif
#endif
#ifdef UsePurify
# define PurifyFilesToClean *.pure_linkinfo *.pure_hardlink
#else
# define PurifyFilesToClean
#endif
#if Automation
# define TestExtraFilesToClean *.Dat *.Scr PurifyFilesToClean
#else
# define TestExtraFilesToClean *.Dat PurifyFilesToClean
#endif
#ifndef UsrIncDir
# define UsrIncDir IncRoot
#endif
/* Place to install .uid files */
#ifndef UidDir
# define UidDir $(LIBDIR)/uid
#endif
#ifndef XmExtraLibraries
# define XmExtraLibraries /**/
#endif
#ifndef YaccFlags
# define YaccFlags /**/
#endif
#define MotifSharedRev 2.1
#ifndef SharedLibXm
# define SharedLibXm HasSharedLibraries
#endif
#ifndef NormalLibXm
# define NormalLibXm (!SharedLibXm | ForceNormalLib)
#endif
#ifndef DebugLibXm
# define DebugLibXm NO
#endif
#ifndef ProfileLibXm
# define ProfileLibXm NO
#endif
#ifndef SharedXmRev
# define SharedXmRev MotifSharedRev
#endif
#ifndef SharedLibMrm
# define SharedLibMrm HasSharedLibraries
#endif
#ifndef NormalLibMrm
# define NormalLibMrm (!SharedLibMrm | ForceNormalLib)
#endif
#ifndef DebugLibMrm
# define DebugLibMrm NO
#endif
#ifndef ProfileLibMrm
# define ProfileLibMrm NO
#endif
#ifndef SharedMrmRev
# define SharedMrmRev MotifSharedRev
#endif
#ifndef SharedLibUil
# define SharedLibUil HasSharedLibraries
#endif
#ifndef NormalLibUil
# define NormalLibUil (!SharedLibUil | ForceNormalLib)
#endif
#ifndef DebugLibUil
# define DebugLibUil NO
#endif
#ifndef ProfileLibUil
# define ProfileLibUil NO
#endif
#ifndef SharedUilRev
# define SharedUilRev MotifSharedRev
#endif
#ifndef SharedLibACommon
# define SharedLibACommon HasSharedLibraries
#endif
#ifndef NormalLibACommon
# define NormalLibACommon (!SharedLibACommon | ForceNormalLib)
#endif
#ifndef DebugLibACommon
# define DebugLibACommon NO
#endif
#ifndef ProfileLibACommon
# define ProfileLibACommon NO
#endif
#ifndef SharedACommonRev
# define SharedACommonRev MotifSharedRev
#endif
#ifndef SharedLibScript
# define SharedLibScript HasSharedLibraries
#endif
#ifndef NormalLibScript
# define NormalLibScript (!SharedLibScript | ForceNormalLib)
#endif
#ifndef DebugLibScript
# define DebugLibScript NO
#endif
#ifndef ProfileLibScript
# define ProfileLibScript NO
#endif
#ifndef SharedScriptRev
# define SharedScriptRev MotifSharedRev
#endif
#ifndef SharedLibUtil
# define SharedLibUtil HasSharedLibraries
#endif
#ifndef NormalLibUtil
# define NormalLibUtil (!SharedLibUtil | ForceNormalLib)
#endif
#ifndef DebugLibUtil
# define DebugLibUtil NO
#endif
#ifndef ProfileLibUtil
# define ProfileLibUtil NO
#endif
#ifndef SharedUtilRev
# define SharedUtilRev MotifSharedRev
#endif
#ifndef SharedLibCreate
# define SharedLibCreate HasSharedLibraries
#endif
#ifndef NormalLibCreate
# define NormalLibCreate (!SharedLibCreate | ForceNormalLib)
#endif
#ifndef DebugLibCreate
# define DebugLibCreate NO
#endif
#ifndef ProfileLibCreate
# define ProfileLibCreate NO
#endif
#ifndef SharedCreateRev
# define SharedCreateRev MotifSharedRev
#endif
#ifndef SharedLibVisual
# define SharedLibVisual HasSharedLibraries
#endif
#ifndef NormalLibVisual
# define NormalLibVisual (!SharedLibVisual | ForceNormalLib)
#endif
#ifndef DebugLibVisual
# define DebugLibVisual NO
#endif
#ifndef ProfileLibVisual
# define ProfileLibVisual NO
#endif
#ifndef SharedVisualRev
# define SharedVisualRev MotifSharedRev
#endif
#ifndef SharedLibSynth
# define SharedLibSynth HasSharedLibraries
#endif
#ifndef NormalLibSynth
# define NormalLibSynth (!SharedLibSynth | ForceNormalLib)
#endif
#ifndef DebugLibSynth
# define DebugLibSynth NO
#endif
#ifndef ProfileLibSynth
# define ProfileLibSynth NO
#endif
#ifndef SharedSynthRev
# define SharedSynthRev MotifSharedRev
#endif
#ifndef SharedLibMCommon
# define SharedLibMCommon HasSharedLibraries
#endif
#ifndef NormalLibMCommon
# define NormalLibMCommon (!SharedLibMCommon | ForceNormalLib)
#endif
#ifndef DebugLibMCommon
# define DebugLibMCommon NO
#endif
#ifndef ProfileLibMCommon
# define ProfileLibMCommon NO
#endif
#ifndef SharedMCommonRev
# define SharedMCommonRev MotifSharedRev
#endif
#ifndef XmClientLibs
# define XmClientLibs $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
#endif
#ifndef XmClientDepLibs
# define XmClientDepLibs $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
#endif
#ifndef MrmClientLibs
# define MrmClientLibs $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
#endif
#ifndef MrmClientDepLibs
# define MrmClientDepLibs $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
#endif
#ifndef UilClientLibs
# define UilClientLibs $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
#endif
#ifndef UilClientDepLibs
# define UilClientDepLibs $(DEPUILLIB) $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
#endif
#ifndef TestClientLibs
# define TestClientLibs $(PURIFYLIBS) $(TESTCOMLIB) \
$(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
$(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
$(XMLIB) $(TESTGEOLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) \
$(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
#endif
#ifndef TestUilClientLibs
# define TestUilClientLibs $(PURIFYLIBS) $(TESTUILCOMLIB) $(TESTCOMLIB) \
$(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
$(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
$(UILLIB) $(MRESOURCELIB) $(XMLIB) $(TESTGEOLIB) \
$(XTOOLLIB) $(XPLIB) $(XLIB) $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
#endif
#ifndef TestClientDepLibs
# define TestClientDepLibs XmClientDepLibs
#endif
#ifndef TestUilClientDepLibs
# define TestUilClientDepLibs UilClientDepLibs
#endif
/* hardcoded default path. Contrary to the original duplicate of USRLIBDIR
in the Imakefiles. */
#ifndef VirtualBindingsPath
# define VirtualBindingsPath /usr/lib/Xm/bindings
#endif
MTOP = MTop
TOP_MOTIF_INCLUDES = -I$(MINCLUDESRC)
#if defined(UseInstalled) || (UseInstalledMotif && UseInstalledX11)
UIL_INCLUDES = -I$(USRINCDIR)/uil
#else
UIL_INCLUDES = -I$(UILSRC)
#endif
#ifdef BuildLibPathVar
MOTIFENVLIBDIR = MotifBuildLibPath
#endif
/* Message catalog usage */
#ifndef GencatCmd
# define GencatCmd gencat
#endif
#ifndef GencatFlags
# define GencatFlags /**/
#endif
#if defined(NoMessageCatalog)
# define BuildMessageCatalog NO
# define MessageCatalogDefines -DNO_MESSAGE_CATALOG
#else
# define BuildMessageCatalog YES
# define MessageCatalogDefines /**/
#endif
#ifndef MessageCatalogRule
# if BuildMessageCatalog
# define MessageCatalogRule(prefix) Real_MessageCatalogRule(prefix)
# else
# define MessageCatalogRule(prefix) Stub_MessageCatalogRule(prefix)
# endif
#endif
USRINCDIR = UsrIncDir
UIDDIR = UidDir
TESTSRC = $(MTOP)/tests
TESTLIB = $(TESTSRC)/lib
GENERALSRCLIB = $(TESTSRC)/General/lib
GENERALSRCBIN = $(TESTSRC)/General/bin
MANUALSRCLIB = $(TESTSRC)/Manual/lib
MANUALSRCBIN = $(TESTSRC)/Manual/bin
AUTOSRCLIB = $(TESTSRC)/Auto/lib
AUTOSRCBIN = $(TESTSRC)/Auto/bin
COMMONPP = $(GENERALSRCBIN)/Commonpp
GENRUN = $(GENERALSRCBIN)/Genrun
MANRUN = $(GENERALSRCBIN)/Manrun
#ifdef DebugLib
TESTMALLOCSRC = $(GENERALSRCLIB)/Malloc
#endif
#ifdef DebugGeometry
TESTGEOSRC = $(TESTLIB)/Geometry
#endif
#ifdef Automation
TESTCOMSRC = $(AUTOSRCLIB)/Common
AUTOSCRIPTSRC = $(AUTOSRCLIB)/Script
AUTOSYNTHSRC = $(AUTOSRCLIB)/Synth
AUTOCREATESRC = $(AUTOSRCLIB)/Create
AUTOVISUALSRC = $(AUTOSRCLIB)/Visual
AUTOUTILSRC = $(AUTOSRCLIB)/Util
AUTOEXTRALIBS = -ll -ly -lm
#else
TESTCOMSRC = $(MANUALSRCLIB)/Common
#endif
BUILDDOCDIR = BuildDocDir
BUILDLOCDIR = BuildLocDir
/* MTOOLKITSRC should be removed */
MTOOLKITSRC = $(TOOLKITSRC)
#if ImportMotif || UseInstalledMotif
MINCLUDESRC = $(MTOP)/include
MDOCSRC = $(MTOP)/doc
MLOCSRC = $(MTOP)/localized
#else
MINCLUDESRC = $(MTOP)/exports/include
MLOCSRC = $(MTOP)/exports/localized
#endif
MLIBSRC = $(MTOP)/lib
MCLIENTSRC = $(MTOP)/clients
MDEMOSRC = $(MTOP)/demos
MWIDGETSRC = $(MLIBSRC)/Xm
MRESOURCESRC = $(MLIBSRC)/Mrm
UILSRC = $(MCLIENTSRC)/uil
#ifdef MotifProjectRoot
MPROJECTROOT = MotifProjectRoot
#endif
UIL = _MUse(uil,$(UILSRC)/uil)
DEPUIL = _MUseCat($(BINDIR),$(UILSRC),/uil)
XMEXTRA_LIBS = XmExtraLibraries
/* These libraries use UseInstalledMotif instead of UseInstalled. */
#undef _Use
#undef _UseCat
#define _Use _MUse
#define _UseCat _MUseCat
#ifndef MBuildLibDir
# define MBuildLibDir BuildLibDir
#endif
#if SharedLibXm
SharedLibReferences(XM,Xm,$(MWIDGETSRC),SOXMREV,SharedXmRev)
#else
ProjectUnsharedLibReferences(XM,Xm,$(MWIDGETSRC),MBuildLibDir)
#endif
#if SharedLibMrm
SharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),SOMRMREV,SharedMrmRev)
#else
ProjectUnsharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),MBuildLibDir)
#endif
#if SharedLibUil
SharedLibReferences(UIL,Uil,$(UILSRC),SOUILREV,SharedUilRev)
#else
ProjectUnsharedLibReferences(UIL,Uil,$(UILSRC),MBuildLibDir)
#endif
#ifdef DebugGeometry
ProjectUnsharedLibReferences(TESTGEO,XtGeo,$(TESTGEOSRC),MBuildLibDir)
#endif
#if Automation
# if SharedLibACommon
SharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),SOACOMMONREV,SharedACommonRev)
# else
ProjectUnsharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),MBuildLibDir)
# endif
TESTUILCOMLIB = $(TESTCOMSRC)/libACommonUil.a
# if SharedLibScript
SharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),SOSCRIPTREV,SharedScriptRev)
# else
ProjectUnsharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),MBuildLibDir)
# endif
# if SharedLibSynth
SharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),SOSYNTHREV,SharedSynthRev)
# else
ProjectUnsharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),MBuildLibDir)
# endif
# if SharedLibCreate
SharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),SOCREATEREV,SharedCreateRev)
# else
ProjectUnsharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),MBuildLibDir)
# endif
# if SharedLibVisual
SharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),SOVISUALREV,SharedVisualRev)
# else
ProjectUnsharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),MBuildLibDir)
# endif
# if SharedLibUtil
SharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),SOUTILREV,SharedUtilRev)
# else
ProjectUnsharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),MBuildLibDir)
# endif
#else /* Manual */
# if SharedLibMCommon
SharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),SOMCOMMONREV,SharedMCommonRev)
# else
ProjectUnsharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),MBuildLibDir)
# endif
TESTUILCOMLIB = $(TESTCOMSRC)/libMCommonUil.a
#endif /* Automation */
/* Revert to the normal library rules. */
#undef _Use
#undef _UseCat
#define _Use _XUse
#define _UseCat _XUseCat
#ifdef UsePurify
PURIFYLIBS = $(PURIFYHOME)/purify_stubs.a
#endif
LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
LINTUILLIB = $(UILSRC)/llib-lUil.ln
YACCFLAGS = YaccFlags
UILFLAGS = UilFlags
GENCATFLAGS = GencatFlags
GENCAT = GencatCmd $(GENCATFLAGS)
MKCATTOOL = $(MLOCSRC)/util/mkcatdefs
RM_CMD = $(RM) FilesToClean ExtraFilesToClean TestExtraFilesToClean
#if NeedDefaultDepLibs
# if HasSharedLibraries || defined(UseInstalled)
DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
# else
DEPLIBS = $(LOCAL_LIBRARIES)
# endif
DEPLIBS1 = $(DEPLIBS)
DEPLIBS2 = $(DEPLIBS)
DEPLIBS3 = $(DEPLIBS)
#endif /* NeedDefaultDepLibs */
|