📄 x11.tmpl
字号:
#define DebugLibXt NO /* debugged toolkit library */#endif#ifndef ProfileLibXt#define ProfileLibXt NO /* profiled toolkit library */#endif TOOLKITSRC = $(LIBSRC)/Xt#if SharedLibXt#ifndef SharedXtRev#define SharedXtRev 6.0#endifSharedDSLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),SOXTREV,SharedXtRev)#elseProjectUnsharedLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),XBuildLibDir)#endif DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB) XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB) LINTXTOOLLIB = $(LINTXTOOLONLYLIB)#ifndef SharedLibXa#define SharedLibXa (HasSharedLibraries & HasCplusplus)#endif#ifndef NormalLibXa/* #define NormalLibXa ((!SharedLibXa | ForceNormalLib) & HasCplusplus) */#define NormalLibXa YES /* needed for current tests, will correct later */#endif#ifndef DebugLibXa#define DebugLibXa NO /* debugged audio library */#endif#ifndef ProfileLibXa#define ProfileLibXa NO /* profiled audio library */#endif XALIBSRC = $(LIBSRC)/Xa#if SharedLibXa#ifndef SharedXaRev#define SharedXaRev 1.0#endifSharedLibReferences(XA,Xa,$(XALIBSRC),SOXAREV,SharedXaRev)#elseUnsharedLibReferences(XA,Xa,$(XALIBSRC))#endif#ifndef SharedLibXaw#define SharedLibXaw HasSharedLibraries#endif#ifndef NormalLibXaw#define NormalLibXaw (!SharedLibXaw | ForceNormalLib)#endif#ifndef DebugLibXaw#define DebugLibXaw NO /* debugged widget library */#endif#ifndef ProfileLibXaw#define ProfileLibXaw NO /* profiled widget library */#endif AWIDGETSRC = $(LIBSRC)/Xaw#if SharedLibXaw#ifndef SharedXawRev#define SharedXawRev 6.1#endifSharedDSLibReferences(XAW,Xaw,$(AWIDGETSRC),SOXAWREV,SharedXawRev)#elseProjectUnsharedLibReferences(XAW,Xaw,$(AWIDGETSRC),XBuildLibDir)#endif#ifndef SharedLibXi#define SharedLibXi HasSharedLibraries#endif#ifndef NormalLibXi#define NormalLibXi (!SharedLibXi | ForceNormalLib)#endif#ifndef DebugLibXi#define DebugLibXi NO /* debugged Xi library */#endif#ifndef ProfileLibXi#define ProfileLibXi NO /* profiled Xi library */#endif XILIBSRC = $(LIBSRC)/Xi#if SharedLibXi#ifndef SharedXiRev#define SharedXiRev 6.0#endifSharedLibReferences(XI,Xi,$(XILIBSRC),SOXINPUTREV,SharedXiRev)#elseProjectUnsharedLibReferences(XI,Xi,$(XILIBSRC),XBuildLibDir)#endif#ifndef SharedLibXtst#define SharedLibXtst HasSharedLibraries#endif#ifndef NormalLibXtst#define NormalLibXtst (!SharedLibXtst | ForceNormalLib)#endif#ifndef DebugLibXtst#define DebugLibXtst NO /* debugged Xtst library */#endif#ifndef ProfileLibXtst#define ProfileLibXtst NO /* profiled Xtst library */#endif XTESTLIBSRC = $(LIBSRC)/Xtst#if SharedLibXtst#ifndef SharedXtstRev#define SharedXtstRev 6.1#endifSharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),SOXTESTREV,SharedXtstRev)#elseProjectUnsharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),XBuildLibDir)#endif#ifndef SharedLibPex#define SharedLibPex HasSharedLibraries#endif#ifndef NormalLibPex#define NormalLibPex (!SharedLibPex | ForceNormalLib)#endif#ifndef DebugLibPex#define DebugLibPex NO /* debugged PEX5 library */#endif#ifndef ProfileLibPex#define ProfileLibPex NO /* profiled PEX5 library */#endif PEXLIBSRC = $(LIBSRC)/PEX5#if SharedLibPex#ifndef SharedPexRev#define SharedPexRev 6.0#endifSharedLibReferences(PEX,PEX5,$(PEXLIBSRC),SOPEXREV,SharedPexRev)#elseProjectUnsharedLibReferences(PEX,PEX5,$(PEXLIBSRC),XBuildLibDir)#endif#ifndef SharedLibXie#define SharedLibXie HasSharedLibraries#endif#ifndef NormalLibXie#define NormalLibXie (!SharedLibXie | ForceNormalLib)#endif#ifndef DebugLibXie#define DebugLibXie NO /* debugged XIE library */#endif#ifndef ProfileLibXie#define ProfileLibXie NO /* profiled XIE library */#endif XIELIBSRC = $(LIBSRC)/XIE#if SharedLibXie#ifndef SharedXieRev#define SharedXieRev 6.0#endifSharedLibReferences(XIE,XIE,$(XIELIBSRC),SOXIEREV,SharedXieRev)#elseProjectUnsharedLibReferences(XIE,XIE,$(XIELIBSRC),XBuildLibDir)#endif#ifndef SharedLibPhigs#define SharedLibPhigs NO /* XXX - haven't made it sharable yet */#endif#ifndef NormalLibPhigs#define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)#endif PHIGSLIBSRC = $(LIBSRC)/PHIGS#if SharedLibPhigs#ifndef SharedPhigsRev#define SharedPhigsRev 6.0#endifSharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),SOPHIGSREV,SharedPhigsRev)#elseProjectUnsharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),XBuildLibDir)#endifProjectUnsharedLibReferences(XBSD,Xbsd,$(LIBSRC)/Xbsd,XBuildLibDir)#ifndef SharedLibICE#define SharedLibICE HasSharedLibraries#endif#ifndef NormalLibICE#define NormalLibICE (!SharedLibICE | ForceNormalLib)#endif#ifndef DebugLibICE#define DebugLibICE NO /* debugged ICE library */#endif#ifndef ProfileLibICE#define ProfileLibICE NO /* profiled ICE library */#endif ICESRC = $(LIBSRC)/ICE#if SharedLibICE#ifndef SharedICERev#define SharedICERev 6.3#endifSharedLibReferences(ICE,ICE,$(ICESRC),SOICEREV,SharedICERev)#elseProjectUnsharedLibReferences(ICE,ICE,$(ICESRC),XBuildLibDir)#endif#ifndef SharedLibSM#define SharedLibSM HasSharedLibraries#endif#ifndef NormalLibSM#define NormalLibSM (!SharedLibSM | ForceNormalLib)#endif#ifndef DebugLibSM#define DebugLibSM NO /* debugged SM library */#endif#ifndef ProfileLibSM#define ProfileLibSM NO /* profiled SM library */#endif SMSRC = $(LIBSRC)/SM#if SharedLibSM#ifndef SharedSMRev#define SharedSMRev 6.0#endifSharedLibReferences(SM,SM,$(SMSRC),SOSMREV,SharedSMRev)#elseProjectUnsharedLibReferences(SM,SM,$(SMSRC),XBuildLibDir)#endif#ifndef SharedLibXkey#define SharedLibXkey HasSharedLibraries#endif#ifndef NormalLibXkey#define NormalLibXkey (!SharedLibXkey | ForceNormalLib)#endif#ifndef DebugLibXkey#define DebugLibXkey NO /* debugged Xkey library */#endif#ifndef ProfileLibXkey#define ProfileLibXkey NO /* profiled Xkey library */#endif XKEYSRC = $(LIBSRC)/Xkey#if SharedLibXkey#ifndef SharedXkeyRev#define SharedXkeyRev 6.0#endifSharedLibReferences(XKEY,Xkey,$(XKEYSRC),SOXKEYREV,SharedXkeyRev)#elseProjectUnsharedLibReferences(XKEY,Xkey,$(XKEYSRC),XBuildLibDir)#endif#ifndef SharedLibFS#define SharedLibFS NO /* for now */#endif#ifndef NormalLibFS#define NormalLibFS (!SharedLibFS | ForceNormalLib)#endif#ifndef DebugLibFS#define DebugLibFS NO /* debugged FS library */#endif#ifndef ProfileLibFS#define ProfileLibFS NO /* profiled FS library */#endif FSLIBSRC = $(LIBSRC)/FS#if SharedLibFS#ifndef SharedFSRev#define SharedFSRev 6.0#endifSharedLibReferences(FS,FS,$(FSLIBSRC),SOFSREV,SharedFSRev)#elseProjectUnsharedLibReferences(FS,FS,$(FSLIBSRC),XBuildLibDir)#endif FONTLIBSRC = $(LIBSRC)/fontProjectUnsharedLibReferences(FONT,font,$(FONTLIBSRC),XBuildLibDir) XPMLIBSRC = $(LIBSRC)/Xpm#if SharedLibXpm#ifndef SharedXpmRev#define SharedXpmRev 4.8#endifSharedLibReferences(XPM,Xpm,$(XPMLIBSRC),SOXPMREV,SharedXpmRev)#elseProjectUnsharedLibReferences(XPM,Xpm,$(XPMLIBSRC),XBuildLibDir)#endif#ifndef LdLibraryPath#define LdLibraryPath LD_LIBRARY_PATH#endif#ifdef BuildXKBlib XKBFILELIBSRC = $(LIBSRC)/xkbfileProjectUnsharedLibReferences(XKBFILE,xkbfile,$(XKBFILELIBSRC),XBuildLibDir)#ifndef XkbClientDepLibs#if UseXKBInClients#define XkbClientDepLibs $(DEPXKBFILELIB)#else#define XkbClientDepLibs /**/#endif#endif#ifndef XkbClientLibs#if UseXKBInClients#define XkbClientLibs $(XKBFILELIB)#else#define XkbClientLibs /**/#endif#endif#if defined(UseInstalled) || defined(OS2Architecture) XKBCOMPCMD = XkbComp /* assume BINDIR in path */#else XKBCOMPSRC = $(PROGRAMSRC)/xkbcomp XKBCOMPCMD = $(CLIENTENVSETUP) $(XKBCOMPSRC)/xkbcomp#endif#else /* !BuildXKBlib */#ifndef XkbClientDepLibs#define XkbClientDepLibs#endif#ifndef XkbClientLibs#define XkbClientLibs#endif#endif /* BuildXKBlib */#ifdef BuildXKBuilib XKBUILIBSRC = $(LIBSRC)/xkbuiProjectUnsharedLibReferences(XKBUI,xkbui,$(XKBUILIBSRC),XBuildLibDir)#ifndef XkbuiLibs#define XkbuiLibs $(XKBUILIB)#endif#ifndef XkbuiDepLibs#define XkbuiDepLibs $(DEPXKBFILELIB)#endif#else /* !BuildXKBuilib */#ifndef XkbuiLibs#define XkbuiLibs#endif#ifndef XkbuiDepLibs#define XkbuiDepLibs#endif#endif /* BuildXKBuilib */#ifndef XawClientDepLibs#define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)#endif#ifndef XawClientLibs#define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)#endif#ifndef NeedDefaultDepLibs#define NeedDefaultDepLibs YES#endif#if NeedDefaultDepLibs/* * Individual libraries should override this */#if HasSharedLibraries || defined(UseInstalled) DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)#else DEPLIBS = $(LOCAL_LIBRARIES)#endif DEPLIBS1 = $(DEPLIBS) DEPLIBS2 = $(DEPLIBS) DEPLIBS3 = $(DEPLIBS) DEPLIBS4 = $(DEPLIBS) DEPLIBS5 = $(DEPLIBS) DEPLIBS6 = $(DEPLIBS) DEPLIBS7 = $(DEPLIBS) DEPLIBS8 = $(DEPLIBS) DEPLIBS9 = $(DEPLIBS) DEPLIBS10 = $(DEPLIBS)#endif /* NeedDefaultDepLibs *//* * InstallAppDefaults - simple rules to install application default file */#ifndef InstallAppDefaults#define InstallAppDefaults(class) InstallAppDefaultsLong(class,class)#endif /* InstallAppDefaults *//* * InstallAppDefaultsLong - general rule to install application default file * if the InstallAppDefFiles configuration parameter is set. */#ifndef InstallAppDefaultsLong#if InstallAppDefFiles#define InstallAppDefaultsLong(file,class) @@\LinkVarDirectory(app-defaults,.,app-defaults,.) @@\InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)#else#define InstallAppDefaultsLong(file,class) @@\LinkVarDirectory(app-defaults,.,app-defaults,.) @@\InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)#endif /* InstallAppDefFiles */#endif /* InstallAppDefaultsLong *//* * MakeFontsDir - generate rules to build fonts.dir database. */#ifndef MakeFontsDir#define MakeFontsDir(deplist) @@\all:: fonts.dir @@\ @@\fonts.dir: deplist @@\ RunProgram(MKFONTDIR,.) @@\ @@\clean:: @@\ RemoveFile(fonts.dir)#endif /* MakeFontsDir *//* * MakeFonts - generate rules to build font database. */#ifndef MakeFonts#define MakeFonts() @@\all:: $(OBJS) @@\ @@\MakeFontsDir($(OBJS)) @@\ @@\clean:: @@\ RemoveFiles(*.pcf *.pcf.Z *.pcf.gz)#endif /* MakeFonts *//* * InstallFontObjs - generate rules to install font files */#ifndef InstallFontObjs#define InstallFontObjs(objs,dest) @@\InstallMultipleFlags(objs,dest,$(INSTDATFLAGS)) @@\ @@\InstallTarget(install,fonts.dir,$(INSTDATFLAGS),dest)#endif /* InstallFontObjs *//* * InstallFonts - generate rules to install font files */#ifndef InstallFonts#define InstallFonts(dest) @@\InstallFontObjs($(OBJS),dest)#endif /* InstallFonts *//* * InstallFontAliases - generate rules to install font aliases databases. */#ifndef InstallFontAliases#define InstallFontAliases(dest) @@\InstallTarget(install,fonts.alias,$(INSTDATFLAGS),dest)#endif /* InstallFontAliases */#ifndef FontSrc#define FontSrc(basename) basename.bdf#endif#ifndef FontBaseObj#define FontBaseObj(basename)basename.pcf#endif/* * InstallFontScale - generate rules to install font scale database. */#ifndef InstallFontScale#define InstallFontScale(dest) @@\InstallTarget(install,fonts.scale,$(INSTDATFLAGS),dest)#endif /* InstallFontScale *//* * UncompressedFontTarget */#ifndef UncompressedFontTarget#define UncompressedFontTarget(basename) @@\FontBaseObj(basename): FontSrc(basename) @@\ RunProgram(FONTC,$(FONTCFLAGS) $? -o $@)#endif /* UncompressedFontTarget *//* * CompressedFontTarget */#ifndef GzipFontCompression#define GzipFontCompression NO#endif#ifndef CompressedFontTarget#if GzipFontCompression#define CompressedFontTarget(basename) @@\FontBaseObj(basename).gz: FontSrc(basename) @@\ RunProgram(FONTC,$(FONTCFLAGS) $?) | $(GZIPCMD) > $@#else#define CompressedFontTarget(basename) @@\FontBaseObj(basename).Z: FontSrc(basename) @@\ RunProgram(FONTC,$(FONTCFLAGS) $?) | $(COMPRESS) > $@#endif#endif /* CompressedFontTarget */#if !defined(FontTarget) && !defined(FontObj)#ifdef CompressAllFonts#define FontTarget(basename) CompressedFontTarget(basename)#if GzipFontCompression#define FontObj(basename) FontBaseObj(basename).gz#else#define FontObj(basename) FontBaseObj(basename).Z#endif#else#define FontTarget(basename) UncompressedFontTarget(basename)#define FontObj(basename) FontBaseObj(basename)#endif /* CompressAllFonts */#endif/* * MakeXkbDir */#ifndef MakeXkbDir#define MakeXkbDir(basedir,subdir) @@\all:: Concat(subdir,.dir) @@\ @@\Concat(subdir,.dir): @@\ $(XKBCOMPCMD) -lfhlpR -o Concat(subdir,.dir) '*' @@\ @@\InstallTarget(install,Concat(subdir,.dir),$(INSTDATFLAGS),basedir)#endif/* * PostProcessTroffPS - by default moves the working output into place, * but can be a hook for more complicated post-processing. */#ifndef PostProcessTroffPS#define PostProcessTroffPS(temp,real) $(MV) temp real#endif#ifndef MakeSimpleDoc#define MakeSimpleDoc(file,srcs) @@\all:: file.PS @@\.PRECIOUS: file.PS @@\ @@\file.PS: srcs @@\ -$(TROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > file.nPS \@@\ && PostProcessTroffPS(file.nPS,$@) @@\ @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\ @@\file.txt: srcs @@\ $(NROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > $@ @@\ @@\clean:: @@\ $(RM) index.raw file.nPS file.PS file.txt#endif#ifndef MakeTblDoc#define MakeTblDoc(file,srcs) @@\all:: file.PS @@\.PRECIOUS: file.PS @@\ @@\file.PS: srcs @@\ -$(TBL) $(XDOCMACROS) srcs | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\ && PostProcessTroffPS(file.nPS,$@) @@\ @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\ @@\file.txt: srcs @@\ $(TBL) $(XDOCMACROS) srcs | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@ @@\ @@\clean:: @@\ $(RM) index.raw file.nPS file.PS file.txt#endif#ifndef MakeEqnDoc#define MakeEqnDoc(file,srcs) @@\all:: file.PS @@\.PRECIOUS: file.PS @@\ @@\file.PS: srcs @@\ -$(TBL) $(XDOCMACROS) srcs | $(EQN) | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\ && PostProcessTroffPS(file.nPS,$@) @@\ @if grep '^[^1-9.]' index.raw; then exit 1; else test $$? = 1; fi @@\ @@\file.txt: srcs @@\ $(TBL) $(XDOCMACROS) srcs | $(NEQN) | $(NROFF) $(MSMACROS) 2> index.raw | $(COL) > $@ @@\ @@\clean:: @@\ $(RM) index.raw file.nPS file.PS file.txt#endif#ifndef MakeDocIndex#define MakeDocIndex(file,srcs) @@\all:: file.idx.PS @@\ @@\file.idx.PS: srcs index.raw @@\ tail -1 index.raw > index.pageno @@\ grep '^[1-9]' index.raw | sort -f '-t:' +1 -3 +0n -1n | awk -f $(DOCUTILSRC)/fixindex.awk | awk -f $(DOCUTILSRC)/block.awk > index.troff @@\ cat srcs $(XIDXMACROS) index.troff | $(TROFF) -me > file.idx.nPS \@@\ && $(MV) file.idx.nPS $@ @@\ $(RM) index.troff index.pageno @@\ @@\clean:: @@\ $(RM) index.troff index.pageno file.idx.nPS file.idx.PS#endif#ifndef MakeLatexDoc#if HasLatex#define MakeLatexDoc(file,src) @@\all:: file.PS @@\ @@\file.dvi: src @@\ $(LATEX) src @@\ @@\file.PS: file.dvi @@\ $(DVIPS) -o file.nPS file && $(MV) file.nPS $@ @@\ @@\clean:: @@\ RemoveFiles(file.nPS file.PS file.dvi file.log) @@\ RemoveFiles(file.aux file.toc file.lof file.lot)#else /* HasLatex */#define MakeLatexDoc(file,src) @@\all:: @@\file.PS: src @@\ @echo "cannot make file.PS: no latex on this system"; exit 1#endif /* HasLatex (else) */#endif /* MakeLatexDoc */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -