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

  1. XCOMM platform:  $XConsortium: sgi.cf /main/23 1996/02/02 18:59:52 gildea $
  2.  
  3. #ifndef OSName
  4. #define OSName            IRIX 5.3
  5. #endif
  6. XCOMM operating system:  OSName
  7. #ifndef OSMajorVersion
  8. #define OSMajorVersion        5
  9. #endif
  10. #ifndef OSMinorVersion
  11. #define OSMinorVersion        3
  12. #endif
  13. #ifndef OSTeenyVersion
  14. #define OSTeenyVersion          0
  15. #endif
  16.  
  17. #if OSMajorVersion < 4
  18. /* We do not guarantee this will work */
  19. #define BootstrapCFlags        -DX_WCHAR -DX_LOCALE -DX_USEBFUNCS -DSYSV
  20. #define StandardDefines        -DX_WCHAR -DX_LOCALE -DX_USEBFUNCS -DSYSV
  21. #define SetTtyGroup        NO
  22. #else
  23. #define SetTtyGroup        YES
  24. #define ExtraFilesToClean    so_locations
  25. #endif
  26.  
  27. #if OSMajorVersion < 5
  28. #define SystemV            YES
  29. #define XawI18nDefines        -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
  30. #else
  31. #define BootstrapCFlags        -DSVR4
  32. #define StandardDefines        -DSVR4
  33. #define SystemV4        YES
  34. #define HasWChar32              YES
  35. #define HasVFork        NO
  36. #define XawI18nDefines        -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
  37. #define AllocateLocalDefines    -DINCLUDE_ALLOCA_H
  38. #ifndef ExtraLoadFlags
  39. #define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIR)
  40. #endif
  41. #endif
  42.  
  43. #if OSMajorVersion == 6
  44. #define Mips64Architecture
  45. #endif
  46.  
  47. #define Malloc0ReturnsNull    YES    /* IRIX 5.x -lmalloc needs this */
  48. #define HasPutenv        YES
  49. #define ExecableScripts        YES
  50. #define HasNdbm            YES
  51. #define HasPoll                 YES
  52. #define ExpandManNames          YES
  53. #ifndef BuildXInputExt
  54. #define BuildXInputExt        YES
  55. #endif
  56.  
  57. #if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion > 2)
  58. #define NeedVarargsPrototypes    YES
  59. #define NeedConstPrototypes    YES
  60. #define NeedWidePrototypes    NO
  61. #endif
  62.  
  63. #include <sgiLib.rules>
  64.  
  65. #if OSMajorVersion < 5
  66. #define SymbolTables -Wf,-XNp9000,-XNd8000,-XNh2000
  67. #define PexSymbolTables -Wf,-XNp15000,-XNd15000,-XNh2000
  68. #define ServerSymbolTables -Wf,-XNp8000,-XNh2000,-XNd8000
  69. #else
  70. #define SymbolTables
  71. #define PexSymbolTables 
  72. #define ServerSymbolTables
  73. #endif
  74.  
  75. /* this is for floating point, ANSI cpp */
  76. #if OSMajorVersion < 5
  77. /* Extra libraries provide : yp, sysV malloc, shared libc, and widechar */
  78. #define ExtraLibraries -lsun -lmalloc -lc_s -lw
  79. #define sgiCCOptions -xansi -D__STDC__=1 -float
  80. #else
  81. #define sgiCCOptions -xansi
  82. /* SGI's -lsocket -lnsl is broken, at least in 5.2, so override here */
  83. #define ExtraLibraries /**/
  84. #endif
  85.  
  86. #define DefaultCCOptions sgiCCOptions SymbolTables
  87. #define PexCCOptions sgiCCOptions PexSymbolTables
  88. #define ServerCCOptions sgiCCOptions ServerSymbolTables
  89.  
  90. /* For SGI C++ compiler, need to search extra dirs in make depend */
  91. #ifndef CplusplusDependIncludes
  92. #define CplusplusDependIncludes -I/usr/include/CC
  93. #endif
  94.  
  95. /* At SGI, we don't need this */
  96. #define ConstructMFLAGS        NO    /* build MFLAGS from MAKEFLAGS */
  97.  
  98. /* Used only for compressed fonts */
  99. #define UNCOMPRESSPATH /usr/bsd/uncompress
  100.  
  101. /* Normally used only to conditionally chose the default font path order */
  102. #define PrimaryScreenResolution 96
  103.  
  104. /* Override Imake.tmpl's "-X" flag */
  105. #define LdCombineFlags -r
  106.  
  107. /* Installation Build Parameters */
  108. #define InstKmemFlags -m 2711 -g sys
  109.  
  110. #define ArCmd ar scq
  111.  
  112. /* for xdm or anyone else to use */
  113. #define DefaultUserPath :/usr/sbin:/usr/bsd:/usr/bin:/bin:$(BINDIR):/etc:/usr/etc
  114. #define DefaultSystemPath /usr/sbin:/usr/bsd:/bin:/etc:/usr/bin:/usr/etc:$(BINDIR)
  115.  
  116. #define BuildServer             NO
  117. #define ServerOSDefines        -DDDXTIME 
  118. /* only need this for binary compatibility with their ddx */
  119. #define ServerExtraDefines    -DNEED_LINEHELPER AllocateLocalDefines
  120.  
  121. /* Changed to a single shell command for pmake/smake */
  122. #if OSMajorVersion < 5
  123. /*
  124.  * NormalLibObjCompile - compile fragment for a library object file
  125.  *     do ld -x to remove line number symbols for libraries
  126.  */
  127. #define NormalLibObjCompile(options)     ClearmakeOSName              \
  128.     $(RM) $@ $*.os \                        @@\
  129.     && $(CC) -c options $(CFLAGS) $*.c \                @@\
  130.     && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \            @@\
  131.     && $(MV) $*.os $@
  132. #endif
  133.  
  134. #define LibObjCompile(dir,options) ClearmakeOSName              \
  135.     $(RM) $@ dir/$@ \                        @@\
  136.     && $(CC) -c $(CCOPTIONS) $(ALLDEFINES) options $*.c \        @@\
  137.     && $(MV) $@ dir/$@
  138.  
  139. #ifndef HasMakefileSafeInclude
  140. #define HasMakefileSafeInclude YES
  141. #endif
  142. #ifndef IncludeMakefile
  143. #define IncludeMakefile(file) @@sinclude file
  144. #endif
  145.  
  146. /* needs to find nroff on the system to work */
  147. #ifndef ManKeywordsTarget
  148. #define ManKeywordsTarget(manpath)                    @@\
  149. man_keywords::                                @@\
  150.     /usr/lib/makewhatis -M $(DESTDIR)manpath $(DESTDIR)manpath/whatis
  151. #endif
  152.