summaryrefslogtreecommitdiff
path: root/sequent.cf
blob: a3e7b6d6ce73cf5548230b7b7bb35c9be8ca659e (plain)
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
XCOMM platform:  $XConsortium: sequent.cf$

/*
 * SET VERSION NUMBERS BEFORE MAKING MAKEFILES; also, you'll need to install
 * util/scripts/bsdinstall.sh before doing a "make install"
 */

/*
 * Version numbers are set one of two ways:
 *
 * If the target version is different than the machine you are building on,
 * set the target versions using the environmental variable IMAKEINCLUDES.
 * Example: IMAKEINCLUDES="-I. -DOSMajorVersion=4 -DOSMinorVersion=4"
 * This is usually only done at Sequent when building a product using
 * cross compiling tools and target headers and libraries.
 *
 * Otherwise, the imake will use uname(2) to calculate the default to be
 * the same as the machine you are building on.  The X11R6 imake will set
 * DefaultOS*Version macros to be these default values.
 * Those default values will be used in the assignments below.
 * This is the recommended method to be used by customers.
 */

				/* defaults from imake via uname(2) */
#ifndef OSName
#define OSName			DefaultOSName
#endif
#ifndef OSMajorVersion
#define OSMajorVersion		DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion		DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion		DefaultOSTeenyVersion
#endif
XCOMM operating system:  OSName V/**/OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion

/*
 * Sequent Dynix/PTX 4.x.x (SVR4) and later operating systems.
 *
 * Sequent Dynix/PTX 4.2.3 and later operating systems are supported with
 * the X11R6 sequent.cf and other X11R6 configuration files.
 * Specifically 4.4.2 and later have been tested.
 *
 * Attempting to use these X11R6 configuration files and X11R6 source files
 * with early versions of Dynix/PTX 4.x.x may work, however that will not be
 * tested or supported at Sequent.
 * Sequent Dynix/PTX 2.1.x has been retired so support for it and earlier
 * releases has been removed.
 */

#if OSMajorVersion >= 4

#define SystemV4		YES
#define SequentVersionDefines	-DSVR4
#define ExtraLibraries		
#define ForceNormalLib		YES
#define HasRequiredLibs		YES
#define NeedBerklib		NO	/* gettimeofday in libc */

#define XmExtraLibraries	/* for ABI-compliance do not use -lgen here */
#define MotifDefines		-DXM_STRINGS_1_2_2_STATE  /* code review */

/* initial port does not use multiple socket libs, default libsocket.so.1.1 */
#define HasMultipleSockets	NO	/* obsolete */ /* only libsocket.so.1.1 */

#endif /* OSMajorVersion >= 4 */

/*
 * Below this line are generic defines that apply to all Sequent systems.
 * However they are currently tested with only OSMajorVersion >= 4
 */

/*
 * The following cpp macro defines are order independent,
 * since the right-hand-side is constant.
 * Therefore these are simply listed in alphabetical order.
 * Macros defined later may use these definitions.
 */

/* 
 * Threads.tmpl cpp macros.
 * Sequent overrides the Threads.tmpl defaults with the values below.
 * Sequent has native threads for ptx 4.5.0 and higher.
 */

#if ( OSMajorVersion >= 5 || (OSMajorVersion == 4 && OSMinorVersion >= 5) )

#define HasPosixThreads			YES
#define HasThreadSafeAPI		YES
#define ThreadedX			YES
#define ThreadsLibraries		/**/
#define ThreadsCplusplusLibraries	/**/
#define ThreadPreStdAPIDefines		/**/
#define ThreadsCompileFlags		-Kthread
#define ThreadsCplusplusCompileFlags	-Kthread
#define SharedThreadReqs		/**/

/*
 * THREADS macro and environment variable used with Sequent commands only.
 * We use THREADS rather than the generic X11 THREADS_CFLAGS because we 
 * want to ensure that the macro is defined for all compiles and not just
 * those Makefiles built from a Imakefile that includes Threads.tmpl.
 *
 * Sequent compiler option -Kthread will also define -D_SEQUENT_THREADS.
 * Currently using -Kthread is the recommended interface to this define.
 * Currently there are no extra includes files using -D_SEQUENT_THREADS.
 * Currently no reason for makedepend or cpp to use -D_SEQUENT_THREADS.
 * If needed in the future, we would add to ProjectThreadsDefines
 *
 * #define ProjectThreadsDefines -DXTHREADS -D_SEQUENT_THREADS
 */

  THREADS = -Kthread

#endif /* ptx 4.5.0 or greater has threads */

/* 
 * Imake.tmpl cpp macros.
 * Sequent overrides the Imake.tmpl defaults with the values below.
 */

#define BuildLibPathVar		LD_LIBRARY_PATH
#define DefaultCCOptions	-Xa
#define ExpandManNames		YES
#define ExtraFilesToClean	*.z
#define HasNdbm			YES
#define HasShadowPasswd		YES
#define HasSockets		YES	/* default */
#define HasVarDirectory		NO
#ifdef UseInstalled
#define InstallCmd $(BINDIR)/ptxinst -t "$(TOOLS)"
#else
#define InstallCmd $(SHELL) $(SCRIPTSRC)/ptxinst.sh
#endif /* UseInstalled */
#define InstPgmFlags		-s -m 0555 -o bin -g bin
#define InstBinFlags		-s -m 0555 -o bin -g bin
#define InstLibFlags		-m 0444 -o bin -g bin
#define InstShLibFlags		-m 0555 -o bin -g bin
#define Malloc0ReturnsNull	YES
#define ManSuffix	1		/* use just one tab or cpp will die */
#define LibManSuffix	3x		/* use just one tab or cpp will die */
#define LibmanDir	$(MANSOURCEPATH)3
#define MiscManSuffix	5x		/* use just one tab or cpp will die */
#define MiscManDir	$(MANSOURCEPATH)5
#define MkdirHierCmd		mkdir -p
#define NeedConstPrototypes     YES
#define NeedFunctionPrototypes  YES
#define NeedNestedPrototypes    YES
#define NeedVarargsPrototypes   YES
#define StripInstalledPrograms	YES
#define SystemManDirectory	/usr/catman
#define TermcapLibrary		-lcurses	/* code review for SVR4 ? */
#define TerminfoDir		/usr/lib/terminfo	/* Sequent addition */
#define ToolkitStringsABIOptions -intelabi


/* 
 * X11.tmpl cpp macros.
 * Sequent overrides the X11.tmpl defaults with the values below.
 */

#define BuildDps		YES
#define BuildPexClients		NO
#define BuildPexExt		YES	/* needed for contrib xscope */
#define BuildServer		YES
#define BuildXF86DGA		NO	/* DGA has no meaning on Sequent HW */
#define BuildXF86MiscExt	NO	/* turn off the server portion */
#define BuildXF86VidModeExt	NO	/* turn off the server portion */
#define BuildXInputExt		YES
#define BuildXKBuilib		YES	/* override NO set in xorg.cf */
#define ConnectionFlags		-DTCPCONN
#define DefaultSystemPath	/bin:/etc:/usr/bin:$(BINDIR)
#define DefaultUserPath		:/bin:/usr/bin:$(BINDIR)
#define HasPlugin		YES
#define HasXServer		NO
#define InstallFSConfig		YES	/* safe since we install to DESTDIR */
#define InstallXdmConfig	YES	/* safe since we install to DESTDIR */
#define MotifBC			NO	/* default, code review from X11R5  */
#define XdmServersType	fs	/* One tab here.  Needed if BuildServer YES */
#define XtMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines -DXTMALLOC_BC
#define XprtServer		YES
#define XVirtualFramebufferServer	YES
#define XF86SVGAServer		NO	/* Don't build the XFree86 servers */
#define XF86S3Server		NO
#define XF86S3VServer		NO
#define XF86I8514Server		NO
#define XF86Mach8Server		NO
#define XF86Mach32Server	NO
#define XF86Mach64Server	NO
#define XF86P9000Server		NO
#define XF86AGXServer		NO
#define XF86I128Server		NO
#define XF86GLINTServer		NO
#define XF86REALimageServer	NO

/* 
 * Motif.tmpl cpp macros.
 * Sequent overrides the Motif.tmpl default with the values below.
 */

#define GencatCmd             /usr/lbin/gencat

/* Port Sequent macro DontBuildMotifConfig to Motif 2.1 */
/*
 * #ifndef MetroLink
 * #define DontBuildMotifConfig
 * #endif
 */

/* 
 * Sequent added cpp macros.
 * 
 * The following cpp macro defines have been introduced by Sequent.
 * They will be referenced in Sequent patches sent to TOG.
 * They may be moved above if accepted by TOG or X.org.
 */

#define AdminBaseDir		  /usr/admin.ptx/etc/base.dir
#define MessageCatDir		  /usr/lib/message/C
#define NeedXinputAlias		  YES
#define UseHidesymsLists	  YES
#define XlbiffMailPath		  /usr/mail/%s	/* used by contrib xlbiff */

/* 
 * Imake.tmpl, X11.tmpl, or other order dependent cpp defines.
 *
 * The following cpp macro defines are order dependent.
 * They depend on previously defined cpp macros.
 * Do not change the order.
 */
#define SharedLibraryCCOptions	DefaultCCOptions
#define StandardDefines		SequentVersionDefines -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion -DANSICPP -DDYNIX_C2 -DMetroLink
#define StandardCppDefines	StandardDefines -D_SOCKET_VERSION=11 -DUnixCpp

#ifdef ProjectRoot
#define ManDirectoryRoot	ProjectRoot/**//catman
#else
#define ManDirectoryRoot	SystemManDirectory
#endif
#define XmanSearchPath		ManDirectoryRoot /* for X11R5 xman */

/* 
 * Sequent configuration environment specific to building X11 and Motif.
 * This environment is only available when UseInstalled is not defined.
 * Therefore this environment is not used by customers using xmkmf.
 */

#ifndef UseInstalled

/* Product builds using local X11 and Motif trees */

/*
 * Provide libraries needed by nonX programs in the X11 build tree.
 * These are not standard so the customer will be forced to add them to their
 * Imakefile SYS_LIBRARIES if needed.  An ABI program may not want or need them,
 * so we do not include them in the ExtraLibraries provided to customers
 * when UseInstalled is defined.  We add them here as a convenience when
 * building the entire X11 tree (at Sequent or the contractor).
 */
#undef ExtraLibraries
#define ExtraLibraries	-lsocket -lnsl

/*
 * Sequent builds X11 and Motif in the same tree.
 * The Motif project files include the X11 project files.
 *
 * Later we may use the Local project files similer the the lynx.cf
 *
 * #define LocalTmplFile		<Motif.tmpl>
 * #define LocalRulesFile		<Motif.rules>
 */

/* Try the Metro Link method. */

#ifndef MetroLink
#undef ProjectTmplFile
#define ProjectTmplFile		<Motif.tmpl>
#undef ProjectRulesFile
#define ProjectRulesFile	<Motif.rules>
#endif

/*
 * Later change to Metro Link directory layout,
 * or allow $(TOP)/../motif21
 */

/* Try the Metro Link method. */

#ifndef MetroLink
#define MTop $(TOP)/motif21
#endif

/*
 * Set the Program macros to be correct for the target machine.
 * This will avoid using any crosstools as hardwired strings
 * built into binaries that will run on the target machine.
 *
 * These macro names need to be ported from X11R5 to X11R6.
 */
#define ArProgramBase	ar
#define CppProgram	/lib/cpp
#define CcProgram	cc
#define RanlibProgram	ranlib

/*
 * Build all the X11 debug libaries *_d.a for use by Sequent Service
 */

/*
 * Set DebugLibDefault YES for Sequent to build all debug libs.
 * If we move this to generic code to *.tmpl files,
 * use the default code below that sets the default NO
 */

#define DebugLibDefault		NO

#ifndef DebugLibDefault
#define DebugLibDefault		NO
#endif

#define DebugLibX11		DebugLibDefault	/* debugged X library */
#define DebugLibXext		DebugLibDefault	/* debugged Xext library */
#define DebugLibXau		DebugLibDefault	/* debugged auth library */
#define DebugLibXdmcp		DebugLibDefault	/* debugged XDMCP library */
#define DebugLibXmu		DebugLibDefault	/* debugged Xmu library */
#define DebugLibXp              DebugLibDefault	/* debugged Xp library */
#define DebugLibXt		DebugLibDefault	/* debugged toolkit library */
#define DebugLibXa		DebugLibDefault	/* debugged audio library */
#define DebugLibXaw		DebugLibDefault	/* debugged widget library */
#define DebugLibXi		DebugLibDefault	/* debugged Xi library */
#define DebugLibXtst		DebugLibDefault	/* debugged Xtst library */
#define DebugLibPex		DebugLibDefault	/* debugged PEX5 library */
#define DebugLibXie		DebugLibDefault	/* debugged XIE library */
#define DebugLibICE		DebugLibDefault	/* debugged ICE library */
#define DebugLibSM		DebugLibDefault	/* debugged SM library */
#define DebugLibXkey		DebugLibDefault	/* debugged Xkey library */
#define DebugLibFS		DebugLibDefault	/* debugged FS library */

/*
 * Build all the Motif debug libaries *_d.a for use by Service
 */
#define DebugLibXm		DebugLibDefault
#define DebugLibMrm		DebugLibDefault
#define DebugLibUil		DebugLibDefault

/*
 * Build all the Adobe DPS debug libaries *_d.a for use by Service
 */
#define DebugLibDps		DebugLibDefault

#endif /* ! UseInstalled */

/*
 * Sequent general make macros.
 * X11R6.5 should migrate these to Imake.tmpl.
 */

XCOMM Sequent general make macros.

#ifndef PackCmd
#define PackCmd pack
#endif
            PACK = PackCmd

/*
 * Sequent unique make macros.  These will always be unique to Sequent.
 * We introduce them here in sequent.cf since cpp macros are set in sequent.cf.
 * We may later move them to sequentLib.tmpl.
 */

XCOMM Sequent unique make macros.

     ADMINBASEDIR = AdminBaseDir
    MESSAGECATDIR = MessageCatDir

/*
 * DPS default values (unique to sequent)
 */
#ifndef PswrapCmd
#define PswrapCmd     pswrap
#endif

#ifdef UseHidesymsLists

#ifndef HidesymsCmd
#define HidesymsCmd /usr/lib/hidesyms/hidesyms
#endif
#ifndef HsAcppCmd
#define HsAcppCmd /lib/acpp
#endif
/*
 * When building in the X11 tree.
 * For shared libs,   hidesyms executes in a subdir.
 * For unshared libs, hidesyms executes in a subsubdir.
 * Therefore we add both of these to the acpp path:
 * ../../$(BUILDINCROOT)/lib/hidesyms:../$(BUILDINCROOT)/lib/hidesyms
 */
#ifndef HsAcppLocalPath
# define HsAcppLocalPath ../../$(BUILDINCROOT)/lib/hidesyms:../$(BUILDINCROOT)/lib/hidesyms
#endif
#ifndef HsAcppSystemPath
# define HsAcppSystemPath /usr/lib/hidesyms
#endif
#ifndef HsAcppPath
# ifdef UseInstalled
# define HsAcppPath HsAcppSystemPath
# else
# define HsAcppPath HsAcppLocalPath:HsAcppSystemPath
# endif /* UseInstalled */
#endif
/* 
 * note: -DABI_SHARED_OBJECT requires a temporary fix added to 
 * Xt/Error.c to provide missing _abi_* routines not in libc.so.1.
 * When the base adds those missing _abi_* to libc.so.1,
 * then the code in Xt/Error.c can be removed and the corresponding
 * symbols added to Xt/libXt.hs can be removed.
 */
#ifndef HsAcppDefines
#define HsAcppDefines -DABI_SHARED_OBJECT -D_SOCKET_VERSION=11 $(THREADS_DEFINES)
#endif

/*
 * For shared libs, hidesyms executes in a subdir,
 * therefore we add a -L../$(BUILDLIBDIR)
 */
#ifndef LdPreLib
#ifndef UseInstalled
#define LdPreLib -L$(BUILDLIBDIR) -L../$(BUILDLIBDIR)
#endif
#endif

XCOMM HIDESYMS is for filtering system library symbols.

         HIDESYMS = HidesymsCmd
       HSACPPPATH = HsAcppPath
        HSACPPCMD = HsAcppCmd
    HSACPPDEFINES = HsAcppDefines
           HSACPP = $(HSACPPCMD) -Y $(HSACPPPATH) $(HSACPPDEFINES)
            HSCMD = $(HIDESYMS) -z -p "$(HSACPP)"

#endif /* UseHidesymsLists */

#if OSMajorVersion >= 4
#include <xorg.cf>
#include <sequentLib.rules>	/* include after macros, before Motif.rules */
#endif /* OSMajorVersion >= 4 */