]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/Motif.tmpl
Support RDP5 logon packets.
[rdpsrv] / Xserver / config / cf / Motif.tmpl
1 /* 
2  *  @OSF_COPYRIGHT@
3  *  COPYRIGHT NOTICE
4  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
5  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
6  *  the full copyright text.
7  *
8  * (c) Copyright 1996 Digital Equipment Corporation.
9  * (c) Copyright 1996 Hewlett-Packard Company.
10  * (c) Copyright 1996 International Business Machines Corp.
11  * (c) Copyright 1996 Sun Microsystems, Inc.
12  * (c) Copyright 1996 Novell, Inc. 
13  * (c) Copyright 1996 FUJITSU LIMITED.
14  * (c) Copyright 1996 Hitachi.
15  */ 
16 XCOMM $XConsortium: Motif.tmpl /main/2 1996/12/04 10:12:55 swick $
17
18 /* Include the X11 project template file. */
19 #include <X11.tmpl>
20
21 #ifdef AUTOMATION
22 # ifndef Automation
23 #  define Automation    YES
24 # endif
25 #else
26 # define NO_AUTOMATION
27 #endif
28
29 #ifdef USE_VISTACC
30 # ifndef UseVista
31 #  define UseVista
32 # endif
33 # ifndef CATCMD
34 #  define CATCMD cat
35 # endif
36 #endif
37
38 #ifdef USE_PURIFY
39 # ifndef UsePurify
40 #  define UsePurify
41 # endif
42 #endif
43
44 #ifdef DEBUG_GEOMETRY
45 # ifndef DebugGeometry
46 #  define DebugGeometry YES
47 # endif
48 #endif
49
50
51 #ifndef _MUse
52 # if UseInstalledMotif
53 #  define _MUse(a,b) a
54 # else
55 #  define _MUse(a,b) b
56 # endif
57 #endif
58
59 #ifndef _MUseCat
60 # if (defined(__STDC__) && !defined(UnixCpp)) || defined(AnsiCpp)
61 #  if UseInstalledMotif
62 #   define _MUseCat(a,b,c) a##c
63 #  else
64 #   define _MUseCat(a,b,c) b##c
65 #  endif
66 # else
67 #  if UseInstalledMotif
68 #   define _MUseCat(a,b,c) a/**/c
69 #  else
70 #   define _MUseCat(a,b,c) b/**/c
71 #  endif
72 # endif
73 #endif
74
75 #ifndef MTop
76 # if ImportMotif
77 #  define MTop $(TOP)/imports/motif
78 # else
79 #  define MTop $(TOP)
80 # endif
81 #endif
82
83 #ifndef BuildDocDir
84 # define BuildDocDir $(BUILDINCROOT)/doc
85 #endif
86 #ifndef BuildLocDir
87 # define BuildLocDir $(BUILDINCROOT)/localized
88 #endif
89
90 #ifndef MotifDefines
91 # define MotifDefines /**/
92 #endif
93
94 #ifndef XmDefines
95 # define XmDefines  /**/
96 #endif
97
98 /* To compile without SHAPE extension, set this to -DNO_SHAPE */
99 #ifndef MwmDefines
100 # define MwmDefines /**/
101 #endif
102
103 #ifndef UilFlags
104 # define UilFlags /**/
105 #endif
106
107 #ifndef TestDefines
108 # define TestDefines /**/
109 #endif
110
111 #ifndef AutoDefines
112 # if Automation
113 #  define AutoDefines -DAUTOMATION
114 # else
115 #  define AutoDefines /**/
116 # endif
117 #endif
118
119 #ifndef AutoIncludes
120 # if Automation
121 #  define AutoIncludes -I$(AUTOSCRIPTSRC)
122 # else
123 #  define AutoIncludes /**/
124 # endif
125 #endif
126
127 #ifdef UsePurify
128 # define PurifyFilesToClean *.pure_linkinfo *.pure_hardlink
129 #else
130 # define PurifyFilesToClean
131 #endif
132 #if Automation
133 # define TestExtraFilesToClean *.Dat *.Scr PurifyFilesToClean
134 #else 
135 # define TestExtraFilesToClean *.Dat PurifyFilesToClean
136 #endif 
137
138 #ifndef UsrIncDir
139 # define UsrIncDir IncRoot
140 #endif
141
142 /* Place to install .uid files */
143 #ifndef UidDir
144 # define UidDir $(LIBDIR)/uid
145 #endif
146
147 #ifndef XmExtraLibraries
148 # define XmExtraLibraries /**/
149 #endif
150
151 #ifndef YaccFlags
152 # define YaccFlags /**/
153 #endif
154
155 #define MotifSharedRev          2.1
156
157 #ifndef SharedLibXm
158 # define SharedLibXm            HasSharedLibraries
159 #endif
160 #ifndef NormalLibXm
161 # define NormalLibXm            (!SharedLibXm | ForceNormalLib)
162 #endif
163 #ifndef DebugLibXm
164 # define DebugLibXm             NO
165 #endif
166 #ifndef ProfileLibXm
167 # define ProfileLibXm           NO
168 #endif
169 #ifndef SharedXmRev
170 # define SharedXmRev            MotifSharedRev
171 #endif
172
173 #ifndef SharedLibMrm
174 # define SharedLibMrm           HasSharedLibraries
175 #endif
176 #ifndef NormalLibMrm
177 # define NormalLibMrm           (!SharedLibMrm | ForceNormalLib)
178 #endif
179 #ifndef DebugLibMrm
180 # define DebugLibMrm            NO
181 #endif
182 #ifndef ProfileLibMrm
183 # define ProfileLibMrm          NO
184 #endif
185 #ifndef SharedMrmRev
186 # define SharedMrmRev           MotifSharedRev
187 #endif
188
189 #ifndef SharedLibUil
190 # define SharedLibUil           HasSharedLibraries
191 #endif
192 #ifndef NormalLibUil
193 # define NormalLibUil           (!SharedLibUil | ForceNormalLib)
194 #endif
195 #ifndef DebugLibUil
196 # define DebugLibUil            NO
197 #endif
198 #ifndef ProfileLibUil
199 # define ProfileLibUil          NO
200 #endif
201 #ifndef SharedUilRev
202 # define SharedUilRev           MotifSharedRev
203 #endif
204
205 #ifndef SharedLibACommon
206 # define SharedLibACommon       HasSharedLibraries
207 #endif
208 #ifndef NormalLibACommon
209 # define NormalLibACommon       (!SharedLibACommon | ForceNormalLib)
210 #endif
211 #ifndef DebugLibACommon
212 # define DebugLibACommon        NO
213 #endif
214 #ifndef ProfileLibACommon
215 # define ProfileLibACommon      NO
216 #endif
217 #ifndef SharedACommonRev
218 # define SharedACommonRev       MotifSharedRev
219 #endif
220
221 #ifndef SharedLibScript
222 # define SharedLibScript        HasSharedLibraries
223 #endif
224 #ifndef NormalLibScript
225 # define NormalLibScript        (!SharedLibScript | ForceNormalLib)
226 #endif
227 #ifndef DebugLibScript
228 # define DebugLibScript         NO
229 #endif
230 #ifndef ProfileLibScript
231 # define ProfileLibScript       NO
232 #endif
233 #ifndef SharedScriptRev
234 # define SharedScriptRev        MotifSharedRev
235 #endif
236
237 #ifndef SharedLibUtil
238 # define SharedLibUtil          HasSharedLibraries
239 #endif
240 #ifndef NormalLibUtil
241 # define NormalLibUtil          (!SharedLibUtil | ForceNormalLib)
242 #endif
243 #ifndef DebugLibUtil
244 # define DebugLibUtil           NO
245 #endif
246 #ifndef ProfileLibUtil
247 # define ProfileLibUtil         NO
248 #endif
249 #ifndef SharedUtilRev
250 # define SharedUtilRev          MotifSharedRev
251 #endif
252
253 #ifndef SharedLibCreate
254 # define SharedLibCreate        HasSharedLibraries
255 #endif
256 #ifndef NormalLibCreate
257 # define NormalLibCreate        (!SharedLibCreate | ForceNormalLib)
258 #endif
259 #ifndef DebugLibCreate
260 # define DebugLibCreate         NO
261 #endif
262 #ifndef ProfileLibCreate
263 # define ProfileLibCreate       NO
264 #endif
265 #ifndef SharedCreateRev
266 # define SharedCreateRev        MotifSharedRev
267 #endif
268
269 #ifndef SharedLibVisual
270 # define SharedLibVisual        HasSharedLibraries
271 #endif
272 #ifndef NormalLibVisual
273 # define NormalLibVisual        (!SharedLibVisual | ForceNormalLib)
274 #endif
275 #ifndef DebugLibVisual
276 # define DebugLibVisual         NO
277 #endif
278 #ifndef ProfileLibVisual
279 # define ProfileLibVisual       NO
280 #endif
281 #ifndef SharedVisualRev
282 # define SharedVisualRev        MotifSharedRev
283 #endif
284
285 #ifndef SharedLibSynth
286 # define SharedLibSynth         HasSharedLibraries
287 #endif
288 #ifndef NormalLibSynth
289 # define NormalLibSynth         (!SharedLibSynth | ForceNormalLib)
290 #endif
291 #ifndef DebugLibSynth
292 # define DebugLibSynth          NO
293 #endif
294 #ifndef ProfileLibSynth
295 # define ProfileLibSynth        NO
296 #endif
297 #ifndef SharedSynthRev
298 # define SharedSynthRev         MotifSharedRev
299 #endif
300
301 #ifndef SharedLibMCommon
302 # define SharedLibMCommon       HasSharedLibraries
303 #endif
304 #ifndef NormalLibMCommon
305 # define NormalLibMCommon       (!SharedLibMCommon | ForceNormalLib)
306 #endif
307 #ifndef DebugLibMCommon
308 # define DebugLibMCommon        NO
309 #endif
310 #ifndef ProfileLibMCommon
311 # define ProfileLibMCommon      NO
312 #endif
313 #ifndef SharedMCommonRev
314 # define SharedMCommonRev       MotifSharedRev
315 #endif
316
317 #ifndef XmClientLibs
318 # define XmClientLibs $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
319 #endif
320 #ifndef XmClientDepLibs
321 # define XmClientDepLibs $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
322 #endif
323
324 #ifndef MrmClientLibs 
325 # define MrmClientLibs $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
326 #endif
327 #ifndef MrmClientDepLibs
328 # define MrmClientDepLibs $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
329 #endif
330
331 #ifndef UilClientLibs
332 # define UilClientLibs $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) $(XMEXTRA_LIBS)
333 #endif
334 #ifndef UilClientDepLibs
335 # define UilClientDepLibs $(DEPUILLIB) $(DEPMRESOURCELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
336 #endif
337
338 #ifndef TestClientLibs
339 # define TestClientLibs $(PURIFYLIBS) $(TESTCOMLIB) \
340                 $(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
341                 $(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
342         $(XMLIB) $(TESTGEOLIB) $(XTOOLLIB) $(XPLIB) $(XLIB) \
343         $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
344 #endif
345 #ifndef TestUilClientLibs
346 # define TestUilClientLibs $(PURIFYLIBS) $(TESTUILCOMLIB) $(TESTCOMLIB) \
347                 $(AUTOSCRIPTLIB) $(AUTOUTILLIB) \
348                 $(AUTOCREATELIB) $(AUTOVISUALLIB) $(AUTOSYNTHLIB) \
349         $(UILLIB) $(MRESOURCELIB) $(XMLIB) $(TESTGEOLIB) \
350         $(XTOOLLIB) $(XPLIB) $(XLIB) $(AUTOEXTRALIBS) $(XMEXTRA_LIBS)
351 #endif
352 #ifndef TestClientDepLibs
353 # define TestClientDepLibs XmClientDepLibs
354 #endif
355 #ifndef TestUilClientDepLibs
356 # define TestUilClientDepLibs UilClientDepLibs
357 #endif
358
359
360               MTOP = MTop
361 TOP_MOTIF_INCLUDES = -I$(MINCLUDESRC)
362 #if defined(UseInstalled) || (UseInstalledMotif && UseInstalledX11)
363       UIL_INCLUDES = -I$(USRINCDIR)/uil
364 #else
365       UIL_INCLUDES = -I$(UILSRC)
366 #endif
367 #ifdef BuildLibPathVar
368     MOTIFENVLIBDIR = MotifBuildLibPath
369 #endif
370
371 /* Message catalog usage */
372 #ifndef GencatCmd
373 # define GencatCmd              gencat
374 #endif
375 #ifndef GencatFlags
376 # define GencatFlags            /**/
377 #endif
378 #if defined(NoMessageCatalog)
379 # define BuildMessageCatalog    NO
380 # define MessageCatalogDefines  -DNO_MESSAGE_CATALOG
381 #else
382 # define BuildMessageCatalog    YES 
383 # define MessageCatalogDefines  /**/
384 #endif
385 #ifndef MessageCatalogRule
386 # if BuildMessageCatalog
387 #  define MessageCatalogRule(prefix)    Real_MessageCatalogRule(prefix)
388 # else
389 #  define MessageCatalogRule(prefix)    Stub_MessageCatalogRule(prefix)
390 # endif
391 #endif
392
393       USRINCDIR = UsrIncDir
394          UIDDIR = UidDir
395         TESTSRC = $(MTOP)/tests
396         TESTLIB = $(TESTSRC)/lib
397   GENERALSRCLIB = $(TESTSRC)/General/lib
398   GENERALSRCBIN = $(TESTSRC)/General/bin
399    MANUALSRCLIB = $(TESTSRC)/Manual/lib
400    MANUALSRCBIN = $(TESTSRC)/Manual/bin
401      AUTOSRCLIB = $(TESTSRC)/Auto/lib
402      AUTOSRCBIN = $(TESTSRC)/Auto/bin
403        COMMONPP = $(GENERALSRCBIN)/Commonpp
404          GENRUN = $(GENERALSRCBIN)/Genrun
405          MANRUN = $(GENERALSRCBIN)/Manrun
406 #ifdef DebugLib
407   TESTMALLOCSRC = $(GENERALSRCLIB)/Malloc
408 #endif
409 #ifdef DebugGeometry
410      TESTGEOSRC = $(TESTLIB)/Geometry
411 #endif
412 #ifdef Automation
413      TESTCOMSRC = $(AUTOSRCLIB)/Common
414   AUTOSCRIPTSRC = $(AUTOSRCLIB)/Script
415    AUTOSYNTHSRC = $(AUTOSRCLIB)/Synth
416   AUTOCREATESRC = $(AUTOSRCLIB)/Create
417   AUTOVISUALSRC = $(AUTOSRCLIB)/Visual
418     AUTOUTILSRC = $(AUTOSRCLIB)/Util
419   AUTOEXTRALIBS = -ll -ly -lm
420 #else
421      TESTCOMSRC = $(MANUALSRCLIB)/Common
422 #endif
423
424     BUILDDOCDIR = BuildDocDir
425     BUILDLOCDIR = BuildLocDir
426
427 /* MTOOLKITSRC  should be removed */
428     MTOOLKITSRC = $(TOOLKITSRC)
429 #if ImportMotif || UseInstalledMotif
430     MINCLUDESRC = $(MTOP)/include
431         MDOCSRC = $(MTOP)/doc
432         MLOCSRC = $(MTOP)/localized
433 #else
434     MINCLUDESRC = $(MTOP)/exports/include
435         MLOCSRC = $(MTOP)/exports/localized
436 #endif
437         MLIBSRC = $(MTOP)/lib
438      MCLIENTSRC = $(MTOP)/clients
439        MDEMOSRC = $(MTOP)/demos
440      MWIDGETSRC = $(MLIBSRC)/Xm
441    MRESOURCESRC = $(MLIBSRC)/Mrm
442          UILSRC = $(MCLIENTSRC)/uil
443 #ifdef MotifProjectRoot
444    MPROJECTROOT = MotifProjectRoot
445 #endif
446
447             UIL = _MUse(uil,$(UILSRC)/uil)
448          DEPUIL = _MUseCat($(BINDIR),$(UILSRC),/uil)
449
450    XMEXTRA_LIBS = XmExtraLibraries
451
452 /* These libraries use UseInstalledMotif instead of UseInstalled. */
453 #undef _Use
454 #undef _UseCat
455 #define _Use    _MUse
456 #define _UseCat _MUseCat
457
458 #ifndef MBuildLibDir
459 # define MBuildLibDir   BuildLibDir
460 #endif
461
462 #if SharedLibXm
463 SharedLibReferences(XM,Xm,$(MWIDGETSRC),SOXMREV,SharedXmRev)
464 #else
465 ProjectUnsharedLibReferences(XM,Xm,$(MWIDGETSRC),MBuildLibDir)
466 #endif
467
468 #if SharedLibMrm
469 SharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),SOMRMREV,SharedMrmRev)
470 #else
471 ProjectUnsharedLibReferences(MRESOURCE,Mrm,$(MRESOURCESRC),MBuildLibDir)
472 #endif
473
474 #if SharedLibUil
475 SharedLibReferences(UIL,Uil,$(UILSRC),SOUILREV,SharedUilRev)
476 #else
477 ProjectUnsharedLibReferences(UIL,Uil,$(UILSRC),MBuildLibDir)
478 #endif
479
480 #ifdef DebugGeometry
481 ProjectUnsharedLibReferences(TESTGEO,XtGeo,$(TESTGEOSRC),MBuildLibDir)
482 #endif
483
484 #if Automation
485
486 # if SharedLibACommon
487 SharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),SOACOMMONREV,SharedACommonRev)
488 # else
489 ProjectUnsharedLibReferences(TESTCOM,ACommon,$(TESTCOMSRC),MBuildLibDir)
490 # endif
491
492 TESTUILCOMLIB = $(TESTCOMSRC)/libACommonUil.a
493
494 # if SharedLibScript
495 SharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),SOSCRIPTREV,SharedScriptRev)
496 # else
497 ProjectUnsharedLibReferences(AUTOSCRIPT,Script,$(AUTOSCRIPTSRC),MBuildLibDir)
498 # endif
499
500 # if SharedLibSynth
501 SharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),SOSYNTHREV,SharedSynthRev)
502 # else
503 ProjectUnsharedLibReferences(AUTOSYNTH,Synth,$(AUTOSYNTHSRC),MBuildLibDir)
504 # endif
505
506 # if SharedLibCreate
507 SharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),SOCREATEREV,SharedCreateRev)
508 # else
509 ProjectUnsharedLibReferences(AUTOCREATE,Create,$(AUTOCREATESRC),MBuildLibDir)
510 # endif
511
512 # if SharedLibVisual
513 SharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),SOVISUALREV,SharedVisualRev)
514 # else
515 ProjectUnsharedLibReferences(AUTOVISUAL,Visual,$(AUTOVISUALSRC),MBuildLibDir)
516 # endif
517
518 # if SharedLibUtil
519 SharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),SOUTILREV,SharedUtilRev)
520 # else
521 ProjectUnsharedLibReferences(AUTOUTIL,Util,$(AUTOUTILSRC),MBuildLibDir)
522 # endif
523
524 #else   /* Manual */
525
526 # if SharedLibMCommon
527 SharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),SOMCOMMONREV,SharedMCommonRev)
528 # else
529 ProjectUnsharedLibReferences(TESTCOM,MCommon,$(TESTCOMSRC),MBuildLibDir)
530 # endif
531 TESTUILCOMLIB = $(TESTCOMSRC)/libMCommonUil.a
532
533 #endif  /* Automation */
534
535
536 /* Revert to the normal library rules. */
537 #undef _Use
538 #undef _UseCat
539 #define _Use    _XUse
540 #define _UseCat _XUseCat
541
542
543 #ifdef UsePurify
544      PURIFYLIBS = $(PURIFYHOME)/purify_stubs.a
545 #endif
546   LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
547 LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
548      LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
549      LINTUILLIB = $(UILSRC)/llib-lUil.ln
550
551       YACCFLAGS = YaccFlags
552        UILFLAGS = UilFlags
553     GENCATFLAGS = GencatFlags
554          GENCAT = GencatCmd $(GENCATFLAGS)
555       MKCATTOOL = $(MLOCSRC)/util/mkcatdefs
556
557          RM_CMD = $(RM) FilesToClean ExtraFilesToClean TestExtraFilesToClean
558
559 #if NeedDefaultDepLibs
560 # if HasSharedLibraries || defined(UseInstalled)
561         DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXPLIB) $(DEPXLIB)
562 # else
563         DEPLIBS = $(LOCAL_LIBRARIES)
564 # endif
565         DEPLIBS1 = $(DEPLIBS)
566         DEPLIBS2 = $(DEPLIBS)
567         DEPLIBS3 = $(DEPLIBS)
568 #endif /* NeedDefaultDepLibs */