home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / lib / x11 / config / project.tmpl < prev    next >
Encoding:
Text File  |  1996-10-17  |  29.0 KB  |  1,135 lines

  1. XCOMM ----------------------------------------------------------------------
  2. XCOMM X Window System Build Parameters and Rules
  3. XCOMM $XConsortium: Project.tmpl /main/r61_main/6 1996/01/15 12:26:59 gildea $
  4.  
  5. /***************************************************************************
  6.  *                                                                         *
  7.  *                            DEFAULT DEFINITONS                           *
  8.  *                                                                         *
  9.  * The following section contains defaults for things that can             *
  10.  * overridden in the various *.cf and site.def files.  DO NOT EDIT!        *
  11.  *                                                                         *
  12.  **************************************************************************/
  13.  
  14. #define ProjectX        6    /* do *not* change this line */
  15.  
  16. /* The following project-specific rules are defined at the end of this file:
  17.  *
  18.  * InstallAppDefaults        (class)
  19.  * InstallAppDefaultsLong    (file,class)
  20.  * MakeFontsDir            (deplist)
  21.  * MakeFonts            ()
  22.  * InstallFontObjs        (objs,dest)
  23.  * InstallFonts            (dest)
  24.  * InstallFontAliases        (dest)
  25.  * FontSrc            (basename)
  26.  * FontBaseObj            (basename)
  27.  * InstallFontScale        (dest)
  28.  * UncompressedFontTarget    (basename)
  29.  * CompressedFontTarget        (basename)
  30.  * FontTarget            (basename)
  31.  * FontObj            (basename)
  32.  */
  33.  
  34. /*
  35.  * X-specific things
  36.  */
  37. #ifndef HasXServer
  38. #define HasXServer        YES
  39. #endif
  40. #ifndef BuildServer
  41. #define BuildServer        HasXServer
  42. #endif
  43. #ifndef XServerThreaded
  44. #define XServerThreaded        NO    /* turn on threads in merged server */
  45. #endif
  46. #ifndef BuildFontServer
  47. #define BuildFontServer        YES
  48. #endif
  49. #ifndef BuildFonts
  50. #define BuildFonts        (BuildServer | BuildFontServer)
  51. #endif
  52. #ifndef BuildPhigs
  53. #define BuildPhigs        NO
  54. #endif
  55. #ifndef BuildPexExt
  56. #define BuildPexExt        YES
  57. #endif
  58. #ifndef BuildXInputExt
  59. #define BuildXInputExt        NO
  60. #endif
  61. #ifndef BuildDIS
  62. #define BuildDIS        NO
  63. #endif
  64. #ifndef BuildXIE
  65. #define BuildXIE        YES
  66. #endif
  67. #ifndef BuildXKB
  68. #define BuildXKB        YES
  69. #endif
  70. #ifndef BuildXKBlib
  71. #define BuildXKBlib        YES
  72. #endif
  73.     /*
  74.      * WARNING: Setting UseXKBInClients to YES cause incompatibilities
  75.      *          between many clients (such as xterm) and pre-XKB shared
  76.      *          libraries.
  77.      */
  78. #ifndef UseXKBInClients
  79. #define    UseXKBInClients        NO    /* use XKB in "normal" clients? */
  80. #endif
  81. #ifndef BuildDBE
  82. #define BuildDBE        YES
  83. #endif
  84. #ifndef BuildMultibuffer
  85. #define BuildMultibuffer    NO
  86. #endif
  87. #ifndef BuildRECORD
  88. #define BuildRECORD        YES
  89. #endif
  90. #ifndef InstallLibManPages
  91. #define InstallLibManPages    YES
  92. #endif
  93. #ifndef InstallXtermSetUID
  94. #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  95. #endif
  96. #ifndef InstallXinitConfig
  97. #define InstallXinitConfig    NO    /* install sample xinit config */
  98. #endif
  99. #ifndef InstallXdmConfig
  100. #define InstallXdmConfig    NO    /* install sample xdm config */
  101. #endif
  102. #ifndef XdmServersType            /* what Xservers files to use */
  103. #if BuildServer
  104. #define XdmServersType ws
  105. #else
  106. #define XdmServersType fs
  107. #endif
  108. #endif
  109. #ifndef InstallFSConfig
  110. #define InstallFSConfig        NO    /* install sample fs config */
  111. #endif
  112. #ifndef InstallAppDefFiles
  113. #define InstallAppDefFiles    YES    /* install application defaults */
  114. #endif
  115. #ifndef ThreadedX
  116. #if HasPosixThreads || HasCThreads
  117. #define ThreadedX        YES    /* multi-threaded libraries */
  118. #else
  119. #define ThreadedX        NO
  120. #endif
  121. #endif
  122. #ifndef ThreadedProject
  123. #define ThreadedProject ThreadedX
  124. #endif
  125. #ifndef HasWChar32
  126. #define HasWChar32        SystemV4
  127. #endif
  128. #ifndef HasXdmAuth
  129. #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  130. #endif
  131. #ifndef PrimaryScreenResolution
  132. #define PrimaryScreenResolution 72        /* a common resolution */
  133. #endif
  134. #ifndef DefaultFontPath
  135. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  136. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  137. #else
  138. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  139. #endif
  140. #endif
  141. #ifndef DefaultRGBDatabase
  142. #define DefaultRGBDatabase $(LIBDIR)/rgb
  143. #endif
  144. #ifndef UseRgbTxt
  145. #define UseRgbTxt        NO    /* default is to compile with dbm */
  146. #endif
  147. #ifndef FontCompilerFlags
  148. #define FontCompilerFlags -t
  149. #endif
  150. #ifndef ConnectionFlags
  151. #if HasStreams
  152. #define ConnectionFlags -DSTREAMSCONN
  153. #else
  154. #if HasDECnet
  155. #define ConnectionFlags -DTCPCONN -DUNIXCONN -DDNETCONN
  156. #else
  157. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  158. #endif
  159. #endif
  160. #endif
  161. #ifndef ProjectThreadsDefines
  162. #define ProjectThreadsDefines -DXTHREADS
  163. #endif
  164. #ifndef FontOSDefines
  165. #define FontOSDefines /**/
  166. #endif
  167. #ifndef FontDefines
  168. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  169. #endif
  170. #ifndef XawI18nDefines
  171. #if SystemV4
  172. #define XawI18nDefines -DHAS_WCTYPE_H
  173. #else
  174. #define XawI18nDefines -DUSE_XWCHAR_STRING
  175. #endif
  176. #endif
  177. #ifndef ExtensionOSDefines
  178. #define ExtensionOSDefines /**/
  179. #endif
  180. #ifndef ExtensionDefines
  181. #ifndef PexDefines
  182. #if BuildPexExt
  183. #define PexDefines -DPEXEXT
  184. #else
  185. #define PexDefines /**/
  186. #endif
  187. #endif
  188. #ifndef ShmDefines
  189. #if HasShm
  190. #define ShmDefines -DMITSHM
  191. #else
  192. #define ShmDefines /**/
  193. #endif
  194. #endif
  195. #ifndef XInputDefines
  196. #if BuildXInputExt
  197. #define XInputDefines -DXINPUT
  198. #else
  199. #define XInputDefines /**/
  200. #endif
  201. #endif
  202. #ifndef XieDefines
  203. #if BuildXIE
  204. #define XieDefines -DXIE
  205. #else
  206. #define XieDefines /**/
  207. #endif
  208. #endif
  209. #ifndef XkbDefines
  210. #if BuildXKB
  211. #define XkbDefines -DXKB
  212. #else
  213. #define XkbDefines /**/
  214. #endif
  215. #endif
  216. #ifndef XkbClientDefines
  217. #if UseXKBInClients
  218. #define XkbClientDefines -DXKB
  219. #else
  220. #define XkbClientDefines /**/
  221. #endif
  222. #endif
  223. #ifndef XkbServerDefines
  224. #define XkbServerDefines /**/
  225. #endif
  226. #ifndef BigReqDefines
  227. #define BigReqDefines -DBIGREQS
  228. #endif
  229.  
  230. #ifndef DBEDefines
  231. #if BuildDBE
  232. #define DBEDefines -DDBE
  233. #else
  234. #define DBEDefines /**/
  235. #endif
  236. #endif
  237.  
  238. #ifndef PervasiveDBEDefines
  239. #define PervasiveDBEDefines /* -DNEED_DBE_BUF_BITS -DNEED_DBE_BUF_VALIDATE */
  240. #endif
  241.  
  242. #ifndef MultibufferDefines
  243. #if BuildMultibuffer
  244. #define MultibufferDefines -DMULTIBUFFER
  245. #else
  246. #define MultibufferDefines /**/
  247. #endif
  248. #endif
  249.  
  250. #ifndef VidTuneExtensionDefines
  251. #define VidTuneExtensionDefines /**/
  252. #endif
  253.  
  254. #ifndef RECORDDefines
  255. #if BuildRECORD
  256. #define RECORDDefines -DXRECORD
  257. #else
  258. #define RECORDDefines /**/
  259. #endif
  260. #endif
  261.  
  262. #ifndef SitePervasiveExtensionDefines
  263. #define SitePervasiveExtensionDefines /**/
  264. #endif
  265. #ifndef PervasiveExtensionDefines
  266. #define PervasiveExtensionDefines -DSHAPE XInputDefines XkbDefines PervasiveDBEDefines SitePervasiveExtensionDefines
  267. #endif
  268. #ifndef SiteExtensionDefines
  269. #define SiteExtensionDefines /**/
  270. #endif
  271. #ifndef BaseExtensionDefines
  272. #define BaseExtensionDefines MultibufferDefines -DMITMISC -DXTEST -DXSYNC -DXCMISC RECORDDefines PexDefines ShmDefines XieDefines BigReqDefines VidTuneExtensionDefines DBEDefines SiteExtensionDefines
  273. #endif
  274. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  275. #endif
  276. #ifndef ServerXdmcpDefines
  277. #define ServerXdmcpDefines -DXDMCP
  278. #endif
  279. #ifndef ServerOSDefines
  280. #define ServerOSDefines /**/
  281. #endif
  282. #if HasKrb5
  283. #ifndef Krb5Defines
  284. #define Krb5Defines -DK5AUTH
  285. #endif
  286. #else
  287. #define Krb5Defines /**/
  288. #endif
  289. #ifndef ServerExtraDefines
  290. #define ServerExtraDefines /* -DPIXPRIV */
  291. #endif
  292. #ifndef ServerDefines
  293. #define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines
  294. #endif
  295. #ifndef PexDipexDefines
  296. #define PexDipexDefines /**/
  297. #endif
  298. #ifndef PexDdpexDefines
  299. #define PexDdpexDefines /**/
  300. #endif
  301. #ifndef PexPhigsDefines
  302. #ifndef PexShmIPC
  303. #define PexShmIPC HasShm
  304. #endif
  305. #if PexShmIPC
  306. #define PexPhigsDefines /**/
  307. #else
  308. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  309. #endif
  310. #endif
  311. #ifndef PexClientDefines
  312. #define PexClientDefines -DPEX_SI_PHIGS
  313. #endif
  314. #ifndef PhigsInclude
  315. #ifdef UseInstalled
  316. #define PhigsInclude -I$(INCDIR)
  317. #else
  318. #define PhigsInclude -I$(BUILDINCDIR)
  319. #endif
  320. #endif
  321. #ifndef PexCDebugFlags
  322. #define PexCDebugFlags DebuggableCDebugFlags
  323. #endif
  324. #ifndef PexCCOptions
  325. #ifdef LibraryCCOptions
  326. #define PexCCOptions LibraryCCOptions
  327. #else
  328. #define PexCCOptions DefaultCCOptions
  329. #endif
  330. #endif
  331. #ifndef DefaultFSConfigFile
  332. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  333. #endif
  334. #ifndef BinDir
  335. #ifdef ProjectRoot
  336. #define BinDir Concat(ProjectRoot,/bin)
  337. #else
  338. #define BinDir /usr/bin/X11
  339. #endif
  340. #endif
  341. #ifndef BuildIncRoot
  342. #define BuildIncRoot $(TOP)
  343. #endif
  344. #ifndef BuildIncDir
  345. #define BuildIncDir $(BUILDINCROOT)/X11
  346. #endif
  347. #ifndef BuildIncTop
  348. #define BuildIncTop ..        /* relative to BuildIncDir */
  349. #endif
  350. #ifndef BuildLibDir
  351. #define BuildLibDir $(TOP)/usrlib
  352. #endif
  353. #ifndef BuildLibTop
  354. #define BuildLibTop ..        /* relative to BuildLibDir */
  355. #endif
  356. #ifndef LibDir
  357. #define LibDir $(USRLIBDIR)/X11
  358. #endif
  359. #ifndef ConfigDir
  360. #define ConfigDir $(LIBDIR)/config
  361. #endif
  362. #ifndef FontDir
  363. #define FontDir $(LIBDIR)/fonts
  364. #endif
  365. #ifndef AdmDir
  366. #define AdmDir /usr/adm
  367. #endif
  368. #ifndef XinitDir
  369. #define XinitDir $(LIBDIR)/xinit
  370. #endif
  371. #ifndef XdmDir
  372. #define XdmDir $(LIBDIR)/xdm
  373. #endif
  374. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  375. #define XdmConfigurationSubdirectory config
  376. #endif
  377. #ifndef TwmDir
  378. #define TwmDir $(LIBDIR)/twm
  379. #endif
  380. #ifndef XsmDir
  381. #define XsmDir $(LIBDIR)/xsm
  382. #endif
  383. #ifndef NlsDir
  384. #define NlsDir $(LIBDIR)/nls
  385. #endif
  386. #ifndef XLocaleDir
  387. #define XLocaleDir $(LIBDIR)/locale
  388. #endif
  389. #ifndef PexApiDir
  390. #define PexApiDir $(LIBDIR)/PEX
  391. #endif
  392. #ifndef XFileSearchPathBase
  393. /* avoid SCCS keyword */
  394. #define XFileSearchPathBase Concat4($(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)
  395. #endif
  396. #ifndef XFileSearchPathDefault
  397. #ifdef XAppLoadDir
  398. /* avoid SCCS keyword */
  399. #define XFileSearchPathDefault XAppLoadDir/Concat(%N%C,%S):XAppLoadDir/%N%S:XFileSearchPathBase
  400. #else
  401. #define XFileSearchPathDefault XFileSearchPathBase
  402. #endif
  403. #endif
  404. #ifndef XAppLoadDir
  405. #define XAppLoadDir $(LIBDIR)/app-defaults
  406. #endif
  407. #ifndef XtErrorPrefix
  408. #define XtErrorPrefix /* as empty string */
  409. #endif
  410. #ifndef XtExtraDefines
  411. #define XtExtraDefines /* as empty string */
  412. #endif
  413. #ifndef XtWarningPrefix
  414. #define XtWarningPrefix /* as empty string */
  415. #endif
  416. #ifndef OsNameDefines
  417. #define OsNameDefines /* as nothing */
  418. #endif
  419. #ifndef DefaultUserPath            /* for xdm */
  420. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  421. #endif
  422. #ifndef DefaultSystemPath        /* for xdm */
  423. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  424. #endif
  425. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  426. #define DefaultSystemShell BourneShell
  427. #endif
  428. #ifndef ContribDir
  429. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  430. #endif
  431. #ifndef UnsupportedDir
  432. #define UnsupportedDir $(TOP)/unsupported
  433. #endif
  434. #ifndef AllocateLocalDefines
  435. #define AllocateLocalDefines /**/
  436. #endif
  437.  
  438. #ifndef ForceNormalLib
  439. #define ForceNormalLib (HasGcc && !HasGcc2)
  440. #endif
  441.  
  442. XCOMM -----------------------------------------------------------------------
  443. XCOMM X Window System make variables; these need to be coordinated with rules
  444.  
  445. /*
  446.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  447.  * Makefile.
  448.  */
  449.            BINDIR = BinDir        /* programs */
  450.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  451.       BUILDINCDIR = BuildIncDir        /* built headers */
  452.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  453.       BUILDLIBDIR = BuildLibDir        /* built libraries */
  454.       BUILDLIBTOP = BuildLibTop        /* top relative to BUILDLIBDIR */
  455.            INCDIR = $(INCROOT)/X11    /* header files, must end in X11 */
  456.            ADMDIR = AdmDir        /* server log files */
  457.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  458.  
  459.           FONTDIR = FontDir        /* font directories */
  460.          XINITDIR = XinitDir        /* xinit config files */
  461.            XDMDIR = XdmDir        /* xdm config files */
  462.            TWMDIR = TwmDir        /* twm config files */
  463.            XSMDIR = XsmDir        /* xsm config files */
  464.            NLSDIR = NlsDir        /* nls files */
  465.        XLOCALEDIR = XLocaleDir        /* locale files */
  466.         PEXAPIDIR = PexApiDir        /* PEX support files */
  467.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  468.        FONTCFLAGS = FontCompilerFlags
  469.  
  470.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  471.  
  472. #ifdef UseInstalled
  473.               RGB = rgb            /* assume BINDIR in path */
  474.             FONTC = bdftopcf        /* assume BINDIR in path */
  475.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  476. #else
  477.               RGB = $(RGBSRC)/rgb
  478.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  479.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  480. #endif
  481.  
  482.        DOCUTILSRC = $(TOP)/doc/util
  483.        XDOCMACROS = $(DOCUTILSRC)/macros.t
  484.        XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
  485.        PROGRAMSRC = $(TOP)/programs
  486.            LIBSRC = $(TOP)/lib
  487.           FONTSRC = $(TOP)/fonts
  488.        INCLUDESRC = $(TOP)/X11
  489.         SERVERSRC = $(TOP)/programs/Xserver
  490.        CONTRIBSRC = ContribDir
  491.    UNSUPPORTEDSRC = UnsupportedDir
  492.            DOCSRC = $(TOP)/doc
  493.            RGBSRC = $(TOP)/programs/rgb
  494.       BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
  495.      MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
  496.     FONTSERVERSRC = $(PROGRAMSRC)/xfs
  497.        FONTINCSRC = $(TOP)/include/fonts
  498.         EXTINCSRC = $(TOP)/include/extensions
  499.      TRANSCOMMSRC = $(LIBSRC)/xtrans
  500.    TRANS_INCLUDES = -I$(TRANSCOMMSRC)
  501.  
  502. #ifndef ShLibIncludeFile
  503. /* need this to make ANSI-style preprocessors happy */
  504. #define ShLibIncludeFile <noop.rules>
  505. #endif
  506.  
  507. #include ShLibIncludeFile
  508.  
  509. #ifndef SharedLibX11
  510. #define SharedLibX11 HasSharedLibraries
  511. #endif
  512. #ifndef NormalLibX11
  513. #define NormalLibX11 (!SharedLibX11 | ForceNormalLib)
  514. #endif
  515. #ifndef DebugLibX11
  516. #define DebugLibX11        NO    /* debugged X library */
  517. #endif
  518. #ifndef ProfileLibX11
  519. #define ProfileLibX11        NO    /* profiled X library */
  520. #endif
  521.           XLIBSRC = $(LIBSRC)/X11
  522. #if SharedLibX11
  523. #ifndef SharedX11Rev
  524. #define SharedX11Rev 6.1
  525. #endif
  526. SharedLibReferences(XONLY,X11,$(XLIBSRC),SOXLIBREV,SharedX11Rev)
  527. #else
  528. UnsharedLibReferences(XONLY,X11,$(XLIBSRC))
  529. #endif
  530.          XLIBONLY = $(XONLYLIB)
  531.  
  532. #ifndef SharedLibXext
  533. #define SharedLibXext HasSharedLibraries
  534. #endif
  535. #ifndef NormalLibXext
  536. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  537. #endif
  538. #ifndef DebugLibXext
  539. #define DebugLibXext        NO    /* debugged Xext library */
  540. #endif
  541. #ifndef ProfileLibXext
  542. #define ProfileLibXext        NO    /* profiled Xext library */
  543. #endif
  544.       XEXTLIBSRC = $(LIBSRC)/Xext
  545. #if SharedLibXext
  546. #ifndef SharedXextRev
  547. #define SharedXextRev 6.1
  548. #endif
  549. SharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),SOXEXTREV,SharedXextRev)
  550. #else
  551. UnsharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC))
  552. #endif
  553. LINTEXTENSIONLIB = $(LINTEXTENSION)
  554.           DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
  555.              XLIB = $(EXTENSIONLIB) $(XONLYLIB)
  556.          LINTXLIB = $(LINTXONLYLIB)
  557.  
  558. #ifndef SharedLibXau
  559. #define SharedLibXau NO        /* don't need shared form */
  560. #endif
  561. #ifndef NormalLibXau
  562. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  563. #endif
  564. #ifndef DebugLibXau
  565. #define DebugLibXau        NO    /* debugged auth library */
  566. #endif
  567. #ifndef ProfileLibXau
  568. #define ProfileLibXau        NO    /* profiled auth library */
  569. #endif
  570.          XAUTHSRC = $(LIBSRC)/Xau
  571. #if SharedLibXau
  572. #ifndef SharedXauRev
  573. #define SharedXauRev 6.0
  574. #endif
  575. SharedLibReferences(XAUTH,Xau,$(XAUTHSRC),SOXAUTHREV,SharedXauRev)
  576. #else
  577. UnsharedLibReferences(XAUTH,Xau,$(XAUTHSRC))
  578. #endif
  579.  
  580. #ifndef SharedLibXdmcp
  581. #define SharedLibXdmcp NO    /* don't need shared form */
  582. #endif
  583. #ifndef NormalLibXdmcp
  584. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  585. #endif
  586. #ifndef DebugLibXdmcp
  587. #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  588. #endif
  589. #ifndef ProfileLibXdmcp
  590. #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  591. #endif
  592.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  593. #if SharedLibXdmcp
  594. #ifndef SharedXdmcpRev
  595. #define SharedXdmcpRev 6.0
  596. #endif
  597. SharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),SOXDMCPREV,SharedXdmcpRev)
  598. #else
  599. UnsharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC))
  600. #endif
  601.  
  602. #ifndef SharedLibXmu
  603. #define SharedLibXmu HasSharedLibraries
  604. #endif
  605. #ifndef NormalLibXmu
  606. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  607. #endif
  608. #ifndef DebugLibXmu
  609. #define DebugLibXmu        NO    /* debugged Xmu library */
  610. #endif
  611. #ifndef ProfileLibXmu
  612. #define ProfileLibXmu        NO    /* profiled Xmu library */
  613. #endif
  614.            XMUSRC = $(LIBSRC)/Xmu
  615. #if SharedLibXmu
  616. #ifndef SharedXmuRev
  617. #define SharedXmuRev 6.0
  618. #endif
  619. SharedDSLibReferences(XMU,Xmu,$(XMUSRC),SOXMUREV,SharedXmuRev)
  620. #else
  621. UnsharedLibReferences(XMU,Xmu,$(XMUSRC))
  622. #endif
  623.  
  624. #ifndef SharedOldX
  625. #define SharedOldX HasSharedLibraries
  626. #endif
  627. #ifndef NormalOldX
  628. #define NormalOldX (!SharedOldX | ForceNormalLib)
  629. #endif
  630. #ifndef DebugOldX
  631. #define DebugOldX        NO    /* debugged old X library */
  632. #endif
  633. #ifndef ProfileOldX
  634. #define ProfileOldX        NO    /* profiled old X library */
  635. #endif
  636.        OLDXLIBSRC = $(LIBSRC)/oldX
  637. #if SharedOldX
  638. #ifndef SharedOldXRev
  639. #define SharedOldXRev 6.0
  640. #endif
  641. SharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),SOOLDXREV,SharedOldXRev)
  642. #else
  643. UnsharedLibReferences(OLDX,oldX,$(OLDXLIBSRC))
  644. #endif
  645.  
  646. #ifndef SharedLibXt
  647. #define SharedLibXt HasSharedLibraries
  648. #endif
  649. #ifndef NormalLibXt
  650. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  651. #endif
  652. #ifndef DebugLibXt
  653. #define DebugLibXt        NO    /* debugged toolkit library */
  654. #endif
  655. #ifndef ProfileLibXt
  656. #define ProfileLibXt        NO    /* profiled toolkit library */
  657. #endif
  658.        TOOLKITSRC = $(LIBSRC)/Xt
  659. #if SharedLibXt
  660. #ifndef SharedXtRev
  661. #define SharedXtRev 6.0
  662. #endif
  663. SharedDSLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),SOXTREV,SharedXtRev)
  664. #else
  665. UnsharedLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC))
  666. #endif
  667.       DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
  668.          XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
  669.      LINTXTOOLLIB = $(LINTXTOOLONLYLIB)
  670.  
  671. #ifndef SharedLibXaw
  672. #define SharedLibXaw HasSharedLibraries
  673. #endif
  674. #ifndef NormalLibXaw
  675. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  676. #endif
  677. #ifndef DebugLibXaw
  678. #define DebugLibXaw        NO    /* debugged widget library */
  679. #endif
  680. #ifndef ProfileLibXaw
  681. #define ProfileLibXaw        NO    /* profiled widget library */
  682. #endif
  683.        AWIDGETSRC = $(LIBSRC)/Xaw
  684. #if SharedLibXaw
  685. #ifndef SharedXawRev
  686. #define SharedXawRev 6.1
  687. #endif
  688. SharedDSLibReferences(XAW,Xaw,$(AWIDGETSRC),SOXAWREV,SharedXawRev)
  689. #else
  690. UnsharedLibReferences(XAW,Xaw,$(AWIDGETSRC))
  691. #endif
  692.  
  693. #ifndef SharedLibXi
  694. #define SharedLibXi HasSharedLibraries
  695. #endif
  696. #ifndef NormalLibXi
  697. #define NormalLibXi (!SharedLibXi | ForceNormalLib)
  698. #endif
  699. #ifndef DebugLibXi
  700. #define DebugLibXi        NO    /* debugged Xi library */
  701. #endif
  702. #ifndef ProfileLibXi
  703. #define ProfileLibXi        NO    /* profiled Xi library */
  704. #endif
  705.          XILIBSRC = $(LIBSRC)/Xi
  706. #if SharedLibXi
  707. #ifndef SharedXiRev
  708. #define SharedXiRev 6.0
  709. #endif
  710. SharedLibReferences(XI,Xi,$(XILIBSRC),SOXINPUTREV,SharedXiRev)
  711. #else
  712. UnsharedLibReferences(XI,Xi,$(XILIBSRC))
  713. #endif
  714.  
  715. #ifndef SharedLibXtst
  716. #define SharedLibXtst HasSharedLibraries
  717. #endif
  718. #ifndef NormalLibXtst
  719. #define NormalLibXtst (!SharedLibXtst | ForceNormalLib)
  720. #endif
  721. #ifndef DebugLibXtst
  722. #define DebugLibXtst        NO    /* debugged Xtst library */
  723. #endif
  724. #ifndef ProfileLibXtst
  725. #define ProfileLibXtst        NO    /* profiled Xtst library */
  726. #endif
  727.       XTESTLIBSRC = $(LIBSRC)/Xtst
  728. #if SharedLibXtst
  729. #ifndef SharedXtstRev
  730. #define SharedXtstRev 6.1
  731. #endif
  732. SharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),SOXTESTREV,SharedXtstRev)
  733. #else
  734. UnsharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC))
  735. #endif
  736.  
  737. #ifndef SharedLibPex
  738. #define SharedLibPex HasSharedLibraries
  739. #endif
  740. #ifndef NormalLibPex
  741. #define NormalLibPex (!SharedLibPex | ForceNormalLib)
  742. #endif
  743. #ifndef DebugLibPex
  744. #define DebugLibPex        NO    /* debugged PEX5 library */
  745. #endif
  746. #ifndef ProfileLibPex
  747. #define ProfileLibPex        NO    /* profiled PEX5 library */
  748. #endif
  749.         PEXLIBSRC = $(LIBSRC)/PEX5
  750. #if SharedLibPex
  751. #ifndef SharedPexRev
  752. #define SharedPexRev 6.0
  753. #endif
  754. SharedLibReferences(PEX,PEX5,$(PEXLIBSRC),SOPEXREV,SharedPexRev)
  755. #else
  756. UnsharedLibReferences(PEX,PEX5,$(PEXLIBSRC))
  757. #endif
  758.  
  759. #ifndef SharedLibXie
  760. #define SharedLibXie HasSharedLibraries
  761. #endif
  762. #ifndef NormalLibXie
  763. #define NormalLibXie (!SharedLibXie | ForceNormalLib)
  764. #endif
  765. #ifndef DebugLibXie
  766. #define DebugLibXie        NO    /* debugged XIE library */
  767. #endif
  768. #ifndef ProfileLibXie
  769. #define ProfileLibXie        NO    /* profiled XIE library */
  770. #endif
  771.         XIELIBSRC = $(LIBSRC)/XIE
  772. #if SharedLibXie
  773. #ifndef SharedXieRev
  774. #define SharedXieRev 6.0
  775. #endif
  776. SharedLibReferences(XIE,XIE,$(XIELIBSRC),SOXIEREV,SharedXieRev)
  777. #else
  778. UnsharedLibReferences(XIE,XIE,$(XIELIBSRC))
  779. #endif
  780.  
  781. #ifndef SharedLibPhigs
  782. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  783. #endif
  784. #ifndef NormalLibPhigs
  785. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  786. #endif
  787.       PHIGSLIBSRC = $(LIBSRC)/PHIGS
  788. #if SharedLibPhigs
  789. #ifndef SharedPhigsRev
  790. #define SharedPhigsRev 6.0
  791. #endif
  792. SharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),SOPHIGSREV,SharedPhigsRev)
  793. #else
  794. UnsharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC))
  795. #endif
  796.  
  797. UnsharedLibReferences(XBSD,Xbsd,$(LIBSRC)/Xbsd)
  798.  
  799. #ifndef SharedLibICE
  800. #define SharedLibICE HasSharedLibraries
  801. #endif
  802. #ifndef NormalLibICE
  803. #define NormalLibICE (!SharedLibICE | ForceNormalLib)
  804. #endif
  805. #ifndef DebugLibICE
  806. #define DebugLibICE        NO    /* debugged ICE library */
  807. #endif
  808. #ifndef ProfileLibICE
  809. #define ProfileLibICE        NO    /* profiled ICE library */
  810. #endif
  811.            ICESRC = $(LIBSRC)/ICE
  812. #if SharedLibICE
  813. #ifndef SharedICERev
  814. #define SharedICERev 6.0
  815. #endif
  816. SharedLibReferences(ICE,ICE,$(ICESRC),SOICEREV,SharedICERev)
  817. #else
  818. UnsharedLibReferences(ICE,ICE,$(ICESRC))
  819. #endif
  820.  
  821. #ifndef SharedLibSM
  822. #define SharedLibSM HasSharedLibraries
  823. #endif
  824. #ifndef NormalLibSM
  825. #define NormalLibSM (!SharedLibSM | ForceNormalLib)
  826. #endif
  827. #ifndef DebugLibSM
  828. #define DebugLibSM        NO    /* debugged SM library */
  829. #endif
  830. #ifndef ProfileLibSM
  831. #define ProfileLibSM        NO    /* profiled SM library */
  832. #endif
  833.             SMSRC = $(LIBSRC)/SM
  834. #if SharedLibSM
  835. #ifndef SharedSMRev
  836. #define SharedSMRev 6.0
  837. #endif
  838. SharedLibReferences(SM,SM,$(SMSRC),SOSMREV,SharedSMRev)
  839. #else
  840. UnsharedLibReferences(SM,SM,$(SMSRC))
  841. #endif
  842.  
  843. #ifndef SharedLibFS
  844. #define SharedLibFS        NO    /* for now */
  845. #endif
  846. #ifndef NormalLibFS
  847. #define NormalLibFS (!SharedLibFS | ForceNormalLib)
  848. #endif
  849. #ifndef DebugLibFS
  850. #define DebugLibFS        NO    /* debugged FS library */
  851. #endif
  852. #ifndef ProfileLibFS
  853. #define ProfileLibFS        NO    /* profiled FS library */
  854. #endif
  855.          FSLIBSRC = $(LIBSRC)/FS
  856. #if SharedLibFS
  857. #ifndef SharedFSRev
  858. #define SharedFSRev 6.0
  859. #endif
  860. SharedLibReferences(FS,FS,$(FSLIBSRC),SOFSREV,SharedFSRev)
  861. #else
  862. UnsharedLibReferences(FS,FS,$(FSLIBSRC))
  863. #endif
  864.  
  865.          FONTLIBSRC = $(LIBSRC)/font
  866. UnsharedLibReferences(FONT,font,$(FONTLIBSRC))
  867.  
  868. #ifdef BuildXKBlib
  869.     XKBFILELIBSRC = $(LIBSRC)/xkbfile
  870. UnsharedLibReferences(XKBFILE,xkbfile,$(XKBFILELIBSRC))
  871. #ifndef XkbClientDepLibs
  872. #if UseXKBInClients
  873. #define    XkbClientDepLibs $(DEPXKBFILELIB)
  874. #else
  875. #define    XkbClientDepLibs /**/
  876. #endif
  877. #endif
  878. #ifndef XkbClientLibs
  879. #if UseXKBInClients
  880. #define    XkbClientLibs $(XKBFILELIB)
  881. #else
  882. #define    XkbClientLibs /**/
  883. #endif
  884. #endif
  885. #else /* !BuildXKBlib */
  886. #ifndef XkbClientDepLibs
  887. #define    XkbClientDepLibs 
  888. #endif
  889. #ifndef XkbClientLibs
  890. #define    XkbClientLibs
  891. #endif
  892. #endif /* BuildXKBlib */
  893.  
  894. #ifndef XawClientDepLibs
  895. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  896. #endif
  897. #ifndef XawClientLibs
  898. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  899. #endif
  900.  
  901. #ifndef NeedDefaultDepLibs
  902. #define NeedDefaultDepLibs YES
  903. #endif
  904.  
  905. #if NeedDefaultDepLibs
  906. /*
  907.  * Individual libraries should override this
  908.  */
  909. #if HasSharedLibraries || defined(UseInstalled)
  910.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  911. #else
  912.           DEPLIBS = $(LOCAL_LIBRARIES)
  913. #endif
  914.          DEPLIBS1 = $(DEPLIBS)
  915.          DEPLIBS2 = $(DEPLIBS)
  916.          DEPLIBS3 = $(DEPLIBS)
  917. #endif /* NeedDefaultDepLibs */
  918.  
  919.  
  920. /*
  921.  * InstallAppDefaults - simple rules to install application default file
  922.  */
  923. #ifndef InstallAppDefaults
  924. #define InstallAppDefaults(class) InstallAppDefaultsLong(class,class)
  925. #endif /* InstallAppDefaults */
  926.  
  927. /*
  928.  * InstallAppDefaultsLong - general rule to install application default file
  929.  * if the InstallAppDefFiles configuration parameter is set.
  930.  */
  931. #ifndef InstallAppDefaultsLong
  932. #if InstallAppDefFiles
  933. #define InstallAppDefaultsLong(file,class)                @@\
  934. InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  935. #else
  936. #define InstallAppDefaultsLong(file,class)                @@\
  937. InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  938. #endif /* InstallAppDefFiles */
  939. #endif /* InstallAppDefaultsLong */
  940.  
  941. /*
  942.  * MakeFontsDir - generate rules to build fonts.dir database.
  943.  */
  944. #ifndef MakeFontsDir
  945. #define MakeFontsDir(deplist)                        @@\
  946. all:: fonts.dir                                @@\
  947.                                     @@\
  948. fonts.dir:  deplist                            @@\
  949.     RunProgram(MKFONTDIR,.)                        @@\
  950.                                     @@\
  951. clean::                                    @@\
  952.     RemoveFile(fonts.dir)
  953. #endif /* MakeFontsDir */
  954.  
  955.  
  956. /*
  957.  * MakeFonts - generate rules to build font database.
  958.  */
  959. #ifndef MakeFonts
  960. #define MakeFonts()                            @@\
  961. all::  $(OBJS)                                @@\
  962.                                     @@\
  963. MakeFontsDir($(OBJS))                            @@\
  964.                                     @@\
  965. clean::                                    @@\
  966.     RemoveFiles(*.pcf *.pcf.Z)
  967. #endif /* MakeFonts */
  968.  
  969.  
  970. /*
  971.  * InstallFontObjs - generate rules to install font files
  972.  */
  973. #ifndef InstallFontObjs
  974. #define InstallFontObjs(objs,dest)                    @@\
  975. InstallMultipleFlags(objs,dest,$(INSTDATFLAGS))                @@\
  976.                                     @@\
  977. InstallTarget(install,fonts.dir,$(INSTDATFLAGS),dest)
  978. #endif /* InstallFontObjs */
  979.  
  980.  
  981. /*
  982.  * InstallFonts - generate rules to install font files
  983.  */
  984. #ifndef InstallFonts
  985. #define InstallFonts(dest)                        @@\
  986. InstallFontObjs($(OBJS),dest)
  987. #endif /* InstallFonts */
  988.  
  989.  
  990. /*
  991.  * InstallFontAliases - generate rules to install font aliases databases. 
  992.  */
  993. #ifndef InstallFontAliases
  994. #define InstallFontAliases(dest)                    @@\
  995. InstallTarget(install,fonts.alias,$(INSTDATFLAGS),dest)
  996. #endif /* InstallFontAliases */
  997.  
  998. #ifndef FontSrc
  999. #define FontSrc(basename) basename.bdf
  1000. #endif
  1001.  
  1002. #ifndef FontBaseObj
  1003. #define FontBaseObj(basename)basename.pcf
  1004. #endif
  1005.  
  1006. /*
  1007.  * InstallFontScale - generate rules to install font scale database.
  1008.  */
  1009. #ifndef InstallFontScale
  1010. #define InstallFontScale(dest)                        @@\
  1011. InstallTarget(install,fonts.scale,$(INSTDATFLAGS),dest)
  1012. #endif /* InstallFontScale */
  1013.  
  1014. /*
  1015.  * UncompressedFontTarget
  1016.  */
  1017. #ifndef UncompressedFontTarget
  1018. #define UncompressedFontTarget(basename)                @@\
  1019. FontBaseObj(basename):  FontSrc(basename)                @@\
  1020.     $(FONTC) $(FONTCFLAGS) $? -o $@
  1021. #endif /* CompressedFontTarget */
  1022.  
  1023. /*
  1024.  * CompressedFontTarget
  1025.  */
  1026. #ifndef CompressedFontTarget
  1027. #define CompressedFontTarget(basename)                    @@\
  1028. FontBaseObj(basename).Z:  FontSrc(basename)                @@\
  1029.     $(FONTC) $(FONTCFLAGS) $? | $(COMPRESS) > $@
  1030. #endif /* CompressedFontTarget */
  1031.  
  1032. #ifdef CompressAllFonts
  1033. #define FontTarget(basename) CompressedFontTarget(basename)
  1034. #define FontObj(basename) FontBaseObj(basename).Z
  1035. #else
  1036. #define FontTarget(basename) UncompressedFontTarget(basename)
  1037. #define FontObj(basename) FontBaseObj(basename)
  1038. #endif /* CompressAllFonts */
  1039.  
  1040. /*
  1041.  * PostProcessTroffPS - by default moves the working output into place,
  1042.  * but can be a hook for more complicated post-processing.
  1043.  */
  1044. #ifndef PostProcessTroffPS
  1045. #define PostProcessTroffPS(temp,real) $(MV) temp real
  1046. #endif
  1047.  
  1048. #ifndef MakeSimpleDoc
  1049. #define MakeSimpleDoc(file,srcs)                    @@\
  1050. all:: file.PS                                @@\
  1051. .PRECIOUS: file.PS                            @@\
  1052.                                     @@\
  1053. file.PS: srcs                                @@\
  1054.     -$(TROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > file.nPS \@@\
  1055.     && PostProcessTroffPS(file.nPS,$@)                @@\
  1056.     @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\
  1057.                                     @@\
  1058. file.txt: srcs                                @@\
  1059.     $(NROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > $@    @@\
  1060.                                     @@\
  1061. clean::                                    @@\
  1062.     $(RM) index.raw file.nPS file.PS file.txt
  1063. #endif
  1064.  
  1065. #ifndef MakeTblDoc
  1066. #define MakeTblDoc(file,srcs)                        @@\
  1067. all:: file.PS                                @@\
  1068. .PRECIOUS: file.PS                            @@\
  1069.                                     @@\
  1070. file.PS: srcs                                @@\
  1071.     -$(TBL) $(XDOCMACROS) srcs | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\
  1072.     && PostProcessTroffPS(file.nPS,$@)                @@\
  1073.     @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\
  1074.                                     @@\
  1075. file.txt: srcs                                @@\
  1076.     $(TBL) $(XDOCMACROS) srcs | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@    @@\
  1077.                                     @@\
  1078. clean::                                    @@\
  1079.     $(RM) index.raw file.nPS file.PS file.txt
  1080. #endif
  1081.  
  1082. #ifndef MakeEqnDoc
  1083. #define MakeEqnDoc(file,srcs)                        @@\
  1084. all:: file.PS                                @@\
  1085. .PRECIOUS: file.PS                            @@\
  1086.                                     @@\
  1087. file.PS: srcs                                @@\
  1088.     -$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\
  1089.     && PostProcessTroffPS(file.nPS,$@)                @@\
  1090.     @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\
  1091.                                     @@\
  1092. file.txt: srcs                                @@\
  1093.     $(TBL) $(XDOCMACROS) srcs | $(NEQN) | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@ @@\
  1094.                                     @@\
  1095. clean::                                    @@\
  1096.     $(RM) index.raw file.nPS file.PS file.txt
  1097. #endif
  1098.  
  1099. #ifndef MakeDocIndex
  1100. #define MakeDocIndex(file,srcs)                        @@\
  1101. all:: file.idx.PS                            @@\
  1102.                                     @@\
  1103. file.idx.PS: srcs index.raw                        @@\
  1104.     tail -1 index.raw > index.pageno                @@\
  1105.     grep '^[1-9]' index.raw | sort -f '-t:' +1 -3 +0n -1n | awk -f $(DOCUTILSRC)/fixindex.awk | awk -f $(DOCUTILSRC)/block.awk > index.troff @@\
  1106.     cat srcs $(XIDXMACROS) index.troff | $(TROFF) -me > file.idx.nPS \@@\
  1107.     && $(MV) file.idx.nPS $@                    @@\
  1108.     $(RM) index.troff index.pageno                    @@\
  1109.                                     @@\
  1110. clean::                                    @@\
  1111.     $(RM) index.troff index.pageno file.idx.nPS file.idx.PS
  1112. #endif
  1113.  
  1114. #ifndef MakeLatexDoc
  1115. #if HasLatex
  1116. #define MakeLatexDoc(file,src)                         @@\
  1117. all:: file.PS                                @@\
  1118.                                     @@\
  1119. file.dvi: src                                  @@\
  1120.     $(LATEX) src                            @@\
  1121.                                     @@\
  1122. file.PS: file.dvi                            @@\
  1123.     $(DVIPS) -o file.nPS file && $(MV) file.nPS $@            @@\
  1124.                                     @@\
  1125. clean::                                 @@\
  1126.     RemoveFiles(file.nPS file.PS file.dvi file.log)            @@\
  1127.     RemoveFiles(file.aux file.toc file.lof file.lot)
  1128. #else /* HasLatex */
  1129. #define MakeLatexDoc(file,src)                         @@\
  1130. all::                                    @@\
  1131. file.PS: src                                @@\
  1132.     @echo "cannot make file.PS: no latex on this system"; exit 1
  1133. #endif /* HasLatex (else) */
  1134. #endif /* MakeLatexDoc */
  1135.