1 XCOMM platform: $TOG: hp.cf /main/88 1997/11/12 07:16:22 kaleb $
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 /* The default yacc options are too small for Uil.y. */
19 #define YaccFlags -Nm15000
22 * C++ compiler setup. This file knows what options to use with
23 * certain compilers, including HP C++ and CenterLine C++.
25 * For HP C++, define HasHPCplusplus to YES in site.def.
26 * For CenterLine C++, define HasCenterLineCplusplus to YES in site.def.
27 * For other compilers, define HasCplusplus to YES in site.def, and
28 * check to see if you need to provide values for CplusplusOptions
29 * and/or DefaultCplusplusOptions.
31 * In any case, you may also need to set CplusplusDependIncludes.
36 # define HasCplusplus YES
38 # ifndef DefaultCplusplusOptions
39 # define DefaultCplusplusOptions -Aa
41 # ifndef CplusplusOptions
42 # define CplusplusOptions -Aa
45 # define CplusplusCmd /opt/CC/bin/CC
47 # ifndef CplusplusDependIncludes
48 # define CplusplusDependIncludes -I/opt/CC/include/CC
53 # define CcCmd /opt/ansic/bin/cc
56 # define YaccCmd /opt/langtools/bin/yacc
59 # define LexCmd /opt/langtools/bin/lex
62 # define LintCmd /opt/ansic/bin/lint
65 #if HasCenterLineCplusplus
67 # define HasCplusplus YES
69 # ifndef OptimizedCplusplusDebugFlags
70 # define OptimizedCplusplusDebugFlags -O
72 # ifndef CplusplusDependIncludes
73 # define CplusplusDependIncludes -I/usr/local/CenterLine/clc++/pa-hpux8/incl
79 #define Malloc0ReturnsNull YES
80 #if OSMajorVersion > 9
81 # define AllocateLocalDefines -DINCLUDE_ALLOCA_H
83 # define AllocateLocalDefines -DNO_ALLOCA
87 # ifndef OptimizedCDebugFlags
88 # define OptimizedCDebugFlags +O1
90 # ifndef DefaultCCOptions
91 # define DefaultCCOptions -Ae +ESlit
93 # ifndef SharedLibraryCCOptions
94 # define SharedLibraryCCOptions -Ae
96 # define StandardDefines -Dhpux -DSYSV
97 # define ServerExtraDefines -DXOS -DBSTORE -DSOFTWARE_CURSOR -DSCREEN_PIXMAPS -DMERGE_SAVE_UNDERS -DHAS_IFREQ -DFORCE_SEPARATE_PRIVATE AllocateLocalDefines
99 # if OSMajorVersion > 9
100 # include <hpLib.rules>
103 #else /* __hp9000s800 */
104 # define StandardDefines -Dhpux -DSYSV
105 # if OSMajorVersion < 8
106 # define DefaultCCOptions -Wc,-Nd4000,-Ns4100,-Ne700,-Np200,-Nw300
107 # define PexCCOptions -Wp,-H150000 -Wc,-Nd4000,-Ns8100,-Ne700,-Np200
109 # define OptimizedCDebugFlags +O1
110 # define PexCCOptions -Wp,-H250000
112 # define PexShmIPC NO
113 # define LintOpts -ax -Nd4000 -Ns8000 -Ne700 -Np200 -Na25000
116 #define LdCombineFlags -r
117 #define ExecableScripts YES
120 #define RemoveTargetProgramByMoving YES
121 #define ExpandManNames YES
122 #define HasPutenv YES
124 #define DBMLibrary /usr/lib/libdbm.a
125 #define PrimaryScreenResolution 91
126 #define ExtensionOSDefines -DHPINPUT -DXTESTEXT1
127 #define XhpServer YES
128 #define ServerExtraSysLibs -ldld
129 #ifndef BuildXInputExt
130 # define BuildXInputExt YES
132 #define HPFastScrolling YES
134 # define BuildServer __hp9000s700
136 #if OSMajorVersion < 10
137 #define NeedBerklib (BuildServer|BuildFontServer)
139 #define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
141 #if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
142 # define ConnectionFlags -DTCPCONN /* no unix sockets */
145 #if OSMajorVersion > 8
146 #define HasWChar32 YES
147 #define HasPlugin YES
151 # ifndef CompatabilityDefines
152 # define CompatabilityDefines -D__hp9000s300 -Dhp9000s300
154 #elif defined(__hp9000s700)
155 # ifndef CompatabilityDefines
156 # define CompatabilityDefines -D__hp9000s800 -Dhp9000s800 -D__hp9000s700
159 # ifndef CompatabilityDefines
160 # define CompatabilityDefines -D__hp9000s800 -Dhp9000s800
165 # if OSMajorVersion > 9
166 # define OsDefines -DhpV4 -DHPUX
168 # define OsDefines -DHPUX
172 #if OSMajorVersion > 9
174 # define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
176 # define CppCmd /opt/langtools/lbin/cpp
179 /* CC does not recognize -Ae, and has a different meaning for +e. */
180 /* +e also confuses cpp. */
181 #define AnsiDefines -Ae -D_HPUX_SOURCE
182 #define CplusplusAnsiDefines -Aa -D_HPUX_SOURCE
184 #define BuildLibPathVar SHLIB_PATH
186 #define CdeBaseProjectDefines \
187 -DNLS16 -DMALLOC_0_RETURNS_NULL -DMERGE -D__hpux \
188 -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion \
189 CompatabilityDefines OsDefines
191 #define CdeProjectDefines CdeBaseProjectDefines AnsiDefines
192 #define CdeCplusplusProjectDefines \
193 CdeBaseProjectDefines CplusplusAnsiDefines
195 #define DtSvcDefines -DMULTIBYTE -DMESSAGE_CAT
196 #define DtSearchDefines -DI18N_MSG DtSvcDefines
197 #define DtWidgetDefines DtSearchDefines
198 #define DtPrintDefines DtSearchDefines
199 #if OSMajorVersion > 9
200 #define DtMailDefines \
201 -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
202 -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\"
204 #define DtMailDefines \
205 -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
206 -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/usr/mail/%s\"
209 #define ArchitectureDefines -DHP_ARCHITECTURE
211 #define ExportListGenSource elistgen.hp