sony.cf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. XCOMM platform: $XConsortium: sony.cf /main/69 1996/09/29 18:19:36 kaleb $
  2. #ifdef SonyBsdArchitecture
  3. #ifndef OSName
  4. #define OSName NEWS-OS 4.2.1C
  5. #endif
  6. #ifndef OSMajorVersion
  7. #define OSMajorVersion 4
  8. #endif
  9. #ifndef OSMinorVersion
  10. #define OSMinorVersion 2
  11. #endif
  12. #ifndef OSTeenyVersion
  13. #define OSTeenyVersion 1
  14. #endif
  15. #define SetTtyGroup YES
  16. #define HasVoidSignalReturn NO
  17. #define HasNdbm YES
  18. #define DirFailPrefix -
  19. #define InstKmemFlags -g kmem -m 2711
  20. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
  21. #define DefaultSystemPath /etc:/usr/etc:/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
  22. #ifdef MipsArchitecture
  23. #define ExtraLibraries -lmld
  24. #define LintOpts -ax
  25. #define LintLibFlag -o
  26. #define DefaultCCOptions -Wf,-XNh2000,-XNd6000,-XNp10000 -Olimit 2000
  27. #define PexCCOptions -Wf,-XNh2000,-XNd15000,-XNp15000 -Olimit 2000
  28. #else
  29. #define HasFortran YES
  30. #endif
  31. #if OSMajorVersion >= 4
  32. #define HasShm YES
  33. #define HasPutenv YES
  34. #define HasSecureRPC YES
  35. #define XdmDir /etc/xdm
  36. #if OSMinorVersion >= 1
  37. #define HasBsearch YES
  38. #else
  39. #define HasBsearch NO
  40. #endif
  41. #else
  42. #define StandardDefines -DNOSTDHDRS
  43. #define HasBsearch NO
  44. #endif
  45. #else
  46. #ifndef OSName
  47. #define OSName DefaultOSName
  48. #endif
  49. #ifndef OSMajorVersion
  50. #define OSMajorVersion DefaultOSMajorVersion
  51. #endif
  52. #ifndef OSMinorVersion
  53. #define OSMinorVersion DefaultOSMinorVersion
  54. #endif
  55. #ifndef OSTeenyVersion
  56. #define OSTeenyVersion DefaultOSTeenyVersion
  57. #endif
  58. XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
  59. #define BootstrapCFlags -Dsony
  60. #define SystemV4 YES
  61. #define HasVFork NO
  62. #define CcCmd /usr/bin/cc
  63. #define LdCmd /usr/bin/ld
  64. #if OSMajorVersion >= 6
  65. #define DefaultCCOptions -Xa -Wf,-XNp9000,-XNd6000
  66. #define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
  67. #define SharedLibraryLoadFlags -G -rpath $(USRLIBDIRPATH)
  68. #define PositionIndependentCFlags -K PIC -Wx,-G 0
  69. #define PositionIndependentCplusplusFlags -K PIC -Wx,-G 0
  70. #define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
  71. #define FixupLibReferences() /**/
  72. #include <sv4Lib.rules>
  73. #else
  74. #define DefaultCCOptions -Wf,-XNp9000,-XNd6000
  75. #define PexCCOptions -Wf,-XNp15000,-XNd15000
  76. #endif
  77. #endif
  78. /*
  79. * SONY C++ compiler is based on vanilla cfront, which means it
  80. * refuses to compile files unless their names end in ".C". We
  81. * have to completely override .SUFFIXES to avoid using the builtin
  82. * .C to .o rule in cases where the link to foo.C is already there,
  83. * because the builtin rule doesn't use the right compilation flags.
  84. */
  85. .SUFFIXES:
  86. .SUFFIXES: .o .c .y .l .s .sh .h .f .Y .L .cxx
  87. #define NormalLibObjCplusplusCompile(options) test -r $*.C || $(LN) $*.CCsuf $*.C @@\
  88. $(CXX) -c $(CXXFLAGS) options $*.C
  89. XCOMM operating system: OSName
  90. #ifndef BuildServer
  91. #define BuildServer NO
  92. #endif