home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / live / usr / X11R6 / lib / X11 / config / cde.tmpl < prev    next >
Text File  |  1999-09-03  |  11KB  |  440 lines

  1. XCOMM $XConsortium: cde.tmpl /main/2 1996/12/04 10:13:09 swick $
  2.  
  3. /* Include the Motif project template file. */
  4. #include <Motif.tmpl>
  5.  
  6. #ifndef _CUse
  7. # if UseInstalledCDE
  8. #  define _CUse(a,b) a
  9. # else
  10. #  define _CUse(a,b) b
  11. # endif
  12. #endif
  13.  
  14. #ifndef _CUseCat
  15. # if (defined(__STDC__) && !defined(UnixCpp)) || defined(AnsiCpp)
  16. #  if UseInstalledCDE
  17. #   define _CUseCat(a,b,c) a##c
  18. #  else
  19. #   define _CUseCat(a,b,c) b##c
  20. #  endif
  21. # else
  22. #  if UseInstalledCDE
  23. #   define _CUseCat(a,b,c) a/**/c
  24. #  else
  25. #   define _CUseCat(a,b,c) b/**/c
  26. #  endif
  27. # endif
  28. #endif
  29.  
  30. #ifndef CDETop
  31. # if ImportCDE
  32. #  define CDETop $(TOP)/imports/cde
  33. # else
  34. #  define CDETop $(TOP)
  35. # endif
  36. #endif
  37.  
  38. #define CDESharedRev        2.1
  39.  
  40. #ifndef SharedLibPam
  41. # define SharedLibPam        HasSharedLibraries
  42. #endif
  43. #ifndef NormalLibPam
  44. # define NormalLibPam        (!SharedLibPam | ForceNormalLib)
  45. #endif
  46. #ifndef DebugLibPam
  47. # define DebugLibPam        NO
  48. #endif
  49. #ifndef ProfileLibPam
  50. # define ProfileLibPam        NO
  51. #endif
  52. #ifndef SharedPamRev
  53. # define SharedPamRev        CDESharedRev
  54. #endif
  55.  
  56. #ifndef SharedLibTt
  57. # define SharedLibTt        HasSharedLibraries
  58. #endif
  59. #ifndef NormalLibTt
  60. # define NormalLibTt        (!SharedLibTt | ForceNormalLib)
  61. #endif
  62. #ifndef DebugLibTt
  63. # define DebugLibTt        NO
  64. #endif
  65. #ifndef ProfileLibTt
  66. # define ProfileLibTt        NO
  67. #endif
  68. #ifndef SharedTtRev
  69. # define SharedTtRev        CDESharedRev
  70. #endif
  71.  
  72. #ifndef SharedLibDtSvc
  73. # define SharedLibDtSvc        HasSharedLibraries
  74. #endif
  75. #ifndef NormalLibDtSvc
  76. # define NormalLibDtSvc        (!SharedLibDtSvc | ForceNormalLib)
  77. #endif
  78. #ifndef DebugLibDtSvc
  79. # define DebugLibDtSvc        NO
  80. #endif
  81. #ifndef ProfileLibDtSvc
  82. # define ProfileLibDtSvc    NO
  83. #endif
  84. #ifndef SharedDtSvcRev
  85. # define SharedDtSvcRev        CDESharedRev
  86. #endif
  87.  
  88. #ifndef SharedLibDtSearch
  89. # define SharedLibDtSearch    HasSharedLibraries
  90. #endif
  91. #ifndef NormalLibDtSearch
  92. # define NormalLibDtSearch    (!SharedLibDtSearch | ForceNormalLib)
  93. #endif
  94. #ifndef DebugLibDtSearch
  95. # define DebugLibDtSearch    NO
  96. #endif
  97. #ifndef ProfileLibDtSearch
  98. # define ProfileLibDtSearch    NO
  99. #endif
  100. #ifndef SharedDtSearchRev
  101. # define SharedDtSearchRev    CDESharedRev
  102. #endif
  103.  
  104. #ifndef SharedLibDtWidget
  105. # define SharedLibDtWidget    HasSharedLibraries
  106. #endif
  107. #ifndef NormalLibDtWidget
  108. # define NormalLibDtWidget    (!SharedLibDtWidget | ForceNormalLib)
  109. #endif
  110. #ifndef DebugLibDtWidget
  111. # define DebugLibDtWidget    NO
  112. #endif
  113. #ifndef ProfileLibDtWidget
  114. # define ProfileLibDtWidget    NO
  115. #endif
  116. #ifndef SharedDtWidgetRev
  117. # define SharedDtWidgetRev    CDESharedRev
  118. #endif
  119.  
  120. #ifndef SharedLibDtHelp
  121. # define SharedLibDtHelp    HasSharedLibraries
  122. #endif
  123. #ifndef NormalLibDtHelp
  124. # define NormalLibDtHelp    (!SharedLibDtHelp | ForceNormalLib)
  125. #endif
  126. #ifndef DebugLibDtHelp
  127. # define DebugLibDtHelp        NO
  128. #endif
  129. #ifndef ProfileLibDtHelp
  130. # define ProfileLibDtHelp    NO
  131. #endif
  132. #ifndef SharedDtHelpRev
  133. # define SharedDtHelpRev    CDESharedRev
  134. #endif
  135.  
  136. #ifndef SharedLibDtPrint
  137. # define SharedLibDtPrint    HasSharedLibraries
  138. #endif
  139. #ifndef NormalLibDtPrint
  140. # define NormalLibDtPrint    (!SharedLibDtPrint | ForceNormalLib)
  141. #endif
  142. #ifndef DebugLibDtPrint
  143. # define DebugLibDtPrint    NO
  144. #endif
  145. #ifndef ProfileLibDtPrint
  146. # define ProfileLibDtPrint    NO
  147. #endif
  148. #ifndef SharedDtPrintRev
  149. # define SharedDtPrintRev    CDESharedRev
  150. #endif
  151.  
  152. #ifndef SharedLibDtTerm
  153. # define SharedLibDtTerm    HasSharedLibraries
  154. #endif
  155. #ifndef NormalLibDtTerm
  156. # define NormalLibDtTerm    (!SharedLibDtTerm | ForceNormalLib)
  157. #endif
  158. #ifndef DebugLibDtTerm
  159. # define DebugLibDtTerm        NO
  160. #endif
  161. #ifndef ProfileLibDtTerm
  162. # define ProfileLibDtTerm    NO
  163. #endif
  164. #ifndef SharedDtTermRev
  165. # define SharedDtTermRev    CDESharedRev
  166. #endif
  167.  
  168. #ifndef SharedLibDtMrm
  169. # define SharedLibDtMrm        HasSharedLibraries
  170. #endif
  171. #ifndef NormalLibDtMrm
  172. # define NormalLibDtMrm        (!SharedLibDtMrm | ForceNormalLib)
  173. #endif
  174. #ifndef DebugLibDtMrm
  175. # define DebugLibDtMrm        NO
  176. #endif
  177. #ifndef ProfileLibDtMrm
  178. # define ProfileLibDtMrm    NO
  179. #endif
  180. #ifndef SharedDtMrmRev
  181. # define SharedDtMrmRev        CDESharedRev
  182. #endif
  183.  
  184. #ifndef SharedLibDtMmdb
  185. # define SharedLibDtMmdb    HasSharedLibraries
  186. #endif
  187. #ifndef NormalLibDtMmdb
  188. # define NormalLibDtMmdb    (!SharedLibDtMmdb | ForceNormalLib)
  189. #endif
  190. #ifndef DebugLibDtMmdb
  191. # define DebugLibDtMmdb        NO
  192. #endif
  193. #ifndef ProfileLibDtMmdb
  194. # define ProfileLibDtMmdb    NO
  195. #endif
  196. #ifndef SharedDtMmdbRev
  197. # define SharedDtMmdbRev    CDESharedRev
  198. #endif
  199.  
  200. #ifndef SharedLibCsa
  201. # define SharedLibCsa        HasSharedLibraries
  202. #endif
  203. #ifndef NormalLibCsa
  204. # define NormalLibCsa        (!SharedLibCsa | ForceNormalLib)
  205. #endif
  206. #ifndef DebugLibCsa
  207. # define DebugLibCsa        NO
  208. #endif
  209. #ifndef ProfileLibCsa
  210. # define ProfileLibCsa        NO
  211. #endif
  212. #ifndef SharedCsaRev
  213. # define SharedCsaRev        CDESharedRev
  214. #endif
  215.  
  216. #ifndef DtLocalesToBuild
  217. #define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1 ja_JP.dt-eucJP
  218. #endif
  219.  
  220. #ifndef DtCodeGen
  221. # if UseInstalledCDE
  222. #  define DtCodeGen dtcodegen
  223. # else
  224. #  define DtCodeGen $(CLIENTENVSETUP) $(CDESRC)/dtappbuilder/src/abmf/dtcodegen
  225. # endif
  226. #endif
  227.  
  228. #ifndef BuildCDEDoc
  229. # define BuildCDEDoc YES
  230. #endif
  231.  
  232. #ifndef UseNSGMLS
  233. # ifdef SunArchitecture
  234. #  define UseNSGMLS NO
  235. # else
  236. #  define UseNSGMLS YES
  237. # endif
  238. #endif
  239. #ifndef SGMLParser
  240. # if UseNSGMLS
  241. #  define SGMLDir $(NSGMLSSRC)
  242. #  define SGMLParser $(NSGMLSSRC)/nsgmls
  243. # else
  244. #  define SGMLDir $(SGMLSSRC)
  245. #  define SGMLParser $(SGMLSSRC)/sgmls
  246. # endif
  247. #endif
  248.  
  249. #ifndef DtInfoGen
  250. # if UseInstalledCDE
  251. #  define DtInfoGen dtinfogen
  252. # else
  253. #  define DtInfoGen $(CLIENTENVSETUP) $(DTLCXENVSETUP) DTINFO_HOME=$(DTINFOGENSRC) DTINFO_BIN=$(DTINFOGENSRC)/install:$(DTINFOGENSRC)/mmdb/StyleSheet:$(DTINFOGENSRC)/mmdb/src:SGMLDir:$(CDESRC)/dtsr $(DTINFOGENSRC)/infolib/etc/dtinfogen
  254. # endif
  255. #endif
  256. #ifndef DtInfoGenTmpDir
  257. #  define DtInfoGenTmpDir $(TOP)/doc/tmp
  258. #endif
  259.  
  260. #ifndef DtDocBook
  261. # if UseInstalledCDE
  262. #  define DtDocBook dtdocbook
  263. # else
  264. #  define DtDocBook $(CLIENTENVSETUP) $(DTLCXENVSETUP) $(CDESRC)/dtdocbook/doc2sdl/dtdocbook
  265. # endif
  266. #endif
  267. #ifndef DtDocBookOptions
  268. # if UseInstalledCDE
  269. #  define DtDocBookOptions
  270. # else
  271. #  define DtDocBookOptions -t $(CDESRC)/dtdocbook/doc2sdl -H $(HELPTAGPASS2DEF) -I $(CDESRC)/dtdocbook/instant/instant -L $(CDESRC)/dtdocbook/xlate_locale/xlate_locale -S SGMLParser
  272. # endif
  273. #endif
  274.  
  275.            CDETOP = CDETop
  276. #if ImportCDE || UseInstalledCDE
  277.     CDEINCLUDESRC = $(CDETOP)/include
  278. #else
  279.     CDEINCLUDESRC = $(CDETOP)/exports/include
  280. #endif
  281.  TOP_CDE_INCLUDES = -I$(CDEINCLUDESRC)
  282.         CDELIBSRC = $(CDETOP)/lib
  283.            PAMSRC = $(CDELIBSRC)/pam/libpam
  284.             TTSRC = $(CDELIBSRC)/tt
  285.          DTSVCSRC = $(CDELIBSRC)/DtSvc
  286.       DTSEARCHSRC = $(CDELIBSRC)/DtSearch
  287.       DTWIDGETSRC = $(CDELIBSRC)/DtWidget
  288.         DTHELPSRC = $(CDELIBSRC)/DtHelp
  289.        DTPRINTSRC = $(CDELIBSRC)/DtPrint
  290.         DTTERMSRC = $(CDELIBSRC)/DtTerm
  291.          DTMRMSRC = $(CDELIBSRC)/DtMrm
  292.         DTMMDBSRC = $(CDELIBSRC)/DtMmdb
  293.            CSASRC = $(CDELIBSRC)/csa
  294.            CDESRC = $(CDETOP)/programs
  295. #ifdef BuildLibPathVar
  296.       DTENVLIBDIR = CDEBuildLibPath
  297. #endif
  298. #ifdef CDEProjectRoot
  299.    CDEPROJECTROOT = CDEProjectRoot
  300. #endif
  301.  CDE_INSTALLATION_TOP = CdeInstallationTop
  302. CDE_CONFIGURATION_TOP = CdeConfigurationTop
  303.      CDE_LOGFILES_TOP = CdeLogFilesTop
  304.          CDE_USER_TOP = CdeUserTop
  305.  
  306.         DTCODEGEN = DtCodeGen
  307.     HELPPARSERSRC = $(CDESRC)/dthelp/parser
  308.           HELPTAG = _CUseCat($(BINDIR),$(HELPPARSERSRC)/helptag,/dthelptag)
  309.   HELPTAGPASS1DEF = _CUseCat($(BINDIR),$(HELPPARSERSRC)/pass1/helptag,/dthelp_htag1)
  310.   HELPTAGPASS2DEF = _CUseCat($(BINDIR),$(HELPPARSERSRC)/pass2/htag2,/dthelp_htag2)
  311.         DTDOCBOOK = DtDocBook
  312.  DTDOCBOOKOPTIONS = DtDocBookOptions
  313. #if UseNSGMLS
  314.         NSGMLSSRC = $(CDESRC)/nsgmls
  315. #else
  316.          SGMLSSRC = $(CDESRC)/dtdocbook/sgmls
  317. #endif
  318.      DTINFOGENSRC = $(CDESRC)/dtinfo/dtinfogen
  319.         DTINFOGEN = DtInfoGen
  320.   DTINFOGENTMPDIR = DtInfoGenTmpDir
  321. #ifdef DtInfoGenOptions
  322.  DTINFOGENOPTIONS = DtInfoGenOptions
  323. #endif
  324. #ifdef ArchitectureDefines
  325.  ARCHITECTURE_DEFINES = ArchitectureDefines
  326. #endif
  327. #if !UseInstalledCDE
  328. DTLCXENVSETUP = DTLCXSEARCHPATH=$(DTHELPSRC)
  329. #endif
  330.  
  331. #ifndef TtClientLibs
  332. # define TtClientLibs $(TTLIB) $(XLIB)
  333. #endif
  334. #ifndef TtClientDepLibs
  335. # define TtClientDepLibs $(DEPTTLIB) $(DEPXLIB)
  336. #endif
  337.  
  338. /* These libraries use UseInstalledCDE instead of UseInstalled. */
  339. #undef _Use
  340. #undef _UseCat
  341. #define _Use    _CUse
  342. #define _UseCat _CUseCat
  343.  
  344. #ifndef CDEBuildLibDir
  345. # define CDEBuildLibDir    BuildLibDir
  346. #endif
  347.  
  348. #if SharedLibPam
  349. SharedLibReferences(PAM,pam,$(PAMSRC),SOPAMREV,SharedPamRev)
  350. #else
  351. ProjectUnsharedLibReferences(PAM,pam,$(PAMSRC),CDEBuildLibDir)
  352. #endif
  353.  
  354. #if SharedLibTt
  355. SharedLibReferences(TT,tt,$(TTSRC)/lib,SOTTREV,SharedTtRev)
  356. #else
  357. ProjectUnsharedLibReferences(TT,tt,$(TTSRC)/lib,CDEBuildLibDir)
  358. #endif
  359.  
  360. #if SharedLibDtSvc
  361. SharedLibReferences(DTSVC,DtSvc,$(DTSVCSRC),SODTSVCREV,SharedDtSvcRev)
  362. #else
  363. ProjectUnsharedLibReferences(DTSVC,DtSvc,$(DTSVCSRC),CDEBuildLibDir)
  364. #endif
  365.  
  366. #if SharedLibDtSearch
  367. SharedLibReferences(DTSEARCH,DtSearch,$(DTSEARCHSRC),SODTSEARCHREV,SharedDtSearchRev)
  368. #else
  369. ProjectUnsharedLibReferences(DTSEARCH,DtSearch,$(DTSEARCHSRC),CDEBuildLibDir)
  370. #endif
  371.  
  372. #if SharedLibDtWidget
  373. SharedLibReferences(DTWIDGET,DtWidget,$(DTWIDGETSRC),SODTWIDGETREV,SharedDtWidgetRev)
  374. #else
  375. ProjectUnsharedLibReferences(DTWIDGET,DtWidget,$(DTWIDGETSRC),CDEBuildLibDir)
  376. #endif
  377.  
  378. #if SharedLibDtHelp
  379. SharedLibReferences(DTHELP,DtHelp,$(DTHELPSRC),SODTHELPREV,SharedDtHelpRev)
  380. #else
  381. ProjectUnsharedLibReferences(DTHELP,DtHelp,$(DTHELPSRC),CDEBuildLibDir)
  382. #endif
  383.  
  384. #if SharedLibDtPrint
  385. SharedLibReferences(DTPRINT,DtPrint,$(DTPRINTSRC),SODTPRINTREV,SharedDtPrintRev)
  386. #else
  387. ProjectUnsharedLibReferences(DTPRINT,DtPrint,$(DTPRINTSRC),CDEBuildLibDir)
  388. #endif
  389.  
  390. #if SharedLibDtTerm
  391. SharedLibReferences(DTTERM,DtTerm,$(DTTERMSRC),SODTTERMREV,SharedDtTermRev)
  392. #else
  393. ProjectUnsharedLibReferences(DTTERM,DtTerm,$(DTTERMSRC),CDEBuildLibDir)
  394. #endif
  395.  
  396. #if SharedLibDtMrm
  397. SharedLibReferences(DTMRM,DtMrm,$(DTMRMSRC),SODTMRMREV,SharedDtMrmRev)
  398. #else
  399. ProjectUnsharedLibReferences(DTMRM,DtMrm,$(DTMRMSRC),CDEBuildLibDir)
  400. #endif
  401.  
  402. #if SharedLibDtMmdb
  403. SharedLibReferences(DTMMDB,DtMmdb,$(DTMMDBSRC),SODTMMDBREV,SharedDtMmdbRev)
  404. #else
  405. ProjectUnsharedLibReferences(DTMMDB,DtMmdb,$(DTMMDBSRC),CDEBuildLibDir)
  406. #endif
  407.  
  408. #if SharedLibDtCm
  409. SharedLibReferences(DTCM,DtCm,$(DTCMSRC),SODTCMREV,SharedDtCmRev)
  410. #else
  411. ProjectUnsharedLibReferences(DTCM,DtCm,$(DTCMSRC),CDEBuildLibDir)
  412. #endif
  413.  
  414. #if SharedLibCsa
  415. SharedLibReferences(CSA,csa,$(CSASRC),SOCSAREV,SharedCsaRev)
  416. #else
  417. ProjectUnsharedLibReferences(CSA,csa,$(CSASRC),CDEBuildLibDir)
  418. #endif
  419.  
  420.  
  421. /* Revert to the normal library rules. */
  422. #undef _Use
  423. #undef _UseCat
  424. #define _Use    _XUse
  425. #define _UseCat _XUseCat
  426.  
  427.  
  428. #ifndef DtClientLibs
  429. # define DtClientLibs $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB)
  430. #endif
  431. #ifndef DepDtClientLibs
  432. # define DepDtClientLibs $(DEPDTPRINTLIB) $(DEPDTHELPLIB) $(DEPDTWIDGETLIB) $(DEPDTSVCLIB) $(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
  433. #endif
  434. #ifndef DtClientSysLibs
  435. # define DtClientSysLibs $(DYNLIBSYSLIB) $(ICONVSYSLIB) $(REGEXSYSLIB) -lm
  436. #endif
  437. #ifndef DtClientExtraLibs
  438. # define DtClientExtraLibs /**/
  439. #endif
  440.