usl.cf 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. XCOMM platform: $TOG: usl.cf /main/51 1998/03/23 12:27:39 mgreess $
  2. #ifndef OSName
  3. # define OSName DefaultOSName
  4. #endif
  5. #ifndef OSMajorVersion
  6. # define OSMajorVersion DefaultOSMajorVersion
  7. #endif
  8. #ifndef OSMinorVersion
  9. # define OSMinorVersion DefaultOSMinorVersion
  10. #endif
  11. #ifndef OSTeenyVersion
  12. # define OSTeenyVersion DefaultOSTeenyVersion
  13. #endif
  14. XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
  15. #ifndef CcCmd
  16. # define CcCmd /usr/ccs/bin/cc
  17. #endif
  18. #ifndef CplusplusCmd
  19. # define CplusplusCmd /usr/ccs/bin/CC
  20. #endif
  21. #ifndef CplusplusFilt
  22. # define CplusplusFilt /usr/ccs/bin/c++filt
  23. #endif
  24. #ifndef CplusplusDependIncludes
  25. # define CplusplusDependIncludes -I/usr/include/CC
  26. #endif
  27. #define BootstrapCFlags /* none needed */
  28. #define StandardDefines -DUSL -DSVR4 -Di386
  29. #define NeedWidePrototypes NO /* experimental */
  30. #define ServerExtraDefines -D__USLC__ XFree86ServerDefines
  31. #define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
  32. #define ToolkitStringsABIOptions -intelabi
  33. #if OSMajorVersion < 2
  34. #define XawI18nDefines -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
  35. #else
  36. #define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
  37. #endif
  38. #if OSMajorVersion == 2
  39. # if OSMinorVersion == 0
  40. # define ExtraLibraries -lsocket -lnsl -lgen -lw
  41. # else
  42. # define ExtraLibraries -lsocket -lnsl -L/usr/ccs/lib -lgen
  43. # endif
  44. # define ThreadedX YES
  45. # define HasThreadSafeAPI NO
  46. /* UnixWare does not have MT-safe pwd routines. */
  47. # define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI \
  48. -DXNO_MTSAFE_GRPAPI
  49. # define SystemMTDefines -D_REENTRANT
  50. # define ThreadsLibraries -lthread
  51. # define ThreadsCplusplusLibraries -lthread
  52. # define DefaultCCOptions -W0,-2A -Xa -Dasm=__asm
  53. #endif
  54. #define BuildLibPathVar LD_LIBRARY_PATH
  55. #ifndef UseExportLists
  56. # define UseExportLists YES
  57. #endif
  58. #define GencatFlags -m
  59. #include <svr4.cf>
  60. /*
  61. * When generating templates the UnixWare 2.02 C++ compiler leaves
  62. * protected .i files behind. Remove them so other people can
  63. * compile too.
  64. */
  65. #ifndef ObjectCplusplusCompile
  66. #define ObjectCplusplusCompile(options) RemoveFiles($@ $*.i) @@\
  67. ClearmakeOSName \
  68. $(CXX) -c $(CXXFLAGS) options $*.CCsuf
  69. #endif
  70. /* USL does not have a shared regex library. */
  71. #define UseLocalRegex YES
  72. #define XmDefines \
  73. -DNO_REGCOMP -DNEED_STRCASECMP \
  74. -DSUPPORT_ZERO_WIDTH -DHAS_WIDECHAR_FUNCTIONS
  75. #define DtSvcDefines -DMULTIBYTE -DNO_REGCOMP
  76. #define DtSearchDefines -DI18N_MSG DtSvcDefines
  77. #define DtWidgetDefines DtSearchDefines
  78. #define DtPrintDefines DtSearchDefines
  79. #define HasStrcasecmp NO
  80. /* For DtHelp's TIFF processing routines. */
  81. #define LSBBitOrder YES
  82. #define ArchitectureDefines -DUSL_ARCHITECTURE
  83. #define ExportListGenSource elistgen.usl
  84. #define ShlibExportListOpt(filename) Concat(-Bexport:,filename)
  85. /* Remove -lc because select.o is not relocatable. */
  86. /* Remove -lgen (and set UseLocalRegex) because no shared library exists. */
  87. #if OSMajorVersion == 2
  88. # if OSMinorVersion == 0
  89. # define SharedXmReqs $(LDPRELIBS) SharedXReqs -lsocket -lnsl -lw
  90. # define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs -lsocket -lnsl -lw
  91. # define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lsocket -lnsl -lw
  92. # else
  93. # define SharedXmReqs $(LDPRELIBS) SharedXReqs -lsocket -lnsl
  94. # define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs -lsocket -lnsl
  95. # define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lsocket -lnsl
  96. # endif
  97. #endif
  98. /* <X11/Xos_r.h> requires process locking for missing _r functions */
  99. #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
  100. #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
  101. #define CdeProjectDefines \
  102. -DANSICPP -DMULTIBYTE -DNLS16 -DNEED_STRCASECMP \
  103. -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion