CDE-MAN-DEV.udb: remove extra }, added when UXP support was removed
[oweals/cde.git] / cde / config / cf / usl.cf
1 XCOMM platform:  $TOG: usl.cf /main/51 1998/03/23 12:27:39 mgreess $
2
3 #ifndef OSName
4 # define OSName         DefaultOSName
5 #endif
6 #ifndef OSMajorVersion
7 # define OSMajorVersion DefaultOSMajorVersion
8 #endif
9 #ifndef OSMinorVersion
10 # define OSMinorVersion DefaultOSMinorVersion
11 #endif
12 #ifndef OSTeenyVersion
13 # define OSTeenyVersion DefaultOSTeenyVersion
14 #endif
15 XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
16
17 #ifndef  CcCmd
18 # define CcCmd                  /usr/ccs/bin/cc
19 #endif
20 #ifndef  CplusplusCmd
21 # define CplusplusCmd           /usr/ccs/bin/CC
22 #endif
23 #ifndef  CplusplusFilt
24 # define CplusplusFilt          /usr/ccs/bin/c++filt
25 #endif
26 #ifndef  CplusplusDependIncludes
27 # define CplusplusDependIncludes        -I/usr/include/CC
28 #endif
29
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
38 #else
39 #define XawI18nDefines          -DHAS_WCHAR_H -DHAS_ISW_FUNCS
40 #endif
41
42 #if OSMajorVersion == 2
43 #  if OSMinorVersion == 0
44 #    define ExtraLibraries      -lsocket -lnsl -lgen -lw
45 #  else
46 #    define ExtraLibraries      -lsocket -lnsl -L/usr/ccs/lib -lgen
47 #  endif
48
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 \
53                                 -DXNO_MTSAFE_GRPAPI
54 #  define SystemMTDefines       -D_REENTRANT
55 #  define ThreadsLibraries      -lthread
56 #  define ThreadsCplusplusLibraries     -lthread
57 #  define DefaultCCOptions      -W0,-2A -Xa -Dasm=__asm
58 #endif
59 #define BuildLibPathVar   LD_LIBRARY_PATH
60
61 #ifndef UseExportLists
62 # define UseExportLists YES
63 #endif
64
65 #define GencatFlags             -m
66
67 #include <svr4.cf>
68
69 /*
70  * When generating templates the UnixWare 2.02 C++ compiler leaves
71  * protected .i files behind.  Remove them so other people can
72  * compile too.
73  */
74 #ifndef ObjectCplusplusCompile
75 #define ObjectCplusplusCompile(options) RemoveFiles($@ $*.i)            @@\
76         ClearmakeOSName \
77         $(CXX) -c $(CXXFLAGS) options $*.CCsuf
78 #endif
79
80 /* USL does not have a shared regex library. */
81 #define UseLocalRegex           YES
82
83 #define XmDefines               \
84         -DNO_REGCOMP -DNEED_STRCASECMP \
85         -DSUPPORT_ZERO_WIDTH -DHAS_WIDECHAR_FUNCTIONS
86 #define DtSvcDefines            -DMULTIBYTE -DNO_REGCOMP
87 #define DtSearchDefines         -DI18N_MSG DtSvcDefines
88 #define DtWidgetDefines         DtSearchDefines
89 #define DtPrintDefines          DtSearchDefines
90
91 #define HasStrcasecmp           NO
92
93 /* For DtHelp's TIFF processing routines. */
94 #define LSBBitOrder             YES
95
96 #define ArchitectureDefines     -DUSL_ARCHITECTURE
97
98 #define ExportListGenSource     elistgen.usl
99 #define ShlibExportListOpt(filename)    Concat(-Bexport:,filename)
100
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
108 #  else
109 #    define SharedXmReqs $(LDPRELIBS) SharedXReqs -lsocket -lnsl
110 #    define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs -lsocket -lnsl
111 #    define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lsocket -lnsl
112 #  endif
113 #endif
114   
115 /* <X11/Xos_r.h> requires process locking for missing _r functions */
116 #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
117 #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
118
119 #define CdeProjectDefines \
120         -DANSICPP -DMULTIBYTE -DNLS16 -DNEED_STRCASECMP \
121         -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion