1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
XCOMM platform: $XConsortium: osf1.cf,v 1.48 95/04/24 19:33:49 gildea Exp gildea $
/* only tested with Digital OSF/1 */
#ifdef AlphaArchitecture
#define OSName OSF/1 3.0
XCOMM operating system: OSName
#define OSMajorVersion 3
#define OSMinorVersion 0
#else
#define OSName OSF/1 1.0
XCOMM operating system: OSName
#define OSMajorVersion 1
#define OSMinorVersion 0
#endif
#define HasPutenv YES
#define Malloc0ReturnsNull YES
#define HasNdbm YES
#define HasShm YES
#define AvoidNullMakeCommand YES
#define HasPosixThreads YES
#define SystemMTDefines -D_REENTRANT
#define HasPoll YES
#define HasVFork NO
#define InstallCmd installbsd
#define RanlibCmd ranlib -t
#if OSMajorVersion > 1 || OSMinorVersion > 0
#define ModernOSF1 YES
#else
#define ModernOSF1 NO
#define ShLibDir /usr/shlib
#define SharedLibPex NO /* losing, no shared -lm */
#endif
#define ThreadedX ModernOSF1
#if ThreadedX
#define ThreadsLibraries -lpthreads -lmach -lc_r
#endif
#if OSMajorVersion > 2
#define ExtraLoadFlags -Wl,-oldstyle_liblookup
#endif
/*
* C++ compiler setup. This file knows what options to use with the
* DEC C++ compiler, and may learn about other compilers in the future.
*
* For DEC C++, define HasDECCplusplus to YES in site.def.
*
* For g++ 2.6.x, define HasGcc2ForCplusplus to YES in site.def.
*
* For other compilers, define HasCplusplus to YES in site.def, and
* check to see if you need to provide values for CplusplusOptions
* and/or DefaultCplusplusOptions.
*
* In any case, you may also need to set CplusplusDependIncludes.
*
* Note: For DEC C++, the -call_shared option really only needs to
* appear when linking C++ executables, not when actually compiling
* the C++ sources. But since there's no imake variable that lets
* us insert flags only into the C++ link stage, we use -call_shared
* on all compilations when building executables. This could be
* considered a deficiency in the current imake configuration
*/
#if HasDECCplusplus
#ifndef HasCplusplus
#define HasCplusplus YES
#endif
#ifndef CplusplusCmd
#define CplusplusCmd /usr/bin/cxx
#endif
#ifndef CplusplusDependIncludes
#define CplusplusDependIncludes -D__DECCXX -I/usr/include/cxx
#endif
#ifndef CplusplusLibC
#define CplusplusLibC -L/usr/lib/cmplrs/cxx -lcxx
#endif
#ifndef CplusplusOptions
#define CplusplusOptions -call_shared
#endif
#endif /* HasDECCplusplus */
#if HasGcc2ForCplusplus
#ifndef CplusplusLibC
#define CplusplusLibC `$(CXX) -print-libgcc-file-name`
#endif
#endif /* HasGcc2ForCplusplus */
#include <osfLib.rules>
#define NoRConst YES
#ifdef AlphaArchitecture
#ifndef HasWChar32
#define HasWChar32 YES
#endif
#define ServerExtraDefines -D_XSERVER64
#define ServerOSDefines -DDDXTIME
#ifndef DefaultCCOptions
#define DefaultCCOptions -std1
#endif
#ifndef XawI18nDefines
#define XawI18nDefines -DHAS_WCHAR_H
#endif
#ifndef BuildServer
#define BuildServer NO
#endif
#endif
#ifdef MipsArchitecture
#define DefaultCCOptions -Xa
#define XdecServer YES
#define ServerOSDefines -DDDXTIME
#define PexCCOptions -Xa -Wf,-XNp15000,-XNd15000
#define NormalLibObjCompile(options) $(RM) $@ $*.os \ @@\
&& $(CC) -c options $(CFLAGS) $*.c \ @@\
&& $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \ @@\
&& $(MV) $*.os $@
#endif
#ifndef ManKeywordsTarget
#define ManKeywordsTarget(manpath) @@\
man_keywords:: @@\
catman -M $(DESTDIR)manpath -w
#endif
|