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 $
8 XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.8.2.4 1998/01/23 12:35:08 dawes Exp $
10 /***************************************************************************
12 * DEFAULT DEFINITIONS *
14 * The following section contains defaults for things that can *
15 * overridden in the various *.cf and site.def files. DO NOT EDIT! *
17 **************************************************************************/
19 #define ProjectX 603 /* do *not* change this line */
21 /* The following project-specific rules are defined at the end of this file:
23 * InstallAppDefaults (class)
24 * InstallAppDefaultsLong (file,class)
25 * MakeFontsDir (deplist)
27 * InstallFontObjs (objs,dest)
29 * InstallFontAliases (dest)
31 * FontBaseObj (basename)
32 * InstallFontScale (dest)
33 * UncompressedFontTarget (basename)
34 * CompressedFontTarget (basename)
35 * FontTarget (basename)
37 * MakeXkbDir (basedir,subdir)
44 #define HasXServer YES
47 #define BuildServer HasXServer
49 #ifndef BuildServersOnly
50 #define BuildServersOnly NO
52 #ifndef BuildFontServer
53 #define BuildFontServer YES
56 #define BuildFonts (BuildServer | BuildFontServer)
58 #ifndef Build75DpiFonts
59 #define Build75DpiFonts YES
61 #ifndef Build100DpiFonts
62 #define Build100DpiFonts YES
64 #ifndef BuildSpeedoFonts
65 #define BuildSpeedoFonts YES
67 #ifndef BuildType1Fonts
68 #define BuildType1Fonts YES
70 #ifndef BuildCyrillicFonts
71 #define BuildCyrillicFonts NO
73 #ifndef UseKoi8RForCyrillic
74 #define UseKoi8RForCyrillic NO
80 #define BuildXAudio (HasXAudio & HasCplusplus)
83 #define HasXAServer NO
86 #define BuildXAServer (HasXAServer & HasCplusplus)
88 #ifndef BuildMITMiscExt
89 #define BuildMITMiscExt YES
92 #define BuildTestExt YES
95 #define BuildSyncExt YES
97 #ifndef BuildXCMiscExt
98 #define BuildXCMiscExt YES
100 #ifndef BuildShapeExt
101 #define BuildShapeExt YES
103 #ifndef BuildBigReqsExt
104 #define BuildBigReqsExt YES
107 #define BuildPhigs NO
110 #define BuildPexExt NO
112 #ifndef BuildXInputExt
113 #define BuildXInputExt NO
122 #define BuildXIElib BuildXIE
128 #define BuildXKBlib BuildXKB
130 #ifndef BuildXKBuilib
131 #define BuildXKBuilib BuildXKB
134 * WARNING: Setting UseXKBInClients to YES cause incompatibilities
135 * between many clients (such as xterm) and pre-XKB shared
138 #ifndef UseXKBInClients
139 #define UseXKBInClients NO /* use XKB in "normal" clients? */
145 #define BuildDBElib BuildDBE
147 #ifndef BuildMultibuffer
148 #define BuildMultibuffer NO
151 #define BuildRECORD YES
153 #ifndef BuildRECORDlib
154 #define BuildRECORDlib BuildRECORD
159 #ifndef BuildXCSecurity
160 #define BuildXCSecurity YES
162 #ifndef BuildAppgroup
163 #define BuildAppgroup YES
169 #define BuildPlugin HasPlugin
172 #define XprtServer BuildServer
176 #define BuildXprint YES
178 #define BuildXprint NO
181 #ifndef BuildScreenSaverExt
182 #define BuildScreenSaverExt NO
184 #ifndef BuildScreenSaverLibrary
185 #define BuildScreenSaverLibrary BuildScreenSaverExt
187 #ifndef BuildXF86VidModeExt
188 #define BuildXF86VidModeExt NO
190 #ifndef BuildXF86VidModeLibrary
191 #define BuildXF86VidModeLibrary BuildXF86VidModeExt
193 #ifndef BuildXF86MiscExt
194 #define BuildXF86MiscExt NO
196 #ifndef BuildXF86MiscLibrary
197 #define BuildXF86MiscLibrary BuildXF86MiscExt
200 #define BuildXF86DGA NO
202 #ifndef BuildXF86DGALibrary
203 #define BuildXF86DGALibrary BuildXF86DGA
206 #define BuildDPMSExt NO
208 #ifndef BuildDPMSLibrary
209 #define BuildDPMSLibrary BuildDPMSExt
212 #ifndef InstallLibManPages
213 #define InstallLibManPages YES
215 #ifndef InstallXtermSetUID
216 #define InstallXtermSetUID YES /* xterm needs to be set uid */
218 #ifndef InstallXinitConfig
219 #define InstallXinitConfig NO /* install sample xinit config */
221 #ifndef InstallXdmConfig
222 #define InstallXdmConfig NO /* install sample xdm config */
224 #ifndef XdmServersType /* what Xservers files to use */
226 #define XdmServersType ws
228 #define XdmServersType fs
231 #ifndef InstallFSConfig
232 #define InstallFSConfig NO /* install sample fs config */
234 #ifndef InstallAppDefFiles
235 #define InstallAppDefFiles YES /* install application defaults */
237 #ifndef CompressAllFonts
238 #define CompressAllFonts NO
241 #if HasPosixThreads || HasCThreads
242 #define ThreadedX YES /* multi-threaded libraries */
247 #ifndef ThreadedProject
248 #define ThreadedProject ThreadedX
251 #define HasWChar32 SystemV4
254 #define HasXdmAuth NO /* if you can not use XDM-AUTH* */
256 #ifndef PrimaryScreenResolution
257 #define PrimaryScreenResolution 72 /* a common resolution */
259 #ifndef DefaultFontPath
260 #if PrimaryScreenResolution < 88 /* (75 + 100) / 2 */
261 #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
263 #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
266 #ifndef DefaultRGBDatabase
267 #define DefaultRGBDatabase $(LIBDIR)/rgb
270 #define UseRgbTxt NO /* default is to compile with dbm */
273 #define UseMemLeak NO
275 #ifndef SpecialMalloc
276 #define SpecialMalloc NO
278 #ifndef UseInternalMalloc
279 #define UseInternalMalloc NO
281 #ifndef FontCompilerFlags
282 #define FontCompilerFlags -t
284 #ifndef ConnectionFlags
286 #define ConnectionFlags -DSTREAMSCONN
289 #define ConnectionFlags -DTCPCONN -DUNIXCONN -DDNETCONN
291 #define ConnectionFlags -DTCPCONN -DUNIXCONN
295 #ifndef ProjectThreadsDefines
296 #define ProjectThreadsDefines -DXTHREADS
298 #ifndef FontOSDefines
299 #define FontOSDefines /**/
302 #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
304 #ifndef XawI18nDefines
306 #define XawI18nDefines -DHAS_WCTYPE_H
308 #define XawI18nDefines -DUSE_XWCHAR_STRING
311 #if Malloc0ReturnsNull
312 #ifndef XMalloc0ReturnsNullDefines
313 #define XMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines
315 #ifndef XtMalloc0ReturnsNullDefines
316 #define XtMalloc0ReturnsNullDefines Malloc0ReturnsNullDefines
319 #ifndef ExtensionOSDefines
320 #define ExtensionOSDefines /**/
323 #ifndef ExtensionDefines
324 #ifndef MITMiscDefines
326 #define MITMiscDefines -DMITMISC
328 #define MITMiscDefines /**/
333 #define XTestDefines -DXTEST
335 #define XTestDefines /**/
340 #define XSyncDefines -DXSYNC
342 #define XSyncDefines /**/
345 #ifndef XCMiscDefines
347 #define XCMiscDefines -DXCMISC
349 #define XCMiscDefines /**/
354 #define ShapeDefines -DSHAPE
356 #define ShapeDefines /**/
361 #define PexDefines -DPEXEXT
363 #define PexDefines /**/
368 #define GlxDefines -DGLXEXT
370 #define GlxDefines /**/
375 #define ShmDefines -DMITSHM
377 #define ShmDefines /**/
380 #ifndef XInputDefines
382 #define XInputDefines -DXINPUT
384 #define XInputDefines /**/
389 #define XieDefines -DXIE
391 #define XieDefines /**/
394 #ifndef PrintOnlyServer
395 #define PrintOnlyServer YES
397 #ifndef XprintDefines
400 #define XprintDefines -DPIXPRIV
402 #define XprintDefines -DXPRINT -DPIXPRIV
405 #define XprintDefines /**/
410 #define XkbDefines -DXKB
412 #define XkbDefines /**/
415 #ifndef XkbClientDefines
417 #define XkbClientDefines -DXKB
419 #define XkbClientDefines /**/
422 #ifndef XkbServerDefines
423 #define XkbServerDefines /**/
427 #define LbxDefines -DLBX
429 #define LbxDefines /**/
432 #ifndef BigReqDefines
434 #define BigReqDefines -DBIGREQS
436 #define BigReqDefines /**/
442 #define DBEDefines -DDBE
444 #define DBEDefines /**/
448 #ifndef PervasiveDBEDefines
449 #define PervasiveDBEDefines /* -DNEED_DBE_BUF_BITS -DNEED_DBE_BUF_VALIDATE */
452 #ifndef MultibufferDefines
454 #define MultibufferDefines -DMULTIBUFFER
456 #define MultibufferDefines /**/
460 #ifndef ScreenSaverExtensionDefines
461 #if BuildScreenSaverExt
462 #define ScreenSaverExtensionDefines -DSCREENSAVER
464 #define ScreenSaverExtensionDefines /**/
467 #ifndef VidTuneExtensionDefines
468 #if BuildXF86VidModeExt
469 #define VidTuneExtensionDefines -DXF86VIDMODE
471 #define VidTuneExtensionDefines /**/
474 #ifndef XF86MiscExtensionDefines
476 #define XF86MiscExtensionDefines -DXF86MISC
478 #define XF86MiscExtensionDefines /**/
482 #ifndef DPMSExtensionDefines
484 #define DPMSExtensionDefines -DDPMSExtension
486 #define DPMSExtensionDefines /**/
490 #ifndef RECORDDefines
492 #define RECORDDefines -DXRECORD
494 #define RECORDDefines /**/
498 #ifndef AppgroupDefines
500 #define AppgroupDefines -DXAPPGROUP
502 #define AppgroupDefines /**/
506 #ifndef XCSecurityDefines
508 #define XCSecurityDefines -DXCSECURITY
510 #define XCSecurityDefines /**/
514 #ifndef SitePervasiveExtensionDefines
515 #define SitePervasiveExtensionDefines /**/
517 #ifndef PervasiveExtensionDefines
518 #define PervasiveExtensionDefines ShapeDefines XInputDefines XkbDefines \
519 LbxDefines AppgroupDefines \
520 XCSecurityDefines PervasiveDBEDefines \
521 DPMSExtensionDefines \
522 XprintDefines SitePervasiveExtensionDefines
524 #ifndef SiteExtensionDefines
525 #define SiteExtensionDefines /**/
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 \
535 #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
536 #endif /* ExtensionDefines */
538 #ifndef HasStrcasecmp
539 #define HasStrcasecmp YES
542 #ifndef StrcasecmpDefines
544 # define StrcasecmpDefines /**/
546 # define StrcasecmpDefines -DNEED_STRCASECMP
550 #ifndef ServerXdmcpDefines
551 #define ServerXdmcpDefines -DXDMCP
553 #ifndef ServerOSDefines
554 #define ServerOSDefines /**/
558 #define Krb5Defines -DK5AUTH
561 #define Krb5Defines /**/
563 #ifndef ServerExtraDefines
564 #define ServerExtraDefines /* -DPIXPRIV */
566 #ifndef ServerAssertDefines
567 #define ServerAssertDefines -DNDEBUG
569 #ifndef ServerDefines
570 #define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines
572 #ifndef PexDipexDefines
573 #define PexDipexDefines /**/
575 #ifndef PexDdpexDefines
576 #define PexDdpexDefines /**/
578 #ifndef PexPhigsDefines
580 #define PexShmIPC HasShm
583 #define PexPhigsDefines /**/
585 #define PexPhigsDefines -DPEX_API_SOCKET_IPC
588 #ifndef PexClientDefines
589 #define PexClientDefines -DPEX_SI_PHIGS
593 #define PhigsInclude -I$(INCDIR)/X11
595 #define PhigsInclude -I$(BUILDINCDIR)
598 #ifndef PexCDebugFlags
599 #define PexCDebugFlags DebuggableCDebugFlags
602 #ifdef LibraryCCOptions
603 #define PexCCOptions LibraryCCOptions
605 #define PexCCOptions DefaultCCOptions
608 #ifndef DefaultFSConfigFile
609 #define DefaultFSConfigFile $(LIBDIR)/fs/config
613 #define BinDir Concat(ProjectRoot,/bin)
615 #define BinDir /usr/bin/X11
619 #define BuildIncRoot $(TOP)/exports
622 #define BuildIncDir $(BUILDINCROOT)/include
625 #define BuildIncTop ../.. /* relative to BuildIncDir */
629 # define XTop $(TOP)/imports/x11
634 #ifndef XBuildIncRoot
636 # define XBuildIncRoot $(XTOP)
638 # define XBuildIncRoot $(XTOP)/exports
642 # define XBuildIncDir $(XBUILDINCROOT)/include/X11
645 # define XBuildIncTop ../../..
648 # define XBuildBinDir $(XBUILDINCROOT)/bin
651 #define BuildBinDir $(TOP)/exports/bin
654 #define BuildBinTop ../.. /* relative to BuildBinDir */
657 #define BuildLibDir $(TOP)/exports/lib
660 #define BuildLibTop ../.. /* relative to BuildLibDir */
663 #define LibDir $(USRLIBDIR)/X11
666 #define ConfigDir $(LIBDIR)/config
669 #define FontDir $(LIBDIR)/fonts
672 #define AdmDir /usr/adm
675 #define XinitDir $(LIBDIR)/xinit
678 #define XdmDir $(LIBDIR)/xdm
681 #define XdmVarDir $(VARLIBDIR)/xdm
684 #define XdmAuthDir $(LIBDIR)/xdm
686 #ifndef XdmConfigurationSubdirectory /* under xdm sources */
687 #define XdmConfigurationSubdirectory config
690 #define TwmDir $(LIBDIR)/twm
693 #define XsmDir $(LIBDIR)/xsm
696 #define NlsDir $(LIBDIR)/nls
699 #define XLocaleDir $(LIBDIR)/locale
702 #define PexApiDir $(LIBDIR)/PEX
705 #define LbxproxyDir $(LIBDIR)/lbxproxy
707 #ifndef LbxproxyConfigSubdir /* under lbxproxy sources */
708 #define LbxproxyConfigSubdir config
710 #ifndef ProxyManagerDir
711 #define ProxyManagerDir $(LIBDIR)/proxymngr
714 #define XPrintDir $(LIBDIR)
716 #ifndef ServerConfigDir
717 #define ServerConfigDir $(LIBDIR)/xserver
720 #define VarDirectory /var/X11
722 #ifndef InstallSecurityConfig
723 #define InstallSecurityConfig YES /* Install sample security policy */
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)
729 #ifndef XFileSearchPathDefault
731 /* avoid SCCS keyword */
732 #define XFileSearchPathDefault XAppLoadDir/Concat(%N%C,%S):XAppLoadDir/%N%S:XFileSearchPathBase
734 #define XFileSearchPathDefault XFileSearchPathBase
738 #define XAppLoadDir /etc/app-defaults
740 #ifndef XtErrorPrefix
741 #define XtErrorPrefix /* as empty string */
743 #ifndef XtExtraDefines
744 #define XtExtraDefines /* as empty string */
746 #ifndef XtWarningPrefix
747 #define XtWarningPrefix /* as empty string */
749 #ifndef OsNameDefines
750 #define OsNameDefines /* as nothing */
752 #ifndef DefaultUserPath /* for xdm */
753 #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
755 #ifndef DefaultSystemPath /* for xdm */
756 #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
758 #ifndef DefaultSystemShell /* for xdm to set in SHELL */
759 #define DefaultSystemShell BourneShell
762 #define ContribDir $(XTOP)/../contrib /* contrib is outside core tree */
764 #ifndef UnsupportedDir
765 #define UnsupportedDir $(XTOP)/unsupported
767 #ifndef AllocateLocalDefines
768 #define AllocateLocalDefines /**/
771 #ifndef ForceNormalLib
772 #define ForceNormalLib (HasGcc && !HasGcc2)
776 #define XkbComp xkbcomp
779 XCOMM -----------------------------------------------------------------------
780 XCOMM X Window System make variables; these need to be coordinated with rules
783 * This list must be reflected in the DIRS_TO_BUILD list in the top-level
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
805 VARDIR = VarDirectory
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
823 INSTAPPFLAGS = $(INSTDATFLAGS) /* XXX - this should go away - XXX */
826 RGB = rgb /* assume BINDIR in path */
827 FONTC = bdftopcf /* assume BINDIR in path */
828 MKFONTDIR = mkfontdir /* assume BINDIR in path */
830 RGB = $(CLIENTENVSETUP) $(XBUILDBINDIR)/rgb
831 FONTC = $(CLIENTENVSETUP) $(XBUILDBINDIR)/bdftopcf
832 MKFONTDIR = $(CLIENTENVSETUP) $(XBUILDBINDIR)/mkfontdir
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
842 FONTSRC = $(XTOP)/fonts
843 INCLUDESRC = BuildIncDir
844 XINCLUDESRC = $(INCLUDESRC)/X11
845 SERVERSRC = $(XTOP)/programs/Xserver
846 CONTRIBSRC = ContribDir
847 UNSUPPORTEDSRC = UnsupportedDir
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
860 #if HasSharedLibraries
861 #ifndef DontUseLibPathVar
862 #ifndef BuildLibPathVar
863 #define BuildLibPathVar LD_LIBRARY_PATH
867 #ifdef BuildLibPathVar
868 # ifdef SystemBuildLibPath
869 SYSTEMENVLIBDIR = SystemBuildLibPath
871 XENVLIBDIR = X11BuildLibPath
872 CLIENTENVSETUP = BuildLibPathVar=BuildLibPath
877 #ifndef ShLibIncludeFile
878 /* need this to make ANSI-style preprocessors happy */
879 #define ShLibIncludeFile <noop.rules>
882 #include ShLibIncludeFile
885 # define XBuildLibDir BuildLibDir
889 #define SharedLibX11 HasSharedLibraries
892 #define NormalLibX11 (!SharedLibX11 | ForceNormalLib)
895 #define DebugLibX11 NO /* debugged X library */
897 #ifndef ProfileLibX11
898 #define ProfileLibX11 NO /* profiled X library */
900 XLIBSRC = $(LIBSRC)/X11
903 #define SharedX11Rev 6.1
905 SharedLibReferences(XONLY,X11,$(XLIBSRC),SOXLIBREV,SharedX11Rev)
907 ProjectUnsharedLibReferences(XONLY,X11,$(XLIBSRC),XBuildLibDir)
909 XLIBONLY = $(XONLYLIB)
911 #if BuildThreadStubLibrary
912 #ifndef SharedLibXThrStub
913 #define SharedLibXThrStub YES
915 #ifndef NormalLibXThrStub
916 #define NormalLibXThrStub NO
918 #ifndef DebugLibXThrStub
919 #define DebugLibXThrStub NO
921 #ifndef ProfileLibXThrStub
922 #define ProfileLibXThrStub NO
924 XTHRSTUBLIBSRC = $(LIBSRC)/XThrStub
925 #if SharedLibXThrStub
926 #ifndef SharedXThrStubRev
927 #define SharedXThrStubRev 6.0
929 SharedLibReferences(XTHRSTUB,XThrStub,$(XTHRSTUBLIBSRC),SOXTHRSTUBREV,SharedXThrStubRev)
931 ProjectUnsharedLibReferences(XTHRSTUB,XThrStub,$(XTHRSTUBSRC),XBuildLibDir)
935 #if BuildScreenSaverLibrary
937 #define SharedLibXss NO
940 #define NormalLibXss YES
943 #define DebugLibXss NO
945 #ifndef ProfileLibXss
946 #define ProfileLibXss NO
950 #if BuildXF86MiscLibrary
951 #ifndef SharedLibXxf86misc
952 #define SharedLibXxf86misc NO
954 #ifndef NormalLibXxf86misc
955 #define NormalLibXxf86misc YES
957 #ifndef DebugLibXxf86misc
958 #define DebugLibXxf86misc NO
960 #ifndef ProfileLibXxf86misc
961 #define ProfileLibXxf86misc NO
965 #if BuildXF86VidModeLibrary
966 #ifndef SharedLibXxf86vm
967 #define SharedLibXxf86vm NO
969 #ifndef NormalLibXxf86vm
970 #define NormalLibXxf86vm YES
972 #ifndef DebugLibXxf86vm
973 #define DebugLibXxf86vm NO
975 #ifndef ProfileLibXxf86vm
976 #define ProfileLibXxf86vm NO
980 #if BuildXF86DGALibrary
981 #ifndef SharedLibXxf86dga
982 #define SharedLibXxf86dga NO
984 #ifndef NormalLibXxf86dga
985 #define NormalLibXxf86dga YES
987 #ifndef DebugLibXxf86dga
988 #define DebugLibXxf86dga NO
990 #ifndef ProfileLibXxf86dga
991 #define ProfileLibXxf86dga NO
996 #ifndef SharedLibXdpms
997 #define SharedLibXdpms NO
999 #ifndef NormalLibXdpms
1000 #define NormalLibXdpms YES
1002 #ifndef DebugLibXdpms
1003 #define DebugLibXdpms NO
1005 #ifndef ProfileLibXdpms
1006 #define ProfileLibXdpms NO
1010 #ifndef SharedLibXext
1011 #define SharedLibXext HasSharedLibraries
1013 #ifndef NormalLibXext
1014 #define NormalLibXext (!SharedLibXext | ForceNormalLib)
1016 #ifndef DebugLibXext
1017 #define DebugLibXext NO /* debugged Xext library */
1019 #ifndef ProfileLibXext
1020 #define ProfileLibXext NO /* profiled Xext library */
1022 XEXTLIBSRC = $(LIBSRC)/Xext
1024 #ifndef SharedXextRev
1025 #define SharedXextRev 6.3
1027 SharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),SOXEXTREV,SharedXextRev)
1029 ProjectUnsharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),XBuildLibDir)
1031 LINTEXTENSIONLIB = $(LINTEXTENSION)
1032 DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
1033 XLIB = $(EXTENSIONLIB) $(XONLYLIB)
1034 LINTXLIB = $(LINTXONLYLIB)
1036 #if BuildScreenSaverLibrary
1037 XSSLIBSRC = $(LIBSRC)/Xss
1039 #ifndef SharedXssRev
1040 #define SharedXssRev 1.0
1042 SharedLibReferences(XSS,Xss,$(XSSLIBSRC),SOXSSREV,SharedXssRev)
1044 ProjectUnsharedLibReferences(XSS,Xss,$(XSSLIBSRC),XBuildLibDir)
1048 #if BuildXF86MiscLibrary
1049 XXF86MISCLIBSRC = $(LIBSRC)/Xxf86misc
1050 #if SharedLibXxf86misc
1051 #ifndef SharedXxf86miscRev
1052 #define SharedXxf86miscRev 1.0
1054 SharedLibReferences(XXF86MISC,Xxf86misc,$(XXF86MISCLIBSRC),SOXXF86MISCREV,SharedXxf86miscRev)
1056 ProjectUnsharedLibReferences(XXF86MISC,Xxf86misc,$(XXF86MISCLIBSRC),XBuildLibDir)
1060 #if BuildXF86VidModeLibrary
1061 XXF86VMLIBSRC = $(LIBSRC)/Xxf86vm
1062 #if SharedLibXxf86vm
1063 #ifndef SharedXxf86vmRev
1064 #define SharedXxf86vmRev 1.0
1066 SharedLibReferences(XXF86VM,Xxf86vm,$(XXF86VMLIBSRC),SOXXF86VMREV,SharedXxf86vmRev)
1068 ProjectUnsharedLibReferences(XXF86VM,Xxf86vm,$(XXF86VMLIBSRC),XBuildLibDir)
1072 #if BuildXF86DGALibrary
1073 XXF86DGALIBSRC = $(LIBSRC)/Xxf86dga
1074 #if SharedLibXxf86dga
1075 #ifndef SharedXxf86dgaRev
1076 #define SharedXxf86dgaRev 1.0
1078 SharedLibReferences(XXF86DGA,Xxf86dga,$(XXF86DGALIBSRC),SOXXF86DGAREV,SharedXxf86dgaRev)
1080 ProjectUnsharedLibReferences(XXF86DGA,Xxf86dga,$(XXF86DGALIBSRC),XBuildLibDir)
1084 #if BuildDPMSLibrary
1085 XDPMSLIBSRC = $(LIBSRC)/Xdpms
1087 #ifndef SharedXdpmsRev
1088 #define SharedXdpmsRev 1.0
1090 SharedLibReferences(XDPMS,Xdpms,$(XDPMSLIBSRC),SOXDPMSREV,SharedXdpmsRev)
1092 ProjectUnsharedLibReferences(XDPMS,Xdpms,$(XDPMSLIBSRC),XBuildLibDir)
1096 #ifndef SharedLibXau
1097 #define SharedLibXau NO /* don't need shared form */
1099 #ifndef NormalLibXau
1100 #define NormalLibXau (!SharedLibXau | ForceNormalLib)
1103 #define DebugLibXau NO /* debugged auth library */
1105 #ifndef ProfileLibXau
1106 #define ProfileLibXau NO /* profiled auth library */
1108 XAUTHSRC = $(LIBSRC)/Xau
1110 #ifndef SharedXauRev
1111 #define SharedXauRev 6.0
1113 SharedLibReferences(XAUTH,Xau,$(XAUTHSRC),SOXAUTHREV,SharedXauRev)
1115 ProjectUnsharedLibReferences(XAUTH,Xau,$(XAUTHSRC),XBuildLibDir)
1118 #ifndef SharedLibXdmcp
1119 #define SharedLibXdmcp NO /* don't need shared form */
1121 #ifndef NormalLibXdmcp
1122 #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
1124 #ifndef DebugLibXdmcp
1125 #define DebugLibXdmcp NO /* debugged XDMCP library */
1127 #ifndef ProfileLibXdmcp
1128 #define ProfileLibXdmcp NO /* profiled XDMCP library */
1130 XDMCPLIBSRC = $(LIBSRC)/Xdmcp
1132 #ifndef SharedXdmcpRev
1133 #define SharedXdmcpRev 6.0
1135 SharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),SOXDMCPREV,SharedXdmcpRev)
1137 ProjectUnsharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),XBuildLibDir)
1140 #ifndef SharedLibXmu
1141 #define SharedLibXmu HasSharedLibraries
1143 #ifndef NormalLibXmu
1144 #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
1147 #define DebugLibXmu NO /* debugged Xmu library */
1149 #ifndef ProfileLibXmu
1150 #define ProfileLibXmu NO /* profiled Xmu library */
1152 XMUSRC = $(LIBSRC)/Xmu
1154 #ifndef SharedXmuRev
1155 #define SharedXmuRev 6.0
1157 SharedDSLibReferences(XMU,Xmu,$(XMUSRC),SOXMUREV,SharedXmuRev)
1159 ProjectUnsharedLibReferences(XMU,Xmu,$(XMUSRC),XBuildLibDir)
1163 #define SharedOldX HasSharedLibraries
1166 #define NormalOldX (!SharedOldX | ForceNormalLib)
1169 #define DebugOldX NO /* debugged old X library */
1172 #define ProfileOldX NO /* profiled old X library */
1174 OLDXLIBSRC = $(LIBSRC)/oldX
1176 #ifndef SharedOldXRev
1177 #define SharedOldXRev 6.0
1179 SharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),SOOLDXREV,SharedOldXRev)
1181 ProjectUnsharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),XBuildLibDir)
1185 #define SharedLibXp HasSharedLibraries
1188 #define NormalLibXp (!SharedLibXp | ForceNormalLib)
1191 #define DebugLibXp NO /* debugged Xp library */
1193 #ifndef ProfileLibXp
1194 #define ProfileLibXp NO /* profiled Xp library */
1196 XPLIBSRC = $(LIBSRC)/Xp
1199 #define SharedXpRev 6.2
1201 SharedLibReferences(XP,Xp,$(XPLIBSRC),SOXPREV,SharedXpRev)
1203 ProjectUnsharedLibReferences(XP,Xp,$(XPLIBSRC),XBuildLibDir)
1207 #define SharedLibXt HasSharedLibraries
1210 #define NormalLibXt (!SharedLibXt | ForceNormalLib)
1213 #define DebugLibXt NO /* debugged toolkit library */
1215 #ifndef ProfileLibXt
1216 #define ProfileLibXt NO /* profiled toolkit library */
1218 TOOLKITSRC = $(LIBSRC)/Xt
1221 #define SharedXtRev 6.0
1223 SharedDSLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),SOXTREV,SharedXtRev)
1225 ProjectUnsharedLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),XBuildLibDir)
1227 DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
1228 XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
1229 LINTXTOOLLIB = $(LINTXTOOLONLYLIB)
1232 #define SharedLibXa (HasSharedLibraries & HasCplusplus)
1235 /* #define NormalLibXa ((!SharedLibXa | ForceNormalLib) & HasCplusplus) */
1236 #define NormalLibXa YES /* needed for current tests, will correct later */
1239 #define DebugLibXa NO /* debugged audio library */
1241 #ifndef ProfileLibXa
1242 #define ProfileLibXa NO /* profiled audio library */
1244 XALIBSRC = $(LIBSRC)/Xa
1247 #define SharedXaRev 1.0
1249 SharedLibReferences(XA,Xa,$(XALIBSRC),SOXAREV,SharedXaRev)
1251 UnsharedLibReferences(XA,Xa,$(XALIBSRC))
1254 #ifndef SharedLibXaw
1255 #define SharedLibXaw HasSharedLibraries
1257 #ifndef NormalLibXaw
1258 #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
1261 #define DebugLibXaw NO /* debugged widget library */
1263 #ifndef ProfileLibXaw
1264 #define ProfileLibXaw NO /* profiled widget library */
1266 AWIDGETSRC = $(LIBSRC)/Xaw
1268 #ifndef SharedXawRev
1269 #define SharedXawRev 6.1
1271 SharedDSLibReferences(XAW,Xaw,$(AWIDGETSRC),SOXAWREV,SharedXawRev)
1273 ProjectUnsharedLibReferences(XAW,Xaw,$(AWIDGETSRC),XBuildLibDir)
1277 #define SharedLibXi HasSharedLibraries
1280 #define NormalLibXi (!SharedLibXi | ForceNormalLib)
1283 #define DebugLibXi NO /* debugged Xi library */
1285 #ifndef ProfileLibXi
1286 #define ProfileLibXi NO /* profiled Xi library */
1288 XILIBSRC = $(LIBSRC)/Xi
1291 #define SharedXiRev 6.0
1293 SharedLibReferences(XI,Xi,$(XILIBSRC),SOXINPUTREV,SharedXiRev)
1295 ProjectUnsharedLibReferences(XI,Xi,$(XILIBSRC),XBuildLibDir)
1298 #ifndef SharedLibXtst
1299 #define SharedLibXtst HasSharedLibraries
1301 #ifndef NormalLibXtst
1302 #define NormalLibXtst (!SharedLibXtst | ForceNormalLib)
1304 #ifndef DebugLibXtst
1305 #define DebugLibXtst NO /* debugged Xtst library */
1307 #ifndef ProfileLibXtst
1308 #define ProfileLibXtst NO /* profiled Xtst library */
1310 XTESTLIBSRC = $(LIBSRC)/Xtst
1312 #ifndef SharedXtstRev
1313 #define SharedXtstRev 6.1
1315 SharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),SOXTESTREV,SharedXtstRev)
1317 ProjectUnsharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),XBuildLibDir)
1320 #ifndef SharedLibPex
1321 #define SharedLibPex HasSharedLibraries
1323 #ifndef NormalLibPex
1324 #define NormalLibPex (!SharedLibPex | ForceNormalLib)
1327 #define DebugLibPex NO /* debugged PEX5 library */
1329 #ifndef ProfileLibPex
1330 #define ProfileLibPex NO /* profiled PEX5 library */
1332 PEXLIBSRC = $(LIBSRC)/PEX5
1334 #ifndef SharedPexRev
1335 #define SharedPexRev 6.0
1337 SharedLibReferences(PEX,PEX5,$(PEXLIBSRC),SOPEXREV,SharedPexRev)
1339 ProjectUnsharedLibReferences(PEX,PEX5,$(PEXLIBSRC),XBuildLibDir)
1342 #ifndef SharedLibXie
1343 #define SharedLibXie HasSharedLibraries
1345 #ifndef NormalLibXie
1346 #define NormalLibXie (!SharedLibXie | ForceNormalLib)
1349 #define DebugLibXie NO /* debugged XIE library */
1351 #ifndef ProfileLibXie
1352 #define ProfileLibXie NO /* profiled XIE library */
1354 XIELIBSRC = $(LIBSRC)/XIE
1356 #ifndef SharedXieRev
1357 #define SharedXieRev 6.0
1359 SharedLibReferences(XIE,XIE,$(XIELIBSRC),SOXIEREV,SharedXieRev)
1361 ProjectUnsharedLibReferences(XIE,XIE,$(XIELIBSRC),XBuildLibDir)
1364 #ifndef SharedLibPhigs
1365 #define SharedLibPhigs NO /* XXX - haven't made it sharable yet */
1367 #ifndef NormalLibPhigs
1368 #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
1370 PHIGSLIBSRC = $(LIBSRC)/PHIGS
1372 #ifndef SharedPhigsRev
1373 #define SharedPhigsRev 6.0
1375 SharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),SOPHIGSREV,SharedPhigsRev)
1377 ProjectUnsharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),XBuildLibDir)
1380 ProjectUnsharedLibReferences(XBSD,Xbsd,$(LIBSRC)/Xbsd,XBuildLibDir)
1382 #ifndef SharedLibICE
1383 #define SharedLibICE HasSharedLibraries
1385 #ifndef NormalLibICE
1386 #define NormalLibICE (!SharedLibICE | ForceNormalLib)
1389 #define DebugLibICE NO /* debugged ICE library */
1391 #ifndef ProfileLibICE
1392 #define ProfileLibICE NO /* profiled ICE library */
1394 ICESRC = $(LIBSRC)/ICE
1396 #ifndef SharedICERev
1397 #define SharedICERev 6.3
1399 SharedLibReferences(ICE,ICE,$(ICESRC),SOICEREV,SharedICERev)
1401 ProjectUnsharedLibReferences(ICE,ICE,$(ICESRC),XBuildLibDir)
1405 #define SharedLibSM HasSharedLibraries
1408 #define NormalLibSM (!SharedLibSM | ForceNormalLib)
1411 #define DebugLibSM NO /* debugged SM library */
1413 #ifndef ProfileLibSM
1414 #define ProfileLibSM NO /* profiled SM library */
1416 SMSRC = $(LIBSRC)/SM
1419 #define SharedSMRev 6.0
1421 SharedLibReferences(SM,SM,$(SMSRC),SOSMREV,SharedSMRev)
1423 ProjectUnsharedLibReferences(SM,SM,$(SMSRC),XBuildLibDir)
1426 #ifndef SharedLibXkey
1427 #define SharedLibXkey HasSharedLibraries
1429 #ifndef NormalLibXkey
1430 #define NormalLibXkey (!SharedLibXkey | ForceNormalLib)
1432 #ifndef DebugLibXkey
1433 #define DebugLibXkey NO /* debugged Xkey library */
1435 #ifndef ProfileLibXkey
1436 #define ProfileLibXkey NO /* profiled Xkey library */
1438 XKEYSRC = $(LIBSRC)/Xkey
1440 #ifndef SharedXkeyRev
1441 #define SharedXkeyRev 6.0
1443 SharedLibReferences(XKEY,Xkey,$(XKEYSRC),SOXKEYREV,SharedXkeyRev)
1445 ProjectUnsharedLibReferences(XKEY,Xkey,$(XKEYSRC),XBuildLibDir)
1449 #define SharedLibFS NO /* for now */
1452 #define NormalLibFS (!SharedLibFS | ForceNormalLib)
1455 #define DebugLibFS NO /* debugged FS library */
1457 #ifndef ProfileLibFS
1458 #define ProfileLibFS NO /* profiled FS library */
1460 FSLIBSRC = $(LIBSRC)/FS
1463 #define SharedFSRev 6.0
1465 SharedLibReferences(FS,FS,$(FSLIBSRC),SOFSREV,SharedFSRev)
1467 ProjectUnsharedLibReferences(FS,FS,$(FSLIBSRC),XBuildLibDir)
1470 FONTLIBSRC = $(LIBSRC)/font
1471 ProjectUnsharedLibReferences(FONT,font,$(FONTLIBSRC),XBuildLibDir)
1473 XPMLIBSRC = $(LIBSRC)/Xpm
1475 #ifndef SharedXpmRev
1476 #define SharedXpmRev 4.8
1478 SharedLibReferences(XPM,Xpm,$(XPMLIBSRC),SOXPMREV,SharedXpmRev)
1480 ProjectUnsharedLibReferences(XPM,Xpm,$(XPMLIBSRC),XBuildLibDir)
1483 #ifndef LdLibraryPath
1484 #define LdLibraryPath LD_LIBRARY_PATH
1488 XKBFILELIBSRC = $(LIBSRC)/xkbfile
1489 ProjectUnsharedLibReferences(XKBFILE,xkbfile,$(XKBFILELIBSRC),XBuildLibDir)
1490 #ifndef XkbClientDepLibs
1492 #define XkbClientDepLibs $(DEPXKBFILELIB)
1494 #define XkbClientDepLibs /**/
1497 #ifndef XkbClientLibs
1499 #define XkbClientLibs $(XKBFILELIB)
1501 #define XkbClientLibs /**/
1504 #if defined(UseInstalled) || defined(OS2Architecture)
1505 XKBCOMPCMD = XkbComp /* assume BINDIR in path */
1507 XKBCOMPSRC = $(PROGRAMSRC)/xkbcomp
1508 XKBCOMPCMD = $(CLIENTENVSETUP) $(XKBCOMPSRC)/xkbcomp
1510 #else /* !BuildXKBlib */
1511 #ifndef XkbClientDepLibs
1512 #define XkbClientDepLibs
1514 #ifndef XkbClientLibs
1515 #define XkbClientLibs
1517 #endif /* BuildXKBlib */
1519 #ifdef BuildXKBuilib
1520 XKBUILIBSRC = $(LIBSRC)/xkbui
1521 ProjectUnsharedLibReferences(XKBUI,xkbui,$(XKBUILIBSRC),XBuildLibDir)
1523 #define XkbuiLibs $(XKBUILIB)
1525 #ifndef XkbuiDepLibs
1526 #define XkbuiDepLibs $(DEPXKBFILELIB)
1528 #else /* !BuildXKBuilib */
1532 #ifndef XkbuiDepLibs
1533 #define XkbuiDepLibs
1535 #endif /* BuildXKBuilib */
1537 #ifndef XawClientDepLibs
1538 #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
1540 #ifndef XawClientLibs
1541 #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
1544 #ifndef NeedDefaultDepLibs
1545 #define NeedDefaultDepLibs YES
1548 #if NeedDefaultDepLibs
1550 * Individual libraries should override this
1552 #if HasSharedLibraries || defined(UseInstalled)
1553 DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
1555 DEPLIBS = $(LOCAL_LIBRARIES)
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 */
1571 * InstallAppDefaults - simple rules to install application default file
1573 #ifndef InstallAppDefaults
1574 #define InstallAppDefaults(class) InstallAppDefaultsLong(class,class)
1575 #endif /* InstallAppDefaults */
1578 * InstallAppDefaultsLong - general rule to install application default file
1579 * if the InstallAppDefFiles configuration parameter is set.
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)
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 */
1594 * MakeFontsDir - generate rules to build fonts.dir database.
1596 #ifndef MakeFontsDir
1597 #define MakeFontsDir(deplist) @@\
1600 fonts.dir: deplist @@\
1601 RunProgram(MKFONTDIR,.) @@\
1604 RemoveFile(fonts.dir)
1605 #endif /* MakeFontsDir */
1609 * MakeFonts - generate rules to build font database.
1612 #define MakeFonts() @@\
1615 MakeFontsDir($(OBJS)) @@\
1618 RemoveFiles(*.pcf *.pcf.Z *.pcf.gz)
1619 #endif /* MakeFonts */
1623 * InstallFontObjs - generate rules to install font files
1625 #ifndef InstallFontObjs
1626 #define InstallFontObjs(objs,dest) @@\
1627 InstallMultipleFlags(objs,dest,$(INSTDATFLAGS)) @@\
1629 InstallTarget(install,fonts.dir,$(INSTDATFLAGS),dest)
1630 #endif /* InstallFontObjs */
1634 * InstallFonts - generate rules to install font files
1636 #ifndef InstallFonts
1637 #define InstallFonts(dest) @@\
1638 InstallFontObjs($(OBJS),dest)
1639 #endif /* InstallFonts */
1643 * InstallFontAliases - generate rules to install font aliases databases.
1645 #ifndef InstallFontAliases
1646 #define InstallFontAliases(dest) @@\
1647 InstallTarget(install,fonts.alias,$(INSTDATFLAGS),dest)
1648 #endif /* InstallFontAliases */
1651 #define FontSrc(basename) basename.bdf
1655 #define FontBaseObj(basename)basename.pcf
1659 * InstallFontScale - generate rules to install font scale database.
1661 #ifndef InstallFontScale
1662 #define InstallFontScale(dest) @@\
1663 InstallTarget(install,fonts.scale,$(INSTDATFLAGS),dest)
1664 #endif /* InstallFontScale */
1667 * UncompressedFontTarget
1669 #ifndef UncompressedFontTarget
1670 #define UncompressedFontTarget(basename) @@\
1671 FontBaseObj(basename): FontSrc(basename) @@\
1672 RunProgram(FONTC,$(FONTCFLAGS) $? -o $@)
1673 #endif /* UncompressedFontTarget */
1676 * CompressedFontTarget
1678 #ifndef GzipFontCompression
1679 #define GzipFontCompression NO
1682 #ifndef CompressedFontTarget
1683 #if GzipFontCompression
1684 #define CompressedFontTarget(basename) @@\
1685 FontBaseObj(basename).gz: FontSrc(basename) @@\
1686 RunProgram(FONTC,$(FONTCFLAGS) $?) | $(GZIPCMD) > $@
1688 #define CompressedFontTarget(basename) @@\
1689 FontBaseObj(basename).Z: FontSrc(basename) @@\
1690 RunProgram(FONTC,$(FONTCFLAGS) $?) | $(COMPRESS) > $@
1692 #endif /* CompressedFontTarget */
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
1700 #define FontObj(basename) FontBaseObj(basename).Z
1703 #define FontTarget(basename) UncompressedFontTarget(basename)
1704 #define FontObj(basename) FontBaseObj(basename)
1705 #endif /* CompressAllFonts */
1712 #define MakeXkbDir(basedir,subdir) @@\
1713 all:: Concat(subdir,.dir) @@\
1715 Concat(subdir,.dir): @@\
1716 $(XKBCOMPCMD) -lfhlpR -o Concat(subdir,.dir) '*' @@\
1718 InstallTarget(install,Concat(subdir,.dir),$(INSTDATFLAGS),basedir)
1722 * PostProcessTroffPS - by default moves the working output into place,
1723 * but can be a hook for more complicated post-processing.
1725 #ifndef PostProcessTroffPS
1726 #define PostProcessTroffPS(temp,real) $(MV) temp real
1729 #ifndef MakeSimpleDoc
1730 #define MakeSimpleDoc(file,srcs) @@\
1732 .PRECIOUS: file.PS @@\
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 @@\
1740 $(NROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > $@ @@\
1743 $(RM) index.raw file.nPS file.PS file.txt
1747 #define MakeTblDoc(file,srcs) @@\
1749 .PRECIOUS: file.PS @@\
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 @@\
1757 $(TBL) $(XDOCMACROS) srcs | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@ @@\
1760 $(RM) index.raw file.nPS file.PS file.txt
1764 #define MakeEqnDoc(file,srcs) @@\
1766 .PRECIOUS: file.PS @@\
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 @@\
1774 $(TBL) $(XDOCMACROS) srcs | $(NEQN) | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@ @@\
1777 $(RM) index.raw file.nPS file.PS file.txt
1780 #ifndef MakeDocIndex
1781 #define MakeDocIndex(file,srcs) @@\
1782 all:: file.idx.PS @@\
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 @@\
1792 $(RM) index.troff index.pageno file.idx.nPS file.idx.PS
1795 #ifndef MakeLatexDoc
1797 #define MakeLatexDoc(file,src) @@\
1803 file.PS: file.dvi @@\
1804 $(DVIPS) -o file.nPS file && $(MV) file.nPS $@ @@\
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) @@\
1813 @echo "cannot make file.PS: no latex on this system"; exit 1
1814 #endif /* HasLatex (else) */
1815 #endif /* MakeLatexDoc */