home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / X11 / config / Imake.tmpl < prev    next >
Encoding:
Text File  |  2006-12-20  |  57.5 KB  |  2,420 lines

  1. XCOMM ----------------------------------------------------------------------
  2. XCOMM Makefile generated from IMAKE_TEMPLATE and INCLUDE_IMAKEFILE
  3. XCOMM $Xorg: Imake.tmpl,v 1.4 2000/08/17 19:41:46 cpqbld Exp $
  4. XCOMM $XdotOrg: util/cf/Imake.tmpl,v 1.17 2006/04/15 15:55:25 herrb Exp $
  5. XCOMM
  6. XCOMM
  7. XCOMM
  8. XCOMM
  9. XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.155 2003/12/24 18:58:41 dickey Exp $
  10. XCOMM ----------------------------------------------------------------------
  11.  
  12. /*
  13.  * generic imake template
  14.  */
  15.  
  16. /*
  17.  * Modify Imake.cf when adding a new architecture, do not modify this file.
  18.  * Platform-specific parameters may be set in the appropriate <vendor>.cf
  19.  * configuration files.  Site-specific parameters should be set in the file
  20.  * site.def.  Full rebuilds are recommended if any parameters are changed.
  21.  * If your C preprocessor does not define any unique symbols, you will need
  22.  * to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  23.  * "make World" the first time).
  24.  */
  25.  
  26. #define ImakeConfigRelease 6
  27.  
  28. #define    YES    1
  29. #define NO    0
  30.  
  31. /* Ensure that "all" is the default target in the Makefile. */
  32. all::
  33.  
  34. .SUFFIXES: .i
  35.  
  36. /* Intercept clean rules for current directory */
  37. #undef clean
  38. #define clean cleandir
  39.  
  40. #include <Imake.cf>
  41.  
  42. XCOMM -----------------------------------------------------------------------
  43. XCOMM site-specific configuration parameters that need to come before
  44. XCOMM the platform-specific parameters - edit site.def to change
  45. #define BeforeVendorCF
  46. #include <site.def>
  47. #undef BeforeVendorCF
  48.  
  49. #if defined(HasGcc3) && !defined(HasGcc2)
  50. # define HasGcc2 HasGcc3
  51. #endif
  52. #if defined(HasGcc2) && !defined(HasGcc)
  53. # define HasGcc HasGcc2
  54. #endif
  55.  
  56. #ifndef HasCenterLineC
  57. #define HasCenterLineC NO
  58. #endif
  59. #ifndef HasCenterLineCplusplus
  60. #define HasCenterLineCplusplus NO
  61. #endif
  62.  
  63. #ifndef HasClearmake
  64. # define HasClearmake NO
  65. #endif
  66.  
  67. #ifndef ProPoliceSupport
  68. #define ProPoliceSupport NO
  69. #endif
  70.  
  71. /*
  72.  * ClearmakeOSName - insert the current OS type into the clearmake
  73.  * build script, so .o files from different platforms cannot be winked in.
  74.  * If clearmake finds the build script for two .o files is the same, it
  75.  * will share the .o, even across different architectures.  Inserting the
  76.  * O/S name into the build script in a comment prevents unwanted sharing.
  77.  * Note the trailing double-@ in the macro: end a line using this macro
  78.  * with backslash without the double-@ usually used.
  79.  * Like this:
  80.  *
  81.  * #define SomeRule() @@\
  82.  *     something or other @@\
  83.  *     ClearmakeOSName \
  84.  *     something else @@\
  85.  *     and more
  86.  */
  87. #ifndef ClearmakeOSName
  88. # if HasClearmake
  89. #  define ClearmakeOSName @ XCOMM $(OSNAME) @@
  90. # else
  91. #  define ClearmakeOSName /**/
  92. # endif
  93. #endif
  94.  
  95. #if HasClearmake
  96. # ifndef MakeCmd
  97. #  define MakeCmd clearmake
  98. # endif
  99. #endif
  100.  
  101. #if HasClearmake
  102. XCOMM ----------------------------------------------------------------------
  103. .c.o:
  104.     ClearmakeOSName    $(CC) -c $(CFLAGS) $*.c
  105. #endif
  106.  
  107. XCOMM ----------------------------------------------------------------------
  108. XCOMM platform-specific configuration parameters - edit MacroFile to change
  109. #include MacroIncludeFile
  110.  
  111. XCOMM ----------------------------------------------------------------------
  112. XCOMM site-specific configuration parameters that go after
  113. XCOMM the platform-specific parameters - edit site.def to change
  114. #define AfterVendorCF
  115. #include <site.def>
  116. #undef AfterVendorCF
  117.  
  118. /*
  119.  * defaults for various generic parameters; set in site.def if needed
  120.  */
  121.  
  122. /* the following are needed before we can include Imake.rules */
  123.  
  124. #ifndef NothingOutsideProjectRoot
  125. #define NothingOutsideProjectRoot NO
  126. #endif
  127.  
  128. #ifndef RemoveObsoleteFiles
  129. #define RemoveObsoleteFiles YES
  130. #endif
  131.  
  132. #ifndef HasVarDirectory
  133. #define HasVarDirectory        YES
  134. #endif
  135. #ifndef UseEtcX11
  136. #define UseEtcX11        YES
  137. #endif
  138. #ifndef UseInstalledX11
  139. # define UseInstalledX11        NO
  140. #endif
  141. #ifdef UseInstalled
  142. # undef UseInstalledX11
  143. # define UseInstalledX11        YES
  144. #endif
  145. #if NothingOutsideProjectRoot
  146. #undef UseEtcX11
  147. #define UseEtcX11        NO
  148. #endif
  149. #ifndef UseSeparateConfDir
  150. #define UseSeparateConfDir    (UseEtcX11 || HasVarDirectory)
  151. #endif
  152. #if NothingOutsideProjectRoot
  153. #undef UseSeparateConfDir
  154. #define UseSeparateConfDir    NO
  155. #endif
  156. #ifndef SystemV
  157. #define SystemV            NO    /* SYSV (R3) */
  158. #endif
  159. #ifndef SystemV4
  160. #define SystemV4        NO    /* SVR4 */
  161. #endif
  162. #ifndef HasCodeCenter
  163. #define HasCodeCenter        NO
  164. #endif
  165. #ifndef HasSentinel
  166. #define HasSentinel        NO
  167. #endif
  168. #ifndef HasPurify
  169. #define HasPurify        NO
  170. #endif
  171. #ifndef HasTestCenter
  172. #define HasTestCenter        NO
  173. #endif
  174. #ifndef HasGnuMake
  175. #define HasGnuMake        NO
  176. #endif
  177. /*
  178.  * The following fixes a glitch with GNU make -j
  179.  */
  180. #ifndef ForceServerRemake
  181. #define ForceServerRemake    HasGnuMake
  182. #endif
  183. #ifndef HasBsdMake
  184. #define HasBsdMake        NO
  185. #endif
  186. #ifndef HasParallelMake
  187. #define HasParallelMake        NO
  188. #endif
  189. #ifndef RemoveTargetProgramByMoving
  190. #define RemoveTargetProgramByMoving NO
  191. #endif
  192. #ifndef DoRanlibCmd
  193. #if SystemV || SystemV4
  194. #define DoRanlibCmd NO
  195. #else
  196. #define DoRanlibCmd YES
  197. #endif
  198. #endif
  199. #ifndef ExecableScripts
  200. #if SystemV
  201. #define ExecableScripts        NO
  202. #else
  203. #define ExecableScripts        YES    /* kernel exec() can handle #! */
  204. #endif
  205. #endif
  206.  
  207. #ifndef HasMakefileSafeInclude        /* -include or sinclude in a Makefile */
  208. #if HasClearmake || HasBsdMake
  209. #define HasMakefileSafeInclude    YES
  210. #else
  211. #define HasMakefileSafeInclude    NO   /* see also vendor-specific .cf files */
  212. #endif
  213. #endif
  214.  
  215. #ifndef HasSymLinks
  216. #define HasSymLinks YES
  217. #endif
  218.  
  219. #ifndef HasPerl
  220. #define HasPerl            YES
  221. #endif
  222.  
  223. #ifndef HasPerl5
  224. #define HasPerl5        HasPerl
  225. #endif
  226.  
  227. #ifndef PerlCmd
  228. #define PerlCmd            perl
  229. #endif
  230.  
  231. #ifndef PerlOptions
  232. #define PerlOptions        /**/
  233. #endif
  234.  
  235. #ifndef PerlEnvSetup
  236. #define PerlEnvSetup        env LC_ALL=C
  237. #endif
  238.  
  239. #ifndef BuildRman
  240. #define BuildRman         NO
  241. #endif
  242.  
  243. #ifndef HasGperf
  244. #define HasGperf        NO
  245. #endif
  246.  
  247. #ifndef GperfCmd
  248. #define GperfCmd        gperf
  249. #endif
  250.  
  251. #ifndef RmanCmd
  252. #if BuildRman
  253. #ifdef UseInstalled        /* assume BINDIR in path */
  254. #define RmanCmd rman
  255. #else
  256. #define RmanCmd $(TOP)/config/util/rman
  257. #endif
  258. #endif
  259. #endif
  260.  
  261. #ifndef RmanOptions
  262. #if BuildRman
  263. #define RmanOptions -f HTML
  264. #endif
  265. #endif
  266.  
  267. #ifndef BuildHtmlManPages
  268. #ifdef RmanCmd
  269. #define BuildHtmlManPages YES
  270. #else
  271. #define BuildHtmlManPages NO
  272. #endif
  273. #endif
  274. /* Can't do this while bootstrapping imake */
  275. #ifdef BootStrap
  276. #undef BuildHtmlManPages
  277. #define BuildHtmlManPages NO
  278. #endif
  279.  
  280. #ifndef DontPreprocessManPages
  281. #ifdef UseInstalled
  282. #define DontPreprocessManPages YES
  283. #else
  284. #define DontPreprocessManPages NO
  285. #endif
  286. #endif
  287.  
  288. #ifndef CompressManPages
  289. #define CompressManPages NO
  290. #endif
  291.  
  292. #ifndef HasGroff
  293. #define HasGroff NO
  294. #endif
  295. #ifndef HasGroffHtml
  296. #define HasGroffHtml NO
  297. #endif
  298.  
  299. #ifndef HasCookieMaker
  300. #define HasCookieMaker    NO
  301. #endif
  302.  
  303. #ifndef DoLoadableServer
  304. #define DoLoadableServer NO
  305. #endif
  306. #ifndef MakeDllModules
  307. #define MakeDllModules NO
  308. #endif
  309. #ifndef StripInstalledPrograms
  310. #define StripInstalledPrograms NO    /* leave symbol table just in case */
  311. #endif
  312. #ifndef StaticNeedsPicForShared
  313. #define StaticNeedsPicForShared NO
  314. #endif
  315.  
  316. #include <Imake.rules>
  317.  
  318. #ifndef HasSharedLibraries
  319. #define HasSharedLibraries NO
  320. #endif
  321. #ifndef OSMajorVersion
  322. #define OSMajorVersion          0
  323. #endif
  324. #ifndef OSMinorVersion
  325. #define OSMinorVersion          0
  326. #endif
  327. #ifndef OSTeenyVersion
  328. #define OSTeenyVersion        0
  329. #endif
  330. #ifndef UnalignedReferencesAllowed
  331. #define UnalignedReferencesAllowed NO    /* if arbitrary deref is okay */
  332. #endif
  333. #ifndef AvoidNullMakeCommand
  334. #if !HasBsdMake
  335. #define AvoidNullMakeCommand NO
  336. #else
  337. #define AvoidNullMakeCommand YES
  338. #endif
  339. #endif
  340. #if AvoidNullMakeCommand
  341. #ifndef NullMakeCommand
  342. #define NullMakeCommand        @ echo -n
  343. #endif
  344. /*
  345.  * An obscure bug in BSD4.3's original make causes it not to recognize a
  346.  * macro definition if the macro name starts with a non-alpha and in
  347.  * column one.
  348.  */
  349.  _NULLCMD_ = NullMakeCommand
  350. #endif
  351.  
  352. #ifndef CrossCompiling
  353. #define CrossCompiling        NO
  354. #undef  CrossCompileDir
  355. #endif
  356. #ifndef BourneShell            /* to force shell in makefile */
  357. #define BourneShell        /bin/sh
  358. #endif
  359. #ifndef ConstructMFLAGS
  360. #if SystemV
  361. #define ConstructMFLAGS        YES    /* build MFLAGS from MAKEFLAGS */
  362. #else
  363. #define ConstructMFLAGS        NO    /* build MFLAGS from MAKEFLAGS */
  364. #endif
  365. #endif
  366.  
  367. #ifndef ConstructMAKEFLAGS        /* needed on old BSD-based? */
  368. #define ConstructMAKEFLAGS    NO    /* build MAKEFLAGS from MFLAGS */
  369. #endif
  370.  
  371. #ifndef HasLargeTmp
  372. #define HasLargeTmp        NO    /* be paranoid */
  373. #endif
  374.  
  375. #ifndef HasMotif
  376. #define HasMotif        NO
  377. #endif
  378. #ifndef HasMotif2
  379. #define HasMotif2        NO      /* only if system has working Motif2 or OpenMotif */
  380. #endif
  381. #ifndef HasBSDAuth
  382. #define HasBSDAuth        NO
  383. #endif
  384.  
  385. #ifndef HasBSD44Sockets
  386. #define HasBSD44Sockets        NO
  387. #endif
  388. #ifndef HasSockets
  389. #define HasSockets        YES
  390. #endif
  391. #ifndef HasStreams
  392. #define HasStreams        !HasSockets
  393. #endif
  394. #ifndef HasDECnet
  395. #define HasDECnet        NO
  396. #endif
  397. #ifndef HasPoll
  398. #if SystemV || SystemV4
  399. #define HasPoll            YES
  400. #else
  401. #define HasPoll            NO
  402. #endif
  403. #endif
  404. #ifndef HasVFork
  405. #if SystemV
  406. #define HasVFork        NO    /* not yet... */
  407. #else
  408. #define HasVFork        YES
  409. #endif
  410. #endif
  411. #ifndef HasSetProcTitle
  412. #define HasSetProcTitle        NO
  413. #endif
  414. #ifndef HasSetUserContext
  415. #define HasSetUserContext    NO
  416. #endif
  417. #ifndef HasLibCrypt
  418. #define HasLibCrypt        NO
  419. #endif
  420. #ifndef HasPutenv
  421. #define HasPutenv        NO    /* assume not */
  422. #endif
  423. /* setenv(3) and unsetenv(3) */
  424. #ifndef HasSetenv
  425. #define HasSetenv        YES    /* assume yes */
  426. #endif
  427. #ifndef HasVoidSignalReturn
  428. #define HasVoidSignalReturn    YES    /* assume yes */
  429. #endif
  430. #ifndef HasBsearch
  431. #define HasBsearch        YES    /* assume yes */
  432. #endif
  433. #ifndef HasSnprintf
  434. #define HasSnprintf        NO    /* assume not */
  435. #endif
  436. #ifndef HasStrlcat
  437. #define HasStrlcat        NO    /* assume not */
  438. #endif
  439. #ifndef HasDlopen
  440. #define HasDlopen        NO    /* assume not */
  441. #endif
  442. #ifndef HasWeakSymbols
  443. #define HasWeakSymbols        NO    /* assume not */
  444. #endif
  445. #ifndef HasIssetugid
  446. #define HasIssetugid        NO    /* assume not */
  447. #endif
  448. #ifndef HasGetresuid
  449. #define HasGetresuid        NO    /* assume not */
  450. #endif
  451. #ifndef HasMkstemp
  452. #define HasMkstemp        NO    /* assume not */
  453. #endif
  454. #ifndef HasUsableFileMmap
  455. #define HasUsableFileMmap    NO    /* assume not */
  456. #endif
  457. #ifndef HasGetIfAddrs
  458. #define HasGetIfAddrs        NO    /* assume not */
  459. #endif
  460. #ifndef HasStickyDirBit
  461. #define HasStickyDirBit        YES
  462. #endif
  463. #ifndef HasFchown
  464. #define HasFchown        YES
  465. #endif
  466. #ifndef HasPam
  467. #define HasPam            NO
  468. #endif
  469. #ifndef HasPamMisc
  470. #define HasPamMisc        NO
  471. #endif
  472. #ifndef HasGetpeereid
  473. #define HasGetpeereid        NO
  474. #endif
  475. #ifndef HasGetpeerucred
  476. #define HasGetpeerucred        NO
  477. #endif
  478. #ifndef NoStrstr
  479. #define NoStrstr        NO
  480. #endif
  481. #ifndef HasShadowPasswd
  482. #define HasShadowPasswd        NO
  483. #endif
  484. #ifndef HasBasename
  485. #define HasBasename        YES
  486. #endif
  487. #ifndef HasGetopt
  488. # if !defined(Win32Architecture) && !defined(OS2Architecture)
  489. #  define HasGetopt        YES
  490. # else
  491. #  define HasGetopt        NO
  492. # endif
  493. #endif
  494. #ifndef HasGetoptLong
  495. # define HasGetoptLong        NO
  496. #endif
  497. /* byte-order defaults */
  498. #ifndef ByteOrder
  499. #if defined(VaxArchitecture)
  500. #define ByteOrder        X_LITTLE_ENDIAN
  501. #elif defined(MipsArchitecture) && defined(MipselArchitecture)
  502. #define ByteOrder        X_LITTLE_ENDIAN
  503. #elif defined(MipsArchitecture)
  504. #define ByteOrder        X_BIG_ENDIAN
  505. #elif defined(i386Architecture)
  506. #define ByteOrder        X_LITTLE_ENDIAN
  507. #elif defined(ia64Architecture)
  508. #define ByteOrder        X_LITTLE_ENDIAN
  509. #elif defined(AMD64Architecture)
  510. #define ByteOrder        X_LITTLE_ENDIAN
  511. #elif defined(SparcArchitecture) || defined(Sparc64Architecture)
  512. #define ByteOrder        X_BIG_ENDIAN
  513. #elif defined(AlphaArchitecture)
  514. #define ByteOrder        X_LITTLE_ENDIAN
  515. #elif defined(Mc68000Architecture)
  516. #define ByteOrder        X_BIG_ENDIAN
  517. #elif defined(Mc68020Architecture)
  518. #define ByteOrder        X_BIG_ENDIAN
  519. #elif defined(Mc88000Architecture)
  520. #define ByteOrder        X_BIG_ENDIAN
  521. #elif defined(s390Architecture)
  522. #define ByteOrder        X_BIG_ENDIAN
  523. #elif defined(s390xArchitecture)
  524. #define ByteOrder        X_BIG_ENDIAN
  525. #elif defined(Arm32ebArchitecture)
  526. #define ByteOrder        X_BIG_ENDIAN
  527. #elif defined(Arm32Architecture)
  528. #define ByteOrder        X_LITTLE_ENDIAN
  529. #elif defined(RsArchitecture)
  530. #define ByteOrder        X_BIG_ENDIAN
  531. #elif defined(PpcArchitecture) || defined(Ppc64Architecture)
  532. #define ByteOrder        X_BIG_ENDIAN
  533. #elif defined(HPArchitecture)
  534. #define ByteOrder        X_BIG_ENDIAN
  535. #elif defined(SuperHArchitecture)
  536. #define ByteOrder        X_LITTLE_ENDIAN
  537. #elif defined(SuperHebArchitecture)
  538. #define ByteOrder        X_BIG_ENDIAN
  539. #endif
  540. #endif /* ByteOrder */
  541. X_BYTE_ORDER = ByteOrder
  542.  
  543. #ifndef HasFortran
  544. #define HasFortran        NO
  545. #endif
  546. #ifndef HasGcc2ForCplusplus
  547. #define HasGcc2ForCplusplus    NO
  548. #endif
  549. #ifndef HasCplusplus
  550. #if HasGcc2ForCplusplus
  551. #define HasCplusplus        YES
  552. #else
  553. #define HasCplusplus        NO
  554. #endif
  555. #endif
  556. #ifndef HasMktemp
  557. #define HasMktemp        NO    /* if you have the mktemp command */
  558. #endif
  559. #ifndef HasNdbm
  560. #define HasNdbm            NO
  561. #endif
  562. #ifndef HasSecureRPC
  563. #define HasSecureRPC        NO    /* if you have Secure RPC */
  564. #endif
  565. #ifndef HasKrbIV
  566. #define HasKrbIV        NO    /* if you have Kerberos IV */
  567. #endif
  568. #ifndef HasKrb5
  569. #define HasKrb5            NO      /* if you have Kerberos V5 */
  570. #endif
  571. #ifndef HasLatex
  572. #define HasLatex        NO
  573. #endif
  574. #ifndef HasShm
  575. #if SystemV || SystemV4
  576. #define HasShm            YES
  577. #else
  578. #define HasShm            NO
  579. #endif
  580. #endif
  581. #ifndef HasCbrt
  582. #define HasCbrt            YES
  583. #endif
  584. #ifndef HasFfs
  585. #define HasFfs            YES
  586. #endif
  587. #ifndef HasZlib
  588. #define HasZlib            YES
  589. #endif
  590. #ifndef OsNeedZlibHeaders
  591. #define OsNeedZlibHeaders    !HasZlib
  592. #endif
  593. #if !HasZlib        /* if OS doesn't have it, we'll build it */
  594. XCOMM Building your own zlib can be a harmful security risk and is
  595. XCOMM deprecated; please strongly consider using vendor-supplied packages.
  596. #undef GzipLibrary    /* GzipLibrary was valid only if HasZlib */
  597. #endif
  598. #ifndef GzipLibrary    /* if OS config didn't define it, assume it's -lz */
  599. #define GzipLibrary -lz
  600. #endif
  601. /* If the system has the Freetype2 library - if NO, the copy in extras is built */
  602. #ifndef HasFreetype2
  603. #define HasFreetype2        YES
  604. #endif
  605. /* If the system has the Fontconfig library - if NO, the copy in extras is built  */
  606. #ifndef HasFontconfig
  607. #define HasFontconfig        NO
  608. #endif
  609. /* If the system has the PNG library - if NO, xcursorgen is not built */
  610. #ifndef HasLibpng
  611. #define HasLibpng        NO
  612. #endif
  613. #if HasKrbIV
  614. #ifndef KrbIVIncludes
  615. #define KrbIVIncludes /**/
  616. #endif
  617. #ifndef KrbIVLibraries
  618. #define KrbIVLibraries -lkrb -ldes
  619. #endif
  620. #endif
  621. #if HasKrb5
  622. #ifndef Krb5Includes
  623. #define Krb5Includes -I/krb5/include
  624. #endif
  625. #ifndef Krb5Libraries
  626. #define Krb5Libraries -L/krb5/lib -L/usr/isode/lib -lkrb5 -lcrypto -lisode -lcom_err -ldbm
  627. #endif
  628. #else
  629. #undef Krb5Includes
  630. #define Krb5Includes /**/
  631. #undef Krb5Libraries
  632. #define Krb5Libraries /**/
  633. #endif
  634. #ifndef UseGnuMalloc
  635. #define UseGnuMalloc        NO
  636. #endif
  637. #ifndef GnuMallocLibrary
  638. #define GnuMallocLibrary -lgmalloc
  639. #endif
  640. #ifndef MallocLibraries
  641. #if UseGnuMalloc
  642. #define MallocLibraries    GnuMallocLibrary
  643. #else
  644. #define MallocLibraries    /**/
  645. #endif
  646. #endif
  647. #ifndef HasPosixRegex        /* Most modern platforms have it */
  648. #define HasPosixRegex        YES
  649. #endif
  650. #ifndef RegexLibrary
  651. #if HasPosixRegex
  652. #define RegexLibrary        /**/
  653. #else
  654. #define RegexLibrary        -lregex
  655. #endif
  656. #endif
  657. #ifndef HasNCurses
  658. #define HasNCurses        NO
  659. #endif
  660. #ifndef NCursesLibName
  661. #if HasNCurses
  662. #define NCursesLibName    -lncurses
  663. #else
  664. #define NCursesLibName
  665. #endif
  666. #endif
  667. #ifdef NCursesLibDir
  668. NCURSESLIBDIR = NCursesLibDir
  669. #endif
  670. #ifdef NCursesIncDir
  671. NCURSESINCDIR = NCursesIncDir
  672. #endif
  673. #ifndef HasGlide2
  674. #define HasGlide2 NO
  675. #endif
  676. #ifndef Glide2IncDir
  677. #if HasGlide2
  678. #define Glide2IncDir /usr/include/glide
  679. #else
  680. #define Glide2IncDir
  681. #endif
  682. #endif
  683. GLIDE2INCDIR = Glide2IncDir
  684. #ifndef HasGlide3
  685. #define HasGlide3 NO
  686. #endif
  687. #ifndef Glide3IncDir
  688. #if HasGlide3
  689. #define Glide3IncDir /usr/include/glide3
  690. #else
  691. #define Glide3IncDir
  692. #endif
  693. #endif
  694. GLIDE3INCDIR = Glide3IncDir
  695. #ifndef Glide3LibName
  696. #if HasGlide3
  697. #define Glide3LibName glide3
  698. #else
  699. #define Glide3LibName
  700. #endif
  701. #endif
  702. GLIDE3LIBNAME = Glide3LibName
  703. #ifndef HasTk
  704. #define HasTk NO
  705. #endif
  706. #ifndef TkLibName
  707. #if HasTk
  708. #define TkLibName tk
  709. #else
  710. #define TkLibName
  711. #endif
  712. #endif
  713. TKLIBNAME = TkLibName
  714. #ifndef TkLibDir
  715. #if HasTk
  716. #define TkLibDir /usr/local/lib
  717. #else
  718. #define TkLibDir
  719. #endif
  720. #endif
  721. TKLIBDIR = TkLibDir
  722. #ifndef TkIncDir
  723. #if HasTk
  724. #define TkIncDir /usr/local/include
  725. #else
  726. #define TkIncDir
  727. #endif
  728. #endif
  729. #ifndef TkLibrary
  730. #ifdef HasTk
  731. #define TkLibrary Concat(-L,$(TKLIBDIR)) Concat(-l,$(TKLIBNAME))
  732. #else
  733. #define TkLibrary
  734. #endif
  735. #endif
  736. #ifndef HasTcl
  737. #define HasTcl NO
  738. #endif
  739. #ifndef TclLibName
  740. #if HasTcl
  741. #define TclLibName tcl
  742. #else
  743. #define TclLibName
  744. #endif
  745. #endif
  746. TCLLIBNAME = TclLibName
  747. #ifndef TclLibDir
  748. #if HasTcl
  749. #define TclLibDir /usr/local/lib
  750. #else
  751. #define TclLibDir
  752. #endif
  753. #endif
  754. TCLIBDIR = TclLibDir
  755. #ifndef TclIncDir
  756. #if HasTcl
  757. #define TclIncDir /usr/local/include
  758. #else
  759. #define TclIncDir
  760. #endif
  761. #endif
  762. #ifndef TclLibrary
  763. #ifdef HasTcl
  764. #define TclLibrary Concat(-L,$(TCLLIBDIR)) Concat(-l,$(TCLLIBNAME))
  765. #else
  766. #define TclLibrary
  767. #endif
  768. #endif
  769. #ifndef HasTsLib
  770. #define HasTsLib NO
  771. #endif
  772. /*
  773.  * Libtool has two different behaviours for version numbers.
  774.  * On platforms which support a minor number, the library
  775.  * version is (version - minor).minor, on those that don't,
  776.  * the version if version.0.  Linux and Darwin support minor
  777.  * numbers; some BSDs do as well.  Set this to YES if libtool
  778.  * uses minor numbers on your platform.
  779.  */
  780. #ifndef LibtoolMinorVersions
  781. #define LibtoolMinorVersions    NO
  782. #endif
  783. #ifndef NeedConstPrototypes
  784. #define NeedConstPrototypes    NO
  785. #endif
  786. #ifndef NeedVarargsPrototypes
  787. #define NeedVarargsPrototypes    NO
  788. #endif
  789. #ifndef NeedNestedPrototypes
  790. #define NeedNestedPrototypes    NO
  791. #endif
  792. #ifndef NeedFunctionPrototypes
  793. #define NeedFunctionPrototypes (NeedVarargsPrototypes || NeedNestedPrototypes)
  794. #endif
  795. #ifndef NeedWidePrototypes
  796. #define NeedWidePrototypes    YES    /* mix and match ANSI-C, non-ANSI */
  797. #endif
  798.  
  799. #ifndef UseCCMakeDepend            /* use slow cc -E script */
  800. #define UseCCMakeDepend NO
  801. #endif
  802. #ifndef UseGccMakeDepend        /* use slowish but correct gcc -M */
  803. #define UseGccMakeDepend NO
  804. #endif
  805.  
  806. #ifndef CaseSensitiveFileSystem
  807. #define CaseSensitiveFileSystem YES
  808. #endif
  809.  
  810. /* DefaultUsrBin is independent of ProjectRoot.
  811.    This is a directory where programs will be found even if PATH
  812.    is not set, for example when coming in remotely via rsh. */
  813. #ifndef DefaultUsrBin
  814. #define    DefaultUsrBin /usr/bin
  815. #endif
  816.  
  817. #ifndef LibDirName
  818. # define LibDirName lib
  819. #endif
  820.  
  821. #ifndef UsrLibDir
  822. #ifdef ProjectRoot
  823. #define UsrLibDir Concat3(ProjectRoot,/,LibDirName)
  824. #ifndef AlternateUsrLibDir
  825. #define AlternateUsrLibDir YES
  826. #endif
  827. #else
  828. #define UsrLibDir Concat3(/usr,/,LibDirName)
  829. #ifndef AlternateUsrLibDir
  830. #define AlternateUsrLibDir NO
  831. #endif
  832. #endif
  833. #else
  834. #ifndef AlternateUsrLibDir
  835. #define AlternateUsrLibDir YES
  836. #endif
  837. #endif
  838. #ifndef VarDirectory
  839. #ifdef ProjectVar
  840. #define VarDirectory ProjectVar
  841. #else
  842. #define VarDirectory /var
  843. #endif
  844. #endif
  845. #ifndef VarLibDir
  846. #define VarLibDir $(VARDIR)/lib
  847. #endif
  848.  
  849. /*
  850.  * SystemUsrLibDir is independent of ProjectRoot.  It is used primarily
  851.  * to allow links for shared libraries in /usr/lib for compliance to
  852.  * various standards (e.g., Linux/OpenGL).
  853.  */
  854. #ifndef SystemUsrLibDir
  855. #define SystemUsrLibDir /usr/LibDirName
  856. #endif
  857. #ifndef SystemUsrIncDir
  858. #define SystemUsrIncDir /usr/include
  859. #endif
  860.  
  861. #ifndef ShLibDir
  862. #define ShLibDir UsrLibDir
  863. #endif
  864. #ifndef IncRoot
  865. #ifdef ProjectRoot
  866. #define IncRoot Concat(ProjectRoot,/include)
  867. #ifndef AlternateIncRoot
  868. #define AlternateIncRoot YES
  869. #endif
  870. #else
  871. #define IncRoot /usr/include
  872. #ifndef AlternateIncRoot
  873. #define AlternateIncRoot NO
  874. #endif
  875. #endif
  876. #else
  877. #ifndef AlternateIncRoot
  878. #define AlternateIncRoot YES
  879. #endif
  880. #endif
  881. #ifndef LintlibDir
  882. #define LintlibDir $(USRLIBDIR)/lint
  883. #endif
  884. #ifndef SystemManDirectory
  885. #if SystemV4
  886. #define SystemManDirectory /usr/share/man
  887. #else
  888. #define SystemManDirectory /usr/man
  889. #endif
  890. #endif
  891. #ifndef ManDirectoryRoot
  892. #ifdef ProjectRoot
  893. #define ManDirectoryRoot Concat(ProjectRoot,/man)
  894. #else
  895. #define ManDirectoryRoot SystemManDirectory
  896. #endif
  897. #endif
  898. #ifndef ManPath
  899. #define ManPath ManDirectoryRoot
  900. #endif
  901. #ifndef ManSourcePath
  902. #define ManSourcePath $(MANPATH)/man
  903. #endif
  904. #ifndef ManDir
  905. #define ManDir $(MANSOURCEPATH)$(MANSECT)
  906. #endif
  907. #ifndef ManSuffix
  908. #define ManSuffix $(MANSECT)$(PROJECTMANSUFFIX)
  909. #endif
  910. #ifndef SyscallManDir
  911. #define SyscallManDir $(MANSOURCEPATH)$(SYSCALLMANSECT)
  912. #endif
  913. #ifndef SyscallManSuffix
  914. #define SyscallManSuffix $(SYSCALLMANSECT)$(PROJECTMANSUFFIX)
  915. #endif
  916. #ifndef LibManDir
  917. #define LibManDir $(MANSOURCEPATH)$(LIBMANSECT)
  918. #endif
  919. #ifndef LibManSuffix
  920. #define LibManSuffix $(LIBMANSECT)$(PROJECTMANSUFFIX)
  921. #endif
  922. #ifndef DriverManDir
  923. #define DriverManDir $(MANSOURCEPATH)$(DRIVERMANSECT)
  924. #endif
  925. #ifndef DriverManSuffix
  926. #define DriverManSuffix $(DRIVERMANSECT)$(PROJECTMANSUFFIX)
  927. #endif
  928. #ifndef FileManDir
  929. #define FileManDir $(MANSOURCEPATH)$(FILEMANSECT)
  930. #endif
  931. #ifndef FileManSuffix
  932. #define FileManSuffix $(FILEMANSECT)$(PROJECTMANSUFFIX)
  933. #endif
  934. #ifndef GameManDir
  935. #define GameManDir $(MANSOURCEPATH)$(GAMEMANSECT)
  936. #endif
  937. #ifndef GameManSuffix
  938. #define GameManSuffix $(GAMEMANSECT)$(PROJECTMANSUFFIX)
  939. #endif
  940. #ifndef MiscManDir
  941. #define MiscManDir $(MANSOURCEPATH)$(MISCMANSECT)
  942. #endif
  943. #ifndef MiscManSuffix
  944. #define MiscManSuffix $(MISCMANSECT)$(PROJECTMANSUFFIX)
  945. #endif
  946. #ifndef AdmManDir
  947. #define AdmManDir $(MANSOURCEPATH)$(ADMMANSECT)
  948. #endif
  949. #ifndef AdmManSuffix
  950. #define AdmManSuffix $(ADMMANSECT)$(PROJECTMANSUFFIX)
  951. #endif
  952. #ifndef AppManDefs
  953. #define AppManDefs -D__appmansuffix__=$(MANSECT)$(PROJECTMANSUFFIX)
  954. #endif
  955. #ifndef ManDefs
  956. #define ManDefs -D__mansuffix__=$(MANSECT)$(PROJECTMANSUFFIX) -D__osmansuffix__=$(MANSECT)
  957. #endif
  958. #ifndef SyscallManDefs
  959. #define SyscallManDefs -D__syscallmansuffix__=$(SYSCALLMANSECT)$(PROJECTMANSUFFIX) -D__ossysmansuffix__=$(SYSCALLMANSECT)
  960. #endif
  961. #ifndef LibManDefs
  962. #define LibManDefs -D__libmansuffix__=$(LIBMANSECT)$(PROJECTMANSUFFIX) -D__oslibmansuffix__=$(LIBMANSECT)
  963. #endif
  964. #ifndef DriverManDefs
  965. #define DriverManDefs -D__drivermansuffix__=$(DRIVERMANSECT)$(PROJECTMANSUFFIX) -D__osdrivermansuffix__=$(DRIVERMANSECT)
  966. #endif
  967. #ifndef FileManDefs
  968. #define FileManDefs -D__filemansuffix__=$(FILEMANSECT)$(PROJECTMANSUFFIX) -D__osfilemansuffix__=$(FILEMANSECT)
  969. #endif
  970. #ifndef GameManDefs
  971. #define GameManDefs -D__gamemansuffix__=$(GAMEMANSECT)$(PROJECTMANSUFFIX) -D__osgamemansuffix__=$(GAMEMANSECT)
  972. #endif
  973. #ifndef MiscManDefs
  974. #define MiscManDefs -D__miscmansuffix__=$(MISCMANSECT)$(PROJECTMANSUFFIX) -D__osmiscmansuffix__=$(MISCMANSECT)
  975. #endif
  976. #ifndef AdmManDefs
  977. #define AdmManDefs -D__admmansuffix__=$(ADMMANSECT)$(PROJECTMANSUFFIX) -D__osadmmansuffix__=$(ADMMANSECT)
  978. #endif
  979. #ifndef AppLoadDefs
  980. #define AppLoadDefs -D__apploaddir__=$(XAPPLOADDIR)
  981. #endif
  982. #ifndef AdminManDefs
  983. #define AdminManDefs -D__adminmansuffix__=$(ADMINMANSUFFIX)
  984. #endif
  985. #ifndef ProjectManDefs
  986. #define ProjectManDefs -D__projectroot__=$(PROJECTROOT)
  987. #endif
  988. #ifndef XConfigFileManDefs
  989. #define XConfigFileManDefs -D__xconfigfile__=$(XCONFIGFILE)
  990. #endif
  991. #ifndef XConfigDirManDefs
  992. #define XConfigDirManDefs -D__xconfigdir__=$(XCONFIGDIR)
  993. #endif
  994. #ifndef XLogFileManDefs
  995. #define XLogFileManDefs -D__xlogfile__=$(XLOGFILE)
  996. #endif
  997. #ifndef XServerManDefs
  998. #define XServerManDefs -D__xservername__=$(XSERVERNAME)
  999. #endif
  1000.  
  1001. #ifndef CompressManCmd
  1002. #define CompressManCmd gzip -n
  1003. #endif
  1004.  
  1005. #ifndef HtmlIndexCmd
  1006. #if BuildHtmlManPages
  1007. #define HtmlIndexCmd $(MKHTMLINDEX)
  1008. #endif
  1009. #endif
  1010.  
  1011. #ifndef IconDir
  1012. # if !NothingOutsideProjectRoot
  1013. #  define IconDir       "/usr/share/icons"
  1014. #  ifndef XcursorPath
  1015. #   define XcursorPath  "~/.icons:/usr/share/icons:/usr/share/pixmaps"
  1016. #  endif
  1017. # else
  1018. #  define IconDir       Concat(ProjectRoot,/lib/X11/icons)
  1019. # endif
  1020. #endif
  1021.  
  1022. #ifndef XcursorPath
  1023. # define XcursorPath    Concat(~/.icons:/usr/share/icons:/usr/share/pixmaps:,IconDir)
  1024. #endif
  1025.  
  1026. #ifndef LogDirectory
  1027. #if HasVarDirectory
  1028. #define LogDirectory $(VARDIR)/log
  1029. #else
  1030. #define LogDirectory /usr/adm
  1031. #endif
  1032. #endif
  1033.  
  1034. #ifndef HasVarRun
  1035. #define HasVarRun NO
  1036. #endif
  1037.  
  1038. #ifndef VarRunDirectory
  1039. #if HasVarRun
  1040. #define VarRunDirectory $(VARDIR)/run
  1041. #endif
  1042. #endif
  1043.  
  1044. #ifndef HasVarDb
  1045. #define HasVarDb NO
  1046. #endif
  1047.  
  1048. #ifndef VarDbDirectory
  1049. #if HasVarDb
  1050. #define VarDbDirectory $(VARDIR)/db
  1051. #endif
  1052. #endif
  1053.  
  1054. #ifndef ConfigSrc
  1055. #define ConfigSrc $(TOP)/config
  1056. #endif
  1057. #ifndef DependDir
  1058. #if UseCCMakeDepend || UseGccMakeDepend
  1059. #define DependDir $(CONFIGSRC)/util
  1060. #else
  1061. #define DependDir $(CONFIGSRC)/makedepend
  1062. #endif
  1063. #endif
  1064. #ifndef UNCOMPRESSPATH
  1065. #define UNCOMPRESSPATH /usr/ucb/uncompress /* obsolete */
  1066. #endif
  1067. #ifndef OptimizedCDebugFlags
  1068. #define OptimizedCDebugFlags -O
  1069. #endif
  1070. #ifndef OptimizedCplusplusDebugFlags
  1071. #define OptimizedCplusplusDebugFlags OptimizedCDebugFlags
  1072. #endif
  1073. #ifndef DebuggableCDebugFlags
  1074. #define DebuggableCDebugFlags -g
  1075. #endif
  1076. #ifndef DebuggableCplusplusDebugFlags
  1077. #define DebuggableCplusplusDebugFlags DebuggableCDebugFlags
  1078. #endif
  1079. #ifndef ProfiledCDebugFlags
  1080. #define ProfiledCDebugFlags -pg
  1081. #endif
  1082. #ifndef ProfiledCplusplusDebugFlags
  1083. #define ProfiledCplusplusDebugFlags ProfiledCDebugFlags
  1084. #endif
  1085. #ifndef NoOpCDebugFlags
  1086. #define NoOpCDebugFlags /**/
  1087. #endif
  1088. #ifndef DefaultCDebugFlags
  1089. #define DefaultCDebugFlags OptimizedCDebugFlags
  1090. #endif
  1091. #ifndef DefaultCplusplusDebugFlags
  1092. #define DefaultCplusplusDebugFlags OptimizedCplusplusDebugFlags
  1093. #endif
  1094. #ifndef DefaultCCOptions
  1095. #define DefaultCCOptions /* floating point, etc. */
  1096. #endif
  1097. #ifndef DefaultCplusplusOptions
  1098. #define DefaultCplusplusOptions /* floating point, etc. */
  1099. #endif
  1100. #ifndef HardCodeLibdirFlag
  1101. #define HardCodeLibdirFlag    /**/
  1102. #endif
  1103. #ifndef NoRConst
  1104. #define NoRConst NO /* YES if const for structs of funcs is bad */
  1105. #endif
  1106. #ifndef InstPgmFlags
  1107. # if CrossCompiling
  1108. #  define InstPgmFlags
  1109. # else
  1110. #  define InstPgmFlags -s
  1111. # endif
  1112. #endif
  1113. #ifndef InstBinFlags
  1114. #define InstBinFlags -m 0755
  1115. #endif
  1116. #ifndef InstUidFlags
  1117. #define InstUidFlags -m 4711
  1118. #endif
  1119. #ifndef InstLibFlags
  1120. #define InstLibFlags -m 0644
  1121. #endif
  1122. #ifndef InstIncFlags
  1123. #define InstIncFlags -m 0444
  1124. #endif
  1125. #ifndef InstManFlags
  1126. #define InstManFlags -m 0444
  1127. #endif
  1128. #ifndef InstDatFlags
  1129. #define InstDatFlags -m 0444
  1130. #endif
  1131. #ifndef InstKmemFlags     /* put -g kmem -m 2711 in site.def... */
  1132. #define InstKmemFlags InstUidFlags
  1133. #endif
  1134. #ifndef ParallelMakeFlags
  1135. #define ParallelMakeFlags /**/
  1136. #endif
  1137. #ifndef ArCmdBase
  1138. #define ArCmdBase ar
  1139. #endif
  1140. #ifndef ArCmd
  1141. #if HasLargeTmp || SystemV4
  1142. #define ArCmd ArCmdBase cq
  1143. #else
  1144. #define ArCmd ArCmdBase clq
  1145. #endif
  1146. #endif
  1147. #ifndef ArAddCmd
  1148. #if HasLargeTmp || SystemV4
  1149. #define ArAddCmd ArCmdBase ru
  1150. #else
  1151. #define ArAddCmd ArCmdBase rul
  1152. #endif
  1153. #endif
  1154. #ifndef ArExtCmd
  1155. #if HasLargeTmp || SystemV4
  1156. #define ArExtCmd ArCmdBase x
  1157. #else
  1158. #define ArExtCmd ArCmdBase xl
  1159. #endif
  1160. #endif
  1161. #ifndef BootstrapCFlags
  1162. #define BootstrapCFlags /**/
  1163. #endif
  1164. #ifndef HasGcc3
  1165. #define HasGcc3 NO
  1166. #endif
  1167. #ifndef HasGcc2
  1168. #define HasGcc2 HasGcc3
  1169. #endif
  1170. #ifndef HasGcc
  1171. #define HasGcc HasGcc2
  1172. #endif
  1173. #ifndef HasIntelC
  1174. #define HasIntelC NO
  1175. #endif
  1176. #ifndef HasSunC
  1177. #define HasSunC NO
  1178. #endif
  1179. #ifndef HasBrokenCCForLink
  1180. #define HasBrokenCCForLink NO
  1181. #endif
  1182. #ifndef CcCmd
  1183. #if HasGcc2
  1184. #define CcCmd gcc -fpcc-struct-return
  1185. #else
  1186. #if HasGcc
  1187. #define CcCmd gcc -fstrength-reduce -fpcc-struct-return
  1188. #else
  1189. #if HasCenterLineC
  1190. #define CcCmd clcc
  1191. #else
  1192. #define CcCmd cc
  1193. #endif
  1194. #endif
  1195. #endif
  1196. #endif
  1197. #ifndef CplusplusCmd
  1198. #if HasGcc2ForCplusplus
  1199. #define CplusplusCmd g++
  1200. #else
  1201. #define CplusplusCmd CC
  1202. #endif
  1203. #endif
  1204. #ifndef CplusplusFilt
  1205. # define CplusplusFilt    c++filt
  1206. #endif
  1207. #ifndef CplusplusLibC
  1208. #if HasGcc2ForCplusplus
  1209. #define CplusplusLibC    -lstdc++
  1210. #else
  1211. #define CplusplusLibC /**/
  1212. #endif
  1213. #endif
  1214. #ifndef CplusplusStandardDefines
  1215. #define CplusplusStandardDefines StandardDefines
  1216. #endif
  1217. #ifndef CplusplusExtraDefines
  1218. #define CplusplusExtraDefines /**/
  1219. #endif
  1220. #ifndef CplusplusExtraIncludes
  1221. #define CplusplusExtraIncludes /**/
  1222. #endif
  1223. #ifndef CplusplusDependIncludes
  1224. #define CplusplusDependIncludes /**/
  1225. #endif
  1226. #ifndef CplusplusOptions
  1227. #define CplusplusOptions DefaultCplusplusOptions
  1228. #endif
  1229. #ifndef CplusplusSpecialOptions
  1230. #define CplusplusSpecialOptions /**/
  1231. #endif
  1232. #if HasFortran
  1233. #ifndef FortranCmd
  1234. #define FortranCmd f77
  1235. #endif
  1236. #ifndef FortranFlags
  1237. #define FortranFlags /**/
  1238. #endif
  1239. #ifndef FortranDebugFlags    /* for -O or -g */
  1240. #define FortranDebugFlags /**/
  1241. #endif
  1242. #endif
  1243. #ifndef AsCmd
  1244. #define AsCmd as
  1245. #endif
  1246. #ifndef AsmDefines
  1247. #define AsmDefines /**/
  1248. #endif
  1249. #ifndef CompressCmd
  1250. #define CompressCmd compress
  1251. #endif
  1252. #ifndef GzipCmd
  1253. #define GzipCmd gzip
  1254. #endif
  1255. #ifndef CppCmd
  1256. #define CppCmd /LibDirName/cpp
  1257. #endif
  1258. #ifndef RawCppCmd
  1259. #define RawCppCmd CppCmd -undef
  1260. #endif
  1261. #ifndef CppNoLineInfoOption
  1262. #define CppNoLineInfoOption /**/
  1263. #endif
  1264. #ifndef PreProcessCmd
  1265. #define PreProcessCmd CcCmd -E
  1266. #endif
  1267. #ifndef InstallCmd        /* hack should be in project */
  1268. #if SystemV || SystemV4
  1269. #ifdef UseInstalled        /* assume BINDIR in path */
  1270. #define InstallCmd bsdinst
  1271. #else
  1272. #define InstallCmd $(SHELL) $(CONFIGSRC)/util/bsdinst.sh
  1273. #endif
  1274. #else
  1275. #define InstallCmd install
  1276. #endif
  1277. #endif
  1278. #ifndef InstallFlags
  1279. #define InstallFlags -c
  1280. #endif
  1281. #ifndef StripCmd
  1282. #define StripCmd strip
  1283. #endif
  1284. #ifndef LdCmd
  1285. #define LdCmd ld
  1286. #endif
  1287. #ifndef M4Cmd
  1288. #define M4Cmd m4
  1289. #endif
  1290. #ifndef M4Flags
  1291. #define M4Flags /**/
  1292. #endif
  1293. #ifndef LexCmd
  1294. #define LexCmd lex
  1295. #endif
  1296. #ifndef LexLib
  1297. #define LexLib -ll
  1298. #endif
  1299. #ifndef HasFlex
  1300. #define HasFlex NO
  1301. #endif
  1302. #ifndef YaccCmd
  1303. #define YaccCmd yacc
  1304. #endif
  1305. #ifndef CplusplusYaccCmd
  1306. #define CplusplusYaccCmd YaccCmd
  1307. #endif
  1308. #ifndef LintCmd
  1309. #define LintCmd lint
  1310. #endif
  1311. #ifndef LintLibFlag
  1312. #if SystemV || SystemV4
  1313. #define LintLibFlag -o
  1314. #else
  1315. #define LintLibFlag -C
  1316. #endif
  1317. #endif
  1318. #ifndef LintOpts
  1319. #if SystemV || SystemV4
  1320. #define LintOpts -bh
  1321. #else
  1322. #define LintOpts -axz
  1323. #endif
  1324. #endif
  1325. #ifndef CpCmd
  1326. #define CpCmd cp
  1327. #endif
  1328. #ifndef LnCmd /* can use cp instead of ln if necessary */
  1329. #if HasSymLinks
  1330. #define LnCmd ln -s
  1331. #else
  1332. #define LnCmd ln
  1333. #endif
  1334. #endif
  1335. #ifndef MakeCmd
  1336. #define MakeCmd make
  1337. #endif
  1338. #ifndef MvCmd
  1339. #define MvCmd mv -f
  1340. #endif
  1341. #ifndef RanlibCmd
  1342. #define RanlibCmd ranlib
  1343. #endif
  1344. #ifndef RanlibInstFlags
  1345. #define RanlibInstFlags /**/
  1346. #endif
  1347. #ifndef RmCmd
  1348. #define RmCmd rm -f
  1349. #endif
  1350.  
  1351. /*
  1352.  * Module cross-compile stuff.  By default they are defined to be exactly the
  1353.  * same as the non-module versions.
  1354.  */
  1355. #ifndef ModuleCcCmd
  1356. #define ModuleCcCmd CcCmd
  1357. #endif
  1358. #ifndef ModuleCppCmd
  1359. #define ModuleCppCmd CppCmd
  1360. #endif
  1361. #ifndef ModuleCFlags
  1362. #define ModuleCFlags $(CFLAGS)
  1363. #endif
  1364. #ifndef ModuleAsCmd
  1365. #define ModuleAsCmd AsCmd
  1366. #endif
  1367. #ifndef ModuleAsFlags
  1368. #define ModuleAsFlags /**/
  1369. #endif
  1370. #ifndef ModuleLdCmd
  1371. #define ModuleLdCmd LdCmd
  1372. #endif
  1373. #ifndef ModuleLdFlags
  1374. #define ModuleLdFlags /**/
  1375. #endif
  1376. #ifndef ModuleLdCombineFlags
  1377. #define ModuleLdCombineFlags LdCombineFlags
  1378. #endif
  1379. #ifndef ModuleArCmd
  1380. #define ModuleArCmd ArCmd
  1381. #endif
  1382. #ifndef NeedModuleRanlib
  1383. #define NeedModuleRanlib NO
  1384. #endif
  1385. #ifndef ModuleRanlibCmd
  1386. #define ModuleRanlibCmd RanlibCmd
  1387. #endif
  1388.  
  1389. #ifndef HostCcCmd
  1390. #define HostCcCmd cc
  1391. #endif
  1392. #ifndef StandardIncludes    /* for platform-specifics */
  1393. #define StandardIncludes /**/
  1394. #endif
  1395. #ifndef StandardDefines
  1396. #if SystemV
  1397. #define StandardDefines -DSYSV
  1398. #else
  1399. #if SystemV4
  1400. #define StandardDefines -DSVR4
  1401. #else
  1402. #define StandardDefines /**/
  1403. #endif
  1404. #endif
  1405. #endif
  1406. #ifndef StandardCppOptions
  1407. #define StandardCppOptions /**/
  1408. #endif
  1409. #ifndef StandardCppDefines
  1410. #define StandardCppDefines StandardCppOptions StandardDefines
  1411. #endif
  1412. #ifndef Malloc0ReturnsNull
  1413. #if UseGnuMalloc
  1414. #define Malloc0ReturnsNull YES
  1415. #else
  1416. #define Malloc0ReturnsNull NO
  1417. #endif
  1418. #endif
  1419. #if Malloc0ReturnsNull
  1420. #ifndef Malloc0ReturnsNullDefines
  1421. #define Malloc0ReturnsNullDefines -DMALLOC_0_RETURNS_NULL
  1422. #endif
  1423. #endif
  1424. #ifndef ToolkitStringsABIOptions
  1425. #define ToolkitStringsABIOptions /**/
  1426. #endif
  1427. #ifndef NdbmDefines
  1428. #if HasNdbm
  1429. #define NdbmDefines -DNDBM
  1430. #else
  1431. #define NdbmDefines /**/
  1432. #endif
  1433. #endif
  1434. #ifndef HasLdRunPath
  1435. #define HasLdRunPath NO
  1436. #endif
  1437. #ifndef LdPreLib
  1438. # if !defined(UseInstalled)
  1439. #  define LdPreLib -L$(BUILDLIBDIR)
  1440. # else
  1441. # if AlternateUsrLibDir
  1442. #  define LdPreLib -L$(USRLIBDIR)
  1443. # else
  1444. # define LdPreLib /**/
  1445. # endif
  1446. #endif
  1447. #endif
  1448. #ifndef LdPostLib
  1449. #if !defined(UseInstalled) && AlternateUsrLibDir && !HasLdRunPath && !defined(CrossCompileDir)
  1450. #define LdPostLib -L$(USRLIBDIR)
  1451. #else
  1452. #define LdPostLib /**/
  1453. #endif
  1454. #endif
  1455. #ifndef MathLibrary
  1456. #define MathLibrary -lm
  1457. #endif
  1458. #ifndef DBMLibrary
  1459. #define DBMLibrary -ldbm
  1460. #endif
  1461. #ifndef DlLibrary
  1462. #define DlLibrary -ldl
  1463. #endif
  1464. #ifndef ExtraLibraries
  1465. #if SystemV4
  1466. #if HasSockets
  1467. #define ExtraLibraries -lsocket -lnsl -lw
  1468. #else
  1469. #define ExtraLibraries -lnsl -lw
  1470. #endif
  1471. #else
  1472. #define ExtraLibraries /**/
  1473. #endif
  1474. #endif
  1475. #ifndef ExtraLoadOptions
  1476. #define ExtraLoadOptions /**/
  1477. #endif
  1478. #ifndef ExtraLoadFlags
  1479. #define ExtraLoadFlags /**/
  1480. #endif
  1481. #ifndef LdCombineFlags
  1482. #if SystemV4
  1483. #define LdCombineFlags -r
  1484. #else
  1485. #define LdCombineFlags -X -r
  1486. #endif
  1487. #endif
  1488. #ifndef LdStripFlags
  1489. #define LdStripFlags -x
  1490. #endif
  1491. #ifndef TagsCmd
  1492. #define TagsCmd ctags
  1493. #endif
  1494. #ifndef LoaderLibPrefix
  1495. #define LoaderLibPrefix /**/
  1496. #endif
  1497. #ifndef ImakeCmd
  1498. #ifdef UseInstalled        /* assume BINDIR in path */
  1499. #define ImakeCmd imake
  1500. #else
  1501. #define ImakeCmd $(IMAKESRC)/imake
  1502. #endif
  1503. #endif
  1504. #ifndef ImakeWarningFlags
  1505. #define ImakeWarningFlags    /* Nothing */
  1506. #endif
  1507. #ifndef DependCmd
  1508. #if UseGccMakeDepend
  1509. #ifdef UseInstalled        /* assume BINDIR in path */
  1510. #define DependCmd gccmakedep
  1511. #else
  1512. #define DependCmd $(DEPENDSRC)/gccmakedep
  1513. #endif
  1514. #elif UseCCMakeDepend
  1515. #ifdef UseInstalled        /* assume BINDIR in path */
  1516. #define DependCmd ccmakedep
  1517. #else
  1518. #define DependCmd $(DEPENDSRC)/ccmakedep
  1519. #endif
  1520. #else
  1521. #ifdef UseInstalled        /* assume BINDIR in path */
  1522. #define DependCmd makedepend
  1523. #else
  1524. #define DependCmd $(DEPENDSRC)/makedepend
  1525. #endif
  1526. #endif
  1527. #endif
  1528. #ifndef DependDefines
  1529. # if UseCCMakeDepend || UseGccMakeDepend
  1530. #  define DependDefines /**/
  1531. # else
  1532. #  define DependDefines -DUSE_MAKEDEPEND
  1533. # endif
  1534. #endif
  1535. #ifndef DependFlags
  1536. #define DependFlags /**/
  1537. #endif
  1538. #ifndef DependFileName
  1539. #if !HasBsdMake
  1540. #define DependFileName Makefile.dep
  1541. #else
  1542. #define DependFileName .depend
  1543. #endif
  1544. #endif
  1545. #ifndef ExportListCmd
  1546. # ifndef ExportListGenSource
  1547. #  define ExportListCmd        /**/
  1548. # elif !defined(UseInstalled)
  1549. #  define ExportListCmd        $(CONFIGSRC)/util/exportlistgen
  1550. # else
  1551. #  define ExportListCmd        exportlistgen
  1552. # endif
  1553. #endif
  1554. #ifndef MkdirHierCmd
  1555. #ifdef UseInstalled        /* assume BINDIR in path */
  1556. #define MkdirHierCmd mkdirhier
  1557. #else
  1558. #define MkdirHierCmd $(SHELL) $(CONFIGSRC)/util/mkdirhier.sh
  1559. #endif
  1560. #endif
  1561. #ifndef RevPathCmd
  1562. #ifdef UseInstalled        /* assume BINDIR in path */
  1563. #define RevPathCmd revpath
  1564. #else
  1565. #define RevPathCmd $(CONFIGSRC)/util/revpath
  1566. #endif
  1567. #endif
  1568. #ifndef TroffCmd
  1569. #if HasGroff
  1570. #define TroffCmd groff -Tps
  1571. #else
  1572. #define TroffCmd troff -Tps
  1573. #endif
  1574. #endif
  1575. #ifndef NroffCmd
  1576. #define NroffCmd nroff
  1577. #endif
  1578. #ifndef HTMLroffCmd
  1579. #if HasGroff && HasGroffHtml
  1580. #define HTMLroffCmd groff -Thtml
  1581. #endif
  1582. #endif
  1583. #ifdef HTMLroffCmd
  1584. #ifndef DocFilesToClean
  1585. #define DocFilesToClean grohtml*.png *-auto-*.png
  1586. #endif
  1587. #endif
  1588. #ifndef MsMacros
  1589. #define MsMacros -ms
  1590. #endif
  1591. #ifndef ManMacros
  1592. #define ManMacros -man
  1593. #endif
  1594. #ifndef TblCmd
  1595. #define TblCmd tbl
  1596. #endif
  1597. #ifndef EqnCmd
  1598. #define EqnCmd eqn
  1599. #endif
  1600. #ifndef NeqnCmd
  1601. #define NeqnCmd neqn
  1602. #endif
  1603. #ifndef ColCmd
  1604. #define ColCmd col
  1605. #endif
  1606. #ifndef ColFlags
  1607. #define ColFlags -b
  1608. #endif
  1609. #ifndef DvipsCmd
  1610. #define DvipsCmd dvips
  1611. #endif
  1612. #ifndef LatexCmd
  1613. #define LatexCmd latex
  1614. #endif
  1615. #ifndef HasPdfLatex
  1616. #define HasPdfLatex NO
  1617. #endif
  1618. #ifndef PdfLatexCmd
  1619. #define PdfLatexCmd pdflatex
  1620. #endif
  1621. #ifndef GhostScriptCmd
  1622. #define GhostScriptCmd gs
  1623. #endif
  1624. #ifndef HasGhostPCL
  1625. #define HasGhostPCL NO
  1626. #endif
  1627. #ifndef HasGhostScript
  1628. #define HasGhostScript NO
  1629. #endif
  1630. #ifndef BuildPDFdocs
  1631. #define BuildPDFdocs (HasGhostScript)
  1632. #endif
  1633. #if BuildPDFdocs
  1634. #define PsToPdfCmd GhostScriptCmd -q -sOutputFile=- -sDEVICE=pdfwrite -dSAFER -dNOPAUSE -
  1635. #endif
  1636. #if HasSentinel
  1637. #ifndef SentinelCmd
  1638. #define SentinelCmd sentinel
  1639. #endif
  1640. #ifndef SentinelOptions
  1641. #define SentinelOptions /**/
  1642. #endif
  1643. #endif
  1644. #if HasPurify
  1645. #ifndef PurifyCmd
  1646. #define PurifyCmd purify
  1647. #endif
  1648. #ifndef PurifyOptions
  1649. #define PurifyOptions /**/
  1650. #endif
  1651. #endif
  1652. #if HasTestCenter
  1653. #ifndef ProofCmd
  1654. #define ProofCmd proof
  1655. #endif
  1656. #ifndef ProofOptions
  1657. #define ProofOptions /**/
  1658. #endif
  1659. #endif
  1660. #ifndef PathSeparator
  1661. #define PathSeparator /
  1662. #endif
  1663. #ifndef Osuf
  1664. #define Osuf o
  1665. #endif
  1666. #ifndef CCsuf
  1667. #define CCsuf cc
  1668. #endif
  1669. #ifndef SHsuf
  1670. #define SHsuf sh
  1671. #endif
  1672. #ifndef ManSection
  1673. #define ManSection    1        /* use just one tab or cpp will die */
  1674. #endif
  1675. #ifndef SyscallManSection
  1676. #define SyscallManSection    2    /* use just one tab or cpp will die */
  1677. #endif
  1678. #ifndef LibManSection
  1679. #define LibManSection    3        /* use just one tab or cpp will die */
  1680. #endif
  1681. #ifndef DriverManSection
  1682. #if SystemV || SystemV4 || defined(OSF1Architecture)
  1683. #define DriverManSection    7    /* use just one tab or cpp will die */
  1684. #else
  1685. #define DriverManSection    4    /* use just one tab or cpp will die */
  1686. #endif
  1687. #endif
  1688. #ifndef FileManSection
  1689. #if SystemV || SystemV4 || defined(OSF1Architecture)
  1690. #define FileManSection    4        /* use just one tab or cpp will die */
  1691. #else
  1692. #define FileManSection    5        /* use just one tab or cpp will die */
  1693. #endif
  1694. #endif
  1695. #ifndef GameManSection
  1696. #define GameManSection    6        /* use just one tab or cpp will die */
  1697. #endif
  1698. #ifndef MiscManSection
  1699. #if SystemV || SystemV4 || defined(OSF1Architecture)
  1700. #define MiscManSection    5        /* use just one tab or cpp will die */
  1701. #else
  1702. #define MiscManSection    7        /* use just one tab or cpp will die */
  1703. #endif
  1704. #endif
  1705. #ifndef AdmManSection
  1706. #define AdmManSection    8        /* use just one tab or cpp will die */
  1707. #endif
  1708. #ifndef ManSrcSection
  1709. #define ManSrcSection    s        /* use just one tab or cpp will die */
  1710. #endif
  1711. #ifndef ManNewSection
  1712. #define ManNewSection    n        /* use just one tab or cpp will die */
  1713. #endif
  1714. #ifndef ProjectManSuffix
  1715. #define ProjectManSuffix    X11    /* use just one tab or cpp will die */
  1716. #endif
  1717. #ifndef AdminManSuffix
  1718. #if SystemV || SystemV4
  1719. #define AdminManSuffix    1m        /* use just one tab or cpp will die */
  1720. #else
  1721. #define AdminManSuffix    8        /* use just one tab or cpp will die */
  1722. #endif
  1723. #endif
  1724. #ifndef ExpandManNames
  1725. #if SystemV
  1726. #define ExpandManNames NO
  1727. #else
  1728. #define ExpandManNames YES
  1729. #endif
  1730. #endif
  1731. #ifndef ManSrcSuffix
  1732. #define ManSrcSuffix    man
  1733. #endif
  1734. #ifndef ManNewSuffix
  1735. #define ManNewSuffix    _man
  1736. #endif
  1737. #ifndef TOPDIR
  1738. #define TOPDIR .
  1739. #endif
  1740. #ifndef CURDIR
  1741. #define CURDIR .
  1742. #endif
  1743. #ifndef SiteIConfigFiles
  1744. #define SiteIConfigFiles /**/
  1745. #endif
  1746. #ifndef OtherIConfigFiles
  1747. #define OtherIConfigFiles /**/
  1748. #endif
  1749. #ifndef ExtraFilesToClean
  1750. #define ExtraFilesToClean /**/
  1751. #endif
  1752. #ifndef DocFilesToClean
  1753. #define DocFilesToClean /**/
  1754. #endif
  1755. #ifndef FilesToClean
  1756. #define FilesToClean *.CKP *.ln *.BAK *.bak *.Osuf core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  1757. #endif
  1758.  
  1759. #ifdef CrossCompileDir
  1760. # ifndef StripPath
  1761. #  define StripPath(x) `echo x|sed "s%.*/%%"`
  1762. # endif
  1763. # ifndef CrossArCmd
  1764. #  define CrossArCmd Concat3(CrossCompileDir,/,StripPath(ArCmd))
  1765. # endif
  1766. # ifndef CrossCcCmd
  1767. #  define CrossCcCmd Concat3(CrossCompileDir,/,StripPath(CcCmd))
  1768. # endif
  1769. # ifndef CrossAsCmd
  1770. #  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
  1771. # endif
  1772. # ifdef HasFortran
  1773. #  ifndef CrossFortranCmd
  1774. #   define CrossFortranCmd Concat3(CrossCompileDir,/,StripPath(FortranCmd))
  1775. #  endif
  1776. # endif
  1777. # ifndef CrossCplusplusCmd
  1778. #  define CrossCplusplusCmd Concat3(CrossCompileDir,/,StripPath(CplusplusCmd))
  1779. # endif
  1780. # ifndef CrossCppCmd
  1781. #  define CrossCppCmd Concat3(CrossCompileDir,/,StripPath(CppCmd))
  1782. # endif
  1783. # ifndef CrossRawCppCmdCmd
  1784. #  define CrossRawCppCmd Concat3(CrossCompileDir,/,StripPath(RawCppCmd))
  1785. # endif
  1786. # ifndef CrossPreProcessCmd
  1787. #  define CrossPreProcessCmd Concat3(CrossCompileDir,/,StripPath(PreProcessCmd))
  1788. # endif
  1789. # ifndef CrossAsCmd
  1790. #  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
  1791. # endif
  1792. # ifndef CrossLdCmd
  1793. #  define CrossLdCmd Concat3(CrossCompileDir,/,StripPath(LdCmd))
  1794. # endif
  1795. # ifndef CrossModuleLdCmd
  1796. #  define CrossModuleLdCmd CrossLdCmd
  1797. # endif
  1798. # ifndef CrossLintCmd
  1799. #  define CrossLintCmd Concat3(CrossCompileDir,/,StripPath(LintCmd))
  1800. # endif
  1801. # ifndef CrossRanlibCmd
  1802. #  define CrossRanlibCmd Concat3(CrossCompileDir,/,StripPath(RanlibCmd))
  1803. # endif
  1804. # ifndef CrossModuleCcCmd
  1805. #  define CrossModuleCcCmd Concat3(CrossCompileDir,/,StripPath(ModuleCcCmd))
  1806. # endif
  1807. # ifndef CrossAsCmd
  1808. #  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
  1809. # endif
  1810. # ifndef CrossStripCmd
  1811. #  define CrossStripCmd Concat3(CrossCompileDir,/,StripPath(StripCmd))
  1812. # endif
  1813. #endif
  1814.  
  1815.           PATHSEP = PathSeparator
  1816.             SHELL = BourneShell
  1817.  
  1818.               TOP = TOPDIR
  1819.       CURRENT_DIR = CURDIR
  1820.  
  1821.             IMAKE = ImakeCmd
  1822.            DEPEND = DependCmd
  1823.         MKDIRHIER = MkdirHierCmd
  1824.           REVPATH = RevPathCmd
  1825.     EXPORTLISTGEN = ExportListCmd
  1826.              RMAN = RmanCmd
  1827.      RMANBASENAME = HostProgramTargetName(rman)
  1828.       RMANOPTIONS = RmanOptions
  1829.         CONFIGSRC = ConfigSrc
  1830.          IMAKESRC = $(CONFIGSRC)/imake
  1831.         DEPENDSRC = DependDir
  1832.  
  1833.           INCROOT = IncRoot        /* base of where to put header files */
  1834.         USRLIBDIR = UsrLibDir        /* nonshared libraries */
  1835.            VARDIR = VarDirectory    /* usually /var */
  1836.         VARLIBDIR = VarLibDir        /* xdm runtime files */
  1837.   SYSTEMUSRLIBDIR = SystemUsrLibDir    /* system's "/usr/lib" */
  1838.   SYSTEMUSRINCDIR = SystemUsrIncDir    /* system's "/usr/include" */
  1839.          SHLIBDIR = ShLibDir            /* shared libraries */
  1840.        LINTLIBDIR = LintlibDir        /* lint libraries */
  1841.           MANPATH = ManPath        /* top of manual page tree */
  1842.     MANSOURCEPATH = ManSourcePath    /* prefix for man page sources */
  1843.            MANDIR = ManDir        /* man pages for commands */
  1844.     SYSCALLMANDIR = SyscallManDir       /* man pages for system calls */
  1845.         LIBMANDIR = LibManDir        /* man pages for library routines */
  1846.      DRIVERMANDIR = DriverManDir    /* man pages for drivers */
  1847.        FILEMANDIR = FileManDir        /* man pages for config files */
  1848.        GAMEMANDIR = GameManDir        /* man pages for game commands */
  1849.        MISCMANDIR = MiscManDir        /* man pages for miscellaneous files */
  1850.         ADMMANDIR = AdmManDir        /* man pages for administrative commands */
  1851.       ICONDIR = IconDir        /* Xcursor cursors/icon directory */
  1852.       XCURSORPATH = XcursorPath        /* Xcursor cursors path */
  1853.      DRIVERMANDIR = DriverManDir    /* man pages for drivers */
  1854.      LOGDIRECTORY = LogDirectory    /* OS location of log files */
  1855. #ifdef VarRunDirectory
  1856.         VARRUNDIR = VarRunDirectory    /* OS location of PID files */
  1857. #endif
  1858. #ifdef VarDbDirectory
  1859.          VARDBDIR = VarDbDirectory    /* OS location of db/state files */
  1860. #endif
  1861. #ifdef CrossCompileDir
  1862.                AR = CrossArCmd
  1863. #else
  1864.                AR = ArCmd
  1865. #endif
  1866. XCOMM Nice try but useless: make will inherit BOOTSTRAPCFLAGS
  1867. XCOMM from  top Makefile
  1868.   BOOTSTRAPCFLAGS = BootstrapCFlags    /* set if cpp does not have uniq sym */
  1869. #ifdef CrossCompileDir
  1870.                CC = CrossCcCmd
  1871.                AS = CrossAsCmd
  1872. #else
  1873.                CC = CcCmd
  1874.                AS = AsCmd
  1875. #endif
  1876. #if HasFortran
  1877. # ifdef CrossCompileDir
  1878.                FC = CrossFortranCmd
  1879. # else
  1880.                FC = FortranCmd
  1881. # endif
  1882.       FDEBUGFLAGS = FortranDebugFlags
  1883.           FCFLAGS = FortranFlags $(FDEBUGFLAGS)
  1884. #endif
  1885. #if HasCplusplus
  1886.  
  1887. .SUFFIXES: Concat(.,CCsuf)
  1888.  
  1889. #ifdef CrossCompileDir
  1890.               CXX = CrossCplusplusCmd
  1891. #else
  1892.               CXX = CplusplusCmd
  1893. #endif
  1894.           CXXFILT = CplusplusFilt
  1895. #ifdef CplusplusLibCDir
  1896.         CXXLIBDIR = CplusplusLibCDir
  1897.            CXXLIB = -L$(CXXLIBDIR) CplusplusLibC
  1898. #else
  1899.            CXXLIB = CplusplusLibC
  1900. #endif
  1901.  
  1902.     CXXDEBUGFLAGS = DefaultCplusplusDebugFlags
  1903. CXXDEPENDINCLUDES = CplusplusDependIncludes
  1904.  CXXEXTRA_DEFINES = CplusplusExtraDefines
  1905. CXXEXTRA_INCLUDES = CplusplusExtraIncludes
  1906.    CXXSTD_DEFINES = CplusplusStandardDefines $(CXXPROJECT_DEFINES)
  1907.        CXXOPTIONS = CplusplusOptions
  1908.       CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES)
  1909.        CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(DEFINES) $(CXXEXTRA_DEFINES)
  1910.          CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(THREADS_CXXFLAGS) $(CXXDEFINES)
  1911. #endif
  1912.          COMPRESS = CompressCmd
  1913.           GZIPCMD = GzipCmd
  1914. #ifdef CrossCompileDir
  1915.               CPP = CrossCppCmd $(STD_CPP_DEFINES)
  1916.            RAWCPP = CrossRawCppCmd $(STD_CPP_OPTIONS)
  1917.     PREPROCESSCMD = CrossPreProcessCmd $(STD_CPP_DEFINES)
  1918. #else
  1919.               CPP = CppCmd $(STD_CPP_DEFINES)        /* simple filters */
  1920.            RAWCPP = RawCppCmd $(STD_CPP_OPTIONS)
  1921.     PREPROCESSCMD = PreProcessCmd $(STD_CPP_DEFINES)    /* prefered; mdep */
  1922. #endif
  1923.           INSTALL = InstallCmd
  1924.      INSTALLFLAGS = InstallFlags
  1925. #ifdef CrossCompileDir
  1926.                LD = CrossLdCmd
  1927. #else
  1928.                LD = LdCmd
  1929. #endif
  1930.               LEX = LexCmd
  1931.                M4 = M4Cmd
  1932.           M4FLAGS = M4Flags
  1933.            LEXLIB = LexLib
  1934.              YACC = YaccCmd
  1935.            CCYACC = CplusplusYaccCmd
  1936. #ifdef CrossCompileDir
  1937.              LINT = CrossLintCmd
  1938. #else
  1939.              LINT = LintCmd
  1940. #endif
  1941.       LINTLIBFLAG = LintLibFlag
  1942.          LINTOPTS = LintOpts
  1943.                LN = LnCmd
  1944.              MAKE = MakeCmd
  1945.                MV = MvCmd
  1946.                CP = CpCmd
  1947. #if DoRanlibCmd
  1948. #ifdef CrossCompileDir
  1949.            RANLIB = CrossCompileDir/RanlibCmd
  1950. #else
  1951.            RANLIB = RanlibCmd
  1952. #endif
  1953.   RANLIBINSTFLAGS = RanlibInstFlags
  1954. #endif
  1955.                RM = RmCmd
  1956.              PERL = PerlCmd
  1957.          PERLOPTS = PerlOptions
  1958.      PERLENVSETUP = PerlEnvSetup
  1959.  
  1960.           MANSECT = ManSection        /* section for command man pages */
  1961.    SYSCALLMANSECT = SyscallManSection    /* section for system call man pages */
  1962.        LIBMANSECT = LibManSection    /* section for library man pages */
  1963.     DRIVERMANSECT = DriverManSection    /* section for driver man pages */
  1964.       FILEMANSECT = FileManSection    /* section for file format man pages */
  1965.       GAMEMANSECT = GameManSection    /* section for game command man pages */
  1966.       MISCMANSECT = MiscManSection    /* section for misc man pages */
  1967.        ADMMANSECT = AdmManSection    /* section for administrative command man pages */
  1968.        MANSRCSECT = ManSrcSection    /* section for man page source */
  1969.        MANNEWSECT = ManNewSection    /* section for preprocessed man source */
  1970.  PROJECTMANSUFFIX = ProjectManSuffix    /* man page suffix for the X11 distribution */
  1971.         MANSUFFIX = ManSuffix        /* suffix for command man pages */
  1972.  SYSCALLMANSUFFIX = SyscallManSuffix    /* suffix for system call man pages */
  1973.      LIBMANSUFFIX = LibManSuffix    /* suffix for library man pages */
  1974.   DRIVERMANSUFFIX = DriverManSuffix    /* suffix for driver man pages */
  1975.     FILEMANSUFFIX = FileManSuffix    /* suffix for file format man pages */
  1976.     GAMEMANSUFFIX = GameManSuffix    /* suffix for game command man pages */
  1977.     MISCMANSUFFIX = MiscManSuffix    /* suffix for misc man pages */
  1978.      ADMMANSUFFIX = AdmManSuffix    /* suffix for administrative command man pages */
  1979.    ADMINMANSUFFIX = AdminManSuffix    /* suffix for admin command man pages */
  1980.      MANSRCSUFFIX = ManSrcSuffix    /* suffix for man page source */
  1981.      MANNEWSUFFIX = ManNewSuffix    /* suffix for preprocessed man source */
  1982.           MANDEFS = AppLoadDefs FileManDefs LibManDefs ManDefs SyscallManDefs GameManDefs MiscManDefs AdmManDefs MiscManDefs DriverManDefs AdminManDefs ProjectManDefs XConfigFileManDefs XConfigDirManDefs XLogFileManDefs XServerManDefs AppManDefs $(XORGMANDEFS) $(VENDORMANDEFS)
  1983.  
  1984.    COMPRESSMANCMD = CompressManCmd
  1985.  
  1986.             TROFF = TroffCmd
  1987.             NROFF = NroffCmd
  1988. #ifdef HTMLroffCmd
  1989.          HTMLROFF = HTMLroffCmd
  1990. #endif
  1991. #ifdef PsToPdfCmd
  1992.        PSTOPDFCMD = PsToPdfCmd
  1993. #endif
  1994.          MSMACROS = MsMacros
  1995.         MANMACROS = ManMacros
  1996.               TBL = TblCmd
  1997.               EQN = EqnCmd
  1998.              NEQN = NeqnCmd
  1999.               COL = ColCmd
  2000.          COLFLAGS = ColFlags
  2001. #ifdef CrossCompileDir
  2002.         MODCC = CrossModuleCcCmd
  2003. #else
  2004.             MODCC = ModuleCcCmd
  2005. #endif
  2006.            MODCPP = ModuleCppCmd
  2007.         MODCFLAGS = ModuleCFlags
  2008.             MODAS = ModuleAsCmd
  2009.        MODASFLAGS = ModuleAsFlags
  2010. #ifdef CrossCompileDir
  2011.         MODLD = CrossModuleLdCmd
  2012. #else
  2013.             MODLD = ModuleLdCmd
  2014. #endif
  2015.        MODLDFLAGS = ModuleLdFlags
  2016. MODLDCOMBINEFLAGS = ModuleLdCombineFlags
  2017.             MODAR = ModuleArCmd
  2018. #ifdef CrossCompileDir
  2019.         MODRANLIB = CrossCompileDir/ModuleRanlibCmd
  2020. #else
  2021.         MODRANLIB = ModuleRanlibCmd
  2022. #endif
  2023. #if HasLatex
  2024.             DVIPS = DvipsCmd
  2025.             LATEX = LatexCmd
  2026. #endif
  2027. #if HasPdfLatex
  2028.       PDFLATEXCMD = PdfLatexCmd
  2029. #endif
  2030. #if HasSentinel
  2031.          SENTINEL = SentinelCmd
  2032.   SENTINELOPTIONS = SentinelOptions
  2033. #endif
  2034. #if HasPurify
  2035.            PURIFY = PurifyCmd
  2036.     PURIFYOPTIONS = PurifyOptions
  2037. #endif
  2038. #if HasTestCenter
  2039.            PROOF = ProofCmd
  2040.     PROOFOPTIONS = ProofOptions
  2041. #endif
  2042. #if CrossCompiling
  2043.           HOST_CC = HostCcCmd
  2044. #endif
  2045.      STD_INCLUDES = StandardIncludes
  2046.   STD_CPP_OPTIONS = StandardCppOptions
  2047.   STD_CPP_DEFINES = StandardCppOptions StandardCppDefines $(PROJECT_DEFINES)
  2048.       STD_DEFINES = StandardDefines $(PROJECT_DEFINES)
  2049.  EXTRA_LOAD_FLAGS = ExtraLoadFlags
  2050.   EXTRA_LDOPTIONS = ExtraLoadOptions
  2051.   EXTRA_LIBRARIES = MallocLibraries ExtraLibraries Krb5Libraries
  2052.              TAGS = TagsCmd
  2053. #if ConstructMFLAGS
  2054.            MFLAGS = -$(MAKEFLAGS)
  2055. #endif
  2056. #if ConstructMAKEFLAGS
  2057.         MAKEFLAGS = $(MFLAGS)
  2058. #endif
  2059.    PARALLELMFLAGS = ParallelMakeFlags
  2060. #if HasSharedLibraries
  2061.     SHAREDCODEDEF = SharedCodeDef
  2062.          SHLIBDEF = SharedLibraryDef
  2063. #ifdef SharedLibraryLoadFlags
  2064.      SHLIBLDFLAGS = SharedLibraryLoadFlags $(SHLIBGLOBALSFLAGS)
  2065. #if HasGcc
  2066.          NOSTDLIB = -nostdlib
  2067.      POSTNOSTDLIB = -Wl,-Bstatic -lgcc -Wl,-Bdynamic
  2068. #elif HasIntelC
  2069.          NOSTDLIB = -nostdlib
  2070.      POSTNOSTDLIB =
  2071. #elif HasSunC
  2072.          NOSTDLIB = -xnolib
  2073.      POSTNOSTDLIB =
  2074. #endif
  2075. #endif
  2076. /*
  2077.  * Here we set up flags needed to produce position-independent code
  2078.  * when doing C and C++ compilation.  The default if you specify C
  2079.  * PIC flags without also specifying C++ PIC flags is to assume that
  2080.  * the C flags work for both.  If your C++ compiler requires different
  2081.  * flags, specify them explicitly in PositionIndependentCplusplusFlags.
  2082.  */
  2083. #ifdef PositionIndependentCFlags
  2084.          PICFLAGS = PositionIndependentCFlags
  2085. #endif
  2086. #ifdef PositionIndependentCplusplusFlags
  2087.       CXXPICFLAGS = PositionIndependentCplusplusFlags
  2088. #else
  2089. #ifdef PositionIndependentCFlags
  2090.       CXXPICFLAGS = PositionIndependentCFlags
  2091. #endif
  2092. #endif
  2093. #endif
  2094. #if !HasVoidSignalReturn
  2095.    SIGNAL_DEFINES = -DSIGNALRETURNSINT
  2096. #endif
  2097. /*
  2098.  * The following supports forcing of function prototypes
  2099.  */
  2100. #if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedConstPrototypes && NeedNestedPrototypes
  2101. #define _funcprotodef -DFUNCPROTO=15
  2102. #else
  2103. #if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedNestedPrototypes
  2104. #define _funcprotodef -DFUNCPROTO=11
  2105. #else
  2106. #if NeedFunctionPrototypes && NeedNestedPrototypes
  2107. #define _funcprotodef -DFUNCPROTO=9
  2108. #else
  2109. #if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedConstPrototypes
  2110. #define _funcprotodef -DFUNCPROTO=7
  2111. #else
  2112. #if NeedFunctionPrototypes && NeedConstPrototypes
  2113. #define _funcprotodef -DFUNCPROTO=5
  2114. #else
  2115. #if NeedFunctionPrototypes && NeedVarargsPrototypes
  2116. #define _funcprotodef -DFUNCPROTO=3
  2117. #else
  2118. #if NeedFunctionPrototypes
  2119. #define _funcprotodef -DFUNCPROTO
  2120. #else
  2121. #define _funcprotodef /**/
  2122. #endif
  2123. #endif
  2124. #endif
  2125. #endif
  2126. #endif
  2127. #endif
  2128. #endif
  2129. #if NeedWidePrototypes
  2130. #define _wideprotodef /**/
  2131. #else
  2132. #define _wideprotodef -DNARROWPROTO
  2133. #endif
  2134.     PROTO_DEFINES = _funcprotodef _wideprotodef
  2135. #undef _funcprotodef
  2136. #undef _wideprotodef
  2137.  
  2138. #if StripInstalledPrograms
  2139.      INSTPGMFLAGS = InstPgmFlags    /* install flags for stripping */
  2140. #else
  2141.      INSTPGMFLAGS =
  2142. #endif
  2143.      INSTBINFLAGS = InstBinFlags    /* install flags for programs */
  2144.      INSTUIDFLAGS = InstUidFlags    /* install flags for setuid programs */
  2145.      INSTLIBFLAGS = InstLibFlags    /* install flags for libraries */
  2146.      INSTINCFLAGS = InstIncFlags    /* install flags for headers */
  2147.      INSTMANFLAGS = InstManFlags    /* install flags for man pages */
  2148.      INSTDATFLAGS = InstDatFlags    /* install flags for data files */
  2149.     INSTKMEMFLAGS = InstKmemFlags    /* install flags for /dev/kmem progs */
  2150.  
  2151. #ifdef ProjectRoot
  2152.       PROJECTROOT = ProjectRoot
  2153. #endif
  2154. #ifdef UseInstalled
  2155. # if AlternateIncRoot
  2156. #  define TopInclude    -I$(INCROOT)
  2157. # else
  2158. #  define TopInclude    /**/
  2159. # endif
  2160. #else
  2161. # define TopInclude    -I$(TOP)
  2162. #endif
  2163.  
  2164.       CDEBUGFLAGS = DefaultCDebugFlags
  2165.         CCOPTIONS = DefaultCCOptions    /* to distinguish from param flags */
  2166. /*
  2167.  * STD_INCLUDES contains system-specific includes
  2168.  * TOP_INCLUDES specifies how to get to /usr/include or its build substitute
  2169.  * EXTRA_INCLUDES contains project-specific includes set in project incfiles
  2170.  * INCLUDES contains client-specific includes set in Imakefile
  2171.  * LOCAL_LDFLAGS contains client-specific ld flags flags set in Imakefile
  2172.  */
  2173.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INSTALLED_INCLUDES) $(STD_INCLUDES)
  2174.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES) $(EXTRA_DEFINES)
  2175.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(MODULE_CFLAGS) $(ALLDEFINES)
  2176.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
  2177.          LDPRELIB = LdPreLib $(INSTALLED_LIBS)
  2178.         LDPOSTLIB = LdPostLib
  2179.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)  $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS)
  2180.      CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS)
  2181.  
  2182.            LDLIBS = $(LDPOSTLIBS) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  2183. #if HasBrokenCCForLink
  2184.            CCLINK = LdCmd
  2185. #else
  2186. #if AlternateUsrLibDir && HasLdRunPath
  2187.        CCENVSETUP = LD_RUN_PATH=$(USRLIBDIRPATH)
  2188.            CCLINK = $(CCENVSETUP) $(CC)
  2189. #else
  2190.            CCLINK = $(CC)
  2191. #endif
  2192. #endif
  2193. #if AlternateUsrLibDir && HasLdRunPath
  2194.       CXXENVSETUP = LD_RUN_PATH=$(USRLIBDIRPATH)
  2195.           CXXLINK = $(CXXENVSETUP) $(CXX)
  2196. #else
  2197.           CXXLINK = $(CXX)
  2198. #endif
  2199.      LDSTRIPFLAGS = LdStripFlags
  2200.    LDCOMBINEFLAGS = LdCombineFlags
  2201.       DEPENDFLAGS = DependFlags
  2202.    DEPEND_DEFINES = DependDefines
  2203.  
  2204. XCOMM Not sure this belongs here
  2205.          TKLIBDIR = TkLibDir
  2206.          TKINCDIR = TkIncDir
  2207.         TKLIBNAME = TkLibName
  2208.         TKLIBRARY = TkLibrary
  2209.         TCLLIBDIR = TclLibDir
  2210.         TCLINCDIR = TclIncDir
  2211.        TCLLIBNAME = TclLibName
  2212.        TCLLIBRARY = TclLibrary
  2213.  
  2214.         MACROFILE = MacroFile
  2215.            RM_CMD = $(RM)
  2216.  
  2217.     IMAKE_DEFINES = /* leave blank, for command line use only */
  2218.    IMAKE_WARNINGS = ImakeWarningFlags
  2219. #ifdef UseInstalled
  2220.          IRULESRC = $(CONFIGDIR)    /* used in rules file */
  2221.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) \
  2222.             $(IMAKE_WARNINGS)
  2223. #else
  2224.          IRULESRC = $(CONFIGSRC)/cf
  2225.         IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES) $(IMAKE_WARNINGS)
  2226. #endif
  2227. #if !HasClearmake
  2228.      /* clearmake records relevant defines and flags in the build script,
  2229.     so it knows when they change and we don't need this coarser-level
  2230.     dependency.  We also don't want it, since it prevents sharing if
  2231.     even one config file, say site.def or host.def, changes. */
  2232.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/X11.tmpl \
  2233.             $(IRULESRC)/site.def $(IRULESRC)/$(MACROFILE) \
  2234.             OtherIConfigFiles SiteIConfigFiles $(EXTRA_ICONFIGFILES)
  2235. #endif
  2236.  
  2237. #ifndef TopLevelProject
  2238. # define TopLevelProject    X11
  2239. #endif
  2240. #ifndef ProjectRulesFile
  2241. # define ProjectRulesFile    Concat3(<,TopLevelProject,.rules>)
  2242. #endif
  2243. #include ProjectRulesFile
  2244. #ifndef LocalRulesFile
  2245. /* need this to make ANSI-style preprocessors happy */
  2246. #define LocalRulesFile <noop.rules>
  2247. #endif
  2248. #include LocalRulesFile
  2249.  
  2250. /*
  2251.  * get project-specific configuration and rules
  2252.  */
  2253. #ifndef ProjectTmplFile
  2254. #define ProjectTmplFile        Concat3(<,TopLevelProject,.tmpl>)
  2255. #endif
  2256. #include ProjectTmplFile
  2257. #ifndef LocalTmplFile
  2258. /* need this to make ANSI-style preprocessors happy */
  2259. #define LocalTmplFile <noop.rules>
  2260. #endif
  2261. #include LocalTmplFile
  2262.  
  2263. #if !BuildLibraries && AlternateIncRoot && !defined(CrossCompileDir)
  2264. INSTALLED_INCLUDES = -I$(INCROOT)
  2265. #endif
  2266.  
  2267. #if !defined(UseInstalled) && !BuildLibraries && AlternateUsrLibDir && !defined(CrossCompileDir)
  2268. INSTALLED_LIBS = -L$(USRLIBDIR)
  2269. #endif
  2270.  
  2271. #ifdef FixupLibReferences
  2272. FixupLibReferences()
  2273. #endif
  2274.  
  2275. /* ConfigDir comes from X11.tmpl */
  2276.         CONFIGDIR = ConfigDir        /* build configuration information */
  2277. #if HasClearmake
  2278.            OSNAME = OSName
  2279. #endif
  2280.     USRLIBDIRPATH = UsrLibDirPath
  2281.         LDPRELIBS = LdPreLibs $(INSTALLED_LIBS)
  2282.        LDPOSTLIBS = LdPostLibs
  2283.      TOP_INCLUDES = TopIncludes
  2284.   PROJECT_DEFINES = ProjectDefines
  2285.    VENDOR_DEFINES = VendorDefines
  2286. #if HasCplusplus
  2287. CXXPROJECT_DEFINES = CplusplusProjectDefines
  2288. #endif
  2289.  
  2290. XCOMM ----------------------------------------------------------------------
  2291. XCOMM start of Imakefile
  2292. #include INCLUDE_IMAKEFILE
  2293.  
  2294. XCOMM ----------------------------------------------------------------------
  2295. XCOMM common rules for all Makefiles - do not edit
  2296.  
  2297. .c.i:
  2298.     CPPOnlyCompile($*.c,$(_NOOP_))
  2299.  
  2300. .SUFFIXES: .ii
  2301.  
  2302. .cc.ii:
  2303.     CPPOnlyCompile($*.cc,$(_NOOP_))
  2304.  
  2305. .SUFFIXES: .s
  2306.  
  2307. .c.s:
  2308.     CompileCToAsm($(_NOOP_))
  2309.  
  2310. .cc.s:
  2311.     CompileCplusplusToAsm($(_NOOP_))
  2312.  
  2313. /*
  2314.  * These need to be here so that rules in Imakefile occur first;  the blank
  2315.  * emptyrule is to make sure that an empty Imakefile does not default to make
  2316.  * clean.
  2317.  */
  2318. emptyrule::
  2319.  
  2320. CleanTarget()
  2321.  
  2322. #ifndef IHaveSpecialMakefileTarget
  2323. MakefileTarget()
  2324. #endif
  2325.  
  2326. #if BuildHtmlManPages
  2327. RmanDependency()
  2328. #endif
  2329.  
  2330. TagsTarget()
  2331. #ifdef MakefileAdditions
  2332. MakefileAdditions()
  2333. #endif
  2334.  
  2335. CenterLoadTarget(debug_src,$(SRCS),NullParameter,$(ALLDEFINES))
  2336.  
  2337. CenterLoadTarget(debug_obj,$(OBJS),NullParameter,$(ALLDEFINES))
  2338.  
  2339. ManKeywordsTarget($(MANPATH))
  2340.  
  2341. HtmlManIndex
  2342.  
  2343. /* Generate the "real" clean rules */
  2344. #undef clean
  2345.  
  2346. clean:: cleandir
  2347.  
  2348. distclean:: cleandir
  2349.  
  2350. #ifdef IHaveSubdirs
  2351. XCOMM ----------------------------------------------------------------------
  2352. XCOMM rules for building in SUBDIRS - do not edit
  2353.  
  2354. InstallSubdirs($(SUBDIRS))
  2355. InstallManSubdirs($(SUBDIRS))
  2356. InstallDriverSDKSubdirs($(SUBDIRS))
  2357. CleanSubdirs($(SUBDIRS))
  2358. TagSubdirs($(SUBDIRS))
  2359. MakefileSubdirs($(SUBDIRS))
  2360. IncludesSubdirs($(SUBDIRS))
  2361.  
  2362. /* "distclean" subdirectories */
  2363. #undef  BootstrapCleanSubdirs
  2364. #define BootstrapCleanSubdirs /**/
  2365. #define clean distclean
  2366. CleanSubdirs($(SUBDIRS))
  2367. #undef clean
  2368.  
  2369. #endif
  2370.  
  2371. #if !DontPreprocessManPages || defined(PreprocessManPages)
  2372.     PREPROCESSMANPAGES = true
  2373. #endif
  2374. /* must be after all install.man rules that install anything */
  2375. #ifndef MakeManKeywords
  2376. #define MakeManKeywords        NO
  2377. #endif
  2378. #if MakeManKeywords        /* typically only at top level */
  2379. install.man:: man_keywords
  2380. #endif
  2381.  
  2382. /* must be after all install.man rules that install anything */
  2383. #ifndef MakeHtmlManIndex
  2384. #define MakeHtmlManIndex    NO
  2385. #endif
  2386. #if MakeHtmlManIndex        /* typically only at top level */
  2387. install.man:: html_index
  2388. #endif
  2389.  
  2390. #ifndef IHaveSubdirs
  2391. XCOMM ----------------------------------------------------------------------
  2392. XCOMM empty rules for directories that do not have SUBDIRS - do not edit
  2393.  
  2394. install::
  2395.     @echo "install in $(CURRENT_DIR) done"
  2396.  
  2397. install.man::
  2398.     @echo "install.man in $(CURRENT_DIR) done"
  2399.  
  2400. install.sdk::
  2401.     @echo "install.sdk in $(CURRENT_DIR) done"
  2402.  
  2403. Makefiles::
  2404.  
  2405. includes::
  2406.  
  2407. depend::
  2408.  
  2409. #endif /* if subdirectory rules are needed */
  2410.  
  2411. #ifndef IHaveSpecialMakefileTarget
  2412. /* "distclean" also removes the Makefile and the depend file */
  2413. distclean::
  2414.     RemoveFiles(Makefile DependFileName)
  2415. #endif
  2416.  
  2417. XCOMM ----------------------------------------------------------------------
  2418. XCOMM dependencies generated by makedepend
  2419. IncludeMakefile(DependFileName)
  2420.