]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/X11.tmpl
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / X11.tmpl
1 XCOMM ----------------------------------------------------------------------
2 XCOMM X Window System Build Parameters and Rules
3 XCOMM $TOG: X11.tmpl /main/292 1997/05/20 10:05:59 kaleb $
4 XCOMM
5 XCOMM
6 XCOMM
7 XCOMM
8 XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.8.2.4 1998/01/23 12:35:08 dawes Exp $
9
10 /***************************************************************************
11  *                                                                         *
12  *                            DEFAULT DEFINITIONS                          *
13  *                                                                         *
14  * The following section contains defaults for things that can             *
15  * overridden in the various *.cf and site.def files.  DO NOT EDIT!        *
16  *                                                                         *
17  **************************************************************************/
18
19 #define ProjectX                603     /* do *not* change this line */
20
21 /* The following project-specific rules are defined at the end of this file:
22  *
23  * InstallAppDefaults           (class)
24  * InstallAppDefaultsLong       (file,class)
25  * MakeFontsDir                 (deplist)
26  * MakeFonts                    ()
27  * InstallFontObjs              (objs,dest)
28  * InstallFonts                 (dest)
29  * InstallFontAliases           (dest)
30  * FontSrc                      (basename)
31  * FontBaseObj                  (basename)
32  * InstallFontScale             (dest)
33  * UncompressedFontTarget       (basename)
34  * CompressedFontTarget         (basename)
35  * FontTarget                   (basename)
36  * FontObj                      (basename)
37  * MakeXkbDir                   (basedir,subdir)
38  */
39
40 /*
41  * X-specific things
42  */
43 #ifndef HasXServer
44 #define HasXServer              YES
45 #endif
46 #ifndef BuildServer
47 #define BuildServer             HasXServer
48 #endif
49 #ifndef BuildServersOnly
50 #define BuildServersOnly        NO
51 #endif
52 #ifndef BuildFontServer
53 #define BuildFontServer         YES
54 #endif
55 #ifndef BuildFonts
56 #define BuildFonts              (BuildServer | BuildFontServer)
57 #endif
58 #ifndef Build75DpiFonts
59 #define Build75DpiFonts         YES
60 #endif
61 #ifndef Build100DpiFonts
62 #define Build100DpiFonts        YES
63 #endif
64 #ifndef BuildSpeedoFonts
65 #define BuildSpeedoFonts        YES
66 #endif
67 #ifndef BuildType1Fonts
68 #define BuildType1Fonts         YES
69 #endif
70 #ifndef BuildCyrillicFonts
71 #define BuildCyrillicFonts      NO
72 #endif
73 #ifndef UseKoi8RForCyrillic
74 #define UseKoi8RForCyrillic     NO
75 #endif
76 #ifndef HasXAudio
77 #define HasXAudio               NO
78 #endif
79 #ifndef BuildXAudio
80 #define BuildXAudio             (HasXAudio & HasCplusplus)
81 #endif
82 #ifndef HasXAServer
83 #define HasXAServer             NO
84 #endif
85 #ifndef BuildXAServer
86 #define BuildXAServer           (HasXAServer & HasCplusplus)
87 #endif
88 #ifndef BuildMITMiscExt
89 #define BuildMITMiscExt         YES
90 #endif
91 #ifndef BuildTestExt
92 #define BuildTestExt            YES
93 #endif
94 #ifndef BuildSyncExt
95 #define BuildSyncExt            YES
96 #endif
97 #ifndef BuildXCMiscExt
98 #define BuildXCMiscExt          YES
99 #endif
100 #ifndef BuildShapeExt
101 #define BuildShapeExt           YES
102 #endif
103 #ifndef BuildBigReqsExt
104 #define BuildBigReqsExt         YES
105 #endif
106 #ifndef BuildPhigs
107 #define BuildPhigs              NO
108 #endif
109 #ifndef BuildPexExt
110 #define BuildPexExt             NO
111 #endif
112 #ifndef BuildXInputExt
113 #define BuildXInputExt          NO
114 #endif
115 #ifndef BuildDIS
116 #define BuildDIS                NO
117 #endif
118 #ifndef BuildXIE
119 #define BuildXIE                YES
120 #endif
121 #ifndef BuildXIElib
122 #define BuildXIElib             BuildXIE
123 #endif
124 #ifndef BuildXKB
125 #define BuildXKB                YES
126 #endif
127 #ifndef BuildXKBlib
128 #define BuildXKBlib             BuildXKB
129 #endif
130 #ifndef BuildXKBuilib
131 #define BuildXKBuilib           BuildXKB
132 #endif
133         /*
134          * WARNING: Setting UseXKBInClients to YES cause incompatibilities
135          *          between many clients (such as xterm) and pre-XKB shared
136          *          libraries.
137          */
138 #ifndef UseXKBInClients
139 #define UseXKBInClients         NO      /* use XKB in "normal" clients? */
140 #endif
141 #ifndef BuildDBE
142 #define BuildDBE                YES
143 #endif
144 #ifndef BuildDBElib
145 #define BuildDBElib             BuildDBE
146 #endif
147 #ifndef BuildMultibuffer
148 #define BuildMultibuffer        NO
149 #endif
150 #ifndef BuildRECORD
151 #define BuildRECORD             YES
152 #endif
153 #ifndef BuildRECORDlib
154 #define BuildRECORDlib          BuildRECORD
155 #endif
156 #ifndef BuildLBX
157 #define BuildLBX                YES
158 #endif
159 #ifndef BuildXCSecurity
160 #define BuildXCSecurity         YES
161 #endif
162 #ifndef BuildAppgroup
163 #define BuildAppgroup           YES
164 #endif
165 #ifndef HasPlugin
166 #define HasPlugin               NO
167 #endif
168 #ifndef BuildPlugin
169 #define BuildPlugin             HasPlugin
170 #endif
171 #ifndef XprtServer
172 #define XprtServer              BuildServer
173 #endif
174 #ifndef BuildXprint
175 #if XprtServer
176 #define BuildXprint             YES
177 #else
178 #define BuildXprint             NO
179 #endif
180 #endif
181 #ifndef BuildScreenSaverExt
182 #define BuildScreenSaverExt     NO
183 #endif
184 #ifndef BuildScreenSaverLibrary
185 #define BuildScreenSaverLibrary BuildScreenSaverExt
186 #endif
187 #ifndef BuildXF86VidModeExt
188 #define BuildXF86VidModeExt     NO
189 #endif
190 #ifndef BuildXF86VidModeLibrary
191 #define BuildXF86VidModeLibrary BuildXF86VidModeExt
192 #endif
193 #ifndef BuildXF86MiscExt
194 #define BuildXF86MiscExt        NO
195 #endif
196 #ifndef BuildXF86MiscLibrary
197 #define BuildXF86MiscLibrary    BuildXF86MiscExt
198 #endif
199 #ifndef BuildXF86DGA
200 #define BuildXF86DGA            NO
201 #endif
202 #ifndef BuildXF86DGALibrary
203 #define BuildXF86DGALibrary     BuildXF86DGA
204 #endif
205 #ifndef BuildDPMSExt
206 #define BuildDPMSExt            NO
207 #endif
208 #ifndef BuildDPMSLibrary
209 #define BuildDPMSLibrary        BuildDPMSExt
210 #endif
211
212 #ifndef InstallLibManPages
213 #define InstallLibManPages      YES
214 #endif
215 #ifndef InstallXtermSetUID
216 #define InstallXtermSetUID      YES     /* xterm needs to be set uid */
217 #endif
218 #ifndef InstallXinitConfig
219 #define InstallXinitConfig      NO      /* install sample xinit config */
220 #endif
221 #ifndef InstallXdmConfig
222 #define InstallXdmConfig        NO      /* install sample xdm config */
223 #endif
224 #ifndef XdmServersType                  /* what Xservers files to use */
225 #if BuildServer
226 #define XdmServersType ws
227 #else
228 #define XdmServersType fs
229 #endif
230 #endif
231 #ifndef InstallFSConfig
232 #define InstallFSConfig         NO      /* install sample fs config */
233 #endif
234 #ifndef InstallAppDefFiles
235 #define InstallAppDefFiles      YES     /* install application defaults */
236 #endif
237 #ifndef CompressAllFonts
238 #define CompressAllFonts        NO
239 #endif
240 #ifndef ThreadedX
241 #if HasPosixThreads || HasCThreads
242 #define ThreadedX               YES     /* multi-threaded libraries */
243 #else
244 #define ThreadedX               NO
245 #endif
246 #endif
247 #ifndef ThreadedProject
248 #define ThreadedProject ThreadedX
249 #endif
250 #ifndef HasWChar32
251 #define HasWChar32              SystemV4
252 #endif
253 #ifndef HasXdmAuth
254 #define HasXdmAuth              NO      /* if you can not use XDM-AUTH* */
255 #endif
256 #ifndef PrimaryScreenResolution
257 #define PrimaryScreenResolution 72              /* a common resolution */
258 #endif
259 #ifndef DefaultFontPath
260 #if PrimaryScreenResolution < 88                /* (75 + 100) / 2 */
261 #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
262 #else
263 #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
264 #endif
265 #endif
266 #ifndef DefaultRGBDatabase
267 #define DefaultRGBDatabase $(LIBDIR)/rgb
268 #endif
269 #ifndef UseRgbTxt
270 #define UseRgbTxt               NO      /* default is to compile with dbm */
271 #endif
272 #ifndef UseMemLeak
273 #define UseMemLeak              NO
274 #endif
275 #ifndef SpecialMalloc
276 #define SpecialMalloc           NO
277 #endif
278 #ifndef UseInternalMalloc
279 #define UseInternalMalloc       NO
280 #endif
281 #ifndef FontCompilerFlags
282 #define FontCompilerFlags -t
283 #endif
284 #ifndef ConnectionFlags
285 #if HasStreams
286 #define ConnectionFlags -DSTREAMSCONN
287 #else
288 #if HasDECnet
289 #define ConnectionFlags -DTCPCONN -DUNIXCONN -DDNETCONN
290 #else
291 #define ConnectionFlags -DTCPCONN -DUNIXCONN
292 #endif
293 #endif
294 #endif
295 #ifndef ProjectThreadsDefines
296 #define ProjectThreadsDefines -DXTHREADS
297 #endif
298 #ifndef FontOSDefines
299 #define FontOSDefines /**/
300 #endif
301 #ifndef FontDefines
302 #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
303 #endif
304 #ifndef XawI18nDefines
305 #if SystemV4
306 #define XawI18nDefines -DHAS_WCTYPE_H
307 #else
308 #define XawI18nDefines -DUSE_XWCHAR_STRING
309 #endif
310 #endif
311 #if Malloc0ReturnsNull
312 #ifndef XMalloc0ReturnsNullDefines
313 #define XMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines
314 #endif
315 #ifndef XtMalloc0ReturnsNullDefines
316 #define XtMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines
317 #endif
318 #endif
319 #ifndef ExtensionOSDefines
320 #define ExtensionOSDefines /**/
321 #endif
322
323 #ifndef ExtensionDefines
324 #ifndef MITMiscDefines
325 #if BuildMITMiscExt
326 #define MITMiscDefines -DMITMISC
327 #else
328 #define MITMiscDefines /**/
329 #endif
330 #endif
331 #ifndef XTestDefines
332 #if BuildTestExt
333 #define XTestDefines -DXTEST
334 #else
335 #define XTestDefines /**/
336 #endif
337 #endif
338 #ifndef XSyncDefines
339 #if BuildSyncExt
340 #define XSyncDefines -DXSYNC
341 #else
342 #define XSyncDefines /**/
343 #endif
344 #endif
345 #ifndef XCMiscDefines
346 #if BuildXCMiscExt
347 #define XCMiscDefines -DXCMISC
348 #else
349 #define XCMiscDefines /**/
350 #endif
351 #endif
352 #ifndef ShapeDefines
353 #if BuildShapeExt
354 #define ShapeDefines -DSHAPE
355 #else
356 #define ShapeDefines /**/
357 #endif
358 #endif
359 #ifndef PexDefines
360 #if BuildPexExt
361 #define PexDefines -DPEXEXT
362 #else
363 #define PexDefines /**/
364 #endif
365 #endif
366 #ifndef GlxDefines
367 #if BuildGlxExt
368 #define GlxDefines -DGLXEXT
369 #else
370 #define GlxDefines /**/
371 #endif
372 #endif
373 #ifndef ShmDefines
374 #if HasShm
375 #define ShmDefines -DMITSHM
376 #else
377 #define ShmDefines /**/
378 #endif
379 #endif
380 #ifndef XInputDefines
381 #if BuildXInputExt
382 #define XInputDefines -DXINPUT
383 #else
384 #define XInputDefines /**/
385 #endif
386 #endif
387 #ifndef XieDefines
388 #if BuildXIE
389 #define XieDefines -DXIE
390 #else
391 #define XieDefines /**/
392 #endif
393 #endif
394 #ifndef PrintOnlyServer
395 #define PrintOnlyServer YES
396 #endif
397 #ifndef XprintDefines
398 #if BuildXprint
399 #if PrintOnlyServer
400 #define XprintDefines -DPIXPRIV
401 #else
402 #define XprintDefines -DXPRINT -DPIXPRIV
403 #endif
404 #else
405 #define XprintDefines /**/
406 #endif
407 #endif
408 #ifndef XkbDefines
409 #if BuildXKB
410 #define XkbDefines -DXKB
411 #else
412 #define XkbDefines /**/
413 #endif
414 #endif
415 #ifndef XkbClientDefines
416 #if UseXKBInClients
417 #define XkbClientDefines -DXKB
418 #else
419 #define XkbClientDefines /**/
420 #endif
421 #endif
422 #ifndef XkbServerDefines
423 #define XkbServerDefines /**/
424 #endif
425 #ifndef LbxDefines
426 #if BuildLBX
427 #define LbxDefines -DLBX
428 #else
429 #define LbxDefines /**/
430 #endif
431 #endif
432 #ifndef BigReqDefines
433 #if BuildBigReqsExt
434 #define BigReqDefines -DBIGREQS
435 #else
436 #define BigReqDefines /**/
437 #endif
438 #endif
439
440 #ifndef DBEDefines
441 #if BuildDBE
442 #define DBEDefines -DDBE
443 #else
444 #define DBEDefines /**/
445 #endif
446 #endif
447
448 #ifndef PervasiveDBEDefines
449 #define PervasiveDBEDefines /* -DNEED_DBE_BUF_BITS -DNEED_DBE_BUF_VALIDATE */
450 #endif
451
452 #ifndef MultibufferDefines
453 #if BuildMultibuffer
454 #define MultibufferDefines -DMULTIBUFFER
455 #else
456 #define MultibufferDefines /**/
457 #endif
458 #endif
459
460 #ifndef ScreenSaverExtensionDefines
461 #if BuildScreenSaverExt
462 #define ScreenSaverExtensionDefines -DSCREENSAVER
463 #else
464 #define ScreenSaverExtensionDefines /**/
465 #endif
466 #endif
467 #ifndef VidTuneExtensionDefines
468 #if BuildXF86VidModeExt
469 #define VidTuneExtensionDefines -DXF86VIDMODE
470 #else
471 #define VidTuneExtensionDefines /**/
472 #endif
473 #endif
474 #ifndef XF86MiscExtensionDefines
475 #if BuildXF86MiscExt
476 #define XF86MiscExtensionDefines -DXF86MISC
477 #else
478 #define XF86MiscExtensionDefines /**/
479 #endif
480 #endif
481
482 #ifndef DPMSExtensionDefines
483 #if BuildDPMSExt
484 #define DPMSExtensionDefines -DDPMSExtension
485 #else
486 #define DPMSExtensionDefines /**/
487 #endif
488 #endif
489
490 #ifndef RECORDDefines
491 #if BuildRECORD
492 #define RECORDDefines -DXRECORD
493 #else
494 #define RECORDDefines /**/
495 #endif
496 #endif
497
498 #ifndef AppgroupDefines
499 #if BuildAppgroup
500 #define AppgroupDefines -DXAPPGROUP
501 #else
502 #define AppgroupDefines /**/
503 #endif
504 #endif
505
506 #ifndef XCSecurityDefines
507 #if BuildXCSecurity
508 #define XCSecurityDefines -DXCSECURITY
509 #else
510 #define XCSecurityDefines /**/
511 #endif
512 #endif
513
514 #ifndef SitePervasiveExtensionDefines
515 #define SitePervasiveExtensionDefines /**/
516 #endif
517 #ifndef PervasiveExtensionDefines
518 #define PervasiveExtensionDefines ShapeDefines XInputDefines XkbDefines \
519                                   LbxDefines AppgroupDefines \
520                                   XCSecurityDefines PervasiveDBEDefines \
521                                   DPMSExtensionDefines \
522                                   XprintDefines SitePervasiveExtensionDefines
523 #endif
524 #ifndef SiteExtensionDefines
525 #define SiteExtensionDefines /**/
526 #endif
527 #ifndef BaseExtensionDefines
528 #define BaseExtensionDefines MultibufferDefines MITMiscDefines XTestDefines \
529                              XSyncDefines XCMiscDefines RECORDDefines \
530                              PexDefines GlxDefines ShmDefines XieDefines BigReqDefines \
531                              VidTuneExtensionDefines XF86MiscExtensionDefines \
532                              DBEDefines ScreenSaverExtensionDefines \
533                              SiteExtensionDefines
534 #endif
535 #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
536 #endif /* ExtensionDefines */
537
538 #ifndef HasStrcasecmp
539 #define HasStrcasecmp YES
540 #endif
541
542 #ifndef StrcasecmpDefines
543 # if HasStrcasecmp
544 #  define StrcasecmpDefines /**/
545 # else
546 #  define StrcasecmpDefines -DNEED_STRCASECMP
547 # endif
548 #endif
549
550 #ifndef ServerXdmcpDefines
551 #define ServerXdmcpDefines -DXDMCP
552 #endif
553 #ifndef ServerOSDefines
554 #define ServerOSDefines /**/
555 #endif
556 #if HasKrb5
557 #ifndef Krb5Defines
558 #define Krb5Defines -DK5AUTH
559 #endif
560 #else
561 #define Krb5Defines /**/
562 #endif
563 #ifndef ServerExtraDefines
564 #define ServerExtraDefines /* -DPIXPRIV */
565 #endif
566 #ifndef ServerAssertDefines
567 #define ServerAssertDefines -DNDEBUG
568 #endif
569 #ifndef ServerDefines
570 #define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines
571 #endif
572 #ifndef PexDipexDefines
573 #define PexDipexDefines /**/
574 #endif
575 #ifndef PexDdpexDefines
576 #define PexDdpexDefines /**/
577 #endif
578 #ifndef PexPhigsDefines
579 #ifndef PexShmIPC
580 #define PexShmIPC HasShm
581 #endif
582 #if PexShmIPC
583 #define PexPhigsDefines /**/
584 #else
585 #define PexPhigsDefines -DPEX_API_SOCKET_IPC
586 #endif
587 #endif
588 #ifndef PexClientDefines
589 #define PexClientDefines -DPEX_SI_PHIGS
590 #endif
591 #ifndef PhigsInclude
592 #ifdef UseInstalled
593 #define PhigsInclude -I$(INCDIR)/X11
594 #else
595 #define PhigsInclude -I$(BUILDINCDIR)
596 #endif
597 #endif
598 #ifndef PexCDebugFlags
599 #define PexCDebugFlags DebuggableCDebugFlags
600 #endif
601 #ifndef PexCCOptions
602 #ifdef LibraryCCOptions
603 #define PexCCOptions LibraryCCOptions
604 #else
605 #define PexCCOptions DefaultCCOptions
606 #endif
607 #endif
608 #ifndef DefaultFSConfigFile
609 #define DefaultFSConfigFile $(LIBDIR)/fs/config
610 #endif
611 #ifndef BinDir
612 #ifdef ProjectRoot
613 #define BinDir Concat(ProjectRoot,/bin)
614 #else
615 #define BinDir /usr/bin/X11
616 #endif
617 #endif
618 #ifndef BuildIncRoot
619 #define BuildIncRoot $(TOP)/exports
620 #endif
621 #ifndef BuildIncDir
622 #define BuildIncDir $(BUILDINCROOT)/include
623 #endif
624 #ifndef BuildIncTop
625 #define BuildIncTop ../..       /* relative to BuildIncDir */
626 #endif
627 #ifndef XTop
628 # if ImportX11
629 #  define XTop $(TOP)/imports/x11
630 # else
631 #  define XTop $(TOP)
632 # endif
633 #endif
634 #ifndef XBuildIncRoot
635 # if ImportX11
636 #  define XBuildIncRoot $(XTOP)
637 # else
638 #  define XBuildIncRoot $(XTOP)/exports
639 # endif
640 #endif
641 #ifndef XBuildIncDir
642 # define XBuildIncDir   $(XBUILDINCROOT)/include/X11
643 #endif
644 #ifndef XBuildIncTop
645 # define XBuildIncTop   ../../..
646 #endif
647 #ifndef XBuildBinDir
648 # define XBuildBinDir   $(XBUILDINCROOT)/bin
649 #endif
650 #ifndef BuildBinDir
651 #define BuildBinDir $(TOP)/exports/bin
652 #endif
653 #ifndef BuildBinTop
654 #define BuildBinTop ../..       /* relative to BuildBinDir */
655 #endif
656 #ifndef BuildLibDir
657 #define BuildLibDir $(TOP)/exports/lib
658 #endif
659 #ifndef BuildLibTop
660 #define BuildLibTop ../..       /* relative to BuildLibDir */
661 #endif
662 #ifndef LibDir
663 #define LibDir $(USRLIBDIR)/X11
664 #endif
665 #ifndef ConfigDir
666 #define ConfigDir $(LIBDIR)/config
667 #endif
668 #ifndef FontDir
669 #define FontDir $(LIBDIR)/fonts
670 #endif
671 #ifndef AdmDir
672 #define AdmDir /usr/adm
673 #endif
674 #ifndef XinitDir
675 #define XinitDir $(LIBDIR)/xinit
676 #endif
677 #ifndef XdmDir
678 #define XdmDir $(LIBDIR)/xdm
679 #endif
680 #ifndef XdmVarDir
681 #define XdmVarDir $(VARLIBDIR)/xdm
682 #endif
683 #ifndef XdmAuthDir
684 #define XdmAuthDir $(LIBDIR)/xdm
685 #endif
686 #ifndef XdmConfigurationSubdirectory            /* under xdm sources */
687 #define XdmConfigurationSubdirectory config
688 #endif
689 #ifndef TwmDir
690 #define TwmDir $(LIBDIR)/twm
691 #endif
692 #ifndef XsmDir
693 #define XsmDir $(LIBDIR)/xsm
694 #endif
695 #ifndef NlsDir
696 #define NlsDir $(LIBDIR)/nls
697 #endif
698 #ifndef XLocaleDir
699 #define XLocaleDir $(LIBDIR)/locale
700 #endif
701 #ifndef PexApiDir
702 #define PexApiDir $(LIBDIR)/PEX
703 #endif
704 #ifndef LbxproxyDir
705 #define LbxproxyDir $(LIBDIR)/lbxproxy
706 #endif
707 #ifndef LbxproxyConfigSubdir            /* under lbxproxy sources */
708 #define LbxproxyConfigSubdir config
709 #endif
710 #ifndef ProxyManagerDir
711 #define ProxyManagerDir $(LIBDIR)/proxymngr
712 #endif
713 #ifndef XPrintDir
714 #define XPrintDir $(LIBDIR)
715 #endif
716 #ifndef ServerConfigDir
717 #define ServerConfigDir $(LIBDIR)/xserver
718 #endif
719 #ifndef VarDirectory
720 #define VarDirectory /var/X11
721 #endif
722 #ifndef InstallSecurityConfig
723 #define InstallSecurityConfig YES       /* Install sample security policy */
724 #endif
725 #ifndef XFileSearchPathBase
726 /* avoid SCCS keyword */
727 #define XFileSearchPathBase Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
728 #endif
729 #ifndef XFileSearchPathDefault
730 #ifdef XAppLoadDir
731 /* avoid SCCS keyword */
732 #define XFileSearchPathDefault XAppLoadDir/Concat(%N%C,%S):XAppLoadDir/%N%S:XFileSearchPathBase
733 #else
734 #define XFileSearchPathDefault XFileSearchPathBase
735 #endif
736 #endif
737 #ifndef XAppLoadDir
738 #define XAppLoadDir /etc/app-defaults
739 #endif
740 #ifndef XtErrorPrefix
741 #define XtErrorPrefix /* as empty string */
742 #endif
743 #ifndef XtExtraDefines
744 #define XtExtraDefines /* as empty string */
745 #endif
746 #ifndef XtWarningPrefix
747 #define XtWarningPrefix /* as empty string */
748 #endif
749 #ifndef OsNameDefines
750 #define OsNameDefines /* as nothing */
751 #endif
752 #ifndef DefaultUserPath                 /* for xdm */
753 #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
754 #endif
755 #ifndef DefaultSystemPath               /* for xdm */
756 #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
757 #endif
758 #ifndef DefaultSystemShell              /* for xdm to set in SHELL */
759 #define DefaultSystemShell BourneShell
760 #endif
761 #ifndef ContribDir
762 #define ContribDir $(XTOP)/../contrib   /* contrib is outside core tree */
763 #endif
764 #ifndef UnsupportedDir
765 #define UnsupportedDir $(XTOP)/unsupported
766 #endif
767 #ifndef AllocateLocalDefines
768 #define AllocateLocalDefines /**/
769 #endif
770
771 #ifndef ForceNormalLib
772 #define ForceNormalLib (HasGcc && !HasGcc2)
773 #endif
774
775 #ifndef XkbComp
776 #define XkbComp xkbcomp
777 #endif
778
779 XCOMM -----------------------------------------------------------------------
780 XCOMM X Window System make variables; these need to be coordinated with rules
781
782 /*
783  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
784  * Makefile.
785  */
786              XTOP = XTop
787            BINDIR = BinDir              /* programs */
788      BUILDINCROOT = BuildIncRoot        /* base of build loc */
789       BUILDINCDIR = BuildIncDir         /* built headers */
790       BUILDINCTOP = BuildIncTop         /* top relative to BUILDINCDIR */
791       BUILDLIBDIR = BuildLibDir         /* built libraries */
792       BUILDLIBTOP = BuildLibTop         /* top relative to BUILDLIBDIR */
793       BUILDBINDIR = BuildBinDir         /* built binaries */
794       BUILDBINTOP = BuildBinTop         /* top relative to BUILDBINDIR */
795     XBUILDINCROOT = XBuildIncRoot       /* base of X build loc */
796      XBUILDINCDIR = XBuildIncDir
797      XBUILDINCTOP = XBuildIncTop
798      XBUILDBINDIR = XBuildBinDir
799            INCDIR = $(INCROOT)          /* header files */
800            ADMDIR = AdmDir              /* server log files */
801            LIBDIR = LibDir              /* rgb, XErrorDB, etc. */
802    TOP_X_INCLUDES = TopXInclude
803
804 #ifdef VarDirectory
805            VARDIR = VarDirectory
806 #endif
807
808           FONTDIR = FontDir             /* font directories */
809          XINITDIR = XinitDir            /* xinit config files */
810            XDMDIR = XdmDir              /* xdm config files */
811         XDMVARDIR = XdmVarDir           /* xdm config files */
812            TWMDIR = TwmDir              /* twm config files */
813            XSMDIR = XsmDir              /* xsm config files */
814            NLSDIR = NlsDir              /* nls files */
815        XLOCALEDIR = XLocaleDir          /* locale files */
816         PEXAPIDIR = PexApiDir           /* PEX support files */
817       LBXPROXYDIR = LbxproxyDir         /* lbxproxy files */
818   PROXYMANAGERDIR = ProxyManagerDir     /* proxy manager config files */
819         XPRINTDIR = XPrintDir           /* print config file root */
820       XAPPLOADDIR = XAppLoadDir         /* application default resource dir */
821        FONTCFLAGS = FontCompilerFlags
822
823      INSTAPPFLAGS = $(INSTDATFLAGS)     /* XXX - this should go away - XXX */
824
825 #if UseInstalledX11
826               RGB = rgb                 /* assume BINDIR in path */
827             FONTC = bdftopcf            /* assume BINDIR in path */
828         MKFONTDIR = mkfontdir           /* assume BINDIR in path */
829 #else
830               RGB = $(CLIENTENVSETUP) $(XBUILDBINDIR)/rgb
831             FONTC = $(CLIENTENVSETUP) $(XBUILDBINDIR)/bdftopcf
832         MKFONTDIR = $(CLIENTENVSETUP) $(XBUILDBINDIR)/mkfontdir
833 #endif
834
835        DOCUTILSRC = $(XTOP)/doc/util
836         CLIENTSRC = $(TOP)/clients
837           DEMOSRC = $(TOP)/demos
838        XDOCMACROS = $(DOCUTILSRC)/macros.t
839        XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
840        PROGRAMSRC = $(TOP)/programs
841            LIBSRC = $(XTOP)/lib
842           FONTSRC = $(XTOP)/fonts
843        INCLUDESRC = BuildIncDir
844       XINCLUDESRC = $(INCLUDESRC)/X11
845         SERVERSRC = $(XTOP)/programs/Xserver
846        CONTRIBSRC = ContribDir
847    UNSUPPORTEDSRC = UnsupportedDir
848            DOCSRC = $(XTOP)/doc
849            RGBSRC = $(XTOP)/programs/rgb
850       BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
851      MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
852     FONTSERVERSRC = $(PROGRAMSRC)/xfs
853        FONTINCSRC = $(XTOP)/include/fonts
854         EXTINCSRC = $(XTOP)/include/extensions
855      TRANSCOMMSRC = $(LIBSRC)/xtrans
856    TRANS_INCLUDES = -I$(TRANSCOMMSRC)
857 #ifdef X11ProjectRoot
858      XPROJECTROOT = X11ProjectRoot
859 #endif
860 #if HasSharedLibraries
861 #ifndef DontUseLibPathVar
862 #ifndef BuildLibPathVar
863 #define BuildLibPathVar LD_LIBRARY_PATH
864 #endif
865 #endif
866 #endif
867 #ifdef BuildLibPathVar
868 # ifdef SystemBuildLibPath
869   SYSTEMENVLIBDIR = SystemBuildLibPath
870 # endif
871        XENVLIBDIR = X11BuildLibPath
872    CLIENTENVSETUP = BuildLibPathVar=BuildLibPath
873 #else
874    CLIENTENVSETUP = 
875 #endif
876
877 #ifndef ShLibIncludeFile
878 /* need this to make ANSI-style preprocessors happy */
879 #define ShLibIncludeFile <noop.rules>
880 #endif
881
882 #include ShLibIncludeFile
883
884 #ifndef XBuildLibDir
885 # define XBuildLibDir   BuildLibDir
886 #endif
887
888 #ifndef SharedLibX11
889 #define SharedLibX11 HasSharedLibraries
890 #endif
891 #ifndef NormalLibX11
892 #define NormalLibX11 (!SharedLibX11 | ForceNormalLib)
893 #endif
894 #ifndef DebugLibX11
895 #define DebugLibX11             NO      /* debugged X library */
896 #endif
897 #ifndef ProfileLibX11
898 #define ProfileLibX11           NO      /* profiled X library */
899 #endif
900           XLIBSRC = $(LIBSRC)/X11
901 #if SharedLibX11
902 #ifndef SharedX11Rev
903 #define SharedX11Rev 6.1
904 #endif
905 SharedLibReferences(XONLY,X11,$(XLIBSRC),SOXLIBREV,SharedX11Rev)
906 #else
907 ProjectUnsharedLibReferences(XONLY,X11,$(XLIBSRC),XBuildLibDir)
908 #endif
909          XLIBONLY = $(XONLYLIB)
910
911 #if BuildThreadStubLibrary
912 #ifndef SharedLibXThrStub
913 #define SharedLibXThrStub YES
914 #endif
915 #ifndef NormalLibXThrStub
916 #define NormalLibXThrStub NO
917 #endif
918 #ifndef DebugLibXThrStub
919 #define DebugLibXThrStub NO
920 #endif
921 #ifndef ProfileLibXThrStub
922 #define ProfileLibXThrStub NO
923 #endif
924    XTHRSTUBLIBSRC = $(LIBSRC)/XThrStub
925 #if SharedLibXThrStub
926 #ifndef SharedXThrStubRev
927 #define SharedXThrStubRev 6.0
928 #endif
929 SharedLibReferences(XTHRSTUB,XThrStub,$(XTHRSTUBLIBSRC),SOXTHRSTUBREV,SharedXThrStubRev)
930 #else
931 ProjectUnsharedLibReferences(XTHRSTUB,XThrStub,$(XTHRSTUBSRC),XBuildLibDir)
932 #endif
933 #endif
934
935 #if BuildScreenSaverLibrary
936 #ifndef SharedLibXss
937 #define SharedLibXss    NO
938 #endif
939 #ifndef NormalLibXss
940 #define NormalLibXss    YES
941 #endif
942 #ifndef DebugLibXss
943 #define DebugLibXss     NO
944 #endif
945 #ifndef ProfileLibXss
946 #define ProfileLibXss   NO
947 #endif
948 #endif
949
950 #if BuildXF86MiscLibrary
951 #ifndef SharedLibXxf86misc
952 #define SharedLibXxf86misc      NO
953 #endif
954 #ifndef NormalLibXxf86misc
955 #define NormalLibXxf86misc      YES
956 #endif
957 #ifndef DebugLibXxf86misc
958 #define DebugLibXxf86misc       NO
959 #endif
960 #ifndef ProfileLibXxf86misc
961 #define ProfileLibXxf86misc     NO
962 #endif
963 #endif
964
965 #if BuildXF86VidModeLibrary
966 #ifndef SharedLibXxf86vm
967 #define SharedLibXxf86vm        NO
968 #endif
969 #ifndef NormalLibXxf86vm
970 #define NormalLibXxf86vm        YES
971 #endif
972 #ifndef DebugLibXxf86vm
973 #define DebugLibXxf86vm         NO
974 #endif
975 #ifndef ProfileLibXxf86vm
976 #define ProfileLibXxf86vm       NO
977 #endif
978 #endif
979
980 #if BuildXF86DGALibrary
981 #ifndef SharedLibXxf86dga
982 #define SharedLibXxf86dga       NO
983 #endif
984 #ifndef NormalLibXxf86dga
985 #define NormalLibXxf86dga       YES
986 #endif
987 #ifndef DebugLibXxf86dga
988 #define DebugLibXxf86dga        NO
989 #endif
990 #ifndef ProfileLibXxf86dga
991 #define ProfileLibXxf86dga      NO
992 #endif
993 #endif
994
995 #if BuildDPMSLibrary
996 #ifndef SharedLibXdpms
997 #define SharedLibXdpms          NO
998 #endif
999 #ifndef NormalLibXdpms
1000 #define NormalLibXdpms          YES
1001 #endif
1002 #ifndef DebugLibXdpms
1003 #define DebugLibXdpms           NO
1004 #endif
1005 #ifndef ProfileLibXdpms
1006 #define ProfileLibXdpms         NO
1007 #endif
1008 #endif
1009
1010 #ifndef SharedLibXext
1011 #define SharedLibXext HasSharedLibraries
1012 #endif
1013 #ifndef NormalLibXext
1014 #define NormalLibXext (!SharedLibXext | ForceNormalLib)
1015 #endif
1016 #ifndef DebugLibXext
1017 #define DebugLibXext            NO      /* debugged Xext library */
1018 #endif
1019 #ifndef ProfileLibXext
1020 #define ProfileLibXext          NO      /* profiled Xext library */
1021 #endif
1022       XEXTLIBSRC = $(LIBSRC)/Xext
1023 #if SharedLibXext
1024 #ifndef SharedXextRev
1025 #define SharedXextRev 6.3
1026 #endif
1027 SharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),SOXEXTREV,SharedXextRev)
1028 #else
1029 ProjectUnsharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),XBuildLibDir)
1030 #endif
1031 LINTEXTENSIONLIB = $(LINTEXTENSION)
1032           DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
1033              XLIB = $(EXTENSIONLIB) $(XONLYLIB)
1034          LINTXLIB = $(LINTXONLYLIB)
1035
1036 #if BuildScreenSaverLibrary
1037     XSSLIBSRC = $(LIBSRC)/Xss
1038 #if SharedLibXss
1039 #ifndef SharedXssRev
1040 #define SharedXssRev 1.0
1041 #endif
1042 SharedLibReferences(XSS,Xss,$(XSSLIBSRC),SOXSSREV,SharedXssRev)
1043 #else
1044 ProjectUnsharedLibReferences(XSS,Xss,$(XSSLIBSRC),XBuildLibDir)
1045 #endif
1046 #endif
1047
1048 #if BuildXF86MiscLibrary
1049     XXF86MISCLIBSRC = $(LIBSRC)/Xxf86misc
1050 #if SharedLibXxf86misc
1051 #ifndef SharedXxf86miscRev
1052 #define SharedXxf86miscRev 1.0
1053 #endif
1054 SharedLibReferences(XXF86MISC,Xxf86misc,$(XXF86MISCLIBSRC),SOXXF86MISCREV,SharedXxf86miscRev)
1055 #else
1056 ProjectUnsharedLibReferences(XXF86MISC,Xxf86misc,$(XXF86MISCLIBSRC),XBuildLibDir)
1057 #endif
1058 #endif
1059
1060 #if BuildXF86VidModeLibrary
1061     XXF86VMLIBSRC = $(LIBSRC)/Xxf86vm
1062 #if SharedLibXxf86vm
1063 #ifndef SharedXxf86vmRev
1064 #define SharedXxf86vmRev 1.0
1065 #endif
1066 SharedLibReferences(XXF86VM,Xxf86vm,$(XXF86VMLIBSRC),SOXXF86VMREV,SharedXxf86vmRev)
1067 #else
1068 ProjectUnsharedLibReferences(XXF86VM,Xxf86vm,$(XXF86VMLIBSRC),XBuildLibDir)
1069 #endif
1070 #endif
1071
1072 #if BuildXF86DGALibrary
1073     XXF86DGALIBSRC = $(LIBSRC)/Xxf86dga
1074 #if SharedLibXxf86dga
1075 #ifndef SharedXxf86dgaRev
1076 #define SharedXxf86dgaRev 1.0
1077 #endif
1078 SharedLibReferences(XXF86DGA,Xxf86dga,$(XXF86DGALIBSRC),SOXXF86DGAREV,SharedXxf86dgaRev)
1079 #else
1080 ProjectUnsharedLibReferences(XXF86DGA,Xxf86dga,$(XXF86DGALIBSRC),XBuildLibDir)
1081 #endif
1082 #endif
1083
1084 #if BuildDPMSLibrary
1085     XDPMSLIBSRC = $(LIBSRC)/Xdpms
1086 #if SharedLibXdpms
1087 #ifndef SharedXdpmsRev
1088 #define SharedXdpmsRev 1.0
1089 #endif
1090 SharedLibReferences(XDPMS,Xdpms,$(XDPMSLIBSRC),SOXDPMSREV,SharedXdpmsRev)
1091 #else
1092 ProjectUnsharedLibReferences(XDPMS,Xdpms,$(XDPMSLIBSRC),XBuildLibDir)
1093 #endif
1094 #endif
1095
1096 #ifndef SharedLibXau
1097 #define SharedLibXau NO         /* don't need shared form */
1098 #endif
1099 #ifndef NormalLibXau
1100 #define NormalLibXau (!SharedLibXau | ForceNormalLib)
1101 #endif
1102 #ifndef DebugLibXau
1103 #define DebugLibXau             NO      /* debugged auth library */
1104 #endif
1105 #ifndef ProfileLibXau
1106 #define ProfileLibXau           NO      /* profiled auth library */
1107 #endif
1108          XAUTHSRC = $(LIBSRC)/Xau
1109 #if SharedLibXau
1110 #ifndef SharedXauRev
1111 #define SharedXauRev 6.0
1112 #endif
1113 SharedLibReferences(XAUTH,Xau,$(XAUTHSRC),SOXAUTHREV,SharedXauRev)
1114 #else
1115 ProjectUnsharedLibReferences(XAUTH,Xau,$(XAUTHSRC),XBuildLibDir)
1116 #endif
1117
1118 #ifndef SharedLibXdmcp
1119 #define SharedLibXdmcp NO       /* don't need shared form */
1120 #endif
1121 #ifndef NormalLibXdmcp
1122 #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
1123 #endif
1124 #ifndef DebugLibXdmcp
1125 #define DebugLibXdmcp           NO      /* debugged XDMCP library */
1126 #endif
1127 #ifndef ProfileLibXdmcp
1128 #define ProfileLibXdmcp         NO      /* profiled XDMCP library */
1129 #endif
1130       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
1131 #if SharedLibXdmcp
1132 #ifndef SharedXdmcpRev
1133 #define SharedXdmcpRev 6.0
1134 #endif
1135 SharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),SOXDMCPREV,SharedXdmcpRev)
1136 #else
1137 ProjectUnsharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),XBuildLibDir)
1138 #endif
1139
1140 #ifndef SharedLibXmu
1141 #define SharedLibXmu HasSharedLibraries
1142 #endif
1143 #ifndef NormalLibXmu
1144 #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
1145 #endif
1146 #ifndef DebugLibXmu
1147 #define DebugLibXmu             NO      /* debugged Xmu library */
1148 #endif
1149 #ifndef ProfileLibXmu
1150 #define ProfileLibXmu           NO      /* profiled Xmu library */
1151 #endif
1152            XMUSRC = $(LIBSRC)/Xmu
1153 #if SharedLibXmu
1154 #ifndef SharedXmuRev
1155 #define SharedXmuRev 6.0
1156 #endif
1157 SharedDSLibReferences(XMU,Xmu,$(XMUSRC),SOXMUREV,SharedXmuRev)
1158 #else
1159 ProjectUnsharedLibReferences(XMU,Xmu,$(XMUSRC),XBuildLibDir)
1160 #endif
1161
1162 #ifndef SharedOldX
1163 #define SharedOldX HasSharedLibraries
1164 #endif
1165 #ifndef NormalOldX
1166 #define NormalOldX (!SharedOldX | ForceNormalLib)
1167 #endif
1168 #ifndef DebugOldX
1169 #define DebugOldX               NO      /* debugged old X library */
1170 #endif
1171 #ifndef ProfileOldX
1172 #define ProfileOldX             NO      /* profiled old X library */
1173 #endif
1174        OLDXLIBSRC = $(LIBSRC)/oldX
1175 #if SharedOldX
1176 #ifndef SharedOldXRev
1177 #define SharedOldXRev 6.0
1178 #endif
1179 SharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),SOOLDXREV,SharedOldXRev)
1180 #else
1181 ProjectUnsharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),XBuildLibDir)
1182 #endif
1183
1184 #ifndef SharedLibXp
1185 #define SharedLibXp HasSharedLibraries
1186 #endif
1187 #ifndef NormalLibXp
1188 #define NormalLibXp (!SharedLibXp | ForceNormalLib)
1189 #endif
1190 #ifndef DebugLibXp
1191 #define DebugLibXp              NO      /* debugged Xp library */
1192 #endif
1193 #ifndef ProfileLibXp
1194 #define ProfileLibXp            NO      /* profiled Xp library */
1195 #endif
1196          XPLIBSRC = $(LIBSRC)/Xp
1197 #if SharedLibXp
1198 #ifndef SharedXpRev
1199 #define SharedXpRev 6.2
1200 #endif
1201 SharedLibReferences(XP,Xp,$(XPLIBSRC),SOXPREV,SharedXpRev)
1202 #else
1203 ProjectUnsharedLibReferences(XP,Xp,$(XPLIBSRC),XBuildLibDir)
1204 #endif
1205
1206 #ifndef SharedLibXt
1207 #define SharedLibXt HasSharedLibraries
1208 #endif
1209 #ifndef NormalLibXt
1210 #define NormalLibXt (!SharedLibXt | ForceNormalLib)
1211 #endif
1212 #ifndef DebugLibXt
1213 #define DebugLibXt              NO      /* debugged toolkit library */
1214 #endif
1215 #ifndef ProfileLibXt
1216 #define ProfileLibXt            NO      /* profiled toolkit library */
1217 #endif
1218        TOOLKITSRC = $(LIBSRC)/Xt
1219 #if SharedLibXt
1220 #ifndef SharedXtRev
1221 #define SharedXtRev 6.0
1222 #endif
1223 SharedDSLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),SOXTREV,SharedXtRev)
1224 #else
1225 ProjectUnsharedLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),XBuildLibDir)
1226 #endif
1227       DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
1228          XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
1229      LINTXTOOLLIB = $(LINTXTOOLONLYLIB)
1230
1231 #ifndef SharedLibXa
1232 #define SharedLibXa     (HasSharedLibraries & HasCplusplus)
1233 #endif
1234 #ifndef NormalLibXa
1235 /* #define NormalLibXa  ((!SharedLibXa | ForceNormalLib) & HasCplusplus) */
1236 #define NormalLibXa     YES /* needed for current tests, will correct later */
1237 #endif
1238 #ifndef DebugLibXa
1239 #define DebugLibXa      NO      /* debugged audio library */
1240 #endif
1241 #ifndef ProfileLibXa
1242 #define ProfileLibXa    NO      /* profiled audio library */
1243 #endif
1244        XALIBSRC = $(LIBSRC)/Xa
1245 #if SharedLibXa
1246 #ifndef SharedXaRev
1247 #define SharedXaRev 1.0
1248 #endif
1249 SharedLibReferences(XA,Xa,$(XALIBSRC),SOXAREV,SharedXaRev)
1250 #else
1251 UnsharedLibReferences(XA,Xa,$(XALIBSRC))
1252 #endif
1253
1254 #ifndef SharedLibXaw
1255 #define SharedLibXaw HasSharedLibraries
1256 #endif
1257 #ifndef NormalLibXaw
1258 #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
1259 #endif
1260 #ifndef DebugLibXaw
1261 #define DebugLibXaw             NO      /* debugged widget library */
1262 #endif
1263 #ifndef ProfileLibXaw
1264 #define ProfileLibXaw           NO      /* profiled widget library */
1265 #endif
1266        AWIDGETSRC = $(LIBSRC)/Xaw
1267 #if SharedLibXaw
1268 #ifndef SharedXawRev
1269 #define SharedXawRev 6.1
1270 #endif
1271 SharedDSLibReferences(XAW,Xaw,$(AWIDGETSRC),SOXAWREV,SharedXawRev)
1272 #else
1273 ProjectUnsharedLibReferences(XAW,Xaw,$(AWIDGETSRC),XBuildLibDir)
1274 #endif
1275
1276 #ifndef SharedLibXi
1277 #define SharedLibXi HasSharedLibraries
1278 #endif
1279 #ifndef NormalLibXi
1280 #define NormalLibXi (!SharedLibXi | ForceNormalLib)
1281 #endif
1282 #ifndef DebugLibXi
1283 #define DebugLibXi              NO      /* debugged Xi library */
1284 #endif
1285 #ifndef ProfileLibXi
1286 #define ProfileLibXi            NO      /* profiled Xi library */
1287 #endif
1288          XILIBSRC = $(LIBSRC)/Xi
1289 #if SharedLibXi
1290 #ifndef SharedXiRev
1291 #define SharedXiRev 6.0
1292 #endif
1293 SharedLibReferences(XI,Xi,$(XILIBSRC),SOXINPUTREV,SharedXiRev)
1294 #else
1295 ProjectUnsharedLibReferences(XI,Xi,$(XILIBSRC),XBuildLibDir)
1296 #endif
1297
1298 #ifndef SharedLibXtst
1299 #define SharedLibXtst HasSharedLibraries
1300 #endif
1301 #ifndef NormalLibXtst
1302 #define NormalLibXtst (!SharedLibXtst | ForceNormalLib)
1303 #endif
1304 #ifndef DebugLibXtst
1305 #define DebugLibXtst            NO      /* debugged Xtst library */
1306 #endif
1307 #ifndef ProfileLibXtst
1308 #define ProfileLibXtst          NO      /* profiled Xtst library */
1309 #endif
1310       XTESTLIBSRC = $(LIBSRC)/Xtst
1311 #if SharedLibXtst
1312 #ifndef SharedXtstRev
1313 #define SharedXtstRev 6.1
1314 #endif
1315 SharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),SOXTESTREV,SharedXtstRev)
1316 #else
1317 ProjectUnsharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),XBuildLibDir)
1318 #endif
1319
1320 #ifndef SharedLibPex
1321 #define SharedLibPex HasSharedLibraries
1322 #endif
1323 #ifndef NormalLibPex
1324 #define NormalLibPex (!SharedLibPex | ForceNormalLib)
1325 #endif
1326 #ifndef DebugLibPex
1327 #define DebugLibPex             NO      /* debugged PEX5 library */
1328 #endif
1329 #ifndef ProfileLibPex
1330 #define ProfileLibPex           NO      /* profiled PEX5 library */
1331 #endif
1332         PEXLIBSRC = $(LIBSRC)/PEX5
1333 #if SharedLibPex
1334 #ifndef SharedPexRev
1335 #define SharedPexRev 6.0
1336 #endif
1337 SharedLibReferences(PEX,PEX5,$(PEXLIBSRC),SOPEXREV,SharedPexRev)
1338 #else
1339 ProjectUnsharedLibReferences(PEX,PEX5,$(PEXLIBSRC),XBuildLibDir)
1340 #endif
1341
1342 #ifndef SharedLibXie
1343 #define SharedLibXie HasSharedLibraries
1344 #endif
1345 #ifndef NormalLibXie
1346 #define NormalLibXie (!SharedLibXie | ForceNormalLib)
1347 #endif
1348 #ifndef DebugLibXie
1349 #define DebugLibXie             NO      /* debugged XIE library */
1350 #endif
1351 #ifndef ProfileLibXie
1352 #define ProfileLibXie           NO      /* profiled XIE library */
1353 #endif
1354         XIELIBSRC = $(LIBSRC)/XIE
1355 #if SharedLibXie
1356 #ifndef SharedXieRev
1357 #define SharedXieRev 6.0
1358 #endif
1359 SharedLibReferences(XIE,XIE,$(XIELIBSRC),SOXIEREV,SharedXieRev)
1360 #else
1361 ProjectUnsharedLibReferences(XIE,XIE,$(XIELIBSRC),XBuildLibDir)
1362 #endif
1363
1364 #ifndef SharedLibPhigs
1365 #define SharedLibPhigs NO       /* XXX - haven't made it sharable yet */
1366 #endif
1367 #ifndef NormalLibPhigs
1368 #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
1369 #endif
1370       PHIGSLIBSRC = $(LIBSRC)/PHIGS
1371 #if SharedLibPhigs
1372 #ifndef SharedPhigsRev
1373 #define SharedPhigsRev 6.0
1374 #endif
1375 SharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),SOPHIGSREV,SharedPhigsRev)
1376 #else
1377 ProjectUnsharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),XBuildLibDir)
1378 #endif
1379
1380 ProjectUnsharedLibReferences(XBSD,Xbsd,$(LIBSRC)/Xbsd,XBuildLibDir)
1381
1382 #ifndef SharedLibICE
1383 #define SharedLibICE HasSharedLibraries
1384 #endif
1385 #ifndef NormalLibICE
1386 #define NormalLibICE (!SharedLibICE | ForceNormalLib)
1387 #endif
1388 #ifndef DebugLibICE
1389 #define DebugLibICE             NO      /* debugged ICE library */
1390 #endif
1391 #ifndef ProfileLibICE
1392 #define ProfileLibICE           NO      /* profiled ICE library */
1393 #endif
1394            ICESRC = $(LIBSRC)/ICE
1395 #if SharedLibICE
1396 #ifndef SharedICERev
1397 #define SharedICERev 6.3
1398 #endif
1399 SharedLibReferences(ICE,ICE,$(ICESRC),SOICEREV,SharedICERev)
1400 #else
1401 ProjectUnsharedLibReferences(ICE,ICE,$(ICESRC),XBuildLibDir)
1402 #endif
1403
1404 #ifndef SharedLibSM
1405 #define SharedLibSM HasSharedLibraries
1406 #endif
1407 #ifndef NormalLibSM
1408 #define NormalLibSM (!SharedLibSM | ForceNormalLib)
1409 #endif
1410 #ifndef DebugLibSM
1411 #define DebugLibSM              NO      /* debugged SM library */
1412 #endif
1413 #ifndef ProfileLibSM
1414 #define ProfileLibSM            NO      /* profiled SM library */
1415 #endif
1416             SMSRC = $(LIBSRC)/SM
1417 #if SharedLibSM
1418 #ifndef SharedSMRev
1419 #define SharedSMRev 6.0
1420 #endif
1421 SharedLibReferences(SM,SM,$(SMSRC),SOSMREV,SharedSMRev)
1422 #else
1423 ProjectUnsharedLibReferences(SM,SM,$(SMSRC),XBuildLibDir)
1424 #endif
1425
1426 #ifndef SharedLibXkey
1427 #define SharedLibXkey HasSharedLibraries
1428 #endif
1429 #ifndef NormalLibXkey
1430 #define NormalLibXkey (!SharedLibXkey | ForceNormalLib)
1431 #endif
1432 #ifndef DebugLibXkey
1433 #define DebugLibXkey            NO      /* debugged Xkey library */
1434 #endif
1435 #ifndef ProfileLibXkey
1436 #define ProfileLibXkey          NO      /* profiled Xkey library */
1437 #endif
1438            XKEYSRC = $(LIBSRC)/Xkey
1439 #if SharedLibXkey
1440 #ifndef SharedXkeyRev
1441 #define SharedXkeyRev 6.0
1442 #endif
1443 SharedLibReferences(XKEY,Xkey,$(XKEYSRC),SOXKEYREV,SharedXkeyRev)
1444 #else
1445 ProjectUnsharedLibReferences(XKEY,Xkey,$(XKEYSRC),XBuildLibDir)
1446 #endif
1447
1448 #ifndef SharedLibFS
1449 #define SharedLibFS             NO      /* for now */
1450 #endif
1451 #ifndef NormalLibFS
1452 #define NormalLibFS (!SharedLibFS | ForceNormalLib)
1453 #endif
1454 #ifndef DebugLibFS
1455 #define DebugLibFS              NO      /* debugged FS library */
1456 #endif
1457 #ifndef ProfileLibFS
1458 #define ProfileLibFS            NO      /* profiled FS library */
1459 #endif
1460          FSLIBSRC = $(LIBSRC)/FS
1461 #if SharedLibFS
1462 #ifndef SharedFSRev
1463 #define SharedFSRev 6.0
1464 #endif
1465 SharedLibReferences(FS,FS,$(FSLIBSRC),SOFSREV,SharedFSRev)
1466 #else
1467 ProjectUnsharedLibReferences(FS,FS,$(FSLIBSRC),XBuildLibDir)
1468 #endif
1469
1470          FONTLIBSRC = $(LIBSRC)/font
1471 ProjectUnsharedLibReferences(FONT,font,$(FONTLIBSRC),XBuildLibDir)
1472
1473           XPMLIBSRC = $(LIBSRC)/Xpm
1474 #if SharedLibXpm
1475 #ifndef SharedXpmRev
1476 #define SharedXpmRev 4.8
1477 #endif
1478 SharedLibReferences(XPM,Xpm,$(XPMLIBSRC),SOXPMREV,SharedXpmRev)
1479 #else
1480 ProjectUnsharedLibReferences(XPM,Xpm,$(XPMLIBSRC),XBuildLibDir)
1481 #endif
1482
1483 #ifndef LdLibraryPath
1484 #define LdLibraryPath LD_LIBRARY_PATH
1485 #endif
1486
1487 #ifdef BuildXKBlib
1488     XKBFILELIBSRC = $(LIBSRC)/xkbfile
1489 ProjectUnsharedLibReferences(XKBFILE,xkbfile,$(XKBFILELIBSRC),XBuildLibDir)
1490 #ifndef XkbClientDepLibs
1491 #if UseXKBInClients
1492 #define XkbClientDepLibs $(DEPXKBFILELIB)
1493 #else
1494 #define XkbClientDepLibs /**/
1495 #endif
1496 #endif
1497 #ifndef XkbClientLibs
1498 #if UseXKBInClients
1499 #define XkbClientLibs $(XKBFILELIB)
1500 #else
1501 #define XkbClientLibs /**/
1502 #endif
1503 #endif
1504 #if defined(UseInstalled) || defined(OS2Architecture)
1505      XKBCOMPCMD = XkbComp                       /* assume BINDIR in path */
1506 #else
1507      XKBCOMPSRC = $(PROGRAMSRC)/xkbcomp
1508      XKBCOMPCMD = $(CLIENTENVSETUP) $(XKBCOMPSRC)/xkbcomp
1509 #endif
1510 #else /* !BuildXKBlib */
1511 #ifndef XkbClientDepLibs
1512 #define XkbClientDepLibs
1513 #endif
1514 #ifndef XkbClientLibs
1515 #define XkbClientLibs
1516 #endif
1517 #endif /* BuildXKBlib */
1518
1519 #ifdef BuildXKBuilib
1520     XKBUILIBSRC = $(LIBSRC)/xkbui
1521 ProjectUnsharedLibReferences(XKBUI,xkbui,$(XKBUILIBSRC),XBuildLibDir)
1522 #ifndef XkbuiLibs
1523 #define XkbuiLibs $(XKBUILIB)
1524 #endif
1525 #ifndef XkbuiDepLibs
1526 #define XkbuiDepLibs $(DEPXKBFILELIB)
1527 #endif
1528 #else /* !BuildXKBuilib */
1529 #ifndef XkbuiLibs
1530 #define XkbuiLibs
1531 #endif
1532 #ifndef XkbuiDepLibs
1533 #define XkbuiDepLibs
1534 #endif
1535 #endif /* BuildXKBuilib */
1536
1537 #ifndef XawClientDepLibs
1538 #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
1539 #endif
1540 #ifndef XawClientLibs
1541 #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
1542 #endif
1543
1544 #ifndef NeedDefaultDepLibs
1545 #define NeedDefaultDepLibs YES
1546 #endif
1547
1548 #if NeedDefaultDepLibs
1549 /*
1550  * Individual libraries should override this
1551  */
1552 #if HasSharedLibraries || defined(UseInstalled)
1553           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
1554 #else
1555           DEPLIBS = $(LOCAL_LIBRARIES)
1556 #endif
1557          DEPLIBS1 = $(DEPLIBS)
1558          DEPLIBS2 = $(DEPLIBS)
1559          DEPLIBS3 = $(DEPLIBS)
1560          DEPLIBS4 = $(DEPLIBS)
1561          DEPLIBS5 = $(DEPLIBS)
1562          DEPLIBS6 = $(DEPLIBS)
1563          DEPLIBS7 = $(DEPLIBS)
1564          DEPLIBS8 = $(DEPLIBS)
1565          DEPLIBS9 = $(DEPLIBS)
1566          DEPLIBS10 = $(DEPLIBS)
1567 #endif /* NeedDefaultDepLibs */
1568
1569
1570 /*
1571  * InstallAppDefaults - simple rules to install application default file
1572  */
1573 #ifndef InstallAppDefaults
1574 #define InstallAppDefaults(class) InstallAppDefaultsLong(class,class)
1575 #endif /* InstallAppDefaults */
1576
1577 /*
1578  * InstallAppDefaultsLong - general rule to install application default file
1579  * if the InstallAppDefFiles configuration parameter is set.
1580  */
1581 #ifndef InstallAppDefaultsLong
1582 #if InstallAppDefFiles
1583 #define InstallAppDefaultsLong(file,class)                              @@\
1584 LinkVarDirectory(app-defaults,.,app-defaults,.)                         @@\
1585 InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
1586 #else
1587 #define InstallAppDefaultsLong(file,class)                              @@\
1588 LinkVarDirectory(app-defaults,.,app-defaults,.)                         @@\
1589 InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
1590 #endif /* InstallAppDefFiles */
1591 #endif /* InstallAppDefaultsLong */
1592
1593 /*
1594  * MakeFontsDir - generate rules to build fonts.dir database.
1595  */
1596 #ifndef MakeFontsDir
1597 #define MakeFontsDir(deplist)                                           @@\
1598 all:: fonts.dir                                                         @@\
1599                                                                         @@\
1600 fonts.dir:  deplist                                                     @@\
1601         RunProgram(MKFONTDIR,.)                                         @@\
1602                                                                         @@\
1603 clean::                                                                 @@\
1604         RemoveFile(fonts.dir)
1605 #endif /* MakeFontsDir */
1606
1607
1608 /*
1609  * MakeFonts - generate rules to build font database.
1610  */
1611 #ifndef MakeFonts
1612 #define MakeFonts()                                                     @@\
1613 all::  $(OBJS)                                                          @@\
1614                                                                         @@\
1615 MakeFontsDir($(OBJS))                                                   @@\
1616                                                                         @@\
1617 clean::                                                                 @@\
1618         RemoveFiles(*.pcf *.pcf.Z *.pcf.gz)
1619 #endif /* MakeFonts */
1620
1621
1622 /*
1623  * InstallFontObjs - generate rules to install font files
1624  */
1625 #ifndef InstallFontObjs
1626 #define InstallFontObjs(objs,dest)                                      @@\
1627 InstallMultipleFlags(objs,dest,$(INSTDATFLAGS))                         @@\
1628                                                                         @@\
1629 InstallTarget(install,fonts.dir,$(INSTDATFLAGS),dest)
1630 #endif /* InstallFontObjs */
1631
1632
1633 /*
1634  * InstallFonts - generate rules to install font files
1635  */
1636 #ifndef InstallFonts
1637 #define InstallFonts(dest)                                              @@\
1638 InstallFontObjs($(OBJS),dest)
1639 #endif /* InstallFonts */
1640
1641
1642 /*
1643  * InstallFontAliases - generate rules to install font aliases databases. 
1644  */
1645 #ifndef InstallFontAliases
1646 #define InstallFontAliases(dest)                                        @@\
1647 InstallTarget(install,fonts.alias,$(INSTDATFLAGS),dest)
1648 #endif /* InstallFontAliases */
1649
1650 #ifndef FontSrc
1651 #define FontSrc(basename) basename.bdf
1652 #endif
1653
1654 #ifndef FontBaseObj
1655 #define FontBaseObj(basename)basename.pcf
1656 #endif
1657
1658 /*
1659  * InstallFontScale - generate rules to install font scale database.
1660  */
1661 #ifndef InstallFontScale
1662 #define InstallFontScale(dest)                                          @@\
1663 InstallTarget(install,fonts.scale,$(INSTDATFLAGS),dest)
1664 #endif /* InstallFontScale */
1665
1666 /*
1667  * UncompressedFontTarget
1668  */
1669 #ifndef UncompressedFontTarget
1670 #define UncompressedFontTarget(basename)                                @@\
1671 FontBaseObj(basename):  FontSrc(basename)                               @@\
1672         RunProgram(FONTC,$(FONTCFLAGS) $? -o $@)
1673 #endif /* UncompressedFontTarget */
1674
1675 /*
1676  * CompressedFontTarget
1677  */
1678 #ifndef GzipFontCompression
1679 #define GzipFontCompression NO
1680 #endif
1681
1682 #ifndef CompressedFontTarget
1683 #if GzipFontCompression
1684 #define CompressedFontTarget(basename)                                  @@\
1685 FontBaseObj(basename).gz:  FontSrc(basename)                            @@\
1686         RunProgram(FONTC,$(FONTCFLAGS) $?) | $(GZIPCMD) > $@
1687 #else
1688 #define CompressedFontTarget(basename)                                  @@\
1689 FontBaseObj(basename).Z:  FontSrc(basename)                             @@\
1690         RunProgram(FONTC,$(FONTCFLAGS) $?) | $(COMPRESS) > $@
1691 #endif
1692 #endif /* CompressedFontTarget */
1693
1694 #if !defined(FontTarget) && !defined(FontObj)
1695 #ifdef CompressAllFonts
1696 #define FontTarget(basename) CompressedFontTarget(basename)
1697 #if GzipFontCompression
1698 #define FontObj(basename) FontBaseObj(basename).gz
1699 #else
1700 #define FontObj(basename) FontBaseObj(basename).Z
1701 #endif
1702 #else
1703 #define FontTarget(basename) UncompressedFontTarget(basename)
1704 #define FontObj(basename) FontBaseObj(basename)
1705 #endif /* CompressAllFonts */
1706 #endif
1707
1708 /*
1709  * MakeXkbDir
1710  */
1711 #ifndef MakeXkbDir
1712 #define MakeXkbDir(basedir,subdir)                                      @@\
1713 all::   Concat(subdir,.dir)                                             @@\
1714                                                                         @@\
1715 Concat(subdir,.dir):                                                    @@\
1716         $(XKBCOMPCMD) -lfhlpR -o Concat(subdir,.dir) '*'                @@\
1717                                                                         @@\
1718 InstallTarget(install,Concat(subdir,.dir),$(INSTDATFLAGS),basedir)
1719 #endif
1720
1721 /*
1722  * PostProcessTroffPS - by default moves the working output into place,
1723  * but can be a hook for more complicated post-processing.
1724  */
1725 #ifndef PostProcessTroffPS
1726 #define PostProcessTroffPS(temp,real) $(MV) temp real
1727 #endif
1728
1729 #ifndef MakeSimpleDoc
1730 #define MakeSimpleDoc(file,srcs)                                        @@\
1731 all:: file.PS                                                           @@\
1732 .PRECIOUS: file.PS                                                      @@\
1733                                                                         @@\
1734 file.PS: srcs                                                           @@\
1735         -$(TROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > file.nPS \@@\
1736         && PostProcessTroffPS(file.nPS,$@)                              @@\
1737         @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\
1738                                                                         @@\
1739 file.txt: srcs                                                          @@\
1740         $(NROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > $@       @@\
1741                                                                         @@\
1742 clean::                                                                 @@\
1743         $(RM) index.raw file.nPS file.PS file.txt
1744 #endif
1745
1746 #ifndef MakeTblDoc
1747 #define MakeTblDoc(file,srcs)                                           @@\
1748 all:: file.PS                                                           @@\
1749 .PRECIOUS: file.PS                                                      @@\
1750                                                                         @@\
1751 file.PS: srcs                                                           @@\
1752         -$(TBL) $(XDOCMACROS) srcs | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\
1753         && PostProcessTroffPS(file.nPS,$@)                              @@\
1754         @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\
1755                                                                         @@\
1756 file.txt: srcs                                                          @@\
1757         $(TBL) $(XDOCMACROS) srcs | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@     @@\
1758                                                                         @@\
1759 clean::                                                                 @@\
1760         $(RM) index.raw file.nPS file.PS file.txt
1761 #endif
1762
1763 #ifndef MakeEqnDoc
1764 #define MakeEqnDoc(file,srcs)                                           @@\
1765 all:: file.PS                                                           @@\
1766 .PRECIOUS: file.PS                                                      @@\
1767                                                                         @@\
1768 file.PS: srcs                                                           @@\
1769         -$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\
1770         && PostProcessTroffPS(file.nPS,$@)                              @@\
1771         @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\
1772                                                                         @@\
1773 file.txt: srcs                                                          @@\
1774         $(TBL) $(XDOCMACROS) srcs | $(NEQN) | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@ @@\
1775                                                                         @@\
1776 clean::                                                                 @@\
1777         $(RM) index.raw file.nPS file.PS file.txt
1778 #endif
1779
1780 #ifndef MakeDocIndex
1781 #define MakeDocIndex(file,srcs)                                         @@\
1782 all:: file.idx.PS                                                       @@\
1783                                                                         @@\
1784 file.idx.PS: srcs index.raw                                             @@\
1785         tail -1 index.raw > index.pageno                                @@\
1786         grep '^[1-9]' index.raw | sort -f '-t:' +1 -3 +0n -1n | awk -f $(DOCUTILSRC)/fixindex.awk | awk -f $(DOCUTILSRC)/block.awk > index.troff @@\
1787         cat srcs $(XIDXMACROS) index.troff | $(TROFF) -me > file.idx.nPS \@@\
1788         && $(MV) file.idx.nPS $@                                        @@\
1789         $(RM) index.troff index.pageno                                  @@\
1790                                                                         @@\
1791 clean::                                                                 @@\
1792         $(RM) index.troff index.pageno file.idx.nPS file.idx.PS
1793 #endif
1794
1795 #ifndef MakeLatexDoc
1796 #if HasLatex
1797 #define MakeLatexDoc(file,src)                                          @@\
1798 all:: file.PS                                                           @@\
1799                                                                         @@\
1800 file.dvi: src                                                           @@\
1801         $(LATEX) src                                                    @@\
1802                                                                         @@\
1803 file.PS: file.dvi                                                       @@\
1804         $(DVIPS) -o file.nPS file && $(MV) file.nPS $@                  @@\
1805                                                                         @@\
1806 clean::                                                                 @@\
1807         RemoveFiles(file.nPS file.PS file.dvi file.log)                 @@\
1808         RemoveFiles(file.aux file.toc file.lof file.lot)
1809 #else /* HasLatex */
1810 #define MakeLatexDoc(file,src)                                          @@\
1811 all::                                                                   @@\
1812 file.PS: src                                                            @@\
1813         @echo "cannot make file.PS: no latex on this system"; exit 1
1814 #endif /* HasLatex (else) */
1815 #endif /* MakeLatexDoc */