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