home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / config / sun.cf < prev    next >
Encoding:
Text File  |  1993-07-21  |  1.8 KB  |  79 lines

  1. XCOMM platform:  $XConsortium: sun.cf,v 1.72.1.1 92/03/18 13:13:37 rws Exp $
  2.  
  3. #define OSName            SunOS 4.1.1
  4. XCOMM operating system:  OSName
  5. #define OSMajorVersion    4
  6. #define OSMinorVersion    1
  7. #define OSTeenyVersion    1
  8.  
  9. #if OSMajorVersion < 4 || (OSMajorVersion == 4 && OSMinorVersion < 1)
  10. /* We do not guarantee this will work */
  11. #define BootstrapCFlags   -DNOSTDHDRS
  12. #define StandardDefines   -DNOSTDHDRS
  13. #endif
  14.  
  15. /* You ALSO need this if you have Sun ld patch 100170-06 or later to 4.1.1 */
  16. #if OSMajorVersion == 4 && (OSMinorVersion > 1 || (OSMinorVersion == 1 && OSTeenyVersion > 1))
  17. #define SunPost411FCSLd      YES
  18. #endif
  19.  
  20. #define HasSaberC      YES
  21. #define HasNdbm          YES
  22. #define HasShm          YES
  23. #define HasSecureRPC      YES
  24. #define SetTtyGroup      YES
  25. #define HasPutenv      YES
  26. #define XsunServer      YES        /* has color and mono support */
  27. #define XsunMonoServer      YES        /* monochrome only */
  28. #define BuildPexExt      XsunServer
  29. #define InstKmemFlags      -g kmem -m 2755
  30.  
  31. #ifdef sparc
  32. #undef sparc
  33. #define SparcArchitecture
  34. #endif
  35. #ifdef sun386
  36. #undef sun386
  37. #define i386Architecture
  38. #endif
  39.  
  40. #include <sunLib.rules>
  41.  
  42. #if HasGcc
  43.  
  44. #define SharedLibraryCcCmd cc
  45. #define ExtraLoadFlags -B/usr/bin/
  46. #define AllocateLocalDefines /**/
  47.  
  48. .c.o:
  49.     $(CC) -c $(CFLAGS) $*.c
  50.  
  51. #else
  52.  
  53. #define AllocateLocalDefines -DINCLUDE_ALLOCA_H
  54.  
  55. #ifdef mc68000
  56. #define DefaultCCOptions -f68881 -pipe
  57. #else
  58. #define DefaultCCOptions -pipe
  59. #endif
  60.  
  61. #define PexCCOptions DefaultCCOptions
  62.  
  63. #endif
  64.  
  65. #define SharedAllocateLocalDefines -DINCLUDE_ALLOCA_H
  66. #define LibraryCCOptions /* don't want special floating point */
  67.  
  68. #ifndef UseSunWindowsInServer
  69. #define UseSunWindowsInServer    NO    /* link in SunWindows support? */
  70. #endif
  71.  
  72. #if UseSunWindowsInServer
  73. #define SunWindowsDefines -DSUN_WINDOWS
  74. #else
  75. #define SunWindowsDefines /* as nothing */
  76. #endif
  77.  
  78. #define ServerOSDefines SunWindowsDefines AllocateLocalDefines
  79.