home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 March / PCWELT_3_2006.ISO / base / 05_common.mo / usr / X11R6 / lib / LessTif / config / LessTif.tmpl < prev   
Encoding:
Text File  |  2005-06-09  |  16.1 KB  |  668 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993, 1998 The Open Group, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7.  *
  8.  * (c) Copyright 1996 Digital Equipment Corporation.
  9.  * (c) Copyright 1996 Hewlett-Packard Company.
  10.  * (c) Copyright 1996 International Business Machines Corp.
  11.  * (c) Copyright 1996 Sun Microsystems, Inc.
  12.  * (c) Copyright 1996 Novell, Inc. 
  13.  * (c) Copyright 1996 FUJITSU LIMITED.
  14.  * (c) Copyright 1996 Hitachi.
  15.  */ 
  16. XCOMM $TOG: Motif.tmpl /main/5 1998/02/06 10:53:46 kaleb $
  17.  
  18. XCOMM $Id: LessTif.tmpl.in,v 1.3 2001/03/26 19:12:10 amai Exp $
  19. /* 
  20.  * Imake templates for LessTif
  21.  *
  22.  * by Carlos A. M. dos Santos <casantos@urisan.tche.br>
  23.  *
  24.  * THIS IS A MODIFIED VERSION OF THE Motif.tmpl FILE INCLUDED IN THE STANDARD
  25.  * X11R6.4 DISTRIBUTION. ALL MATERIAL IN X11 IS FREELY REDISTRIBUTABLE, EITHER
  26.  * IN ORIGINAL OR MODIFIED FORM BUT, NO MATTER WHICH ADDITIONAL CHANGES YOU
  27.  * MAKE TO THIS FILE, DO NOT REMOVE THE ABOVE COPYRIGHT NOTICE.
  28.  */
  29.  
  30. /* Include the X11 project template file. */
  31. #include <X11.tmpl>
  32.  
  33. #ifdef AUTOMATION
  34. # ifndef Automation
  35. #  define Automation     YES
  36. # endif
  37. #else
  38. # define NO_AUTOMATION
  39. #endif
  40.  
  41. #ifdef USE_VISTACC
  42. # ifndef UseVista
  43. #  define UseVista
  44. # endif
  45. # ifndef CATCMD
  46. #  define CATCMD cat
  47. # endif
  48. #endif
  49.  
  50. #ifdef USE_PURIFY
  51. # ifndef UsePurify
  52. #  define UsePurify
  53. # endif
  54. #endif
  55.  
  56. #ifdef DEBUG_GEOMETRY
  57. # ifndef DebugGeometry
  58. #  define DebugGeometry YES
  59. # endif
  60. #endif
  61.  
  62.  
  63. #ifndef _MUse
  64. # if UseInstalledMotif
  65. #  define _MUse(a,b) a
  66. # else
  67. #  define _MUse(a,b) b
  68. # endif
  69. #endif
  70.  
  71. #ifndef _MUseCat
  72. # if (defined(__STDC__) && !defined(UnixCpp)) || defined(AnsiCpp)
  73. #  if UseInstalledMotif
  74. #   define _MUseCat(a,b,c) a##c
  75. #  else
  76. #   define _MUseCat(a,b,c) b##c
  77. #  endif
  78. # else
  79. #  if UseInstalledMotif
  80. #   define _MUseCat(a,b,c) a/**/c
  81. #  else
  82. #   define _MUseCat(a,b,c) b/**/c
  83. #  endif
  84. # endif
  85. #endif
  86.  
  87. #ifndef MTop
  88. # if ImportMotif
  89. #  define MTop $(TOP)/imports/motif
  90. # else
  91. #  define MTop $(TOP)
  92. # endif
  93. #endif
  94.  
  95. #ifndef BuildDocDir
  96. # define BuildDocDir $(BUILDINCROOT)/doc
  97. #endif
  98. #ifndef BuildLocDir
  99. # define BuildLocDir $(BUILDINCROOT)/localized
  100. #endif
  101.  
  102. #ifndef MotifDefines
  103. # define MotifDefines /**/
  104. #endif
  105.  
  106. #ifndef XmDefines
  107. # define XmDefines  /**/
  108. #endif
  109.  
  110. /* To compile without SHAPE extension, set this to -DNO_SHAPE */
  111. #ifndef MwmDefines
  112. # define MwmDefines /**/
  113. #endif
  114.  
  115. #ifndef UilFlags
  116. # define UilFlags /**/
  117. #endif
  118.  
  119. #ifndef TestDefines
  120. # define TestDefines /**/
  121. #endif
  122.  
  123. #ifndef AutoDefines
  124. # if Automation
  125. #  define AutoDefines -DAUTOMATION
  126. # else
  127. #  define AutoDefines /**/
  128. # endif
  129. #endif
  130.  
  131. #ifndef AutoIncludes
  132. # if Automation
  133. #  define AutoIncludes -I$(AUTOSCRIPTSRC)
  134. # else
  135. #  define AutoIncludes /**/
  136. # endif
  137. #endif
  138.  
  139. #ifdef UsePurify
  140. # define PurifyFilesToClean *.pure_linkinfo *.pure_hardlink
  141. #else
  142. # define PurifyFilesToClean
  143. #endif
  144. #if Automation
  145. # define TestExtraFilesToClean *.Dat *.Scr PurifyFilesToClean
  146. #else 
  147. # define TestExtraFilesToClean *.Dat PurifyFilesToClean
  148. #endif 
  149.  
  150. #ifndef UsrIncDir
  151. # define UsrIncDir IncRoot
  152. #endif
  153.  
  154. /* Place to install .uid files */
  155. #ifndef UidDir
  156. # define UidDir $(LIBDIR)/uid
  157. #endif
  158.  
  159. #ifndef XmExtraLibraries
  160. # define XmExtraLibraries /**/
  161. #endif
  162.  
  163. #ifndef YaccFlags
  164. # define YaccFlags /**/
  165. #endif
  166.  
  167. #ifndef LessTifXmVersion
  168. # define LessTifXmVersion    2        /* configure-time option */
  169. # define LessTifXmRevision    1    /* configure-time option */
  170. #endif
  171.  
  172. #if LessTifXmVersion == 1
  173. #  define XmVersion        1
  174. #  define XmRevision        2
  175. #  define MotifSharedRev    1.2
  176. #elif LessTifXmVersion == 2
  177. #if LessTifXmRevision == 0
  178. #  define XmVersion        2
  179. #  define XmRevision        0
  180. #  define MotifSharedRev    2.0
  181. #else
  182. #  define XmVersion        2
  183. #  define XmRevision        1
  184. #  define MotifSharedRev    2.1
  185. #endif
  186. #else
  187. #error "Invalid LessTifXmVersion"
  188. #endif
  189.  
  190. #if XmVersion == 1
  191. #  define LTXpLib         /* M*tif 1.2 does not use Xp */
  192. #  define LTDepXpLib        /* dto. */
  193. #else
  194. #if LessTifXmRevision == 0
  195. #  define LTXpLib         /* M*tif 2.0 does not use Xp */
  196. #  define LTDepXpLib        /* dto. */
  197. #else
  198. #  define LTXpLib         $(XPLIB)
  199. #  define LTDepXpLib        $(DEPXPLIB)
  200. #endif
  201. #endif
  202.  
  203. #ifndef SharedLibXm
  204. # define SharedLibXm        HasSharedLibraries
  205. #endif
  206. #ifndef NormalLibXm
  207. # define NormalLibXm        (!SharedLibXm | ForceNormalLib)
  208. #endif
  209. #ifndef DebugLibXm
  210. # define DebugLibXm        NO
  211. #endif
  212. #ifndef ProfileLibXm
  213. # define ProfileLibXm        NO
  214. #endif
  215. #ifndef SharedXmRev
  216. # define SharedXmRev        MotifSharedRev
  217. #endif
  218.  
  219. #ifndef SharedLibMrm
  220. # define SharedLibMrm        HasSharedLibraries
  221. #endif
  222. #ifndef NormalLibMrm
  223. # define NormalLibMrm        (!SharedLibMrm | ForceNormalLib)
  224. #endif
  225. #ifndef DebugLibMrm
  226. # define DebugLibMrm        NO
  227. #endif
  228. #ifndef ProfileLibMrm
  229. # define ProfileLibMrm        NO
  230. #endif
  231. #ifndef SharedMrmRev
  232. # define SharedMrmRev        MotifSharedRev
  233. #endif
  234.  
  235. #ifndef SharedLibUil
  236. # define SharedLibUil        HasSharedLibraries
  237. #endif
  238. #ifndef NormalLibUil
  239. # define NormalLibUil        (!SharedLibUil | ForceNormalLib)
  240. #endif
  241. #ifndef DebugLibUil
  242. # define DebugLibUil        NO
  243. #endif
  244. #ifndef ProfileLibUil
  245. # define ProfileLibUil        NO
  246. #endif
  247. #ifndef SharedUilRev
  248. # define SharedUilRev        MotifSharedRev
  249. #endif
  250.  
  251. #ifndef SharedLibACommon
  252. # define SharedLibACommon    HasSharedLibraries
  253. #endif
  254. #ifndef NormalLibACommon
  255. # define NormalLibACommon    (!SharedLibACommon | ForceNormalLib)
  256. #endif
  257. #ifndef DebugLibACommon
  258. # define DebugLibACommon    NO
  259. #endif
  260. #ifndef ProfileLibACommon
  261. # define ProfileLibACommon    NO
  262. #endif
  263. #ifndef SharedACommonRev
  264. # define SharedACommonRev    MotifSharedRev
  265. #endif
  266.  
  267. #ifndef SharedLibScript
  268. # define SharedLibScript    HasSharedLibraries
  269. #endif
  270. #ifndef NormalLibScript
  271. # define NormalLibScript    (!SharedLibScript | ForceNormalLib)
  272. #endif
  273. #ifndef DebugLibScript
  274. # define DebugLibScript        NO
  275. #endif
  276. #ifndef ProfileLibScript
  277. # define ProfileLibScript    NO
  278. #endif
  279. #ifndef SharedScriptRev
  280. # define SharedScriptRev    MotifSharedRev
  281. #endif
  282.  
  283. #ifndef SharedLibUtil
  284. # define SharedLibUtil        HasSharedLibraries
  285. #endif
  286. #ifndef NormalLibUtil
  287. # define NormalLibUtil        (!SharedLibUtil | ForceNormalLib)
  288. #endif
  289. #ifndef DebugLibUtil
  290. # define DebugLibUtil        NO
  291. #endif
  292. #ifndef ProfileLibUtil
  293. # define ProfileLibUtil        NO
  294. #endif
  295. #ifndef SharedUtilRev
  296. # define SharedUtilRev        MotifSharedRev
  297. #endif
  298.  
  299. #ifndef SharedLibCreate
  300. # define SharedLibCreate    HasSharedLibraries
  301. #endif
  302. #ifndef NormalLibCreate
  303. # define NormalLibCreate    (!SharedLibCreate | ForceNormalLib)
  304. #endif
  305. #ifndef DebugLibCreate
  306. # define DebugLibCreate        NO
  307. #endif
  308. #ifndef ProfileLibCreate
  309. # define ProfileLibCreate    NO
  310. #endif
  311. #ifndef SharedCreateRev
  312. # define SharedCreateRev    MotifSharedRev
  313. #endif
  314.  
  315. #ifndef SharedLibVisual
  316. # define SharedLibVisual    HasSharedLibraries
  317. #endif
  318. #ifndef NormalLibVisual
  319. # define NormalLibVisual    (!SharedLibVisual | ForceNormalLib)
  320. #endif
  321. #ifndef DebugLibVisual
  322. # define DebugLibVisual        NO
  323. #endif
  324. #ifndef ProfileLibVisual
  325. # define ProfileLibVisual    NO
  326. #endif
  327. #ifndef SharedVisualRev
  328. # define SharedVisualRev    MotifSharedRev
  329. #endif
  330.  
  331. #ifndef SharedLibSynth
  332. # define SharedLibSynth        HasSharedLibraries
  333. #endif
  334. #ifndef NormalLibSynth
  335. # define NormalLibSynth        (!SharedLibSynth | ForceNormalLib)
  336. #endif
  337. #ifndef DebugLibSynth
  338. # define DebugLibSynth        NO
  339. #endif
  340. #ifndef ProfileLibSynth
  341. # define ProfileLibSynth    NO
  342. #endif
  343. #ifndef SharedSynthRev
  344. # define SharedSynthRev        MotifSharedRev
  345. #endif
  346.  
  347. #ifndef SharedLibMCommon
  348. # define SharedLibMCommon    HasSharedLibraries
  349. #endif
  350. #ifndef NormalLibMCommon
  351. # define NormalLibMCommon    (!SharedLibMCommon | ForceNormalLib)
  352. #endif
  353. #ifndef DebugLibMCommon
  354. # define DebugLibMCommon    NO
  355. #endif
  356. #ifndef ProfileLibMCommon
  357. # define ProfileLibMCommon    NO
  358. #endif
  359. #ifndef SharedMCommonRev
  360. # define SharedMCommonRev    MotifSharedRev
  361. #endif
  362.  
  363. /* These defines were not available before X11R6.4 */
  364. #if ProjectX < 604
  365.  
  366. #ifndef MiscManSuffix
  367. #if SystemV || SystemV4 || defined(OSF1Architecture)
  368. #define MiscManSuffix    5        /* use just one tab or cpp will die */
  369. #else
  370. #define MiscManSuffix    7        /* use just one tab or cpp will die */
  371. #endif
  372. #endif
  373. #ifndef DriverManSuffix
  374. #if SystemV || SystemV4 || defined(OSF1Architecture)
  375. #define DriverManSuffix    7        /* use just one tab or cpp will die */
  376. #else
  377. #define DriverManSuffix    4        /* use just one tab or cpp will die */
  378. #endif
  379. #endif
  380.  
  381. #ifndef MiscManDir
  382. #define MiscManDir $(MANSOURCEPATH)$(MISCMANSUFFIX)
  383. #endif
  384. #ifndef DriverManDir
  385. #define DriverManDir $(MANSOURCEPATH)$(DRIVERMANSUFFIX)
  386. #endif
  387. #ifndef FileManDefs
  388. #define FileManDefs -D__filemansuffix__=$(FILEMANSUFFIX)
  389. #endif
  390. #ifndef MiscManDefs
  391. #define MiscManDefs -D__miscmansuffix__=$(MISCMANSUFFIX)
  392. #endif
  393. #ifndef DriverManDefs
  394. #define DriverManDefs -D__drivermansuffix__=$(DRIVERMANSUFFIX)
  395. #endif
  396. #ifndef ExtraManDefs
  397. #define ExtraManDefs -D__projectroot__=$(PROJECTROOT)
  398. #endif
  399.  
  400. #endif /* ProjectX < 604 */
  401.  
  402. #ifndef XmClientLibs
  403. # define XmClientLibs $(XMLIB) $(XTOOLLIB) LTXpLib $(XLIB) $(XMEXTRA_LIBS)
  404. #endif
  405. #ifndef XmClientDepLibs
  406. # define XmClientDepLibs $(DEPXMLIB) $(DEPXTOOLLIB) LTDepXpLib $(DEPXLIB)
  407. #endif
  408.  
  409. #ifndef MrmClientLibs 
  410. # define MrmClientLibs $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) LTXpLib $(XLIB) $(XMEXTRA_LIBS)
  411. #endif
  412. #ifndef MrmClientDepLibs
  413. # define MrmClientDepLibs $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) LTDepXpLib $(DEPXLIB)
  414. #endif
  415.  
  416. #ifndef UilClientLibs
  417. # define UilClientLibs $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) LTXpLib $(XLIB) $(XMEXTRA_LIBS)
  418. #endif
  419. #ifndef UilClientDepLibs
  420. # define UilClientDepLibs $(DEPUILLIB) $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) LTDepXpLib $(DEPXLIB)
  421. #endif
  422.  
  423. #ifndef TestClientLibs
  424. # define TestClientLibs $(PURIFYLIBS) $(TESTCOMLIB) \
  425.         $(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
  426.         $(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
  427.     $(XMLIB) $(TESTGEOLIB) $(XTOOLLIB) LTXpLib $(XLIB) \
  428.     $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
  429. #endif
  430. #ifndef TestUilClientLibs
  431. # define TestUilClientLibs $(PURIFYLIBS) $(TESTUILCOMLIB) $(TESTCOMLIB) \
  432.         $(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
  433.         $(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
  434.     $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(TESTGEOLIB) \
  435.     $(XTOOLLIB) LTXpLib $(XLIB) $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
  436. #endif
  437. #ifndef TestClientDepLibs
  438. # define TestClientDepLibs XmClientDepLibs
  439. #endif
  440. #ifndef TestUilClientDepLibs
  441. # define TestUilClientDepLibs UilClientDepLibs
  442. #endif
  443.  
  444. /* LessTif still doesn't provide any bindings, so this is useless. */
  445. #ifndef VirtualBindingsPath
  446. # define VirtualBindingsPath $(USRLIBDIR)/bindings
  447. #endif
  448.  
  449.               MTOP = MTop
  450. TOP_MOTIF_INCLUDES = TopMotifInclude
  451. #if defined(UseInstalled) || (UseInstalledMotif && UseInstalledX11)
  452.       UIL_INCLUDES = -I$(USRINCDIR)/uil
  453. #else
  454.       UIL_INCLUDES = -I$(UILSRC)
  455. #endif
  456. #ifdef BuildLibPathVar
  457.     MOTIFENVLIBDIR = MotifBuildLibPath
  458. #endif
  459.  
  460. /* Message catalog usage */
  461. #ifndef GencatCmd
  462. # define GencatCmd        gencat
  463. #endif
  464. #ifndef GencatFlags
  465. # define GencatFlags        /**/
  466. #endif
  467. #if defined(NoMessageCatalog)
  468. # define BuildMessageCatalog    NO
  469. # define MessageCatalogDefines    -DNO_MESSAGE_CATALOG
  470. #else
  471. # define BuildMessageCatalog    YES 
  472. # define MessageCatalogDefines    /**/
  473. #endif
  474. #ifndef MessageCatalogRule
  475. # if BuildMessageCatalog
  476. #  define MessageCatalogRule(prefix)    Real_MessageCatalogRule(prefix)
  477. # else
  478. #  define MessageCatalogRule(prefix)    Stub_MessageCatalogRule(prefix)
  479. # endif
  480. #endif
  481.  
  482. /* These variables were not available before X11R6.4 */
  483. #if ProjectX < 604
  484.      MISCMANDIR = MiscManDir        /* man pages for miscellaneous files */
  485.    DRIVERMANDIR = DriverManDir        /* man pages for drivers */
  486.   MISCMANSUFFIX = MiscManSuffix        /* suffix for misc man pages */
  487. DRIVERMANSUFFIX = DriverManSuffix    /* suffix for driver man pages */
  488.         MANDEFS = FileManDefs MiscManDefs DriverManDefs ExtraManDefs
  489. #endif /* ProjectX < 604 */
  490.  
  491.       USRINCDIR = UsrIncDir
  492.          UIDDIR = UidDir
  493.         TESTSRC = $(MTOP)/tests
  494.         TESTLIB = $(TESTSRC)/lib
  495.   GENERALSRCLIB = $(TESTSRC)/General/lib
  496.   GENERALSRCBIN = $(TESTSRC)/General/bin
  497.    MANUALSRCLIB = $(TESTSRC)/Manual/lib
  498.    MANUALSRCBIN = $(TESTSRC)/Manual/bin
  499.      AUTOSRCLIB = $(TESTSRC)/Auto/lib
  500.      AUTOSRCBIN = $(TESTSRC)/Auto/bin
  501.        COMMONPP = $(GENERALSRCBIN)/Commonpp
  502.          GENRUN = $(GENERALSRCBIN)/Genrun
  503.          MANRUN = $(GENERALSRCBIN)/Manrun
  504. #ifdef DebugLib
  505.   TESTMALLOCSRC = $(GENERALSRCLIB)/Malloc
  506. #endif
  507. #ifdef DebugGeometry
  508.      TESTGEOSRC = $(TESTLIB)/Geometry
  509. #endif
  510. #ifdef Automation
  511.      TESTCOMSRC = $(AUTOSRCLIB)/Common
  512.   AUTOSCRIPTSRC = $(AUTOSRCLIB)/Script
  513.    AUTOSYNTHSRC = $(AUTOSRCLIB)/Synth
  514.   AUTOCREATESRC = $(AUTOSRCLIB)/Create
  515.   AUTOVISUALSRC = $(AUTOSRCLIB)/Visual
  516.     AUTOUTILSRC = $(AUTOSRCLIB)/Util
  517.   AUTOEXTRALIBS = $(LEXLIB) MathLibrary
  518. #else
  519.      TESTCOMSRC = $(MANUALSRCLIB)/Common
  520. #endif
  521.  
  522.     BUILDDOCDIR = BuildDocDir
  523.     BUILDLOCDIR = BuildLocDir
  524.  
  525. /* MTOOLKITSRC  should be removed */
  526.     MTOOLKITSRC = $(TOOLKITSRC)
  527. #if ImportMotif || UseInstalledMotif
  528.     MINCLUDESRC = $(MTOP)/include
  529.         MDOCSRC = $(MTOP)/doc
  530.         MLOCSRC = $(MTOP)/localized
  531. #else
  532.     MINCLUDESRC = $(MTOP)/exports/include
  533.         MLOCSRC = $(MTOP)/exports/localized
  534. #endif
  535.         MLIBSRC = $(MTOP)/lib
  536.      MCLIENTSRC = $(MTOP)/clients
  537.        MDEMOSRC = $(MTOP)/demos
  538.      MWIDGETSRC = $(MLIBSRC)/Xm
  539.    MRESOURCESRC = $(MLIBSRC)/Mrm
  540.          UILSRC = $(MCLIENTSRC)/uil
  541. #ifdef MotifProjectRoot
  542.    MPROJECTROOT = MotifProjectRoot
  543.      MCONFIGDIR = $(MPROJECTROOT)/lib/X11/config
  544. #endif
  545.  
  546.             UIL = _MUse(uil,$(UILSRC)/uil)
  547.          DEPUIL = _MUseCat($(BINDIR),$(UILSRC),/uil)
  548.  
  549.    XMEXTRA_LIBS = XmExtraLibraries
  550.  
  551. /* These libraries use UseInstalledMotif instead of UseInstalled. */
  552. #undef _Use
  553. #undef _UseCat
  554. #define _Use    _MUse
  555. #define _UseCat _MUseCat
  556.  
  557. #ifndef MBuildLibDir
  558. # define MBuildLibDir    BuildLibDir
  559. #endif
  560.  
  561. #if SharedLibXm
  562. SharedLibReferences(XM,Xm,$(MWIDGETSRC),SOXMREV,SharedXmRev)
  563. #else
  564. ProjectUnsharedLibReferences(XM,Xm,$(MWIDGETSRC),MBuildLibDir)
  565. #endif
  566.  
  567. #if SharedLibMrm
  568. SharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),SOMRMREV,SharedMrmRev)
  569. #else
  570. ProjectUnsharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),MBuildLibDir)
  571. #endif
  572.  
  573. #if SharedLibUil
  574. SharedLibReferences(UIL,Uil,$(UILSRC),SOUILREV,SharedUilRev)
  575. #else
  576. ProjectUnsharedLibReferences(UIL,Uil,$(UILSRC),MBuildLibDir)
  577. #endif
  578.  
  579. #ifdef DebugGeometry
  580. ProjectUnsharedLibReferences(TESTGEO,XtGeo,$(TESTGEOSRC),MBuildLibDir)
  581. #endif
  582.  
  583. #if Automation
  584.  
  585. # if SharedLibACommon
  586. SharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),SOACOMMONREV,SharedACommonRev)
  587. # else
  588. ProjectUnsharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),MBuildLibDir)
  589. # endif
  590.  
  591. TESTUILCOMLIB = $(TESTCOMSRC)/libACommonUil.a
  592.  
  593. # if SharedLibScript
  594. SharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),SOSCRIPTREV,SharedScriptRev)
  595. # else
  596. ProjectUnsharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),MBuildLibDir)
  597. # endif
  598.  
  599. # if SharedLibSynth
  600. SharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),SOSYNTHREV,SharedSynthRev)
  601. # else
  602. ProjectUnsharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),MBuildLibDir)
  603. # endif
  604.  
  605. # if SharedLibCreate
  606. SharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),SOCREATEREV,SharedCreateRev)
  607. # else
  608. ProjectUnsharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),MBuildLibDir)
  609. # endif
  610.  
  611. # if SharedLibVisual
  612. SharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),SOVISUALREV,SharedVisualRev)
  613. # else
  614. ProjectUnsharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),MBuildLibDir)
  615. # endif
  616.  
  617. # if SharedLibUtil
  618. SharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),SOUTILREV,SharedUtilRev)
  619. # else
  620. ProjectUnsharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),MBuildLibDir)
  621. # endif
  622.  
  623. #else   /* Manual */
  624.  
  625. # if SharedLibMCommon
  626. SharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),SOMCOMMONREV,SharedMCommonRev)
  627. # else
  628. ProjectUnsharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),MBuildLibDir)
  629. # endif
  630. TESTUILCOMLIB = $(TESTCOMSRC)/libMCommonUil.a
  631.  
  632. #endif  /* Automation */
  633.  
  634.  
  635. /* Revert to the normal library rules. */
  636. #undef _Use
  637. #undef _UseCat
  638. #define _Use    _XUse
  639. #define _UseCat _XUseCat
  640.  
  641.  
  642. #ifdef UsePurify
  643.      PURIFYLIBS = $(PURIFYHOME)/purify_stubs.a
  644. #endif
  645.   LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
  646. LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
  647.      LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
  648.      LINTUILLIB = $(UILSRC)/llib-lUil.ln
  649.  
  650.       YACCFLAGS = YaccFlags
  651.        UILFLAGS = UilFlags
  652.     GENCATFLAGS = GencatFlags
  653.          GENCAT = GencatCmd $(GENCATFLAGS)
  654.       MKCATTOOL = $(MLOCSRC)/util/mkcatdefs
  655.  
  656.          RM_CMD = $(RM) FilesToClean ExtraFilesToClean TestExtraFilesToClean
  657.  
  658. #if NeedDefaultDepLibs
  659. # if HasSharedLibraries || defined(UseInstalled)
  660.         DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) LTDepXpLib $(DEPXLIB)
  661. # else
  662.         DEPLIBS = $(LOCAL_LIBRARIES)
  663. # endif
  664.         DEPLIBS1 = $(DEPLIBS)
  665.         DEPLIBS2 = $(DEPLIBS)
  666.         DEPLIBS3 = $(DEPLIBS)
  667. #endif /* NeedDefaultDepLibs */
  668.