Motif.tmpl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  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/6 1999/05/19 17:00:05 mgreess $
  17. /* Include the X11 project template file. */
  18. #include <X11.tmpl>
  19. #ifdef AUTOMATION
  20. # ifndef Automation
  21. # define Automation YES
  22. # endif
  23. #else
  24. # define NO_AUTOMATION
  25. #endif
  26. #ifdef USE_VISTACC
  27. # ifndef UseVista
  28. # define UseVista
  29. # endif
  30. # ifndef CATCMD
  31. # define CATCMD cat
  32. # endif
  33. #endif
  34. #ifdef USE_PURIFY
  35. # ifndef UsePurify
  36. # define UsePurify
  37. # endif
  38. #endif
  39. #ifdef DEBUG_GEOMETRY
  40. # ifndef DebugGeometry
  41. # define DebugGeometry YES
  42. # endif
  43. #endif
  44. #ifndef _MUse
  45. # if UseInstalledMotif
  46. # define _MUse(a,b) a
  47. # else
  48. # define _MUse(a,b) b
  49. # endif
  50. #endif
  51. #ifndef _MUseCat
  52. # if (__STDC__ && !defined(UnixCpp)) || defined(AnsiCpp) || defined(__llvm__)
  53. # if UseInstalledMotif
  54. # define _MUseCat(a,b,c) a##c
  55. # else
  56. # define _MUseCat(a,b,c) b##c
  57. # endif
  58. # else
  59. # if UseInstalledMotif
  60. # define _MUseCat(a,b,c) a/**/c
  61. # else
  62. # define _MUseCat(a,b,c) b/**/c
  63. # endif
  64. # endif
  65. #endif
  66. #ifndef MTop
  67. # if ImportMotif || UseInstalledMotif
  68. # define MTop $(TOP)/imports/motif
  69. # else
  70. # define MTop $(TOP)
  71. # endif
  72. #endif
  73. #ifndef BuildDocDir
  74. # define BuildDocDir $(BUILDINCROOT)/doc
  75. #endif
  76. #ifndef BuildLocDir
  77. # define BuildLocDir $(BUILDINCROOT)/localized
  78. #endif
  79. #ifndef MotifDefines
  80. # define MotifDefines /**/
  81. #endif
  82. #ifndef XmDefines
  83. # define XmDefines /**/
  84. #endif
  85. /* To compile without SHAPE extension, set this to -DNO_SHAPE */
  86. #ifndef MwmDefines
  87. # define MwmDefines /**/
  88. #endif
  89. #ifndef UilFlags
  90. # define UilFlags /**/
  91. #endif
  92. #ifndef TestDefines
  93. # define TestDefines /**/
  94. #endif
  95. #ifndef AutoDefines
  96. # if Automation
  97. # define AutoDefines -DAUTOMATION
  98. # else
  99. # define AutoDefines /**/
  100. # endif
  101. #endif
  102. #ifndef AutoIncludes
  103. # if Automation
  104. # define AutoIncludes -I$(AUTOSCRIPTSRC)
  105. # else
  106. # define AutoIncludes /**/
  107. # endif
  108. #endif
  109. #ifdef UsePurify
  110. # define PurifyFilesToClean *.pure_linkinfo *.pure_hardlink
  111. #else
  112. # define PurifyFilesToClean
  113. #endif
  114. #if Automation
  115. # define TestExtraFilesToClean *.Dat *.Scr PurifyFilesToClean
  116. #else
  117. # define TestExtraFilesToClean *.Dat PurifyFilesToClean
  118. #endif
  119. #ifndef UsrIncDir
  120. # define UsrIncDir IncRoot
  121. #endif
  122. /* Place to install .uid files */
  123. #ifndef UidDir
  124. # define UidDir $(LIBDIR)/uid
  125. #endif
  126. #ifndef XmExtraLibraries
  127. # define XmExtraLibraries /**/
  128. #endif
  129. #ifndef YaccFlags
  130. # define YaccFlags /**/
  131. #endif
  132. #define MotifSharedRev 2.1
  133. #ifndef BuildMotifConfig
  134. # define BuildMotifConfig YES
  135. #endif
  136. #ifndef BuildMotifDemos
  137. # define BuildMotifDemos YES
  138. #endif
  139. #ifndef BuildWMLTable
  140. # define BuildWMLTable YES
  141. #endif
  142. #ifndef SharedLibXm
  143. # define SharedLibXm HasSharedLibraries
  144. #endif
  145. #ifndef NormalLibXm
  146. # define NormalLibXm (!SharedLibXm | ForceNormalLib)
  147. #endif
  148. #ifndef DebugLibXm
  149. # define DebugLibXm NO
  150. #endif
  151. #ifndef ProfileLibXm
  152. # define ProfileLibXm NO
  153. #endif
  154. #ifndef SharedXmRev
  155. # define SharedXmRev MotifSharedRev
  156. #endif
  157. #ifndef SharedLibMrm
  158. # define SharedLibMrm HasSharedLibraries
  159. #endif
  160. #ifndef NormalLibMrm
  161. # define NormalLibMrm (!SharedLibMrm | ForceNormalLib)
  162. #endif
  163. #ifndef DebugLibMrm
  164. # define DebugLibMrm NO
  165. #endif
  166. #ifndef ProfileLibMrm
  167. # define ProfileLibMrm NO
  168. #endif
  169. #ifndef SharedMrmRev
  170. # define SharedMrmRev MotifSharedRev
  171. #endif
  172. #ifndef SharedLibUil
  173. # define SharedLibUil HasSharedLibraries
  174. #endif
  175. #ifndef NormalLibUil
  176. # define NormalLibUil (!SharedLibUil | ForceNormalLib)
  177. #endif
  178. #ifndef DebugLibUil
  179. # define DebugLibUil NO
  180. #endif
  181. #ifndef ProfileLibUil
  182. # define ProfileLibUil NO
  183. #endif
  184. #ifndef SharedUilRev
  185. # define SharedUilRev MotifSharedRev
  186. #endif
  187. #ifndef SharedLibACommon
  188. # define SharedLibACommon HasSharedLibraries
  189. #endif
  190. #ifndef NormalLibACommon
  191. # define NormalLibACommon (!SharedLibACommon | ForceNormalLib)
  192. #endif
  193. #ifndef DebugLibACommon
  194. # define DebugLibACommon NO
  195. #endif
  196. #ifndef ProfileLibACommon
  197. # define ProfileLibACommon NO
  198. #endif
  199. #ifndef SharedACommonRev
  200. # define SharedACommonRev MotifSharedRev
  201. #endif
  202. #ifndef SharedLibScript
  203. # define SharedLibScript HasSharedLibraries
  204. #endif
  205. #ifndef NormalLibScript
  206. # define NormalLibScript (!SharedLibScript | ForceNormalLib)
  207. #endif
  208. #ifndef DebugLibScript
  209. # define DebugLibScript NO
  210. #endif
  211. #ifndef ProfileLibScript
  212. # define ProfileLibScript NO
  213. #endif
  214. #ifndef SharedScriptRev
  215. # define SharedScriptRev MotifSharedRev
  216. #endif
  217. #ifndef SharedLibUtil
  218. # define SharedLibUtil HasSharedLibraries
  219. #endif
  220. #ifndef NormalLibUtil
  221. # define NormalLibUtil (!SharedLibUtil | ForceNormalLib)
  222. #endif
  223. #ifndef DebugLibUtil
  224. # define DebugLibUtil NO
  225. #endif
  226. #ifndef ProfileLibUtil
  227. # define ProfileLibUtil NO
  228. #endif
  229. #ifndef SharedUtilRev
  230. # define SharedUtilRev MotifSharedRev
  231. #endif
  232. #ifndef SharedLibCreate
  233. # define SharedLibCreate HasSharedLibraries
  234. #endif
  235. #ifndef NormalLibCreate
  236. # define NormalLibCreate (!SharedLibCreate | ForceNormalLib)
  237. #endif
  238. #ifndef DebugLibCreate
  239. # define DebugLibCreate NO
  240. #endif
  241. #ifndef ProfileLibCreate
  242. # define ProfileLibCreate NO
  243. #endif
  244. #ifndef SharedCreateRev
  245. # define SharedCreateRev MotifSharedRev
  246. #endif
  247. #ifndef SharedLibVisual
  248. # define SharedLibVisual HasSharedLibraries
  249. #endif
  250. #ifndef NormalLibVisual
  251. # define NormalLibVisual (!SharedLibVisual | ForceNormalLib)
  252. #endif
  253. #ifndef DebugLibVisual
  254. # define DebugLibVisual NO
  255. #endif
  256. #ifndef ProfileLibVisual
  257. # define ProfileLibVisual NO
  258. #endif
  259. #ifndef SharedVisualRev
  260. # define SharedVisualRev MotifSharedRev
  261. #endif
  262. #ifndef SharedLibSynth
  263. # define SharedLibSynth HasSharedLibraries
  264. #endif
  265. #ifndef NormalLibSynth
  266. # define NormalLibSynth (!SharedLibSynth | ForceNormalLib)
  267. #endif
  268. #ifndef DebugLibSynth
  269. # define DebugLibSynth NO
  270. #endif
  271. #ifndef ProfileLibSynth
  272. # define ProfileLibSynth NO
  273. #endif
  274. #ifndef SharedSynthRev
  275. # define SharedSynthRev MotifSharedRev
  276. #endif
  277. #ifndef SharedLibMCommon
  278. # define SharedLibMCommon HasSharedLibraries
  279. #endif
  280. #ifndef NormalLibMCommon
  281. # define NormalLibMCommon (!SharedLibMCommon | ForceNormalLib)
  282. #endif
  283. #ifndef DebugLibMCommon
  284. # define DebugLibMCommon NO
  285. #endif
  286. #ifndef ProfileLibMCommon
  287. # define ProfileLibMCommon NO
  288. #endif
  289. #ifndef SharedMCommonRev
  290. # define SharedMCommonRev MotifSharedRev
  291. #endif
  292. #ifndef XmClientLibs
  293. # define XmClientLibs $(XMLIB) $(XTOOLLIB) $(XLIB) $(XMEXTRA_LIBS)
  294. #endif
  295. #ifndef XmClientDepLibs
  296. # define XmClientDepLibs $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  297. #endif
  298. #ifndef MrmClientLibs
  299. # define MrmClientLibs $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XLIB) $(XMEXTRA_LIBS)
  300. #endif
  301. #ifndef MrmClientDepLibs
  302. # define MrmClientDepLibs $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  303. #endif
  304. #ifndef UilClientLibs
  305. # define UilClientLibs $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XLIB) $(XMEXTRA_LIBS)
  306. #endif
  307. #ifndef UilClientDepLibs
  308. # define UilClientDepLibs $(DEPUILLIB) $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  309. #endif
  310. #ifndef TestClientLibs
  311. # define TestClientLibs $(PURIFYLIBS) $(TESTCOMLIB) \
  312. $(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
  313. $(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
  314. $(XMLIB) $(TESTGEOLIB) $(XTOOLLIB) $(XLIB) \
  315. $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
  316. #endif
  317. #ifndef TestUilClientLibs
  318. # define TestUilClientLibs $(PURIFYLIBS) $(TESTUILCOMLIB) $(TESTCOMLIB) \
  319. $(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
  320. $(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
  321. $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(TESTGEOLIB) \
  322. $(XTOOLLIB) $(XLIB) $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
  323. #endif
  324. #ifndef TestClientDepLibs
  325. # define TestClientDepLibs XmClientDepLibs
  326. #endif
  327. #ifndef TestUilClientDepLibs
  328. # define TestUilClientDepLibs UilClientDepLibs
  329. #endif
  330. /* hardcoded default path. Contrary to the original duplicate of USRLIBDIR
  331. in the Imakefiles. */
  332. #ifndef VirtualBindingsPath
  333. # define VirtualBindingsPath /usr/lib/Xm/bindings
  334. #endif
  335. MTOP = MTop
  336. TOP_MOTIF_INCLUDES = -I$(MINCLUDESRC)
  337. #if defined(UseInstalled) || (UseInstalledMotif && UseInstalledX11)
  338. UIL_INCLUDES = -I$(USRINCDIR)/uil
  339. #else
  340. UIL_INCLUDES = -I$(UILSRC)
  341. #endif
  342. #ifdef BuildLibPathVar
  343. MOTIFENVLIBDIR = MotifBuildLibPath
  344. #endif
  345. /* Message catalog usage */
  346. #ifndef GencatCmd
  347. # define GencatCmd gencat
  348. #endif
  349. #ifndef GencatFlags
  350. # define GencatFlags /**/
  351. #endif
  352. #if defined(NoMessageCatalog)
  353. # define BuildMessageCatalog NO
  354. # define MessageCatalogDefines -DNO_MESSAGE_CATALOG
  355. #else
  356. # define BuildMessageCatalog YES
  357. # define MessageCatalogDefines /**/
  358. #endif
  359. #ifndef MessageCatalogRule
  360. # if BuildMessageCatalog
  361. # define MessageCatalogRule(prefix) Real_MessageCatalogRule(prefix)
  362. # else
  363. # define MessageCatalogRule(prefix) Stub_MessageCatalogRule(prefix)
  364. # endif
  365. #endif
  366. USRINCDIR = UsrIncDir
  367. UIDDIR = UidDir
  368. TESTSRC = $(MTOP)/tests
  369. TESTLIB = $(TESTSRC)/lib
  370. GENERALSRCLIB = $(TESTSRC)/General/lib
  371. GENERALSRCBIN = $(TESTSRC)/General/bin
  372. MANUALSRCLIB = $(TESTSRC)/Manual/lib
  373. MANUALSRCBIN = $(TESTSRC)/Manual/bin
  374. AUTOSRCLIB = $(TESTSRC)/Auto/lib
  375. AUTOSRCBIN = $(TESTSRC)/Auto/bin
  376. COMMONPP = $(GENERALSRCBIN)/Commonpp
  377. GENRUN = $(GENERALSRCBIN)/Genrun
  378. MANRUN = $(GENERALSRCBIN)/Manrun
  379. #ifdef DebugLib
  380. TESTMALLOCSRC = $(GENERALSRCLIB)/Malloc
  381. #endif
  382. #ifdef DebugGeometry
  383. TESTGEOSRC = $(TESTLIB)/Geometry
  384. #endif
  385. #ifdef Automation
  386. TESTCOMSRC = $(AUTOSRCLIB)/Common
  387. AUTOSCRIPTSRC = $(AUTOSRCLIB)/Script
  388. AUTOSYNTHSRC = $(AUTOSRCLIB)/Synth
  389. AUTOCREATESRC = $(AUTOSRCLIB)/Create
  390. AUTOVISUALSRC = $(AUTOSRCLIB)/Visual
  391. AUTOUTILSRC = $(AUTOSRCLIB)/Util
  392. AUTOEXTRALIBS = -ll -ly -lm
  393. #else
  394. TESTCOMSRC = $(MANUALSRCLIB)/Common
  395. #endif
  396. BUILDDOCDIR = BuildDocDir
  397. BUILDLOCDIR = BuildLocDir
  398. /* MTOOLKITSRC should be removed */
  399. MTOOLKITSRC = $(TOOLKITSRC)
  400. #if ImportMotif || UseInstalledMotif
  401. MDOCSRC = $(MTOP)/doc
  402. MLOCSRC = $(MTOP)/localized
  403. #else
  404. MLOCSRC = $(MTOP)/exports/localized
  405. #endif
  406. #if defined(TopMotifInclude)
  407. MINCLUDESRC = TopMotifInclude
  408. #elif ImportMotif || UseInstalledMotif
  409. MINCLUDESRC = $(MTOP)/include
  410. #else
  411. MINCLUDESRC = $(MTOP)/exports/include
  412. #endif
  413. MLIBSRC = $(MTOP)/lib
  414. MCLIENTSRC = $(MTOP)/clients
  415. MDEMOSRC = $(MTOP)/demos
  416. MWIDGETSRC = $(MLIBSRC)/Xm
  417. MRESOURCESRC = $(MLIBSRC)/Mrm
  418. UILSRC = $(MCLIENTSRC)/uil
  419. #ifdef MotifProjectRoot
  420. MPROJECTROOT = MotifProjectRoot
  421. #endif
  422. UIL = _MUse(uil,$(UILSRC)/uil)
  423. DEPUIL = _MUseCat($(BINDIR),$(UILSRC),/uil)
  424. XMEXTRA_LIBS = XmExtraLibraries
  425. /* These libraries use UseInstalledMotif instead of UseInstalled. */
  426. #undef _Use
  427. #undef _UseCat
  428. #define _Use _MUse
  429. #define _UseCat _MUseCat
  430. #ifndef MBuildLibDir
  431. # define MBuildLibDir BuildLibDir
  432. #endif
  433. #if SharedLibXm
  434. SharedLibReferences(XM,Xm,$(MWIDGETSRC),SOXMREV,SharedXmRev)
  435. #else
  436. ProjectUnsharedLibReferences(XM,Xm,$(MWIDGETSRC),MBuildLibDir)
  437. #endif
  438. #if SharedLibMrm
  439. SharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),SOMRMREV,SharedMrmRev)
  440. #else
  441. ProjectUnsharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),MBuildLibDir)
  442. #endif
  443. #if SharedLibUil
  444. SharedLibReferences(UIL,Uil,$(UILSRC),SOUILREV,SharedUilRev)
  445. #else
  446. ProjectUnsharedLibReferences(UIL,Uil,$(UILSRC),MBuildLibDir)
  447. #endif
  448. #ifdef DebugGeometry
  449. ProjectUnsharedLibReferences(TESTGEO,XtGeo,$(TESTGEOSRC),MBuildLibDir)
  450. #endif
  451. #if Automation
  452. # if SharedLibACommon
  453. SharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),SOACOMMONREV,SharedACommonRev)
  454. # else
  455. ProjectUnsharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),MBuildLibDir)
  456. # endif
  457. TESTUILCOMLIB = $(TESTCOMSRC)/libACommonUil.a
  458. # if SharedLibScript
  459. SharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),SOSCRIPTREV,SharedScriptRev)
  460. # else
  461. ProjectUnsharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),MBuildLibDir)
  462. # endif
  463. # if SharedLibSynth
  464. SharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),SOSYNTHREV,SharedSynthRev)
  465. # else
  466. ProjectUnsharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),MBuildLibDir)
  467. # endif
  468. # if SharedLibCreate
  469. SharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),SOCREATEREV,SharedCreateRev)
  470. # else
  471. ProjectUnsharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),MBuildLibDir)
  472. # endif
  473. # if SharedLibVisual
  474. SharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),SOVISUALREV,SharedVisualRev)
  475. # else
  476. ProjectUnsharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),MBuildLibDir)
  477. # endif
  478. # if SharedLibUtil
  479. SharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),SOUTILREV,SharedUtilRev)
  480. # else
  481. ProjectUnsharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),MBuildLibDir)
  482. # endif
  483. #else /* Manual */
  484. # if SharedLibMCommon
  485. SharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),SOMCOMMONREV,SharedMCommonRev)
  486. # else
  487. ProjectUnsharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),MBuildLibDir)
  488. # endif
  489. TESTUILCOMLIB = $(TESTCOMSRC)/libMCommonUil.a
  490. #endif /* Automation */
  491. /* Revert to the normal library rules. */
  492. #undef _Use
  493. #undef _UseCat
  494. #define _Use _XUse
  495. #define _UseCat _XUseCat
  496. #ifdef UsePurify
  497. PURIFYLIBS = $(PURIFYHOME)/purify_stubs.a
  498. #endif
  499. LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
  500. LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
  501. LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
  502. LINTUILLIB = $(UILSRC)/llib-lUil.ln
  503. YACCFLAGS = YaccFlags
  504. UILFLAGS = UilFlags
  505. GENCATFLAGS = GencatFlags
  506. GENCAT = GencatCmd $(GENCATFLAGS)
  507. MKCATTOOL = $(TOP)/programs/localized/util/mkcatdefs
  508. RM_CMD = $(RM) FilesToClean ExtraFilesToClean TestExtraFilesToClean
  509. #if NeedDefaultDepLibs
  510. # if HasSharedLibraries || defined(UseInstalled)
  511. DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  512. # else
  513. DEPLIBS = $(LOCAL_LIBRARIES)
  514. # endif
  515. DEPLIBS1 = $(DEPLIBS)
  516. DEPLIBS2 = $(DEPLIBS)
  517. DEPLIBS3 = $(DEPLIBS)
  518. #endif /* NeedDefaultDepLibs */
  519. /* check for existence of Dtinfo Motif Documents */
  520. #if defined(LinuxArchitecture)
  521. MOTIF_DOC = $(shell if test -f $(MDOCSRC)/C/guides/bookcase.bc; then echo -D_MOTIFDOC_; fi)
  522. #elif defined(SunArchitecture)
  523. MOTIF_DOC :sh = if test -f ../imports/motif/doc/C/guides/bookcase.bc; then echo -D_MOTIFDOC_; else echo; fi
  524. #elif defined(BSDArchitecture)
  525. MOTIF_DOC != if test -f $(MDOCSRC)/C/guides/bookcase.bc; then echo -D_MOTIFDOC_; else echo; fi
  526. #else
  527. MOTIF_DOC = -D_MOTIFDOC_
  528. #endif