home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / lib / x11 / config / ibm.cf < prev    next >
Encoding:
Text File  |  1996-10-17  |  3.7 KB  |  121 lines

  1. XCOMM platform:  $XConsortium: ibm.cf /main/70 1996/01/03 21:31:26 kaleb $
  2.  
  3. #ifndef OSName
  4. #define OSName            AIX 4.1.4
  5. #endif
  6. #ifndef OSMajorVersion
  7. #define OSMajorVersion        4
  8. #endif
  9. #ifndef OSMinorVersion
  10. #define OSMinorVersion        1
  11. #endif
  12. #ifndef OSTeenyVersion
  13. #define OSTeenyVersion        4
  14. #endif
  15. XCOMM operating system:  OSName
  16.  
  17. #if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion >= 2)
  18. #define HasBSD44Sockets        YES
  19. #define HasPutenv        YES
  20. /*
  21.  * If you do not have threads support installed, put
  22.  * #define HasPosixThreads    NO
  23.  * in the BeforeVendorCF section of your site.def.
  24.  */
  25. #if !defined(HasPosixThreads) && ((OSMajorVersion == 3 && (OSMinorVersion > 2 || (OSMinorVersion == 2 && OSTeenyVersion > 4))) || (OSMajorVersion == 4 && (OSMinorVersion > 1 || (OSMinorVersion == 1 && OSTeenyVersion > 1))))
  26. #define HasPosixThreads        YES
  27. #endif
  28. #if HasPosixThreads
  29. #ifndef ThreadedX
  30. #define ThreadedX        YES
  31. #endif
  32. #endif
  33. #endif /* OS > 3.2 */
  34.  
  35.  
  36. /*
  37.  * For IBM platforms, we must define both the location of the compiler
  38.  * and the location of its standard C++ library.  The library location
  39.  * is needed to resolve dependent library symbols if we build our own
  40.  * C++ shared libraries.
  41.  */
  42.  
  43. #ifndef CplusplusCmd
  44. #define CplusplusCmd        xlC
  45. #endif
  46. #ifndef CplusplusLibC
  47. #define CplusplusLibC        /usr/lpp/xlC/lib/libC.a
  48. #endif
  49. #ifndef CplusplusDependIncludes
  50. #define CplusplusDependIncludes -I/usr/lpp/xlC/include
  51. #endif
  52.  
  53. /*
  54.  * IBM's xlC refuses to compile files unless their names end in ".C".
  55.  * As an alternative to this fix, one could edit /etc/xlC.cfg
  56.  * to change the suffix accepted by the compiler, but we prefer not 
  57.  * requiring users to reconfigure their C++ compilers to make them work.
  58.  * We also have to override the default SUFFIXES to defeat the use of
  59.  * the builtin .C -> .o file, which doesn't use the right flags.
  60.  */
  61.  
  62. .SUFFIXES:
  63. .SUFFIXES: .o .c .y .l .s .sh .h .f .Y .L .cxx
  64.  
  65. #define NormalLibObjCplusplusCompile(options) test -r $*.C || $(LN) $*.CCsuf $*.C @@\
  66.     $(CXX) -c $(CXXFLAGS) options $*.C
  67.  
  68. #define SpecialCplusplusObjectRule(baseobj,basedep,options)        @@\
  69. baseobj.Osuf:    basedep.CCsuf                        @@\
  70.     test -r basedep.C || $(LN) basedep.CCsuf basedep.C        @@\
  71.     $(CXX) -c $(CXXFLAGS) options basedep.C
  72.  
  73.  
  74. #define SystemV            YES
  75. #define LdCombineFlags        -r
  76. #define ExecableScripts        YES
  77. #define Malloc0ReturnsNull    YES
  78. #define CppCmd            /usr/lpp/X11/Xamples/util/cpp/cpp
  79. #define ExpandManNames        YES
  80. #define ExtensionOSDefines    -DXTESTEXT1
  81. #define XibmServer        YES
  82. #define ibmIncludeSKYWAY    YES
  83.  
  84. #if OSMajorVersion > 3
  85. #define StandardDefines        -DSYSV -DAIXV3 -DAIXV4 -D_ALL_SOURCE
  86. #define XawI18nDefines        -DHAS_WCHAR_H -DHAS_ISW_FUNCS
  87. #define ServerExtraDefines    -D_IBM_LFT
  88. #if ThreadedX
  89. #define CcCmd            xlc_r
  90. #else
  91. #define CcCmd            xlc
  92. #endif
  93. #define ServerCcCmd        xlc
  94. #define SystemMTDefines        /* xlc_r defines -D_THREAD_SAFE */
  95. #define ThreadsLibraries    -lpthreads /* xlc_r does -lc_r */
  96. #define AvoidNullMakeCommand    YES
  97. #define NullMakeCommand        @ echo
  98. /* AIX 4 appends all MAKEFLAGS (even dups), so cannot pass on command line. */
  99. #define ConstructMFLAGS        NO
  100. #define LdPreLib        _Use(Concat(-L,$(USRLIBDIR)),/**/)
  101. #define ExtraFilesToClean    *.inp
  102. #else     /* OSMajorVersion < 4 */
  103. #define StandardDefines         -DSYSV -DAIXV3 -D_ALL_SOURCE
  104. #define ServerExtraDefines    -D_IBM_HFT
  105. #define CcCmd            xlc
  106. #define ThreadPreStdAPIDefines    -DXPRE_STANDARD_API
  107. #define SystemMTDefines        -D_THREAD_SAFE
  108. #define ThreadsLibraries    -lpthreads -lc_r
  109. #endif    /* OSMajorVersion */
  110.  
  111. #define OPERATING_SYSTEM     AIX /* directory name under server/ddx/ibm/ */
  112. #define InstallCmd              /usr/ucb/install
  113. #include <ibmLib.rules>
  114.  
  115. #ifndef ManKeywordsTarget
  116. #define ManKeywordsTarget(manpath)                    @@\
  117. man_keywords::                                @@\
  118.     /usr/lib/makewhatis $(DESTDIR)manpath
  119. #endif
  120.  
  121.