home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / config / Project.tmpl < prev    next >
Encoding:
Text File  |  1993-07-21  |  19.2 KB  |  681 lines

  1. XCOMM -------------------------------------------------------------------------
  2. XCOMM X Window System Build Parameters
  3. XCOMM $XConsortium: Project.tmpl,v 1.138.1.1 92/11/11 09:49:19 rws Exp $
  4.  
  5. /*****************************************************************************
  6.  *                                                                           *
  7.  *                            DEFAULT DEFINITONS                             *
  8.  *                                                                           *
  9.  * The following section contains defaults for things that can be overridden *
  10.  * in the various *.cf and site.def files.  DO NOT EDIT!                     *
  11.  *                                                                           *
  12.  ****************************************************************************/
  13.  
  14. #define ProjectX        5    /* do *not* change this line */
  15.  
  16. /*
  17.  * X-specific things
  18.  */
  19. #ifndef BuildServer
  20. #define BuildServer        YES
  21. #endif
  22. #ifndef BuildFonts
  23. #define BuildFonts        BuildServer
  24. #endif
  25. #ifndef BuildFontServer
  26. #define BuildFontServer        BuildServer
  27. #endif
  28. #ifndef BuildPex
  29. #define BuildPex        YES
  30. #endif
  31. #ifndef BuildPexClients
  32. #define BuildPexClients        BuildPex
  33. #endif
  34. #ifndef BuildPexExt
  35. #if BuildServer
  36. #define BuildPexExt        BuildPex
  37. #else
  38. #define BuildPexExt        NO
  39. #endif
  40. #endif
  41. #ifndef BuildXInputExt
  42. #define BuildXInputExt        NO
  43. #endif
  44. #ifndef BuildXInputLib
  45. #define BuildXInputLib        YES
  46. #endif
  47. #ifndef InstallLibManPages
  48. #define InstallLibManPages    YES
  49. #endif
  50. #ifndef InstallXtermSetUID
  51. #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  52. #endif
  53. #ifndef InstallXinitConfig
  54. #define InstallXinitConfig    NO    /* install sample xinit config */
  55. #endif
  56. #ifndef InstallXdmConfig
  57. #define InstallXdmConfig    NO    /* install sample xdm config */
  58. #endif
  59. #ifndef XdmServersType            /* what Xservers files to use */
  60. #if BuildServer
  61. #define XdmServersType ws
  62. #else
  63. #define XdmServersType fs
  64. #endif
  65. #endif
  66. #ifndef InstallFSConfig
  67. #define InstallFSConfig        NO    /* install sample fs config */
  68. #endif
  69. #ifndef InstallAppDefFiles
  70. #define InstallAppDefFiles    YES    /* install application defaults */
  71. #endif
  72. #ifndef DebugLibX
  73. #define DebugLibX        NO    /* debugged X library */
  74. #endif
  75. #ifndef DebugLibXArchive
  76. #define DebugLibXArchive    NO    /* archive file of above */
  77. #endif
  78. #ifndef ProfileLibX
  79. #define ProfileLibX        NO    /* profiled X library */
  80. #endif
  81. #ifndef ProfileLibXArchive
  82. #define ProfileLibXArchive    NO    /* archive file of above */
  83. #endif
  84. #ifndef DebugOldLibX
  85. #define DebugOldLibX        NO    /* debugged old X library */
  86. #endif
  87. #ifndef ProfileOldLibX
  88. #define ProfileOldLibX        NO    /* profiled old X library */
  89. #endif
  90. #ifndef DebugLibXt
  91. #define DebugLibXt        NO    /* debugged toolkit library */
  92. #endif
  93. #ifndef ProfileLibXt
  94. #define ProfileLibXt        NO    /* profiled toolkit library */
  95. #endif
  96. #ifndef DebugLibXaw
  97. #define DebugLibXaw        NO    /* debugged widget library */
  98. #endif
  99. #ifndef ProfileLibXaw
  100. #define ProfileLibXaw        NO    /* profiled widget library */
  101. #endif
  102. #ifndef DebugLibXext
  103. #define DebugLibXext        NO    /* debugged Xext library */
  104. #endif
  105. #ifndef ProfileLibXext
  106. #define ProfileLibXext        NO    /* profiled Xext library */
  107. #endif
  108. #ifndef DebugLibXmu
  109. #define DebugLibXmu        NO    /* debugged Xmu library */
  110. #endif
  111. #ifndef ProfileLibXmu
  112. #define ProfileLibXmu        NO    /* profiled Xmu library */
  113. #endif
  114. #ifndef DebugLibXau
  115. #define DebugLibXau        NO    /* debugged auth library */
  116. #endif
  117. #ifndef ProfileLibXau
  118. #define ProfileLibXau        NO    /* profiled auth library */
  119. #endif
  120. #ifndef DebugLibXdmcp
  121. #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  122. #endif
  123. #ifndef ProfileLibXdmcp
  124. #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  125. #endif
  126. #ifndef DebugLibPex
  127. #define DebugLibPex        NO    /* debugged PEX5 library */
  128. #endif
  129. #ifndef ProfileLibPex
  130. #define ProfileLibPex        NO    /* profiled PEX5 library */
  131. #endif
  132. #ifndef ManDirectoryRoot
  133. #ifdef ProjectRoot
  134. #define ManDirectoryRoot Concat(ProjectRoot,/man)
  135. #ifndef XmanLocalSearchPath
  136. #define XmanLocalSearchPath ManDirectoryRoot
  137. #endif
  138. #else
  139. #if SystemV4
  140. #define ManDirectoryRoot /usr/share/man
  141. #else
  142. #define ManDirectoryRoot /usr/man
  143. #endif
  144. #endif
  145. #endif
  146. #ifndef ManSuffix
  147. #define ManSuffix    n        /* use just one tab or cpp will die */
  148. #endif
  149. #ifndef LibManSuffix
  150. #define LibManSuffix    3        /* use just one tab or cpp will die */
  151. #endif
  152. #ifndef HasXdmAuth
  153. #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  154. #endif
  155. #ifndef BDFTOSNFFILT
  156. #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
  157. #endif
  158. #ifndef SHELLPATH
  159. #define SHELLPATH -DSHELLPATH=\"/bin/sh\"
  160. #endif
  161. #ifndef ZBDFTOSNFFILT
  162. #define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINDIR)/bdftosnf $(FONTCFLAGS)\""
  163. #endif
  164. #ifndef FontFilters
  165. #define FontFilters BDFTOSNFFILT SHELLPATH ZBDFTOSNFFILT
  166. #endif
  167. #ifndef PrimaryScreenResolution
  168. #define PrimaryScreenResolution 72        /* a common resolution */
  169. #endif
  170. #ifndef DefaultFontPath
  171. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  172. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  173. #else
  174. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  175. #endif
  176. #endif
  177. #ifndef DefaultRGBDatabase
  178. #define DefaultRGBDatabase $(LIBDIR)/rgb
  179. #endif
  180. #ifndef FontCompilerFlags
  181. #define FontCompilerFlags -t
  182. #endif
  183. #ifndef ConnectionFlags
  184. #if (SystemV || SystemV4) && !HasSockets
  185. #define ConnectionFlags -DSTREAMSCONN
  186. #else
  187. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  188. #endif
  189. #endif
  190. #ifndef FontOSDefines
  191. #define FontOSDefines /**/
  192. #endif
  193. #ifndef FontDefines
  194. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  195. #endif
  196. #ifndef ExtensionOSDefines
  197. #define ExtensionOSDefines /**/
  198. #endif
  199. #ifndef ExtensionDefines
  200. #ifndef PexDefines
  201. #if BuildPexExt
  202. #define PexDefines -DPEXEXT
  203. #else
  204. #define PexDefines /**/
  205. #endif
  206. #endif
  207. #ifndef ShmDefines
  208. #if HasShm
  209. #define ShmDefines -DMITSHM
  210. #else
  211. #define ShmDefines /**/
  212. #endif
  213. #endif
  214. #ifndef XInputDefines
  215. #if BuildXInputExt
  216. #define XInputDefines -DXINPUT
  217. #else
  218. #define XInputDefines /**/
  219. #endif
  220. #endif
  221. #ifndef BaseExtensionDefines
  222. #define BaseExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC PexDefines ShmDefines XInputDefines
  223. #endif
  224. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  225. #endif
  226. #ifndef ServerExtraDefines
  227. #define ServerExtraDefines -DXDMCP
  228. #endif
  229. #ifndef ServerOSDefines
  230. #define ServerOSDefines /**/
  231. #endif
  232. #ifndef ServerDefines
  233. #define ServerDefines StandardDefines ServerExtraDefines ExtensionDefines ServerOSDefines
  234. #endif
  235. #ifndef PexDipexDefines
  236. #define PexDipexDefines /**/
  237. #endif
  238. #ifndef PexDdpexDefines
  239. #define PexDdpexDefines /**/
  240. #endif
  241. #ifndef PexPhigsDefines
  242. #ifndef PexShmIPC
  243. #define PexShmIPC HasShm
  244. #endif
  245. #if PexShmIPC
  246. #define PexPhigsDefines /**/
  247. #else
  248. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  249. #endif
  250. #endif
  251. #ifndef PexClientDefines
  252. #define PexClientDefines -DPEX_SI_PHIGS
  253. #endif
  254. #ifndef PhigsInclude
  255. #ifdef UseInstalled
  256. #define PhigsInclude -I$(INCDIR)
  257. #else
  258. #define PhigsInclude -I$(BUILDINCDIR)
  259. #endif
  260. #endif
  261. #ifndef PexCDebugFlags
  262. #define PexCDebugFlags DebuggableCDebugFlags
  263. #endif
  264. #ifndef PexCCOptions
  265. #ifdef LibraryCCOptions
  266. #define PexCCOptions LibraryCCOptions
  267. #else
  268. #define PexCCOptions DefaultCCOptions
  269. #endif
  270. #endif
  271. #ifndef DefaultFSConfigFile
  272. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  273. #endif
  274. #ifndef BinDir
  275. #ifdef ProjectRoot
  276. #define BinDir Concat(ProjectRoot,/bin)
  277. #else
  278. #define BinDir /usr/bin/X11
  279. #endif
  280. #endif
  281. #ifndef BuildIncRoot
  282. #define BuildIncRoot $(TOP)
  283. #endif
  284. #ifndef BuildIncTop
  285. #define BuildIncTop ..        /* relative to $(TOP)/X11 */
  286. #endif
  287. #ifndef LibDir
  288. #define LibDir $(USRLIBDIR)/X11
  289. #endif
  290. #ifndef ConfigDir
  291. #define ConfigDir $(LIBDIR)/config
  292. #endif
  293. #ifndef LintlibDir
  294. #define LintlibDir $(USRLIBDIR)/lint
  295. #endif
  296. #ifndef FontDir
  297. #define FontDir $(LIBDIR)/fonts
  298. #endif
  299. #ifndef AdmDir
  300. #define AdmDir /usr/adm
  301. #endif
  302. #ifndef XinitDir
  303. #define XinitDir $(LIBDIR)/xinit
  304. #endif
  305. #ifndef XdmDir
  306. #define XdmDir $(LIBDIR)/xdm
  307. #endif
  308. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  309. #define XdmConfigurationSubdirectory config
  310. #endif
  311. #ifndef TwmDir
  312. #define TwmDir $(LIBDIR)/twm
  313. #endif
  314. #ifndef ManPath
  315. #define ManPath ManDirectoryRoot
  316. #endif
  317. #ifndef ManSourcePath
  318. #define ManSourcePath $(MANPATH)/man
  319. #endif
  320. #ifndef ManDir
  321. #define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
  322. #endif
  323. #ifndef LibmanDir
  324. #define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
  325. #endif
  326. #ifndef NlsDir
  327. #define NlsDir $(LIBDIR)/nls
  328. #endif
  329. #ifndef PexApiDir
  330. #define PexApiDir $(LIBDIR)/PEX
  331. #endif
  332. #ifndef XFileSearchPathBase
  333. #define XFileSearchPathBase $(LIBDIR)/%L/%T/%N%C%S:$(LIBDIR)/%l/%T/%N%C%S:$(LIBDIR)/%T/%N%C%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S
  334. #endif
  335. #ifndef XFileSearchPathDefault
  336. #ifdef XAppLoadDir
  337. #define XFileSearchPathDefault XAppLoadDir/%N%C%S:XAppLoadDir/%N%S:XFileSearchPathBase
  338. #else
  339. #define XFileSearchPathDefault XFileSearchPathBase
  340. #endif
  341. #endif
  342. #ifndef XAppLoadDir
  343. #define XAppLoadDir $(LIBDIR)/app-defaults
  344. #endif
  345. #ifndef XtErrorPrefix
  346. #define XtErrorPrefix /* as empty string */
  347. #endif
  348. #ifndef XtWarningPrefix
  349. #define XtWarningPrefix /* as empty string */
  350. #endif
  351. #ifndef OsNameDefines
  352. #define OsNameDefines /* as nothing */
  353. #endif
  354. #ifndef DefaultUserPath            /* for xdm */
  355. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  356. #endif
  357. #ifndef DefaultSystemPath        /* for xdm */
  358. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  359. #endif
  360. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  361. #define DefaultSystemShell BourneShell
  362. #endif
  363. #ifndef UseCCMakeDepend            /* use slow cc -E script */
  364. #define UseCCMakeDepend NO
  365. #endif
  366. #ifndef DependDir
  367. #if UseCCMakeDepend
  368. #define DependDir $(SCRIPTSRC)
  369. #else
  370. #define DependDir $(UTILSRC)/makedepend
  371. #endif
  372. #endif
  373. #ifndef ContribDir
  374. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  375. #endif
  376. #ifndef DependCmd
  377. #define DependCmd $(DEPENDSRC)/makedepend
  378. #endif
  379. #ifndef RemoveTargetProgramByMoving
  380. #define RemoveTargetProgramByMoving NO
  381. #endif
  382. #ifndef AllocateLocalDefines
  383. #define AllocateLocalDefines /**/
  384. #endif
  385.  
  386. #ifndef ForceNormalLib
  387. #define ForceNormalLib (HasSaberC | HasGcc)
  388. #endif
  389. #ifndef SharedLibX
  390. #define SharedLibX HasSharedLibraries
  391. #endif
  392. #ifndef NormalLibX
  393. #define NormalLibX (!SharedLibX | ForceNormalLib)
  394. #endif
  395. #ifndef SharedOldLibX
  396. #define SharedOldLibX HasSharedLibraries
  397. #endif
  398. #ifndef NormalOldLibX
  399. #define NormalOldLibX (!SharedOldLibX | ForceNormalLib)
  400. #endif
  401. #ifndef SharedLibXt
  402. #define SharedLibXt HasSharedLibraries
  403. #endif
  404. #ifndef NormalLibXt
  405. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  406. #endif
  407. #ifndef SharedLibXaw
  408. #define SharedLibXaw HasSharedLibraries
  409. #endif
  410. #ifndef NormalLibXaw
  411. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  412. #endif
  413. #ifndef SharedLibXmu
  414. #define SharedLibXmu HasSharedLibraries
  415. #endif
  416. #ifndef NormalLibXmu
  417. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  418. #endif
  419. #ifndef SharedLibXau
  420. #define SharedLibXau NO        /* don't need shared form */
  421. #endif
  422. #ifndef NormalLibXau
  423. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  424. #endif
  425. #ifndef SharedLibXdmcp
  426. #define SharedLibXdmcp NO    /* don't need shared form */
  427. #endif
  428. #ifndef NormalLibXdmcp
  429. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  430. #endif
  431. #ifndef SharedLibXext
  432. #define SharedLibXext HasSharedLibraries
  433. #endif
  434. #ifndef NormalLibXext
  435. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  436. #endif
  437. #ifndef SharedLibXinput
  438. #define SharedLibXinput HasSharedLibraries
  439. #endif
  440. #ifndef NormalLibXinput
  441. #define NormalLibXinput (!SharedLibXinput | ForceNormalLib)
  442. #endif
  443. #ifndef SharedLibPex
  444. #define SharedLibPex HasSharedLibraries
  445. #endif
  446. #ifndef NormalLibPex
  447. #define NormalLibPex (!SharedLibPex | ForceNormalLib)
  448. #endif
  449. #ifndef SharedLibPhigs
  450. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  451. #endif
  452. #ifndef NormalLibPhigs
  453. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  454. #endif
  455.  
  456.  
  457. #ifndef DoInstallExtensionsIntoXlib
  458. #define DoInstallExtensionsIntoXlib NO    /* merge libXext.a into libX11.a */
  459. #endif
  460.  
  461. XCOMM -------------------------------------------------------------------------
  462. XCOMM X Window System make variables; this need to be coordinated with rules
  463.  
  464. /*
  465.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  466.  * Makefile.
  467.  */
  468.           PATHSEP = /            /* for building filenames */
  469.         USRLIBDIR = UsrLibDir        /* libraries */
  470.            BINDIR = BinDir        /* programs */
  471.           INCROOT = IncRoot        /* base of where to put header files */
  472.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  473.       BUILDINCDIR = $(BUILDINCROOT)/X11
  474.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  475.            INCDIR = $(INCROOT)/X11    /* header files, must end in X11 */
  476.            ADMDIR = AdmDir        /* server log files */
  477.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  478.         CONFIGDIR = ConfigDir        /* build configuration information */
  479.        LINTLIBDIR = LintlibDir        /* lint libraries */
  480.  
  481.           FONTDIR = FontDir        /* font directories */
  482.          XINITDIR = XinitDir        /* xinit config files */
  483.            XDMDIR = XdmDir        /* xdm config files */
  484.            TWMDIR = TwmDir        /* twm config files */
  485.           MANPATH = ManPath        /* top of manual page tree */
  486.     MANSOURCEPATH = ManSourcePath    /* prefix for man page sources */
  487.         MANSUFFIX = ManSuffix        /* suffix for man pages */
  488.      LIBMANSUFFIX = LibManSuffix    /* suffix for library man pages */
  489.            MANDIR = ManDir        /* man pages for commands */
  490.         LIBMANDIR = LibmanDir        /* man pages for library routines */
  491.            NLSDIR = NlsDir        /* nls files */
  492.         PEXAPIDIR = PexApiDir        /* PEX support files */
  493.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  494.        FONTCFLAGS = FontCompilerFlags
  495.  
  496.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  497.  
  498. #ifdef UseInstalled
  499.             IMAKE = imake        /* assume BINDIR in path */
  500.            DEPEND = makedepend        /* assume BINDIR in path */
  501.               RGB = rgb            /* assume BINDIR in path */
  502. #ifdef SnfFonts
  503.             FONTC = bdftosnf        /* assume BINDIR in path */
  504. #else
  505.             FONTC = bdftopcf        /* assume BINDIR in path */
  506. #endif
  507.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  508.         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
  509. #else
  510.             IMAKE = $(IMAKESRC)/imake
  511.            DEPEND = DependCmd
  512.               RGB = $(RGBSRC)/rgb
  513. #ifdef SnfFonts
  514.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  515. #else
  516.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  517. #endif
  518.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  519.         MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
  520. #endif
  521.  
  522.         CONFIGSRC = $(TOP)/config
  523.        DOCUTILSRC = $(TOP)/doc/util
  524.         CLIENTSRC = $(TOP)/clients
  525.           DEMOSRC = $(TOP)/demos
  526.            LIBSRC = $(TOP)/lib
  527.           FONTSRC = $(TOP)/fonts
  528.        INCLUDESRC = $(TOP)/X11
  529.         SERVERSRC = $(TOP)/server
  530.           UTILSRC = $(TOP)/util
  531.         SCRIPTSRC = $(UTILSRC)/scripts
  532.        EXAMPLESRC = $(TOP)/examples
  533.        CONTRIBSRC = ContribDir
  534.            DOCSRC = $(TOP)/doc
  535.            RGBSRC = $(TOP)/rgb
  536.         DEPENDSRC = DependDir
  537.          IMAKESRC = $(CONFIGSRC)
  538.          XAUTHSRC = $(LIBSRC)/Xau
  539.           XLIBSRC = $(LIBSRC)/X
  540.            XMUSRC = $(LIBSRC)/Xmu
  541.        TOOLKITSRC = $(LIBSRC)/Xt
  542.        AWIDGETSRC = $(LIBSRC)/Xaw
  543.        OLDXLIBSRC = $(LIBSRC)/oldX
  544.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  545.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  546.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  547.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  548.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  549.          FSLIBSRC = $(FONTSRC)/lib/fs
  550.     FONTSERVERSRC = $(FONTSRC)/server
  551.      EXTENSIONSRC = $(TOP)/extensions
  552.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  553.         PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
  554.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  555.  
  556. /*
  557.  * _Use - makes a choice based on UseInstalled.
  558.  */
  559. #ifndef _Use
  560. #ifdef UseInstalled
  561. #define _Use(a,b) a
  562. #else
  563. #define _Use(a,b) b
  564. #endif
  565. #endif
  566.  
  567. /*
  568.  * _UseCat - combination of _Use and Concat.
  569.  *           exists to avoid problems with some preprocessors
  570.  */
  571. #ifndef _UseCat
  572. #if __STDC__ && !defined(UnixCpp)
  573. #ifdef UseInstalled
  574. #define _UseCat(a,b,c) a##c
  575. #else
  576. #define _UseCat(a,b,c) b##c
  577. #endif
  578. #else
  579. #ifdef UseInstalled
  580. #define _UseCat(a,b,c) a/**/c
  581. #else
  582. #define _UseCat(a,b,c) b/**/c
  583. #endif
  584. #endif
  585. #endif
  586.  
  587. #ifndef ShLibIncludeFile
  588. /* need this to make ANSI-style proprocessors happy */
  589. #define ShLibIncludeFile <noop.rules>
  590. #endif
  591.  
  592. #include ShLibIncludeFile
  593.  
  594. #if HasSharedLibraries
  595.         SOXLIBREV = SharedXlibRev
  596.           SOXTREV = SharedXtRev
  597.          SOXAWREV = SharedXawRev
  598.         SOOLDXREV = SharedOldXRev
  599.          SOXMUREV = SharedXmuRev
  600.         SOXEXTREV = SharedXextRev
  601.       SOXINPUTREV = SharedXinputRev
  602.          SOPEXREV = SharedPexRev
  603. #endif
  604.  
  605. #if !SharedLibXext
  606.   DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.a)
  607.      EXTENSIONLIB = LoaderLibPrefix _Use(-lXext, $(DEPEXTENSIONLIB))
  608. #endif
  609. #if !SharedLibX
  610.           DEPXLIB = $(DEPEXTENSIONLIB) _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.a)
  611.              XLIB = $(EXTENSIONLIB) LoaderLibPrefix _Use(-lX11,$(XLIBSRC)/libX11.a)
  612. #endif
  613.       DEPXAUTHLIB = _UseCat($(USRLIBDIR),$(XAUTHSRC),/libXau.a)
  614.          XAUTHLIB = LoaderLibPrefix _Use(-lXau,$(DEPXAUTHLIB))
  615.       DEPXDMCPLIB = _UseCat($(USRLIBDIR),$(XDMCPLIBSRC),/libXdmcp.a)
  616.          XDMCPLIB = LoaderLibPrefix _Use(-lXdmcp,$(DEPXDMCPLIB))
  617. #if !SharedLibXmu
  618.         DEPXMULIB = _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.a)
  619.            XMULIB = LoaderLibPrefix _Use(-lXmu,$(DEPXMULIB))
  620. #endif
  621. #if !SharedOldLibX
  622.        DEPOLDXLIB = _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.a)
  623.           OLDXLIB = LoaderLibPrefix _Use(-loldX,$(DEPOLDXLIB))
  624. #endif
  625. #if !SharedLibXt
  626.       DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
  627.          XTOOLLIB = LoaderLibPrefix _Use(-lXt,$(DEPXTOOLLIB))
  628. #endif
  629. #if !SharedLibXaw
  630.         DEPXAWLIB = _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.a)
  631.            XAWLIB = LoaderLibPrefix _Use(-lXaw,$(DEPXAWLIB))
  632. #endif
  633. #if !SharedLibXinput
  634.         DEPXILIB = _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.a)
  635.            XILIB = LoaderLibPrefix _Use(-lXi,$(DEPXILIB))
  636. #endif
  637. #if !SharedLibPex
  638.        DEPPEXLIB = _UseCat($(USRLIBDIR),$(PEXLIBSRC),/libPEX5.a)
  639.           PEXLIB = LoaderLibPrefix _Use(-lPEX5,$(DEPPEXLIB))
  640. #endif
  641. #if !SharedLibPhigs
  642.         DEPPHIGSLIB = _UseCat($(USRLIBDIR),$(PHIGSLIBSRC),/libphigs.a)
  643.            PHIGSLIB = LoaderLibPrefix _Use(-lphigs,$(DEPPHIGSLIB))
  644. #endif
  645.        DEPXBSDLIB = _UseCat($(USRLIBDIR),$(LIBSRC)/Berk,/libXbsd.a)
  646.           XBSDLIB = LoaderLibPrefix _Use(-lXbsd,$(DEPXBSDLIB))
  647.  
  648.  LINTEXTENSIONLIB = _UseCat($(LINTLIBDIR),$(EXTENSIONSRC)/lib,/llib-lXext.ln)
  649.          LINTXLIB = _UseCat($(LINTLIBDIR),$(XLIBSRC),/llib-lX11.ln)
  650.           LINTXMU = _UseCat($(LINTLIBDIR),$(XMUSRC),/llib-lXmu.ln)
  651.         LINTXTOOL = _UseCat($(LINTLIBDIR),$(TOOLKITSRC),/llib-lXt.ln)
  652.           LINTXAW = _UseCat($(LINTLIBDIR),$(AWIDGETSRC),/llib-lXaw.ln)
  653.            LINTXI = _UseCat($(LINTLIBDIR),$(XILIBSRC),/llib-lXi.ln)
  654.           LINTPEX = _UseCat($(LINTLIBDIR),$(PEXLIBSRC),/llib-lPEX5.ln)
  655.         LINTPHIGS = _UseCat($(LINTLIBDIR),$(PHIGSLIBSRC),/llib-lphigs.ln)
  656.  
  657. #ifndef XawClientDepLibs
  658. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  659. #endif
  660. #ifndef XawClientLibs
  661. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  662. #endif
  663.  
  664. #ifndef NeedDefaultDepLibs
  665. #define NeedDefaultDepLibs YES
  666. #endif
  667.  
  668. #if NeedDefaultDepLibs
  669. /*
  670.  * Individual libraries should override this
  671.  */
  672. #if HasSharedLibraries || UseInstalled
  673.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  674. #else
  675.           DEPLIBS = $(LOCAL_LIBRARIES)
  676. #endif
  677.          DEPLIBS1 = $(DEPLIBS)
  678.          DEPLIBS2 = $(DEPLIBS)
  679.          DEPLIBS3 = $(DEPLIBS)
  680. #endif /* NeedDefaultDepLibs */
  681.