1
XCOMM platform: $TOG: osf1.cf /main/74 1997/05/27 15:51:24 kaleb $
2
/* only tested with Digital OSF/1 */
5
# define OSName DefaultOSName
8
# define OSMajorVersion DefaultOSMajorVersion
10
#ifndef OSMinorVersion
11
# define OSMinorVersion DefaultOSMinorVersion
13
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion)
15
#define StandardCppDefines -D__osf__ StandardDefines
16
#define BuildLibPathVar _RLD_ROOT=/dev/null LD_LIBRARY_PATH
18
#define Malloc0ReturnsNull YES
21
#define AvoidNullMakeCommand YES
22
#define NullMakeCommand @ echo
23
#define HasPosixThreads YES
24
#define SystemMTDefines -D_REENTRANT
25
#define CplusplusSystemMTDefines -D_REENTRANT
29
#define InstallCmd installbsd
30
#define RanlibCmd ranlib -t
31
#if OSMajorVersion > 1 || OSMinorVersion > 0
32
#define ModernOSF1 YES
35
#define ShLibDir /usr/shlib
36
#define SharedLibPex NO /* losing, no shared -lm */
38
#define ThreadedX ModernOSF1
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
47
#define ThreadsLibraries -lpthread -lmach -lexc -lc
48
#define ThreadsCplusplusLibraries -lpthread -lmach -lexc
49
#define LibraryMTDefines -DUSE_TIS_SUPPORT
54
#ifndef OptimizedCDebugFlags
55
#define OptimizedCDebugFlags -O2 -Olimit 2000
57
#ifndef ExtraLoadFlags
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?)
68
#if OSMajorVersion == 3 && OSMinorVersion == 0
69
#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH),-oldstyle_liblookup
71
#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
74
#if OSMajorVersion > 3
75
#define TermcapLibrary -lcurses
77
#if OSMajorVersion >= 3
78
#define HasMkstemp YES
83
* C++ compiler setup. This file knows what options to use with the
84
* DEC C++ compiler, and may learn about other compilers in the future.
86
* For DEC C++, define HasDECCplusplus to YES in site.def.
88
* For g++ 2.6.x, define HasGcc2ForCplusplus to YES in site.def.
90
* For other compilers, define HasCplusplus to YES in site.def, and
91
* check to see if you need to provide values for CplusplusOptions
92
* and/or DefaultCplusplusOptions.
94
* In any case, you may also need to set CplusplusDependIncludes.
96
* Note: For DEC C++, the -call_shared option really only needs to
97
* appear when linking C++ executables, not when actually compiling
98
* the C++ sources. But since there's no imake variable that lets
99
* us insert flags only into the C++ link stage, we use -call_shared
100
* on all compilations when building executables. This could be
101
* considered a deficiency in the current imake configuration
106
#define HasCplusplus YES
109
#define CplusplusCmd /usr/bin/cxx
111
#ifndef CplusplusFilt
112
# define CplusplusFilt /usr/bin/demangle
114
#ifndef CplusplusDependIncludes
115
#define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
117
#ifndef CplusplusLibDir
118
#define CplusplusLibDir /usr/lib/cmplrs/cxx
120
#ifndef CplusplusLibC
121
#define CplusplusLibC -L/usr/lib/cmplrs/cxx -lcxx
123
#ifndef CplusplusOptions
124
#define CplusplusOptions -call_shared
126
#endif /* HasDECCplusplus */
129
#if HasGcc2ForCplusplus
130
#ifndef CplusplusLibC
131
#define CplusplusLibC `$(CXX) -print-libgcc-file-name`
133
#endif /* HasGcc2ForCplusplus */
135
#ifdef CplusplusLibDir
136
# define SystemBuildLibPath \
137
/usr/shlib:/usr/ccs/lib:CplusplusLibDir:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
139
# define SystemBuildLibPath \
140
/usr/shlib:/usr/ccs/lib:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib:/var/shlib
143
#include <osfLib.rules>
146
#ifdef AlphaArchitecture
148
#define HasWChar32 YES
150
#define ServerExtraDefines -D_XSERVER64
151
#define ServerOSDefines -DDDXTIME
152
#ifndef DefaultCCOptions
153
#define DefaultCCOptions -std1
155
#ifndef XawI18nDefines
156
#define XawI18nDefines -DHAS_WCHAR_H
159
#define BuildServer NO
162
/* For DtHelp's TIFF processing routines. */
163
#define LSBBitOrder YES
165
#define MotifDefines -DNO_REGCOMP -DNO_REGEX -DSTRINGS_ALIGNED
166
#define DtSvcDefines -DXK_MISCELLANY -DMULTIBYTE -DMESSAGE_CAT
167
#define DtSearchDefines -DI18N_MSG DtSvcDefines
168
#define DtWidgetDefines DtSearchDefines
169
#define DtPrintDefines DtSearchDefines
170
#define DtMailDefines \
171
-DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\"
173
#define ArchitectureDefines -DALPHA_ARCHITECTURE
176
#ifdef MipsArchitecture
177
#define DefaultCCOptions -Xa
178
#define XdecServer YES
179
#define ServerOSDefines -DDDXTIME
180
#define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
181
#define NormalLibObjCompile(options) ClearmakeOSName \
183
&& $(CC) -c options $(CFLAGS) $*.c \ @@\
184
&& $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \ @@\
189
#ifndef HasMakefileSafeInclude
190
#define HasMakefileSafeInclude YES
192
#ifndef IncludeMakefile
193
#define IncludeMakefile(file) @@-include file
197
#ifndef ManKeywordsTarget
198
#define ManKeywordsTarget(manpath) @@\
200
catman -M $(DESTDIR)manpath -w
203
#define CdeTicDefines -DHAS_KNL -DHAS_KTAB
204
#define CdeProjectDefines \
205
-DDEC -DMULTIBYTE -DNLS16 \
206
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion