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

  1. XCOMM platform:  $XConsortium: osf1.cf /main/68 1996/01/22 17:37:35 gildea $
  2. /* only tested with Digital OSF/1 */
  3.  
  4. #ifdef AlphaArchitecture
  5. #ifndef OSName
  6. #define OSName            OSF/1 3.2
  7. #endif
  8. XCOMM operating system:  OSName
  9. #ifndef OSMajorVersion
  10. #define OSMajorVersion        3
  11. #endif
  12. #ifndef OSMinorVersion
  13. #define OSMinorVersion        2
  14. #endif
  15. #else
  16. #ifndef OSName
  17. #define OSName            OSF/1 1.0
  18. #endif
  19. XCOMM operating system:  OSName
  20. #ifndef OSMajorVersion
  21. #define OSMajorVersion        1
  22. #endif
  23. #ifndef OSMinorVersion
  24. #define OSMinorVersion        0
  25. #endif
  26. #endif
  27.  
  28. #define HasPutenv        YES
  29. #define Malloc0ReturnsNull    YES
  30. #define HasNdbm            YES
  31. #define HasShm            YES
  32. #define AvoidNullMakeCommand    YES
  33. #define NullMakeCommand        @ echo
  34. #define HasPosixThreads        YES
  35. #define SystemMTDefines -D_REENTRANT
  36. #define HasPoll            YES
  37. #define HasVFork                NO
  38. #define InstallCmd        installbsd
  39. #define RanlibCmd        ranlib -t
  40. #if OSMajorVersion > 1 || OSMinorVersion > 0
  41. #define ModernOSF1        YES
  42. #else
  43. #define ModernOSF1        NO
  44. #define ShLibDir /usr/shlib
  45. #define SharedLibPex        NO  /* losing, no shared -lm */
  46. #endif
  47. #define ThreadedX        ModernOSF1
  48.  
  49. #if ThreadedX
  50. #if OSMajorVersion < 4
  51. #define ThreadsLibraries -lpthreads -lmach -lc_r
  52. #define ThreadPreStdAPIDefines    -DXPRE_STANDARD_API
  53. #else
  54. #define ThreadsLibraries -lpthread -lmach -lexc -lc
  55. #define LibraryMTDefines    -DUSE_TIS_SUPPORT
  56. #endif
  57. #endif
  58.  
  59. #if ModernOSF1
  60. #define OptimizedCDebugFlags    -O2
  61. #ifndef ExtraLoadFlags
  62. /*
  63.  * In OSF/1 3.0 Digital has shared libXdmcp and libXau. What's more,
  64.  * the link editor has different search semantics, i.e. it will search
  65.  * for shared libraries first, then, if it can't find a shared lib, it
  66.  * will use a static lib. By using -oldstyle_liblookup the linker will
  67.  * follow "normal" semantics for linking libraries and will get the
  68.  * static libraries we really want. By 3.2 they no longer have libXdmcp 
  69.  * and libXau as shared libraries and we can omit -oldstyle_liblookup. 
  70.  * (What did they have in 3.1?)
  71.  */
  72. #if OSMajorVersion == 3 && OSMinorVersion == 0
  73. #define ExtraLoadFlags        -Wl,-rpath,$(USRLIBDIR),-oldstyle_liblookup
  74. #else
  75. #define ExtraLoadFlags         -Wl,-rpath,$(USRLIBDIR)
  76. #endif
  77. #endif
  78. #if OSMajorVersion > 3
  79. #define TermcapLibrary        -lcurses
  80. #endif
  81. #endif
  82.  
  83. /*
  84.  * C++ compiler setup.  This file knows what options to use with the
  85.  * DEC C++ compiler, and may learn about other compilers in the future.
  86.  * 
  87.  * For DEC C++, define HasDECCplusplus to YES in site.def.  
  88.  *
  89.  * For g++ 2.6.x, define HasGcc2ForCplusplus to YES in site.def.
  90.  *
  91.  * For other compilers, define HasCplusplus to YES in site.def, and 
  92.  *    check to see if you need to provide values for CplusplusOptions
  93.  *    and/or DefaultCplusplusOptions.
  94.  *
  95.  * In any case, you may also need to set CplusplusDependIncludes.
  96.  *
  97.  * Note: For DEC C++, the -call_shared option really only needs to 
  98.  * appear when linking C++ executables, not when actually compiling
  99.  * the C++ sources.  But since there's no imake variable that lets
  100.  * us insert flags only into the C++ link stage, we use -call_shared
  101.  * on all compilations when building executables.  This could be 
  102.  * considered a deficiency in the current imake configuration
  103.  */
  104.  
  105. #if HasDECCplusplus
  106. #ifndef HasCplusplus 
  107. #define HasCplusplus YES
  108. #endif
  109. #ifndef CplusplusCmd
  110. #define CplusplusCmd /usr/bin/cxx
  111. #endif
  112. #ifndef CplusplusDependIncludes 
  113. #define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
  114. #endif
  115. #ifndef CplusplusLibC
  116. #define CplusplusLibC -L/usr/lib/cmplrs/cxx -lcxx
  117. #endif
  118. #ifndef CplusplusOptions
  119. #define CplusplusOptions -call_shared
  120. #endif
  121. #endif /* HasDECCplusplus */
  122.  
  123.  
  124. #if HasGcc2ForCplusplus
  125. #ifndef CplusplusLibC
  126. #define CplusplusLibC `$(CXX) -print-libgcc-file-name`
  127. #endif 
  128. #endif /* HasGcc2ForCplusplus */
  129.  
  130. #include <osfLib.rules>
  131. #define NoRConst        YES
  132.  
  133. #ifdef AlphaArchitecture
  134. #ifndef HasWChar32
  135. #define HasWChar32        YES
  136. #endif
  137. #define ServerExtraDefines    -D_XSERVER64
  138. #define ServerOSDefines        -DDDXTIME
  139. #ifndef DefaultCCOptions
  140. #define DefaultCCOptions    -std1
  141. #endif
  142. #ifndef XawI18nDefines
  143. #define XawI18nDefines        -DHAS_WCHAR_H
  144. #endif
  145. #ifndef BuildServer
  146. #define BuildServer        NO
  147. #endif
  148. #endif
  149.  
  150. #ifdef MipsArchitecture
  151. #define DefaultCCOptions    -Xa
  152. #define XdecServer YES
  153. #define ServerOSDefines -DDDXTIME
  154. #define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
  155. #define NormalLibObjCompile(options)     ClearmakeOSName              \
  156.     $(RM) $@ $*.os \                        @@\
  157.     && $(CC) -c options $(CFLAGS) $*.c \                @@\
  158.     && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \            @@\
  159.     && $(MV) $*.os $@
  160. #endif
  161.  
  162. #if !HasClearmake
  163. #ifndef HasMakefileSafeInclude
  164. #define HasMakefileSafeInclude YES
  165. #endif
  166. #ifndef IncludeMakefile
  167. #define IncludeMakefile(file) @@-include file
  168. #endif
  169. #endif
  170.  
  171. #ifndef ManKeywordsTarget
  172. #define ManKeywordsTarget(manpath)                    @@\
  173. man_keywords::                                @@\
  174.     catman -M $(DESTDIR)manpath -w
  175. #endif
  176.