linux.cf: add some gcc system include paths to makedepend. Shaves about 5150 more...
[oweals/cde.git] / cde / config / cf / osf1.cf
1 XCOMM platform:  $TOG: osf1.cf /main/74 1997/05/27 15:51:24 kaleb $
2 /* only tested with Digital OSF/1 */
3
4 #ifndef OSName
5 # define OSName         DefaultOSName
6 #endif
7 #ifndef OSMajorVersion
8 # define OSMajorVersion DefaultOSMajorVersion
9 #endif
10 #ifndef OSMinorVersion
11 # define OSMinorVersion DefaultOSMinorVersion
12 #endif
13 XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion)
14
15 #define StandardCppDefines      -D__osf__ StandardDefines
16 #define BuildLibPathVar         _RLD_ROOT=/dev/null LD_LIBRARY_PATH
17 #define HasPutenv               YES
18 #define Malloc0ReturnsNull      YES
19 #define HasNdbm                 YES
20 #define HasShm                  YES
21 #define AvoidNullMakeCommand    YES
22 #define NullMakeCommand         @ echo
23 #define HasPosixThreads         YES
24 #define SystemMTDefines         -D_REENTRANT
25 #define CplusplusSystemMTDefines -D_REENTRANT
26 #define HasPoll                 YES
27 #define HasVFork                NO
28 #define HasPlugin               YES
29 #define InstallCmd              installbsd
30 #define RanlibCmd               ranlib -t
31 #if OSMajorVersion > 1 || OSMinorVersion > 0
32 #define ModernOSF1              YES
33 #else
34 #define ModernOSF1              NO
35 #define ShLibDir                /usr/shlib
36 #define SharedLibPex            NO  /* losing, no shared -lm */
37 #endif
38 #define ThreadedX               ModernOSF1
39
40 #if ThreadedX
41 #define MTSafeAPIDefines        -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
42 #if OSMajorVersion < 4
43 #define ThreadsLibraries                -lpthreads -lmach -lc_r
44 #define ThreadsCplusplusLibraries       -lpthreads -lmach
45 #define ThreadPreStdAPIDefines          -DXPRE_STANDARD_API
46 #else
47 #define ThreadsLibraries                -lpthread -lmach -lexc -lc
48 #define ThreadsCplusplusLibraries       -lpthread -lmach -lexc
49 #define LibraryMTDefines                -DUSE_TIS_SUPPORT
50 #endif
51 #endif
52
53 #if ModernOSF1
54 #ifndef OptimizedCDebugFlags
55 #define OptimizedCDebugFlags    -O2 -Olimit 2000
56 #endif
57 #ifndef ExtraLoadFlags
58 /*
59  * In OSF/1 3.0 Digital has shared libXdmcp and libXau. What's more,
60  * the link editor has different search semantics, i.e. it will search
61  * for shared libraries first, then, if it can't find a shared lib, it
62  * will use a static lib. By using -oldstyle_liblookup the linker will
63  * follow "normal" semantics for linking libraries and will get the
64  * static libraries we really want. By 3.2 they no longer have libXdmcp 
65  * and libXau as shared libraries and we can omit -oldstyle_liblookup. 
66  * (What did they have in 3.1?)
67  */
68 #if OSMajorVersion == 3 && OSMinorVersion == 0
69 #define ExtraLoadFlags          -Wl,-rpath,$(USRLIBDIRPATH),-oldstyle_liblookup
70 #else
71 #define ExtraLoadFlags          -Wl,-rpath,$(USRLIBDIRPATH)
72 #endif
73 #endif
74 #if OSMajorVersion > 3
75 #define TermcapLibrary          -lcurses
76 #endif
77 #endif
78
79 /*
80  * C++ compiler setup.  This file knows what options to use with the
81  * DEC C++ compiler, and may learn about other compilers in the future.
82  * 
83  * For DEC C++, define HasDECCplusplus to YES in site.def.  
84  *
85  * For g++ 2.6.x, define HasGcc2ForCplusplus to YES in site.def.
86  *
87  * For other compilers, define HasCplusplus to YES in site.def, and 
88  *    check to see if you need to provide values for CplusplusOptions
89  *    and/or DefaultCplusplusOptions.
90  *
91  * In any case, you may also need to set CplusplusDependIncludes.
92  *
93  * Note: For DEC C++, the -call_shared option really only needs to 
94  * appear when linking C++ executables, not when actually compiling
95  * the C++ sources.  But since there's no imake variable that lets
96  * us insert flags only into the C++ link stage, we use -call_shared
97  * on all compilations when building executables.  This could be 
98  * considered a deficiency in the current imake configuration
99  */
100
101 #if HasDECCplusplus
102 #ifndef HasCplusplus 
103 #define HasCplusplus YES
104 #endif
105 #ifndef CplusplusCmd
106 #define CplusplusCmd /usr/bin/cxx
107 #endif
108 #ifndef CplusplusFilt
109 # define CplusplusFilt /usr/bin/demangle
110 #endif
111 #ifndef CplusplusDependIncludes 
112 #define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
113 #endif
114 #ifndef CplusplusLibDir
115 #define CplusplusLibDir /usr/lib/cmplrs/cxx
116 #endif
117 #ifndef CplusplusLibC
118 #define CplusplusLibC -L/usr/lib/cmplrs/cxx -lcxx
119 #endif
120 #ifndef CplusplusOptions
121 #define CplusplusOptions -call_shared
122 #endif
123 #endif /* HasDECCplusplus */
124
125
126 #if HasGcc2ForCplusplus
127 #ifndef CplusplusLibC
128 #define CplusplusLibC `$(CXX) -print-libgcc-file-name`
129 #endif 
130 #endif /* HasGcc2ForCplusplus */
131
132 #ifdef CplusplusLibDir
133 # define SystemBuildLibPath     \
134 /usr/shlib:/usr/ccs/lib:CplusplusLibDir:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
135 #else
136 # define SystemBuildLibPath     \
137 /usr/shlib:/usr/ccs/lib:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
138 #endif
139
140 #include <osfLib.rules>
141 #define NoRConst                YES
142
143 #ifdef AlphaArchitecture
144 #ifndef HasWChar32
145 #define HasWChar32              YES
146 #endif
147 #define ServerExtraDefines      -D_XSERVER64
148 #define ServerOSDefines         -DDDXTIME
149 #ifndef DefaultCCOptions
150 #define DefaultCCOptions        -std1
151 #endif
152 #ifndef XawI18nDefines
153 #define XawI18nDefines          -DHAS_WCHAR_H
154 #endif
155 #ifndef BuildServer
156 #define BuildServer             NO
157 #endif
158
159 /* For DtHelp's TIFF processing routines. */
160 #define LSBBitOrder             YES
161
162 #define MotifDefines            -DNO_REGCOMP -DNO_REGEX -DSTRINGS_ALIGNED
163 #define DtSvcDefines            -DXK_MISCELLANY -DMULTIBYTE -DMESSAGE_CAT
164 #define DtSearchDefines         -DI18N_MSG DtSvcDefines
165 #define DtWidgetDefines         DtSearchDefines
166 #define DtPrintDefines          DtSearchDefines
167 #define DtMailDefines           \
168   -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\"
169
170 #define ArchitectureDefines     -DALPHA_ARCHITECTURE
171 #endif
172
173 #ifdef MipsArchitecture
174 #define DefaultCCOptions        -Xa
175 #define XdecServer YES
176 #define ServerOSDefines -DDDXTIME
177 #define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
178 #define NormalLibObjCompile(options)    ClearmakeOSName                   \
179         $(RM) $@ $*.os \                                                @@\
180         && $(CC) -c options $(CFLAGS) $*.c \                            @@\
181         && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \                       @@\
182         && $(MV) $*.os $@
183 #endif
184
185 #if !HasClearmake
186 #ifndef HasMakefileSafeInclude
187 #define HasMakefileSafeInclude YES
188 #endif
189 #ifndef IncludeMakefile
190 #define IncludeMakefile(file) @@-include file
191 #endif
192 #endif
193
194 #ifndef ManKeywordsTarget
195 #define ManKeywordsTarget(manpath)                                      @@\
196 man_keywords::                                                          @@\
197         catman -M $(DESTDIR)manpath -w
198 #endif
199
200 #define CdeTicDefines   -DHAS_KNL -DHAS_KTAB
201 #define CdeProjectDefines \
202         -DDEC -DMULTIBYTE -DNLS16 \
203         -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion