Commit b16b9e46 authored by Mike Gabriel's avatar Mike Gabriel

massive reduction of unneeded files

parent 0d5a83e9

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

XCOMM platform: $XFree86: xc/config/cf/DGUX.cf,v 1.5 2000/07/07 20:06:56 tsi Exp $
/* Copyright Takis Psarogiannakopoulos <takis@pmms.cam.ac.uk>
* This is the DG/ux configuration file of X11R6.3
*/
#define OSName DG/ux R4.20MU03
#define i386Architecture
#ifndef OSVendor
#define OSVendor Data General Corporation
#endif
#define OSMajorVersion 4
#define OSMinorVersion 20
#define OSTeenyVersion 3
#define BootstrapCFlags -DDGUX
/* Some stuff that all SVR4s ,so and DG/ux, should have */
#define SystemV4 YES
#ifndef HasLdRunPath
#define HasLdRunPath YES
#endif
#define HasPoll YES
#ifndef SVR4Architecture
#define SVR4Architecture
#endif
#ifndef PatheticCpp
#define PatheticCpp YES
#endif
#define Malloc0ReturnsNull YES /* in case -lmalloc used */
/*
* Here are the default paths to use tools for building.
*/
#define ArCmdBase /usr/bin/ar
#define AsCmd /usr/bin/as
#define CppCmd /usr/lib/cpp
#define LdCmd /usr/bin/ld
#define LexCmd /usr/bin/lex
#define CcCmd /usr/local/bin/gcc /* ? -fpcc-struct-return */
#define UNCOMPRESSPATH /usr/bin/uncompress
#define MakeCmd /usr/local/bin/make
#define YaccCmd /usr/bin/yacc
#define InstallCmd /usr/bin/install /* I use gnu install-sh */
#define LnCmd ln -s
#define RanlibCmd true /* Or make a link ranlib->true */
#define CplusplusCmd /usr/local/bin/g++
#ifndef MkdirHierCmd
#define MkdirHierCmd mkdir -p
#endif
/* Stuff for SVR4 4.0 */
#ifndef XawI18nDefines
#define XawI18nDefines -DUSE_XWCHAR_STRING
#endif
#define HasPutenv YES
#define HasVFork YES
#define HasVoidSignalReturn YES
#define HasBsearch YES
#define HasSockets YES
#define BuildServer YES
#define HasSharedLibraries YES /* to build shared libs */
#define HasCplusplus YES
#define HasGnuMake YES /* Added for 3.2Xc */
#define UseGnuMalloc YES
#define GnuMallocLibrary -L/usr/local/lib -lmalloc
#define Malloc0ReturnsNull YES /* Added for 3.2Xh,i... GNU does return 0 */
#define Malloc0ReturnsNullDefines -DMALLOC_0_RETURNS_NULL /* define for GNU malloc X3.2i */
/*******TCL TK DEFINITIONS ***********/
#define HasTk YES /* Comment out if you dont have this */
#define TkLibDir /usr/X11R6.3/lib
#define TkIncDir /usr/X11R6.3/include
#define TkLibName tk8.0
#define HasTcl YES
#define TclLibName tcl8.0
#define TclLibDir /usr/X11R6.3/lib
#define TclIncDir /usr/X11R6.3/include
#define SystemManDirectory /usr/local/man/X
#define ExtraLibraries -lelf -lgen -lresolv -lsocket -lnsl -lw
#define StandardDefines -DDGUX -DSVR4 -Di386 -D__ix86 -D_DGUX_SOURCE -D_LITTLE_ENDIAN -D_PENTIUM_CHANGE
#define PositionIndependentCFlags -fpic
#define PositionIndependentCplusplusFlags -fpic
/*
* To forceably build static libraries in addition to shared libraries,
* we put this.
*/
#define ForceNormalLib YES
#ifndef ToolkitStringsABIOptions
#define ToolkitStringsABIOptions -intelabi -earlyR6bc
#endif
#ifndef DefaultCCOptions
#define DefaultCCOptions /* -ansi -pedantic */
#endif
#define OptimizedCDebugFlags -O2 /* Add -g -mstandard for full debuging info */
#define OptimizedCplusplusDebugFlags
#define DebuggableCDebugFlags -g -mstandard
#define DebuggableCplusplusDebugFlags
#define SharedLibraryLoadFlags -G -z text
#define PositionIndependentCFlags -fpic
#define PositionIndependentCplusplusFlags -fpic
/*
* The default optimisation flags for GCC 2.x. -fno-strength-reduce is
* here to work around a bug in -O2 for GCC 2.x on i386 platforms.
* If you are using a version that doesn't have this bug, you can
* uncomment the following line, and remove '-fno-strength-reduce'
*
#define DefaultGcc2i386Opt -O2 -fno-strength-reduce
*/
/* Compress all the Fonts */
#define CompressAllFonts YES
/* Manual pages installed under their full names */
#define ExpandManNames YES
#define CompressManPages YES
/* Install with stripping before ? */
#define StripInstalledPrograms YES
/* Server to Install */
#define XserverNeedsSetUID YES
#define InstallXserverSetUID YES
#ifndef ServerOSDefines
#define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
#endif
#ifndef BuildDynamicLoading
#define BuildDynamicLoading NO
#endif
#if BuildDynamicLoading
#define ServerExtraSysLibs -ldl
#endif
/*
* The TLI interface is more robust on most SVR4s, so it will be the default.
*/
#ifndef ConnectionFlags
#define ConnectionFlags -DSTREAMSCONN -DUNIXCONN -DLOCALCONN
#endif
#ifndef ManSuffix
#define ManSuffix 1x
#define ManDir $(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
#define LibManSuffix 3x
#define LibmanDir $(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
#define FileManSuffix 4
#endif
#ifndef StaticLibrary
#ifndef HasGcc
#define StaticLibrary(libpath,libname) -B static Concat(-L,libpath) Concat(-l,libname) -B dynamic
#endif
#endif
#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver YES
#endif
#ifdef i386Architecture
#include <xorg.cf>
#endif
#include <sv4Lib.rules>
XCOMM $XdotOrg: xc/config/cf/DragonFly.cf,v 1.1 2005/03/02 11:20:29 gisburn Exp $
#define UseElfFormat YES
#define OSBinaryFormat [ELF]
#ifndef OSName
#define OSName DefaultOSName OSBinaryFormat
#endif
#ifndef OSVendor
#define OSVendor /**/
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSRelVersion
/* Include this to get finer-grained information about the OS version */
#include "/usr/include/osreldate.h"
#define OSRelVersion __DragonFly_version
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion) (OSRelVersion)
/*
* Base OS setup
*/
#define HasCplusplus YES
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define HasBasename YES
#define HasBSD44Sockets YES
#define HasDlopen YES
#define HasGetIfAddrs YES
#define HasIssetugid YES
#define HasLibCrypt YES
#define HasMktemp YES
#define HasNCurses YES
#define HasNdbm YES
#define HasPlugin YES
#define HasPoll YES
#define HasPutenv YES
#define HasUsableFileMmap YES
#define HasSetProcTitle YES
#define HasShm YES
#define HasSnprintf YES
#define HasStrlcat YES
#define HasVarDb YES
#define HasVarRun YES
#define HasWChar32 YES
#define HasWeakSymbols UseElfFormat
#define BuildXaw6 NO /*depreciated*/
#define BuildXaw7 NO /*depreciated*/
#define BuildXaw YES /*needed*/
#ifndef BuildPDFdocs
#define BuildPDFdocs NO
#endif
#define IPv6SocketsAlsoIPv4 NO
#define InstallXloadSetGID NO
/*
* Multi-thread safe libs
*/
#ifndef HasLibPthread
# define HasLibPthread NO
#endif
#define HasPosixThreads YES
#define ThreadedX YES
#define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE
#define HasThreadSafeAPI YES
#define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI
#if HasLibPthread
# define ThreadsLibraries -lpthread
#else
# define ThreadsLibraries -pthread
#endif
#define AvoidNullMakeCommand YES
#define StripInstalledPrograms YES
#define CompressAllFonts YES
#define Malloc0ReturnsNull YES
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
#define MkdirHierCmd mkdir -p
#define LexCmd flex -l
#define HasFlex YES
#ifndef CcCmd
# define CcCmd cc
#endif
#ifndef CplusplusCmd
# define CplusplusCmd c++
#endif
#define CppCmd /usr/bin/cpp
#define PreProcessCmd CppCmd
#define StandardCppOptions -traditional
#define StandardCppDefines /**/
#ifndef DefaultCCOptions
# if defined(UseInstalled)
# define DefaultCCOptions /**/
# else
# if defined(HasGcc3) && HasGcc3
# define NoSystemWarn -Wno-system-headers
# else
# define NoSystemWarn
# endif
# define DefaultCCOptions -ansi NoSystemWarn -Dasm=__asm GccWarningOptions
#endif
#ifndef ExtraLibraries
/* support for multi-byte locales is in libxpg4 rather than libc */
#define ExtraLibraries -lxpg4
#endif
#define HasSetUserContext YES
#define HasGetpeereid YES
#define HasMTRRSupport YES
#ifndef BuildXF86DRI
# define BuildXF86DRI YES
#endif
#if defined(i386Architecture)
#define HasAgpGart YES
#endif
/*
* SSE and 3DNow will be autodetected, so binutils is the only
* requirement for enabling this.
*/
#if defined(i386Architecture)
# define HasX86Support YES
# define HasMMXSupport YES
# define Has3DNowSupport YES
# define HasSSESupport YES
#else
# define HasX86Support NO
# define HasMMXSupport NO
# define Has3DNowSupport NO
# define HasSSESupport NO
#endif
#ifndef UseRpath
# define UseRpath YES
#endif
#ifndef RpathLoadFlags
# if UseRpath
# define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
# else
# define RpathLoadFlags /**/
# endif
#endif
#ifndef ExtraLoadFlags
# if !defined(UseInstalled)
# define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR)
# else
# define ExtraLoadFlags RpathLoadFlags
# endif
#endif
#endif
#ifndef LibraryRpathLoadFlags
# if UseRpath
# define LibraryRpathLoadFlags -rpath $(USRLIBDIRPATH)
# else
# define LibraryRpathLoadFlags /**/
# endif
#endif
#ifndef SharedLibraryLoadFlags
# define SharedLibraryLoadFlags -shared LibraryRpathLoadFlags
#endif
#ifndef HasZlib
# define HasZlib YES
#endif
#ifndef HasPam
# define HasPam YES
#endif
/* Take from FreeBSD */
/* There are two options for building. One is to assume that the system has
* many of the dependencies provided by the ports tree. The other is to just
* build everything from this tree.
*/
#ifndef HasStandardPorts
# define HasStandardPorts YES
#endif
#ifndef LocalBase
# define LocalBase /usr/local
#endif
#ifndef X11Base
# define X11Base /usr/X11R6
#endif
#if HasStandardPorts
#ifndef HasExpat
# define HasExpat YES
# define ExpatDir LocalBase
#endif
#ifndef HasFreetype2
# define HasFreetype2 NO /* set this to YES once DragonFly ships FT218 */
# define Freetype2Dir LocalBase
#endif
#ifndef HasFontconfig
# define HasFontconfig YES
# define FontconfigDir X11Base
#endif
#ifndef HasLibpng
# define HasLibpng YES
# define LibpngDir LocalBase
#endif
#endif /* HasStandardPorts */
#undef InstallCmd
#define InstallCmd /usr/bin/install
#define AsmElfDefines -D__ELF__
#if GccUsesGas
# define GccGasOption -DGCCUSESGAS
# define AsmDefines -DUSE_GAS AsmElfDefines
#else
# define GccGasOption /**/
# define AsmDefines AsmElfDefines
#endif
#ifdef i386Architecture
#define ServerExtraDefines GccGasOption XFree86ServerDefines
#endif
#if defined(Sparc64Architecture) || defined(ia64Architecture) || \
defined(AMD64Architecture)
#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
#endif
#define StandardDefines -DCSRG_BASED
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
#define XawI18nDefines -DUSE_XWCHAR_STRING
#define HasMakefileSafeInclude YES
#define IncludeMakefile(file) @@# dependencies are in .depend
#define DependFileName .depend
#ifndef DoLoadableServer
# define DoLoadableServer YES
#endif
#ifndef ForceNormalLib
# define ForceNormalLib YES
#endif
#define HasMkstemp YES
#define OptimizedCDebugFlags -O
#ifndef PreIncDir
# define PreIncDir /usr/include
#endif
#define HasGroff YES
#define NroffCmd env GROFF_NO_SGR=y groff -Tascii
#define SetTtyGroup YES
#ifndef ExtraFilesToClean
# define ExtraFilesToClean *.core
#endif
#define DefaultUserPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR):/usr/local/bin
#define DefaultSystemPath /bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR)
#ifndef SystemManDirectory
# define SystemManDirectory /usr/share/man
#endif
#define InstKmemFlags -g kmem -m 2755
/*
* Compress manual pages
*/
#ifndef CompressManPages
# define CompressManPages YES
#endif
#define HasBsdMake YES
#ifndef StaticLibrary
# define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
#endif
#define DlLibrary -Wl,--export-dynamic
#ifndef PamLibraries
# define PamLibraries -lpam DlLibrary
#endif
#ifndef SharedLibXdmGreet
# define SharedLibXdmGreet NO
#endif
/*
* On FreeBSD, the run-time loader will use the built-in "rpath" before
* LD_LIBRARY_PATH. This means that utilities like mkfontdir will load
* installed libraries (if they exist) in preference to the ones in the
* build tree, even though LD_LIBRARY_PATH points to the build tree.
* This can result in the build failing. One way to avoid this is to
* pre-load the libraries from the build tree.
*
* There should be a better way than this hack...
*/
#if UseElfFormat
#ifndef PreloadFontSetup
#define PreloadFontSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(XFONTPRELOADPATTERN))`"
#endif
#ifndef PreloadFreetypeSetup
#define PreloadFreetypeSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN))`"
#endif
#ifndef PreloadXFTSetup
#define PreloadXFTSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN) $(XFTPRELOADPATTERN) $(XRENDERPRELOADPATTERN) $(FCPRELOADPATTERN))`"
#endif
#endif
#ifndef HasCookieMaker
# define HasCookieMaker YES
# define MkCookieCmd \
'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"'
#endif
/*
* A hack to work around an optimization problem with gcc 2.95.2 - 2.95.4
*/
#if (GccMajorVersion == 2 && GccMinorVersion == 95)
# define GccOptBug295
#endif
#include <bsdLib.rules>
#include <xorg.cf>
/*
* Set version numbers before making makefiles.
*
* X11r5 only builds using the berkeley libraries and compiler. Make
* sure your path includes /bsd43/bin before /bin/ or /usr/bin.
*/
#ifndef OSName
#define OSName RISCOS
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 50
#endif
XCOMM platform: $Xorg: Mips.cf,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
XCOMM operating system: OSName
/***************************************************************************
* Platform-specific parameters *
***************************************************************************/
#define HasVoidSignalReturn NO
#define SetTtyGroup YES
#define UnalignedReferencesAllowed NO /* if arbitrary deref okay */
#define HasBsearch NO
#define MipsArchitecture
#define MakeEnv -e
#define DefaultCCOptions -signed -systype bsd43 -Olimit 2000 -Wf,-XNd8400,-XNp12000
#define StandardDefines -DMips -DBSD43
#define PostIncDir /usr/include/bsd43
#define ExtraLibraries -lmld
#define ArCmd ar clr
#define BootstrapCFlags -DMips
#define InstallCmd /etc/mipsinstall -f
#define MakeCmd make MakeEnv
#define DoRanlibCmd NO
#define AllocateLocalDefines -DINCLUDE_ALLOCA_H
/***************************************************************************
* *
* DEFINE PARAMETERS FOR BUILDING *
* *
***************************************************************************/
#define XmipsServer YES
/***************************************************************************
* *
* OVERRIDE ANY CONFIGURATION PARAMETERS FROM Imake.tmpl *
* *
***************************************************************************/
#define SpecialMalloc NO
#define PrimaryScreenResolution 110
#define ConstructMFLAGS NO /* build MFLAGS from MAKEFLAGS */
#define DefaultUserPath /usr/net:/bin:/usr/bin:$(BINDIR):/usr/ucb
#define DefaultSystemPath /usr/net:/bin:/usr/bin:/etc:$(BINDIR):/usr/ucb
/* mips manuals are really complicated. This certainly won't work. */
#define ManDirectoryRoot /man/cat
#define ManSourcePath $(MANPATH)/man
#define InstKmemFlags -g sys -m 2711
XCOMM platform: $Xorg: Oki.cf,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
#ifndef OSName
#define OSName Unix System V/860 Release 4.0 Version 3
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 3
#endif
#define BootstrapCFlags -DOki
#define SystemV4 YES
#define HasLdRunPath YES
#define ConnectionFlags -DTCPCONN -DUNIXCONN -DLOCALCONN
#define SetTtyGroup YES
#define HasPutenv YES
#define HasPoll YES
#define PatheticCpp YES
#define CcCmd /usr/bin/cc
#define StandardDefines -DSVR4 -Di860
#define DefaultCCOptions -Xa
#define BuildServer NO
#define ToolkitStringsABIOptions -intelabi
#include <sv4Lib.rules>
XCOMM $OpenBSD: OpenBSDLib.rules,v 1.1 2000/10/09 20:43:58 matthieu Exp $
/*
* OpenBSD shared library rules
*/
XCOMM $XFree86: xc/config/cf/OpenBSDLib.rules,v 1.10 2003/10/31 20:49:03 herrb Exp $
#ifndef UseElfFormat
#define UseElfFormat NO
#endif
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef ForceNormalLib
#define ForceNormalLib YES
#endif
#ifndef UseRpath
#define UseRpath YES
#endif
#ifndef BaseShLibReqs
#define BaseShLibReqs /* -lc implied by $(CC) */
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <OpenBSDLib.tmpl>
#endif
#ifndef RpathLoadFlags
#if UseRpath
#define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
#else
#define RpathLoadFlags /**/
#endif
#endif
#ifndef LibraryRpathLoadFlags
#define LibraryRpathLoadFlags RpathLoadFlags
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -shared PositionIndependentCFlags LibraryRpathLoadFlags
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -fPIC
#endif
#ifndef PositionIndependentCplusplusFlags
#define PositionIndependentCplusplusFlags -fPIC
#endif
#if UseElfFormat
#ifndef ExtraLoadFlags
#ifdef UseInstalled
#define ExtraLoadFlags RpathLoadFlags
#else
#define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR)
#endif
#endif
#ifndef HardCodeLibdirFlag
#define HardCodeLibdirFlag RpathLoadFlags
#endif
#endif /* UseElfFormat */
/*
* InstallSharedLibrary - generate rules to install the shared library.
* NOTE: file must be executable, hence "INSTBINFLAGS"
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist @@\
$(RM) $@~ @@\
set -x; \ @@\
(cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -Wl,-soname,$@\ @@\
solist $(REQUIREDLIBS) BaseShLibReqs); @@\
LinkBuildSonameLibrary($@) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev)
#endif /* SharedLibraryTarget */
/*
* SharedDepLibraryTarget - generate rules to create a shared library.
*/
#ifndef SharedDepLibraryTarget
#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): deplist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
(cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
LinkBuildLibrary($@) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.so.rev)
#endif /* SharedDepLibraryTarget */
#ifndef SharedDepModuleTarget
#define SharedDepModuleTarget(name,deps,solist) @@\
AllTarget(name) @@\
@@\
name: deps @@\
$(RM) $@~ @@\
$(CC) -o $@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@@\
clean:: @@\
$(RM) name
#endif /* SharedDepModuleTarget */
#ifndef SharedDriModuleTarget
#define SharedDriModuleTarget(name,deps,solist) @@\
AllTarget(name) @@\
@@\
name: deps @@\
$(RM) $@~ $@.map @@\
$(CC) -o $@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS) BaseShLibReqs @@\
$(RM) $@ $@.map @@\
$(MV) $@~ $@ @@\
@@\
clean:: @@\
$(RM) name @@\
$(RM) name.map
#endif /* SharedDriModuleTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */
/*
* DynamicModuleTarget - build a module to be dynamically loaded
*/
#ifdef DynamicModuleTarget
#undef DynamicModuleTarget
#define DynamicModuleTarget(module,modlist) @@\
AllTarget(module) @@\
@@\
module: modlist @@\
RemoveFile($@) @@\
$(CC) -o $@ $(SHLIBLDFLAGS) modlist @@\
@@\
clean:: @@\
RemoveFile(module)
#endif /* DynamicModuleTarget */
XCOMM platform: $XFree86: xc/config/cf/QNX4.cf,v 1.3 2000/07/07 20:06:56 tsi Exp $
#define StripInstalledPrograms NO
#define BuildServer YES
#define DoLoadableServer NO /* sorry, are u listenning QSSL? */
#define BuildLBX YES /* For now */
#define ExpandManNames YES
#define ByteOrder X_LITTLE_ENDIAN
#ifndef OSName
#define OSName QNX4
#endif
#ifndef OSVendor
#define OSVendor QNX Corp.
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 25
#endif
/* Use a non-broken shell ... */
#define BourneShell /usr/local/bin/pdksh
#define OSDefines -DQNX4 -DQNX -D__QNX__ -DNO_REGEX -DSTRINGS_ALIGNED -D__i386__
#define SourceDefines -D_POSIX_SOURCE
#define DoRanlibCmd NO
#undef ArCmd
#define ArCmd wlib -b -c -p=256
#define MkdirHierCmd mkdir -p
#ifdef UseInstalled
#define InstallCmd install
#else
#define InstallCmd $(SHELL) $(CONFIGSRC)/util/install.sh
#endif
#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver YES
#endif
#define DefaultCCOptions -5s -Otx -Wc,-r -b -j -Wc,-ei -N128000 -zp4 -mf
#define LibraryCCOptions -5s -Otx -Wc,-r -b -j -Wc,-ei -zp4 -mf
#define ServerCCOptions -5s -Otx -Wc,-r -T1 -M -N4096000 -j -b -mf -Wc,-ei -Wc,-s -zp4 -llibmalloc
#define LocalLibraries
#define ExtraLibraries -lsocket -lunix
#define CLibrary
#define PosixLibraries
#define ConnectionFlags -DUNIXCONN -DTCPCONN
#define CppCmd /usr/X11R6/bin/cpp
#define HasShadowPasswd YES
#define HasLibCrypt YES
#define SharedLibXdmGreet NO
#define HasShm NO /* For now as well */
#define HasSockets YES
#define HasPutenv YES
#define HasCbrt NO
#define HasVarDirectory NO
#define HasSnprintf YES
#define HasBSD44Sockets YES
#define HasPerl NO
#define LogDirectory /usr/adm
#define XLogFile XFree86
#define BuildHtmlManPages NO /* We don't want HTML manpages */
#define BuildRman NO
#define AvoidNullMakeCommand YES
#define CompressAllFonts YES
#define Malloc0ReturnsNull YES
#define UseInternalMalloc NO
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#ifndef NeedWidePrototypes
#define NeedWidePrototypes NO
#endif
#define LexCmd flex -l
#define LexLib -lfl
#define TermcapLibrary -lncurses
#ifndef UseStaticTermcapLib
#define UseStaticTermcapLib NO
#endif
#define StandardCppDefines -traditional StandardDefines
#define StandardDefines OSDefines SourceDefines
#define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
#define ServerExtraDefines XFree86ServerDefines
#define ExtraFilesToClean *.err *.map
#include <QNX4.rules>
#include <xorg.cf>
XCOMM platform: $XFree86: xc/config/cf/QNX4.rules,v 1.1 1999/12/27 00:45:43 robin Exp $
XCOMM Rules to work around wlib for QNX...
#define LinkFile(tofile, fromfile) @@\
tofile:: fromfile @@\
$(CP) fromfile tofile @@\
@@\
includes:: tofile @@\
@@\
depend:: tofile @@\
@@\
clean:: @@\
RemoveFile(tofile)
#define ObjectFromSpecialSource(dst, src, flags) @@\
NoConfigRec(dst.c) @@\
@@\
dst.c: src.c @@\
RemoveFile($@) @@\
$(CP) $? $@ @@\
@@\
SpecialCObjectRule(dst,NullParameter,flags) @@\
@@\
includes:: dst.c @@\
@@\
depend:: dst.c @@\
@@\
clean:: @@\
RemoveFile(dst.c)
#define ObjectFromSpecialAsmSource(dst, src, flags) @@\
dst.S: src.S @@\
RemoveFile($@) @@\
$(CP) $? $@ @@\
@@\
dst.o: dst.S @@\
AssembleObject(dst,flags) @@\
@@\
dst.i: dst.S @@\
CPPOnlyAsm(dst,flags) @@\
@@\
depend:: dst.S @@\
@@\
clean:: @@\
RemoveFile(dst.S)
/* This is the rule to make reloc. OMF objects. We use a little
* trick which works only for OMF....
* "catomf" can be downloaded from
* http://prdownloads.sourceforge.net/openqnx/catomf.tar.gz
* or contact Rick Lake <rick@anp.nl>
*/
#define NormalRelocatableTarget(objname,objlist) @@\
AllTarget(objname.Osuf) @@\
@@\
objname.Osuf: objlist $(EXTRALIBRARYDEPS) @@\
RemoveFile($@) @@\
/usr/local/bin/catomf -O $@ objlist
XCOMM platform: $Xorg: Win32.cf,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
#ifndef OSName
#define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName OSMajorVersion./**/OSMinorVersion
#ifndef CompilerMajorVersion
/* 0 == NT 3.1 Win32 SDK, 2 == MSVC++ 2, 4 == MSVC 4 */
#define CompilerMajorVersion 4
#endif
#define BootstrapCFlags -DWIN32
#ifdef _M_IX86
#define CpuDefines -D_X86_
#endif
/* brain-damaged windows headers will not compile with -Za */
#define StandardDefines -DWIN32 -DWIN32_LEAN_AND_MEAN -D_DLL -D_MT -D__STDC__ CpuDefines
#if CompilerMajorVersion < 4
#define DefaultCCOptions -nologo -batch -G4 -W2
#else
#define DefaultCCOptions -nologo -G4 -W2
#endif
#if CompilerMajorVersion < 4
#define DebuggableCDebugFlags -Zi
#else
#define DebuggableCDebugFlags -Zi -Od
#endif
#define ThreadedX YES
#define HasThreadSafeAPI NO
#define CpCmd copy
#define LnCmd copy
#define MvCmd ren
#define RmCmd del
#ifndef RmTreeCmd
XCOMM choices here include:
XCOMM o `del /q /s` and live with pressing the "any" key
XCOMM o `deltree, copied from MS-DOS 5
XCOMM o `rm -rfx` from the SDK Subscription (MSTOOLS in your Path)
XCOMM o `rm -rf` from the GNU file utilities
XCOMM We're using the GNU file utilities
#define RmTreeCmd rm -rf
#endif
#define CcCmd cl
#define HasCplusplus YES
#define CplusplusCmd cl
#if CompilerMajorVersion < 4
#define PreProcessCmd CcCmd -nologo -batch -EP
#define CppCmd CcCmd -nologo -batch -E
#else
#define PreProcessCmd CcCmd -nologo -EP
#define CppCmd CcCmd -nologo -E
#endif
#define PatheticCpp YES
#define ConstructMFLAGS YES
#if (CompilerMajorVersion == 0)
#define ArCmdBase lib32
#else
#define ArCmdBase lib
#endif
#define ArCmd ArCmdBase
#define CplusplusCmd cl
#define MkdirHierCmd $(CONFIGSRC:/=\)\util\mkdirhier
#define InstallCmd copy
#define InstPgmFlags /**/
#define InstBinFlags /**/
#define InstUidFlags /**/
#define InstLibFlags /**/
#define InstIncFlags /**/
#define InstManFlags /**/
#define InstDatFlags /**/
#define InstallFlags /**/
#if (CompilerMajorVersion == 0)
#define ExtraLibraries crtdll.lib kernel32.lib wsock32.lib
#elif (CompilerMajorVersion < 4)
#define ExtraLibraries msvcrt.lib kernel32.lib wsock32.lib
#else
#define ExtraLibraries msvcrt.lib kernel32.lib wsock32.lib -link -nodefaultlib:libc
#endif
#define MakeCmd nmake -nologo
#if (CompilerMajorVersion == 0)
#define LdCmd link32
#else
#define LdCmd link
#endif
#define MathLibrary
#define HasSymLinks NO
#define HasVarDirectory NO
#define HasPutenv YES
#define Osuf obj
#ifndef CCsuf
#define CCsuf cxx
#endif
#define BuildServer NO
#define ConnectionFlags -DTCPCONN
/* override as necessary in site.def/host.def */
#ifndef StdIncDir
#define StdIncDir C:/MSDEVSTD/INCLUDE
#endif
#define LdPreLib /**/
#define LdPostLib /**/
#ifndef UseInstalled
#define ImakeCmd $(IMAKESRC:/=\)\imake
#define DependCmd $(DEPENDSRC:/=\)\makedepend
#endif
#define DependFlags -D_WIN32
#define FilesToClean *.bak *.obj *.lib make.log
#define ShLibDir $(BINDIR)
#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)
#define XawI18nDefines -DHAS_WCHAR_H
#define UseRgbTxt YES
#define HasCbrt NO
#define HasFfs NO
#define HasXdmAuth NO
/* the following components haven't been ported yet */
#define BuildLBX NO
#define BuildXprint NO
#define XprtServer NO
#include <Win32.rules>
XCOMM $Xorg: WinLib.tmpl,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
XCOMM $XFree86: xc/config/cf/WinLib.tmpl,v 1.4tsi Exp $
#define SharedOldXReqs $(LDPRELIBS) $(XONLYLIB)
#define SharedXtReqs $(LDPRELIBS) $(XONLYLIB)
#define SharedXawReqs $(LDPRELIBS) $(XMULIB) $(XTOOLLIB) $(EXTRAXAWREQS) $(XLIB)
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIBS) $(XONLYLIB)
#define SharedXiReqs $(LDPRELIBS) $(XLIB)
#define SharedXtstReqs $(LDPRELIBS) $(XLIB)
#define SharedSMReqs $(LDPRELIBS) $(ICELIB)
#define SharedXpReqs $(LDPRELIBS) $(XAUTHLIB) $(XLIB)
#define SharedXpmReqs $(LDPRELIBS) $(XLIB)
XCOMM platform: $Xorg: apollo.cf,v 1.3 2000/08/17 19:41:46 cpqbld Exp $
/*
* Minimally tested, and only in the bsd4.3 environment. X_NOT_POSIX is not
* in Xosdefs.h, because we suspect someone might want to try building with
* POSIX support in the sysv environment (the OS doc seems to imply that
* POSIX is supported in sysv).
*/
#ifndef OSName
#define OSName Domain/OS SR10.3
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 10
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 3
#endif
#ifndef CCompilerMajorVersion
#define CCompilerMajorVersion 6
#endif
#ifndef CCompilerMinorVersion
#define CCompilerMinorVersion 8
#endif
#define StandardDefines -DX_NOT_POSIX
#define BuildServer NO
#define HasNdbm YES
#define ConnectionFlags -DTCPCONN
#define InstallManPageLong(file,destdir,dest) @@\
install.man:: file.man @@\
MakeDir($(DESTDIR)destdir) @@\
$(NROFF) $(MANMACROS) file.man > file.mantxt @@\
$(INSTALL) -c $(INSTMANFLAGS) file.mantxt $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
$(RM) file.mantxt
XCOMM platform: $Xorg: bsd.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM $XFree86: xc/config/cf/bsd.cf,v 1.2 1998/09/06 04:46:50 dawes Exp $
#ifndef OSName
#define OSName 4.3bsd
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 3
#endif
#define BootstrapCFlags -DNOSTDHDRS
#define StandardDefines -DNOSTDHDRS -DCSRG_BASED
#define HasVoidSignalReturn NO
#define HasBsearch NO
#define DirFailPrefix -
#define AvoidNullMakeCommand YES
#define BuildServer NO
#ifdef VaxArchitecture
#define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */
#endif
#if OSMajorVersion >= 4 && OSMinorVersion >= 3
#define SetTtyGroup YES
#endif
#if OSMajorVersion==4 && OSMinorVersion>=2
#define HasUsableFileMmap YES
#endif
XCOMM $Xorg: bsdLib.tmpl,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM $XFree86: xc/config/cf/bsdLib.tmpl,v 3.23 2003/11/04 01:59:31 dawes Exp $
/*
* NetBSD/FreeBSD/OpenBSD shared library template
*/
#if !UseElfFormat
#ifndef SharedXlibi18nReqs
#define SharedXlibi18nReqs $(LDPRELIB) $(XONLYLIB)
#endif
#ifndef SharedXtReqs
#define SharedXtReqs /**/
#endif
#ifndef SharedXawReqs
#define SharedXawReqs /**/
#endif
#ifndef SharedXmuReqs
# if !defined(Mc68020Architecture) || !defined(OpenBSDArchitecture)
# define SharedXmuReqs $(LDPRELIBS) $(XTOOLONLYLIB) $(XONLYLIB)
# else
/* At least the hp300 and the sun3 OpenBSD ports need that */
# define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
# endif
#endif
#ifndef SharedXcursorReqs
#define SharedXcursorReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#endif
#else /* UseElfFormat */
/*
* NetBSD/FreeBSD/OpenBSD (ELF) shared library template
* Cloned from Linux ELF rules, but with a minor number.
*/
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
#endif
/* Allow for libpthread, as overridden by OS definitions */
#if !defined(SharedX11Reqs)
#define SharedX11Reqs
#endif
#define SharedXlibi18nReqs $(LDPRELIB) $(XONLYLIB)
#define SharedOldXReqs $(LDPRELIBS) $(XONLYLIB)
#ifndef SharedXtReqs
#define SharedXtReqs $(LDPRELIBS) $(XONLYLIB) $(SMLIB) $(ICELIB)
#endif
#ifndef SharedXawReqs
#define SharedXawReqs $(LDPRELIBS) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWREQS) $(XLIB)
#endif
#define SharedXaw7Reqs $(LDPRELIBS) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXaw6Reqs $(LDPRELIBS) $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
#define SharedXmuuReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXextReqs $(LDPRELIBS) $(XONLYLIB)
#define SharedXiReqs $(LDPRELIBS) $(XLIB)
#define SharedXpReqs $(LDPRELIB) $(XLIB)
#define SharedXpmReqs $(LDPRELIB) $(XLIB)
#define SharedXrandrReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedXrenderReqs $(LDPRELIB) $(XLIB)
#define SharedXtstReqs $(LDPRELIBS) $(XLIB)
#define SharedXvReqs $(LDPRELIB) $(XLIB)
#define SharedSMReqs $(LDPRELIBS) $(ICELIB)
#ifndef SharedGLReqs
#define SharedGLReqs $(LDPRELIBS) $(XLIB)
#endif
#ifndef SharedGLUReqs
#define SharedGLUReqs $(LDPRELIB) $(XLIB) $(GLXLIB)
#endif
#define SharedXcursorReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedDPSReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
#define SharedDPSTKReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(DPSLIB) $(XLIB)
#define SharedpsresReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
#define SharedXResReqs $(LDPRELIB) $(XLIB)
#define SharedXfontcacheReqs $(LDPRELIB) $(XLIB)
#define SharedXineramaReqs $(LDPRELIB) $(XLIB)
#define SharedXssReqs $(LDPRELIB) $(XLIB)
#define SharedXvMCReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86dgaReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86miscReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86vmReqs $(LDPRELIB) $(XLIB)
#define SharedxkbfileReqs $(LDPRELIB) $(XONLYLIB)
#define SharedxkbuiReqs $(LDPRELIB) $(XKBFILELIB) $(XONLYLIB)
#define SharedXfixesReqs $(LDPRELIB) $(XLIB)
#define SharedXdamageReqs $(LDPRELIB) $(XFIXESLIB) $(XLIB)
#define SharedXcompositeReqs $(LDPRELIB) $(XDAMAGELIB) $(XFIXESLIB) $(XLIB)
#define SharedXevieReqs $(LDPRELIB) $(XLIB)
#endif /* UseElfFormat */
XCOMM $XFree86: xc/config/cf/bsdiLib.rules,v 3.3 2003/10/09 22:43:18 herrb Exp $
/*
* BSDI shared library rules (converted from SVr4/Linux rules)
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef ForceNormalLib
#define ForceNormalLib YES
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <bsdiLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -shared
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -fPIC
#endif
#ifndef PositionIndependentCplusplusFlags
#define PositionIndependentCplusplusFlags -fPIC
#endif
#ifndef BaseShLibReqs
#define BaseShLibReqs -lc
#endif
#ifndef RanlibInstFlags
#define RanlibInstFlags -t
#endif
#ifndef SharedCCLdCmd
/* NOT $(CC), which is probably 'shlicc'. */
#define SharedCCLdCmd cc
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.so) @@\
$(LN) Concat(lib,libname.so.rev) Concat($(DESTDIR)dest/lib,libname.so)
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist @@\
$(RM) $@~ @@\
@SONAME=`echo $@ | sed 's/\(lib[^\.]*\.so\.[0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; set -x; \ @@\
(cd down; $(CCENVSETUP) SharedCCLdCmd -o up/$@~ $(SHLIBLDFLAGS) \
-Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \
$(RM) $$SONAME; $(LN) $@ $$SONAME; \
LinkBuildSonameLibrary($$SONAME) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
@@\
clean:: @@\
@SONAME=`echo Concat(lib,libname.so.rev) | sed 's/\(lib[^\.]*\.so\.[0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) $$SONAME @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedLibraryTarget */
/*
* SharedDepLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedDepLibraryTarget
#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): deplist @@\
$(RM) $@~ @@\
@SONAME=`echo $@ | sed 's/\(lib[^\.]*\.so\.[0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; set -x; \ @@\
(cd down; $(CCENVSETUP) SharedCCLdCmd -o up/$@~ $(SHLIBLDFLAGS) \
-Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \
$(RM) $$SONAME; $(LN) $@ $$SONAME; \
LinkBuildSonameLibrary($$SONAME) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.so) @@\
$(LN) $@ Concat(lib,libname.so) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.so)) @@\
@@\
clean:: @@\
@SONAME=`echo Concat(lib,libname.so.rev) | sed 's/\(lib[^\.]*\.so\.[0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) $$SONAME @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedDepLibraryTarget */
#ifndef SharedDepModuleTarget
#define SharedDepModuleTarget(name,deps,solist) @@\
AllTarget(name) @@\
@@\
name: deps @@\
$(RM) $@~ @@\
$(CCENVSETUP) SharedCCLdCmd -o $@~ $(SHLIBLDFLAGS) \
solist $(REQUIREDLIBS) BaseShLibReqs @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@@\
clean:: @@\
$(RM) name
#endif /* SharedDepModuleTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */
/*
* Hacks for BSD/OS static shared libraries.
* We replace the normal library build and install rules.
*/
SHLIB_MAP=$${SHLIB_MAP-/etc/shlib.map}
#define BsdiStaticLibraryName(libname)Concat(Concat(lib,libname),_s)
#define BsdiStaticStubLibraryName(libname)BsdiStaticLibraryName(libname).a
#define MakeBsdiStaticSharedLibrary(libname) \
@SHARED=; \
eval $$( (echo 'MAP() { [ "X$$1" = "X-l'libname'" ] || return 0;' \
'echo "TADDR=$$2;";' \
'echo "DADDR=$$3;";' \
'echo "SHARED=$$5;";' \
'shift 5; echo "ARGS='"'"'"$$@"'"'"';";' \
'exit 0; }'; cat $(SHLIB_MAP)) | sh); \
[ -n "$$SHARED" ] || exit 0; \
echo building static shared libname library; \
shlib -m $(SHLIB_MAP) -t $$TADDR -d $$DADDR \
-n BsdiStaticLibraryName(libname) \
-s BsdiStaticStubLibraryName(libname) \
$$( [ -f 'loader.lib'libname'.c' ] && \
echo -b 'loader.lib'libname'.c') \
$$( [ -f 'lib'libname'.const' ] && \
echo -c 'lib'libname'.const') \
$$( [ -f 'lib'libname'.except' ] && \
echo -e 'lib'libname'.except') \
$$( [ -f $$SHARED ] && echo -i $$SHARED) \
$$ARGS LibraryTargetName(libname)
#define InstallBsdiStaticSharedLibrary(libname) \
@SHARED=; \
eval $$( (echo 'MAP() { [ "X$$1" = "X-l'libname'" ] || return 0;' \
'echo "SHARED=$$5;";' \
'echo "STUB=$$(dirname $$4)/$$(basename $$5).a;";' \
'exit 0; }'; cat $(SHLIB_MAP)) | sh); \
[ -n "$$SHARED" ] || exit 0; \
echo installing static shared libname library; \
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) \
BsdiStaticLibraryName(libname) $(DESTDIR)$$SHARED; \
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) \
BsdiStaticStubLibraryName(libname) $(DESTDIR)$$STUB; \
RanLibrary($(RANLIBINSTFLAGS) $(DESTDIR)$$STUB) @@\
-@eval $$( (echo 'MAP() { [ "X$$1" = "X-l'libname'" ] || return 0;' \
'echo "LDIR=$$(dirname $$4)"; exit 0; }'; \
cat $(SHLIB_MAP)) | sh); \
[ -f Concat(loader.lib,libname.c) ] && \
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) \
Concat(loader.lib,libname.c) \
$(DESTDIR)$$LDIR/Concat(loader.lib,libname.c); \
[ -f Concat(lib,libname.const) ] && \
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) \
Concat(lib,libname.const) \
$(DESTDIR)$$LDIR/Concat(lib,libname.const); \
[ -f Concat(lib,libname.except) ] && \
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) \
Concat(lib,libname.except) \
$(DESTDIR)$$LDIR/Concat(lib,libname.except); exit 0
#ifndef UnsharedLibraryTarget
#define UnsharedLibraryTarget(libname,objlist,down,up) @@\
AllTarget(LibraryTargetName(libname)) @@\
@@\
LibraryTargetName(libname): objlist @@\
RemoveFile($@) @@\
(cd down; MakeLibrary(up/$@,objlist)) @@\
RanLibrary($@) @@\
_LinkBuildLibrary($@) @@\
MakeBsdiStaticSharedLibrary(libname) @@\
@@\
clean:: @@\
$(RM) BsdiStaticLibraryName(libname) BsdiStaticStubLibraryName(libname)
#endif /* UnsharedLibraryTarget */
#ifndef UnsharedLibraryTarget3
#define UnsharedLibraryTarget3(libname,objlist1,objlist2,objlist3,down,up) @@\
UnsharedLibraryTarget(libname,objlist1 objlist2 objlist3,down,up)
#endif /* UnsharedLibraryTarget3 */
#ifndef InstallLibrary
#define InstallLibrary(libname,dest) @@\
install:: LibraryTargetName(libname) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) \
LibraryTargetName(libname) $(DESTDIR)dest @@\
RanLibrary($(RANLIBINSTFLAGS) \
$(DESTDIR)dest/LibraryTargetName(libname)) @@\
InstallBsdiStaticSharedLibrary(libname)
#endif /* InstallLibrary */
XCOMM $XFree86: xc/config/cf/bsdiLib.tmpl,v 3.3 2003/05/29 21:56:57 herrb Exp $
/*
* BSDI shared library template (converted from Linux template)
*/
/*
* Linux ELF shared libraries (which BSDI uses)
* are deficient in link semantics...
*/
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
#endif
#define FrescoSysLibs CplusplusLibC MathLibrary
#define SharedX11Reqs
#define SharedXlibi18nReqs $(LDPRELIB) $(XONLYLIB)
#define SharedOldXReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB)
#define SharedXawReqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWREQS) $(XLIB)
#define SharedXaw7Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXaw6Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXmuReqs $(LDPRELIB) $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXiReqs $(LDPRELIB) $(XLIB)
#define SharedXtstReqs $(LDPRELIB) $(XLIB)
#define SharedSMReqs $(LDPRELIB) $(ICELIB)
#define SharedFrescoReqs $(LDPRELIB) $(XONLYLIB) FrescoSysLibs
#define SharedXtfReqs $(LDPRELIB) $(FRESCOLIB) $(XTOOLLIB) $(XLIB) FrescoSysLibs
/* Motif lib requirements */
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB)
#define SharedXmReqs $(LDPRELIB) SharedXReqs
#define SharedMrmReqs $(LDPRELIB) $(XMLIB) SharedXReqs
#define SharedUilReqs $(LDPRELIB) $(XMLIB) SharedXReqs
/*
* @OSF_COPYRIGHT@
* COPYRIGHT NOTICE
* Copyright (c) 1990, 1991, 1992, 1993, 1998 The Open Group , Inc.
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
* the full copyright text.
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1996 Hewlett-Packard Company.
* (c) Copyright 1996 International Business Machines Corp.
* (c) Copyright 1996 Sun Microsystems, Inc.
* (c) Copyright 1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*/
XCOMM $Xorg: cde.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
/* Note whether we are the top level project. */
#ifndef SeenTopLevelProject
# define SeenTopLevelProject YES
# define CDEIsTopLevelProject YES
#else
# define CDEIsTopLevelProject NO
#endif
/* Include the Motif project rules file. */
#include <Motif.rules>
/* Use the in-tree CDE by default. */
#ifndef UseInstalledCDE
# define UseInstalledCDE NO
#endif
#ifdef UseInstalled
# undef UseInstalledCDE
# define UseInstalledCDE YES
#endif
#ifndef ImportCDE
# ifdef UseImports
# define ImportCDE YES
# else
# define ImportCDE NO
# endif
#endif
#if UseInstalledCDE
# undef ImportCDE
# define ImportCDE NO
#endif
/* If CDE has a different ProjectRoot we need to search the regular ones too. */
#ifdef CDEProjectRoot
# define CUsrLibDirPath Concat(MUsrLibDirPath,:$(CDEPROJECTROOT)/lib)
#else
# define CUsrLibDirPath MUsrLibDirPath
#endif
#ifdef UsrLibDirPath
# undef UsrLibDirPath
#endif
#define UsrLibDirPath CUsrLibDirPath
#if ImportCDE
# define CLdPreLibs -L$(CDELIBSRC)
#elif defined(UseInstalledCDE) && defined(CDEProjectRoot)
# define CLdPreLibs -L$(CDEPROJECTROOT)/lib
#else
# define CLdPreLibs /**/
#endif
#ifdef LdPreLibs
# undef LdPreLibs
#endif
#define LdPreLibs LdPreLib CLdPreLibs MLdPreLibs XLdPreLibs
#ifdef CDEProjectRoot
# define CLdPostLibs -L$(CDEPROJECTROOT)/lib
#else
# define CLdPostLibs /**/
#endif
#ifdef LdPostLibs
# undef LdPostLibs
#endif
#define LdPostLibs LdPostLib CLdPostLibs MLdPostLibs XLdPostLibs
#ifdef TopIncludes
# undef TopIncludes
#endif
#define TopIncludes TopInclude $(TOP_CDE_INCLUDES) $(TOP_MOTIF_INCLUDES) $(TOP_X_INCLUDES)
#if UseInstalledCDE && defined(CDEProjectRoot)
# define CDEBuildLibPath $(CDEPROJECTROOT)/lib
#elif UseInstalledCDE
# define CDEBuildLibPath $(USRLIBDIR)
#elif ImportCDE
# define CDEBuildLibPath $(CDELIBSRC)
#else
# define CDEBuildLibPath $(TOP)/exports/lib
#endif
#ifdef BuildLibPath
# undef BuildLibPath
#endif
#ifdef SystemBuildLibPath
# define BuildLibPath \
$(DTENVLIBDIR):$(MOTIFENVLIBDIR):$(XENVLIBDIR):$(SYSTEMENVLIBDIR)
#else
# define BuildLibPath $(DTENVLIBDIR):$(MOTIFENVLIBDIR):$(XENVLIBDIR)
#endif
#ifndef CdeInstallationTop
# define CdeInstallationTop /usr/dt
#endif
#ifndef CdeConfigurationTop
# define CdeConfigurationTop /etc/dt
#endif
#ifndef CdeLogFilesTop
# define CdeLogFilesTop /var/dt
#endif
#ifndef CdeUserTop
# define CdeUserTop .dt
#endif
#ifndef CdeProjectDefines
# define CdeProjectDefines \
-DANSICPP -DMULTIBYTE -DNLS16 \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion
#endif
#ifdef ProjectDefines
# undef ProjectDefines
#endif
#define ProjectDefines X11ProjectDefines MotifProjectDefines CdeProjectDefines
#ifndef CdeCplusplusProjectDefines
# define CdeCplusplusProjectDefines CdeProjectDefines
#endif
#ifdef CplusplusProjectDefines
# undef CplusplusProjectDefines
#endif
#define CplusplusProjectDefines \
X11CplusplusProjectDefines MotifCplusplusProjectDefines CdeCplusplusProjectDefines
/*
* Doc build rules
*/
/*
* MakeSdlVolume - generate rules to create an SDL volume, in the specified
* directory, from an SGML source doc.
* Note: the volume name must match the directory name.
*/
#ifndef MakeSdlVolume
#define MakeSdlVolume(vol,dir,env,opts,dep) @@\
all:: dir/vol.sdl @@\
@@\
dir/vol.sdl: dep @@\
MakeDir(dir) @@\
env $(DTDOCBOOK) $(DTDOCBOOKOPTIONS) opts -o dir/vol.sdl vol/book.sgm @@\
@@\
clean:: @@\
$(RM) dir/vol.sdl vol/book.log
#endif
/*
* MakeTocFile - generate rules to create an SGML TOC file.
* Note: the volume name must match the directory name.
*/
#ifndef MakeTocFile
#define MakeTocFile(vol,env,opts,ttle,ident,dep) @@\
all:: vol/TOC.sgm @@\
@@\
vol/TOC.sgm: dep @@\
MakeDir($(DTINFOGENTMPDIR)) @@\
env $(DTINFOGEN) tocgen -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -f vol/TOC.sgm -id ident -title ttle vol/book.sgm @@\
@@\
clean:: @@\
$(RM) vol/TOC.sgm
#endif
#ifndef MakeTocFile3
#define MakeTocFile3(vol,env,opts,ttle,ident,dep1,dep2,dep3) @@\
all:: vol/TOC.sgm @@\
@@\
vol/TOC.sgm: dep1 @@\
vol/TOC.sgm: dep2 @@\
vol/TOC.sgm: dep3 @@\
MakeDir($(DTINFOGENTMPDIR)) @@\
env $(DTINFOGEN) tocgen -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -f vol/TOC.sgm -id ident -title ttle vol/book.sgm @@\
@@\
clean:: @@\
$(RM) vol/TOC.sgm
#endif
/*
* TocFileDep - generate TOC file dependency rule
*/
#ifndef TocFileDep
#define TocFileDep(vol,dep) @@\
vol/TOC.sgm: dep
#endif
/*
* MakeInfolib - generate rules to create an infolib.
*/
#ifndef MakeInfolib
#define MakeInfolib(infolib,bkcase,env,opts,dep) @@\
all:: infolib/bkcase/dtsearch/dtsearch.ocf @@\
@@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep @@\
MakeDir($(DTINFOGENTMPDIR)) @@\
MakeDir(infolib) @@\
env $(DTINFOGEN) build -T $(DTINFOGENTMPDIR) $(DTINFOGENOPTIONS) opts -l infolib bookcase.bc
#endif
/*
* InfolibDep - generate infolib dependency rule - Highly depending on MMDB!
*/
#ifndef InfolibDep
#define InfolibDep(infolib,bkcase,dep) @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep
#endif
#ifndef InfolibDep3
#define InfolibDep3(infolib,bkcase,dep1,dep2,dep3) @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep1 @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep2 @@\
infolib/bkcase/dtsearch/dtsearch.ocf: dep3
#endif
XCOMM platform: $Xorg: convex.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
#ifndef OSName
#define OSName ConvexOS V9.0
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 9
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef VersionNumber
#define VersionNumber 0.0.0.0
#endif
#define BootstrapCFlags -tm c1
#define SetTtyGroup YES
#define BuildServer NO
#define ConnectionFlags -DTCPCONN -DUNIXCONN -DCOVUENETCONN
#define InstallXdmConfig YES
#define XdmDir $(LIBDIR)/xdm-sample
#define XdmServersType fs /* one tab here */
#define HasXmWidgets NO
#define InstKmemFlags -g kmem -m 2711 -v $(VERSION)
#define InstScriptFlags -m 0755 -g bin
#define InstManFlags -m 0444 -g bin
#define DefaultCCOptions -fn -tm c1
#define LibraryCCOptions -fx -tm c1
#define StripFlags -r -x
#define HasSecureOS YES
#define BuildExamples YES
#define BuildMotif NO
#define BuildConvexClients YES
#define MotifBC YES
#define UilCommand uil
#define ExampleDir $(LIBDIR)/examples
#define UnSupDir $(LIBDIR)/unsupported
#define BuildTestExt YES
#define DefaultScreenSaverTime 0
#if BuildTestExt
#define TestDefines -DXTESTEXT1
#else
#define TestDefines /**/
#endif
#define ExtensionOSDefines TestDefines
VERSION = VersionNumber
UIL = UilCommand
UNSUPDIR = UnSupDir /* unsupported examples and code */
/*
* _Use - makes a choice based on UseInstalled.
*/
#ifndef _Use
#ifdef UseInstalled
#define _Use(a,b) a
#else
#define _Use(a,b) b
#endif
#endif
/*
* _UseCat - combination of _Use and Concat.
* exists to avoid problems with some preprocessors
*/
#ifndef _UseCat
#if (defined(__STDC__) || (defined(__convex__) && defined(__stdc__)))
&& !defined(UnixCpp)
#ifdef UseInstalled
#define _UseCat(a,b,c) a##c
#else
#define _UseCat(a,b,c) b##c
#endif
#else
#ifdef UseInstalled
#define _UseCat(a,b,c) a/**/c
#else
#define _UseCat(a,b,c) b/**/c
#endif
#endif
#endif
#if HasXmWidgets
MRESOURCESRC = $(LIBSRC)/Mrm
DEPMRESOURCELIB = _UseCat($(USRLIBDIR),$(MRESOURCESRC),/libMrm.a)
MRESOURCELIB = LoaderLibPrefix _Use(-lMrm,$(DEPMRESOURCELIB))
LINTMRESOURCELIB= _UseCat($(LINTLIBDIR),$(MRESOURCESRC),/llib-lMrm.ln)
XMLIBSRC = $(LIBSRC)/Xm
DEPXMLIB = _UseCat($(USRLIBDIR),$(XMLIBSRC),/libXm.a)
XMLIB = LoaderLibPrefix _Use(-lXm,$(DEPXMLIB))
LINTXMLIB = _UseCat($(LINTLIBDIR),$(XMLIBSRC),/llib-lXm.ln)
UILLIBSRC = $(LIBSRC)/uil
DEPUILLIB = _UseCat($(USRLIBDIR),$(UILLIBSRC),/libUil.a)
UILLIB = LoaderLibPrefix _Use(-lUil,$(DEPUILLIB))
LINTUILLIB = _UseCat($(LINTLIBDIR),$(UILLIBSRC),/llib-lUil.ln)
#endif
XCOMM platform: $Xorg: cray.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
#ifndef OSName
#define OSName UNICOS 8.0
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 8
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#define SystemV YES
#define Malloc0ReturnsNull YES
#define RemoveTargetProgramByMoving YES
#define ArCmd bld cr
#define StandardDefines -DSYSV -DUSG
#define ExecableScripts NO
#define HasPoll NO
#define HasXServer NO
#define ConnectionFlags -DTCPCONN
#define HasShm NO
#define NativeFPFormat CRAY_Float
#ifdef UseInstalled
#define InstallCmd install
#else
#define InstallCmd $(SHELL) $(CONFIGSRC)/util/install.sh
#endif
#ifdef _CRAY2
#define DefaultCCOptions -hpagelm -hlimitlm
#endif
#if OSMajorVersion >= 6
#define PreProcessCmd /lib/pcpp
#define CppCmd /lib/pcpp
#else
# if OSMajorVersion == 5
# define PreProcessCmd /lib/cpp
# define CppCmd /lib/cpp
# define ExtraLoadFlags -lnet
# endif
#endif
/* XKB library code does not work here yet */
#define BuildXKBlib NO
#define MotifDefines -DNO_REGEX -DNO_REGCOMP
/* $XFree86: xc/config/cf/cross.def,v 1.1 2000/12/08 22:09:34 keithp Exp $ */
/*
* This file contains redefinitions of some symbols to enable
* cross compilation: e.g. paths for include files and paths to
* compiler images. It will have to be edited to reflect these
* given your local configuration.
*/
#if 0
#undef i386Architecture
#define Arm32Architecture
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O2
#define ServerCDebugFlags -O2
#undef StandardDefines
#define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE \
-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
#undef CcCmd
#define StdIncDir /opt/Embedix/tools/arm-linux/include
#define PreIncDir
#undef PostIncDir
#define PostIncDir /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/include
#define CcCmd /opt/Embedix/tools/bin/arm-linux-gcc
#undef CplusplusCmd
#define HasCplusplus YES
#define CplusplusCmd /opt/Embedix/tools/bin/arm-linux-g++
#define DoRanlibCmd YES
#define RanlibCmd /opt/Embedix/tools/bin/arm-linux-ranlib
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary -ltermcap
#undef LdPostLib
#define LdPostLib -L/opt/Embedix/tools/arm-linux/lib
#undef ExtensionOSDefines
#define ExtensionOSDefines
#define ServerXdmcpDefines /**/
#define HostCcCmd cc
#endif
#include <cross.rules>
/* $XFree86: xc/config/cf/cross.def,v 1.1 2000/12/08 22:09:34 keithp Exp $ */
/*
* This file contains redefinitions of some symbols to enable
* cross compilation: e.g. paths for include files and paths to
* compiler images. It will have to be edited to reflect these
* given your local configuration.
*/
#if 0
#undef i386Architecture
#define Arm32Architecture
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O2
#define ServerCDebugFlags -O2
#undef StandardDefines
#define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE \
-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
#undef CcCmd
#define StdIncDir /skiff/local/arm-linux/include
#define PreIncDir
#undef PostIncDir
#define PostIncDir /skiff/local/lib/gcc-lib/arm-linux/2.95.2/include
#define CcCmd /skiff/local/bin/arm-linux-gcc
#undef CplusplusCmd
#define HasCplusplus YES
#define CplusplusCmd /skiff/local/bin/arm-linux-g++
#define DoRanlibCmd YES
#define RanlibCmd /skiff/local/bin/arm-linux-ranlib
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary -ltermcap
#undef LdPostLib
#define LdPostLib -L/skiff/local/arm-linux/lib
#undef ExtensionOSDefines
#define ExtensionOSDefines
#define ServerXdmcpDefines /**/
#define HostCcCmd cc
#endif
#include <cross.rules>
XCOMM $XFree86: xc/config/cf/cygwin.tmpl,v 3.18 2003/10/19 08:27:05 herrb Exp $
#define SharedX11Reqs
#define SharedXlibi18nReqs $(LDPRELIB) $(XONLYLIB)
#define SharedOldXReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS)
#define SharedXtReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XONLYLIB)
#define SharedXawReqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWREQS) $(XLIB)
#define SharedXaw7Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXaw6Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXmuReqs $(LDPRELIB) $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXiReqs $(LDPRELIB) $(XLIB)
#define SharedXtstReqs $(LDPRELIB) $(XLIB)
#define SharedSMReqs $(LDPRELIB) $(ICELIB)
#define SharedXpReqs $(LDPRELIB) $(XAUTHLIB) $(XLIB)
#define SharedXvReqs $(LDPRELIB) $(XLIB)
#define SharedGLReqs $(LDPRELIB) $(XLIB)
#define SharedGLUReqs $(LDPRELIB) $(XLIB) $(GLXLIB)
#define SharedXfontReqs $(LDPRELIB) $(FONTSTUBLIB) GzipLibrary $(FREETYPE2LIB)
#define SharedFontencReqs $(LDPRELIB) GzipLibrary
#define SharedXxf86vmReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86miscReqs $(LDPRELIB) $(XLIB)
#define SharedXpmReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86dgaReqs $(LDPRELIB) $(XLIB)
#define SharedDPSReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
#define SharedDPSTKReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(DPSLIB) $(XLIB)
#define SharedXrenderReqs $(LDPRELIB) $(XLIB)
#define SharedpsresReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB
#define SharedXResReqs $(LDPRELIB) $(XLIB)
#define SharedXfontcacheReqs $(LDPRELIB) $(XLIB)
#define SharedXineramaReqs $(LDPRELIB) $(XLIB)
/*
* We don't build Xss
* #define SharedXssReqs $(LDPRELIB) $(XLIB)
*/
#define SharedXvMCReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86dgaReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86miscReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86vmReqs $(LDPRELIB) $(XLIB)
#define SharedxkbfileReqs $(LDPRELIB) $(XONLYLIB)
#define SharedxkbuiReqs $(LDPRELIB) $(XKBFILELIB) $(XONLYLIB)
#define SharedXmuuReqs $(LDPRELIB) $(XTOOLLIB) $(XLIB)
#define SharedXrandrReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedXcursorReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedXfixesReqs $(LDPRELIB) $(XLIB)
#define SharedXdamageReqs $(LDPRELIB) $(XFIXESLIB) $(XLIB)
#define SharedXcompositeReqs $(LDPRELIB) $(XDAMAGELIB) $(XFIXESLIB) $(XLIB)
#define SharedXevieReqs $(LDPRELIB) $(XLIB)
#ifndef FixupLibReferences
# define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
# define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
#endif
/*
* Suffix for Windows resource source files
*/
#ifndef RCsuf
# define RCsuf rc
#endif
/*
* Suffix for Windows resource compiled files
*/
#ifndef RESsuf
# define RESsuf res
#endif
XCOMM $XdotOrg: xc/config/cf/darwin.cf,v 1.8 2005/04/01 01:22:07 torrey Exp $
XCOMM platform: $XFree86: xc/config/cf/darwin.cf,v 1.50 2004/01/20 23:54:50 torrey Exp $
/* Darwin / Mac OS X configuration by John Carmack <johnc@idsoftware.com> */
/* imake determines the default values by parsing uname */
#ifndef OSName
#define OSName DefaultOSName
#endif
#ifndef OSVendor
#define OSVendor Apple Computer, Inc.
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
/*
* Define the operating system's capabilities
*/
#define HasSnprintf YES
#define HasPutenv YES
#define HasBSD44Sockets YES
#define Malloc0ReturnsNull NO
#define HasShadowPasswd NO
#define HasUsableFileMmap YES
#define HasZlib YES
#ifndef HasShm
# define HasShm YES
#endif
#define HasNdbm YES
#if OSMajorVersion >= 6
# define HasNCurses YES
# define HasArc4Random YES
# define HasGetIfAddrs YES
# define HasStrlcat YES
#else
# define HasBasename NO
# define HasNCurses NO
#endif
#ifndef HasGroff
# define HasGroff YES
#endif
#ifndef HasGcc3
# define HasGcc3 NO
#endif
#ifndef HasFreetype2
# define HasFreetype2 NO
#endif
#ifndef HasExpat
# define HasExpat NO
#endif
#ifndef HasLibpng
# define HasLibpng NO
#endif
/* Older versions don't really support IPv6, but #define AF_INET6. */
#if OSMajorVersion < 6
# define BuildIPv6 NO
#endif
/* Thread support */
#define HasPosixThreads YES
#define SystemMTDefines -D_REENTRANT
#if OSMajorVersion >= 6
# define HasThreadSafeAPI YES
# define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_UNISTDAPI
#else
# define HasThreadSafeAPI NO
# define MTSafeAPIDefines -DXOS_USE_MTSAFE_NETDBAPI
#endif
/* Libtool on Darwin always uses minor numbers */
#define LibtoolMinorVersions YES
/* The most common file system, HFS+, is not case sensitive. */
#ifndef CaseSensitiveFileSystem
# define CaseSensitiveFileSystem NO
#endif
/*
* This enables some settings for developers.
*/
#ifndef XFree86Devel
# define XFree86Devel NO
#endif
/*
* This enables Quartz compatibility.
* Turn off to build on raw Darwin systems.
*/
#ifndef DarwinQuartzSupport
# define DarwinQuartzSupport YES
#endif
#if DarwinQuartzSupport
# if OSMajorVersion >= 7
PROJ_BUILD = xcodebuild
# else
PROJ_BUILD = pbxbuild
# endif
# ifndef HasXplugin
# if OSMajorVersion >= 7
# define HasXplugin YES
# else
# define HasXplugin NO
# endif
# endif
# if HasXplugin
# ifndef XpLibDir
# define XpLibDir /usr/lib
# endif
# ifndef XpIncDir
# define XpIncDir $(SERVERSRC)/hw/darwin/quartz/xpr
# endif
XPLIBDIR = XpLibDir
XPINCDIR = XpIncDir
# define XpluginLibrary Concat(-L,$(XPLIBDIR)) -lXplugin
# else
# define XpluginLibrary /**/
# endif
# ifndef BuildAppleDRI
# if HasXplugin
# define BuildAppleDRI YES
# else
# define BuildAppleDRI NO
# endif
# endif
# if BuildAppleDRI
# define GlxExtraDefines -DGLX_DIRECT_RENDERING -DGLX_USE_APPLEGL GlxArchDefines
# endif
# define BuildRootless YES
# define BuildAppleWMLibrary YES
#endif /* DarwinQuartzSupport */
/* we don't need -lm */
#define MathLibrary /**/
#define TermcapLibrary -lcurses
#define SetTtyGroup YES /* for xterm */
/* we don't have a dbm library */
#define DBMLibrary /**/
#define MkdirHierCmd mkdir -p
/* Use flex -l for compatibility with various versions of flex. */
#ifndef LexCmd
# define LexCmd flex -l
#endif
#define HasFlex YES
/*
* Our cpp isn't in /lib/cpp and early versions don't like -undef.
* The gcc 3.3 cpp that Apple ships inserts spurious #pragmas,
* so we use the 3.1-based version in this case.
*/
#if (GccMajorVersion == 3) && (GccMinorVersion == 3)
# define CppCmd /usr/bin/cpp3
#else
# define CppCmd /usr/bin/cpp
#endif
#if (GccMajorVersion == 3) && (GccMinorVersion == 3) || (GccMajorVersion > 3)
# define StandardCppOptions -traditional -D__GNUC__
#endif
#if HasGcc3
# define RawCppCmd CppCmd -undef
#else
# define RawCppCmd CppCmd
#endif
/* we have a gcc compatible compiler, but its not called gcc */
#define CcCmd /usr/bin/cc
#define CplusplusCmd /usr/bin/c++
/* default flags to pass to cc */
#ifndef DefaultCCOptions
#if XFree86Devel
# define DefaultCCOptions -Wall -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
-Wredundant-decls -Wnested-externs \
-no-cpp-precomp
#else
# define DefaultCCOptions -Wall -Wpointer-arith -no-cpp-precomp
#endif
#endif
/* flags to pass to cc when building libraries */
#ifndef LibraryCCOptions
# define LibraryCCOptions DefaultCCOptions -fno-common
#endif
/* The cr implementation does not build with NEED_SCREEN_REGIONS,
so play it safe. */
#ifndef ServerCCOptions
# define ServerCCOptions DefaultCCOptions -UNEED_SCREEN_REGIONS
#endif
#ifdef PpcDarwinArchitecture
# define DarwinMachineDefines -D__powerpc__
# if HasGcc3
# define OptimizedCDebugFlags -Os
# else
# define OptimizedCDebugFlags -O2
# endif
# define ByteOrder X_BIG_ENDIAN
#endif /* PpcDarwinArchitecture */
#ifdef i386DarwinArchitecture
# define DarwinMachineDefines -D__i386__
# if HasGcc3
# define OptimizedCDebugFlags -Os
# else
# define OptimizedCDebugFlags -O2 -fno-strength-reduce
# endif
# define ByteOrder X_LITTLE_ENDIAN
#endif /* i386DarwinArchitecture */
#if OSMajorVersion < 7
# define DarwinLocaleDefines -DX_LOCALE
#else
# define DarwinLocaleDefines /**/
# define XawI18nDefines -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H
#endif
/*
* __DARWIN__ will be used for platform specific #ifdefs that can't
* be handled by existing X defines.
*
* Darwin's alloca() seg faults (rather than returning NULL) on failed
* allocations, so we can't use it.
*/
#define StandardDefines DarwinMachineDefines -D__DARWIN__ \
-DNO_ALLOCA -DCSRG_BASED DarwinLocaleDefines
/*
* Set this to NO to just build the client libs, which should work without
* having to write any platform specific code.
*/
#ifndef BuildServer
# define BuildServer YES
/* our custom X server */
# define XDarwinServer YES
#endif
/* Thanks to the IOKit, the X server does not have to be SetUID. */
#ifndef InstallXserverSetUID
# define InstallXserverSetUID NO
#endif
/* Allow Xtrans to work with non-SetUID server. */
#ifndef XtransFailSoft
# define XtransFailSoft YES
#endif
/* disable XKB by default as it can cause problems */
#define DfltDisableXKB YES
/* no direct graphics extension */
#define BuildXF86DGA NO
/* Support for tablets and other non-standard input devices */
#ifndef BuildXInputExt
# define BuildXInputExt YES
#endif
#define BuildXInputLib YES
/* no Display Power Management extension */
#define BuildDPMS NO
/* no XFree86-Misc extension */
#define BuildXF86MiscExt NO
/* no XFree86-VidMode extension */
#define BuildXF86VidModeExt NO
#ifndef BuildXterm
# define BuildXterm BuildClients /* Not enabled by default */
#endif
#define BuildLibPathVar DYLD_LIBRARY_PATH
/* include rules to build shared libraries */
#include <darwinLib.rules>
/*
* BundleProgramTarget - Generate rules for compiling, linking and
* installing a bundle executable.
*/
#ifndef BundleProgramTarget
#define BundleProgramTarget(program,loader,subdirs,objs,deplib,syslib,dstdir) @@\
@@\
AllTarget(program) @@\
@@\
program: loader subdirs objs deplib @@\
RemoveTargetProgram($@) @@\
LinkRule($@,-bundle $(LDOPTIONS),objs,deplib $(LDLIBS) syslib -bundle_loader loader) @@\
@@\
InstallProgram(program,dstdir/program.bundle/Contents/MacOS) @@\
@@\
clean:: @@\
RemoveFile(program)
#endif /* BundleProgramTarget */
/*
* Darwin specific Imake Config files
*/
#ifndef LocalConfigFiles
#define LocalConfigFiles \
darwinLib.rules \
darwinLib.tmpl
#endif
/* include all the X.Org rules */
#include <xorg.cf>
XCOMM $XFree86: xc/config/cf/darwinLib.rules,v 1.8 2003/10/09 22:43:18 herrb Exp $
/*
* Darwin/Mac OS X shared library rules
*/
#ifndef UseElfFormat
#define UseElfFormat NO
#endif
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef ForceNormalLib
#define ForceNormalLib YES
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <darwinLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -dynamiclib
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -dynamic
#endif
#ifndef ExtraLoadFlags
#define ExtraLoadFlags /**/
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.rev.dylib) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.rev.dylib) $(DESTDIR)dest @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) Concat($(DESTDIR)dest/lib,libname.$$MAJREV.dylib) && \ @@\
$(LN) Concat(lib,libname.rev.dylib) Concat($(DESTDIR)dest/lib,libname.$$MAJREV.dylib) @@\
@if $(SOSYMLINK); then (set -x; \ @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.dylib); \ @@\
$(LN) Concat(lib,libname.rev.dylib) Concat($(DESTDIR)dest/lib,libname.dylib)); fi
#endif /* InstallSharedLibrary */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
# define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.rev.dylib)) @@\
@@\
Concat(lib,libname.rev.dylib): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
INSTALLNAME=Concat(lib,libname.$$MAJREV.dylib); \ @@\
set -x; (cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -install_name $(USRLIBDIR)/$$INSTALLNAME -current_version rev -compatibility_version rev solist $(REQUIREDLIBS)); \ @@\
$(RM) $$INSTALLNAME; $(LN) $@ $$INSTALLNAME; \ @@\
LinkBuildSonameLibrary($$INSTALLNAME) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@if $(SOSYMLINK); then (set -x; \ @@\
$(RM) Concat(lib,libname.dylib); \ @@\
$(LN) $@ Concat(lib,libname.dylib)); fi @@\
LinkBuildLibrary($@) @@\
LinkBuildLibraryMaybe(Concat(lib,libname.dylib),$(SOSYMLINK)) @@\
@@\
clean:: @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) Concat(lib,libname.$$MAJREV.dylib) @@\
$(RM) Concat(lib,libname.rev.dylib) Concat(lib,libname.dylib)
#endif /* SharedLibraryTarget */
/*
* SharedDepLibraryTarget - generate rules to create a shared library.
*/
#ifndef SharedDepLibraryTarget
# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat(lib,libname.rev.dylib)) @@\
@@\
Concat(lib,libname.rev.dylib): deplist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
INSTALLNAME=Concat(lib,libname.$$MAJREV.dylib); \ @@\
set -x; (cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -install_name $(USRLIBDIR)/$$INSTALLNAME -current_version rev -compatibility_version rev solist $(REQUIREDLIBS)); \ @@\
$(RM) $$INSTALLNAME; $(LN) $@ $$INSTALLNAME; \ @@\
LinkBuildSonameLibrary($$INSTALLNAME) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@if $(SOSYMLINK); then (set -x; \ @@\
$(RM) Concat(lib,libname.dylib); \ @@\
$(LN) $@ Concat(lib,libname.dylib)); fi @@\
LinkBuildLibrary($@) @@\
LinkBuildLibraryMaybe(Concat(lib,libname.dylib),$(SOSYMLINK)) @@\
@@\
clean:: @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) Concat(lib,libname.$$MAJREV.dylib) @@\
$(RM) Concat(lib,libname.rev.dylib) Concat(lib,libname.dylib)
#endif /* SharedDepLibraryTarget */
/*
* SharedDepCplusplusLibraryTarget - generate rules to create a shared library.
*/
#ifndef SharedDepCplusplusLibraryTarget
# define SharedDepCplusplusLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat(lib,libname.rev.dylib)) @@\
@@\
Concat(lib,libname.rev.dylib): deplist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
INSTALLNAME=Concat(lib,libname.$$MAJREV.dylib); \ @@\
set -x; (cd down; $(CXX) -o up/$@~ $(SHLIBLDFLAGS) -install_name $(USRLIBDIR)/$$INSTALLNAME -current_version rev -compatibility_version rev solist $(REQUIREDLIBS)); \ @@\
$(RM) $$INSTALLNAME; $(LN) $@ $$INSTALLNAME; \ @@\
LinkBuildSonameLibrary($$INSTALLNAME) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@if $(SOSYMLINK); then (set -x; \ @@\
$(RM) Concat(lib,libname.dylib); \ @@\
$(LN) $@ Concat(lib,libname.dylib)); fi @@\
LinkBuildLibrary($@) @@\
LinkBuildLibraryMaybe(Concat(lib,libname.dylib),$(SOSYMLINK)) @@\
@@\
clean:: @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) Concat(lib,libname.$$MAJREV.dylib) @@\
$(RM) Concat(lib,libname.rev.dylib) Concat(lib,libname.dylib)
#endif /* SharedDepCplusplusLibraryTarget */
#ifndef SharedDepModuleTarget
#define SharedDepModuleTarget(name,deps,solist) @@\
AllTarget(name) @@\
@@\
name: deps @@\
$(RM) $@~ @@\
$(CC) -o $@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@@\
clean:: @@\
$(RM) name
#endif /* SharedDepModuleTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryDataTarget */
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
XCOMM $XFree86: xc/config/cf/darwinLib.tmpl,v 1.19 2003/11/04 00:24:36 torrey Exp $
/*
* Darwin/Mac OS X shared library template
*/
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
#endif
/* Allow for libpthread, as overridden by OS definitions */
#if !defined(SharedX11Reqs)
#define SharedX11Reqs
#endif
#define SharedXlibi18nReqs $(LDPRELIB) $(XLIBONLY)
#define SharedXfontReqs $(LDPRELIB) $(FONTSTUBLIB) GzipLibrary $(FREETYPE2LIB) -flat_namespace
#define SharedAppleWMReqs $(LDPRELIB) $(XLIB)
#define SharedFontencReqs $(LDPRELIB) GzipLibrary
#define SharedGLReqs $(LDPRELIB) $(XLIB)
#define SharedGLUReqs $(LDPRELIB) $(XLIB) $(GLXLIB)
#define SharedOSMesaReqs $(LDPRELIB) $(XLIB) $(GLXLIB)
#define SharedSMReqs $(LDPRELIB) $(ICELIB)
#define SharedXawReqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWREQS) $(XLIB)
#define SharedXaw7Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXaw6Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXcursorReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXiReqs $(LDPRELIB) $(XLIB)
#define SharedXmuReqs $(LDPRELIB) $(XTOOLLIB) $(XLIB)
#define SharedXmuuReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXpReqs $(LDPRELIB) $(XLIB)
#define SharedXpmReqs $(LDPRELIB) $(XLIB)
#define SharedXrandrReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedXrenderReqs $(LDPRELIB) $(XLIB)
#define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB) -flat_namespace
#define SharedXtstReqs $(LDPRELIB) $(XLIB)
#define SharedXvReqs $(LDPRELIB) $(XLIB)
#define SharedDPSReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
#define SharedDPSTKReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(DPSLIB) $(XLIB)
#define SharedOldXReqs $(LDPRELIB) $(XONLYLIB)
#define SharedpsresReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
#define SharedXResReqs $(LDPRELIB) $(XLIB)
#define SharedXfontcacheReqs $(LDPRELIB) $(XLIB)
#define SharedXineramaReqs $(LDPRELIB) $(XLIB)
#define SharedXssReqs $(LDPRELIB) $(XLIB)
#define SharedXvMCReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86miscReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86vmReqs $(LDPRELIB) $(XLIB)
#define SharedxkbfileReqs $(LDPRELIB) $(XONLYLIB)
#define SharedxkbuiReqs $(LDPRELIB) $(XKBFILELIB) $(XONLYLIB)
#define SharedXfixesReqs $(LDPRELIB) $(XLIB)
#define SharedXdamageReqs $(LDPRELIB) $(XFIXESLIB) $(XLIB)
#define SharedXcompositeReqs $(LDPRELIB) $(XDAMAGELIB) $(XFIXESLIB) $(XLIB)
#define SharedXevieReqs $(LDPRELIB) $(XLIB)
/* $XFree86$ */
/*
* This file contains DMX server specific defines
*/
#undef XVendorString
#define XVendorString "DMX Project"
/*
* Note 1: This is a signed int that is printed as a decimal number.
* Since we want to make it human-interpretable, the fields are
* defined as:
* 2147483648
* AAbbyymmdd
* AA: major version 01-20
* bb: minor version 00-99
* yy: year 00-99 [See Note 2]
* mm: month 01-12
* dd: day 01-31
*
* Note 2: The default epoch for the year is 2000.
* To change the default epoch, change the DMX_VENDOR_RELEASE
* macro below, bumb the minor version number, and change
* xdpyinfo to key off the major/minor version to determine the
* new epoch. Remember to do this on January 1, 2100 and every
* 100 years thereafter.
*/
#define DMX_VENDOR_RELEASE(major,minor,year,month,day) \
((major) * 100000000) + \
((minor) * 1000000) + \
((year-2000) * 10000) + \
((month) * 100) + \
((day) * 1)
#undef XVendorRelease
#define XVendorRelease DMX_VENDOR_RELEASE(1,2,2004,6,30)
EXTENSIONS_NOT_SUPPORTED = \
-UMULTIBUFFER \
-UXV \
-UDBE \
-UXF86VIDMODE \
-UXF86MISC \
-UXFreeXDGA \
-UXF86DRI \
-UMITSHM \
-UTOGCUP \
-UDPSEXT \
-UMITMISC \
-USCREENSAVER \
-URANDR \
-UXFIXES \
-UDAMAGE
EXT_TEMP_NOT_SUPPORTED = \
-UFONTCACHE
DMX_DEFINES = \
$(EXTENSIONS_NOT_SUPPORTED) \
$(EXT_TEMP_NOT_SUPPORTED) \
-UXFree86LOADER
XCOMM MITSHM -- works but doesn't quite do what people think it should
XCOMM DPMSExtension -- compiled in but is non-functional
XCOMM MITMISC provides legacy support for X11R1,2 applications. Disable.
XCOMM platform: $Xorg: fujitsu.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion)
#define PatheticCpp YES
#ifdef SparcArchitecture
#define BootstrapCFlags -D__uxp__
#define StandardDefines -D__uxp__ -DSVR4 -DANSICPP
#define StandardCppDefines -D__uxp__ -DSVR4 -DANSICPP
#define CppCmd /usr/ccs/lib/cpp
#ifndef ArCmdBase
# define ArCmdBase /usr/ccs/bin/ar
#endif
#ifndef AsCmd
# define AsCmd /usr/ccs/bin/as
#endif
#ifndef CcCmd
# define CcCmd /usr/ccs/bin/cc
#endif
#ifndef CplusplusCmd
# define CplusplusCmd /opt/uxpcplus/bin/CC
#endif
#ifndef CplusplusFilt
# define CplusplusFilt /opt/uxpcplus/bin/c++filt
#endif
#ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/opt/uxpcplus/include/CC
#endif
#ifndef LdCmd
# define LdCmd /usr/ccs/bin/ld
#endif
#ifndef LexCmd
# define LexCmd /usr/ccs/bin/lex
#endif
#ifndef YaccCmd
# define YaccCmd /usr/ccs/bin/yacc
#endif
#define BuildLibPathVar LD_LIBRARY_PATH
#define SystemV4 YES
#define HasSockets YES
#define DBMLibrary /* ndbm modules are in -lc */
#define HasNdbm YES
#ifndef HasLdRunPath
#define HasLdRunPath YES
#endif
#define BuildServer NO
#include <sv4Lib.rules>
#endif
#ifdef mc68000Architecture
#define BootstrapCFlags -D__sxg__
#define StandardDefines -D__sxg__ -DSYSV -DUSG -DNOSTDHDRS -I/usr/xwin/include
#define StandardCppDefines -D__sxg__ -DSYSV -DUSG -DNOSTDHDRS -I/usr/xwin/include
#define LnCmd ln
#define DoRanlibCmd NO
#define DefaultCCOptions +Z384
#define ExtraLibraries -lXbsd -lsocket -lu
#define TermcapLibrary -lcurses
#define BuildServer NO
#define HasSymLinks NO
#define HasVFork NO
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif
#define GencatFlags -m
#define DtSvcDefines -DXK_MISCELLANY -DMULTIBYTE -DNO_REGCOMP -DHAVE_PTMS
#define DtSearchDefines -DI18N_MSG DtSvcDefines -DNEED_STRCASECMP
#define DtWidgetDefines DtSearchDefines
#define ArchitectureDefines -DUXP_ARCHITECTURE
#define CdeProjectDefines \
-DMULTIBYTE -DNLS16 \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion
XCOMM platform: $Xorg: generic.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
#ifndef OSName
#define OSName Unknown Operating System
#endif
XCOMM operating system: OSName
#ifndef OSMajorVersion
#define OSMajorVersion 0
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifdef SYSV
#define SystemV YES
#endif
#ifdef SVR4
#define SystemV4 YES
#endif
#define BuildServer NO
XCOMM platform: $XFree86: xc/config/cf/gnu.cf,v 1.12 2003/11/24 02:02:26 dawes Exp $
XCOMM $XdotOrg: xc/config/cf/gnu.cf,v 1.3 2005/02/09 04:09:54 gisburn Exp $
#ifndef OSName
#define OSName DefaultOSName
#endif
#ifndef OSVendor
#define OSVendor /**/
#endif
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
#define GNUSourceDefines -D_POSIX_C_SOURCE=199309L \
-D_POSIX_SOURCE -D_XOPEN_SOURCE \
-D_BSD_SOURCE -D_SVID_SOURCE
XCOMM XXXMB: What about _GNU_SOURCE, see Linux/UseInstalled?
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H
#define HasPosixThreads YES
#define ThreadedX YES
#define HasThreadSafeAPI YES
#define ThreadsLibraries -lpthread
#define SystemMTDefines -D_REENTRANT
#ifndef HasLibCrypt
#define HasLibCrypt YES
#endif
#ifndef BuildXF86RushExt
# define BuildXF86RushExt YES
#endif
#define BuildLibPathVar LD_LIBRARY_PATH
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define HasDlopen YES
#ifndef HasShadowPasswd
# define HasShadowPasswd YES
#endif
#define HasPutenv YES
XCOMM Not implemented and will always fail.
#ifndef HasShm
# define HasShm YES
#endif
#define HasBSD44Sockets YES
#define HasSockets YES
#define HasSnprintf YES
#define HasMkstemp YES
#define HasUsableFileMmap YES
#ifndef HasNCurses
#define HasNCurses YES
#endif
#define AvoidNullMakeCommand YES
#ifndef DebuggableLibraries
#define DebuggableLibraries NO
#endif
#define CompressAllFonts YES
#define Malloc0ReturnsNull YES
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#ifndef NeedWidePrototypes
#define NeedWidePrototypes NO
#endif
#define SetTtyGroup YES
#ifndef UseStaticTermcapLib
#define UseStaticTermcapLib NO
#endif
#define MkdirHierCmd mkdir -p
#ifndef CcCmd
#define CcCmd gcc
#endif
#ifndef AsCmd
#define AsCmd as
#endif
#ifndef LdCmd
#define LdCmd ld
#endif
#define AsmDefines -D__ELF__
#define CplusplusCmd c++
#ifndef TermcapLibrary
#if UseStaticTermcapLib
#define TermcapLibrary StaticLibrary(/usr/lib,ncurses)
#else
#define TermcapLibrary -lncurses
#endif
#endif
#ifndef DoLoadableServer
#define DoLoadableServer YES
#endif
#ifndef CppCmd
#define CppCmd /lib/cpp
#endif
#define YaccCmd bison -y
#define LexCmd flex -l
#define HasFlex YES
#define LexLib -lfl
#define PreProcessCmd CcCmd -E
#define PostIncDir DefaultGccIncludeDir
#define LdCombineFlags -r
#ifndef LdPostLib
#define LdPostLib /* Never needed */
#endif
#define HasWChar32 YES
#define StandardCppOptions -traditional
#define StandardCppDefines StandardDefines
#define HasVarRun YES
#define VarDbDirectory $(VARDIR)/lib
XCOMM i386Architecture
#define OptimizedCDebugFlags DefaultGcc2i386Opt
#define GNUMachineDefines -D__i386__
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#define HasPlugin YES
#define VendorHasX11R6_3libXext YES
#ifndef StandardDefines
#define StandardDefines GNUMachineDefines GNUSourceDefines
#endif
#define DlLibrary -rdynamic -ldl
#define ServerExtraSysLibs /**/
#define ConnectionFlags -DUNIXCONN -DTCPCONN
/* Some of these man page defaults are overriden in the above OS sections */
#ifndef ManSuffix
# define ManSuffix 1x
#endif
#ifndef ManDir
# define ManDir $(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
# define LibManSuffix 3x
#endif
#ifndef LibmanDir
# define LibmanDir $(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
# define FileManSuffix 5x
#endif
#ifndef FileManDir
# define FileManDir $(MANSOURCEPATH)5
#endif
#ifndef StaticLibrary
#define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
#endif
#define HasGnuMake YES
#define MakeNamedTargetSubdir(dir,flags,subname)\
$(MAKE) -C dir $(MFLAGS) $(PARALLELMFLAGS) flags subname
#define ArchitectureDefines -DGNU_ARCHITECTURE
#define XserverNeedsSetUID YES
#include <gnuLib.rules>
XCOMM XXX Might need this if they are not careful with slashes.
XCOMM #define DirFailPrefix -
#include <xorg.cf>
/*
* GNU/Hurd shared library rules
*
* $XFree86: xc/config/cf/gnuLib.rules,v 1.9 2003/10/11 09:40:13 herrb Exp $
*/
/*
* GNU/Hurd shared library rules
* Cloned from Linux (ELF) shared library rules
*
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef ForceNormalLib
#define ForceNormalLib NO
#endif
XCOMM XXX To rpath or not to rpath...
#ifndef UseRpath
#define UseRpath NO
#endif
#ifndef SharedOldX
#define SharedOldX NO
#endif
#undef SpecialMalloc
#define SpecialMalloc NO
#define BaseShLibReqs -lc
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <gnuLib.tmpl>
#endif
#ifndef RpathLoadFlags
#if UseRpath
#define RpathLoadFlags -Wl,-rpath=$(USRLIBDIRPATH)
#else
#define RpathLoadFlags /**/
#endif
#endif
#ifndef LibraryRpathLoadFlags
#define LibraryRpathLoadFlags RpathLoadFlags
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -shared LibraryRpathLoadFlags
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -fPIC
#endif
#ifndef PositionIndependentCplusplusFlags
#define PositionIndependentCplusplusFlags -fPIC
#endif
#ifndef ExtraLoadFlags
#ifdef UseInstalled
XCOMM XXX Maybe superfluous.
#define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link=$(USRLIBDIRPATH)
#else
#define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link=$(BUILDLIBDIR)
#endif
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
* NOTE: file must be executable, hence "INSTBINFLAGS"
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.so.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
@T=`echo Concat($(DESTDIR)dest/lib,libname.so.rev) | sed 's/\(lib[^\.]*\.so\.[0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`;\
set -x; $(RM) $$T && $(LN) Concat(lib,libname.so.rev) $$T @@\
@if $(SOSYMLINK); then (set -x; \
$(RM) Concat($(DESTDIR)dest/lib,libname.so); \ @@\
$(LN) Concat(lib,libname.so.rev) Concat($(DESTDIR)dest/lib,libname.so)); fi
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
@SONAME=`echo $@ | sed 's/\(lib[^\.]*\.so\.[0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; set -x; \ @@\
(cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@\
$(RM) $$SONAME; $(LN) $@ $$SONAME; \ @@\
LinkBuildSonameLibrary($$SONAME) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@if $(SOSYMLINK); then (set -x; \ @@\
$(RM) Concat(lib,libname.so); \ @@\
$(LN) $@ Concat(lib,libname.so)); fi @@\
LinkBuildLibrary($@) @@\
LinkBuildLibraryMaybe(Concat(lib,libname.so),$(SOSYMLINK)) @@\
@@\
clean:: @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) Concat(lib,libname.so.$$MAJREV) @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedLibraryTarget */
/*
* SharedDepLibraryTarget - generate rules to create a shared library.
*/
#ifndef SharedDepLibraryTarget
#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat(lib,libname.so.rev)) @@\
@@\
Concat(lib,libname.so.rev): deplist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
@SONAME=`echo $@ | sed 's/\(lib[^\.]*\.so\.[0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; set -x; \ @@\
(cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@\
$(RM) $$SONAME; $(LN) $@ $$SONAME; \ @@\
LinkBuildSonameLibrary($$SONAME) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@if $(SOSYMLINK); then (set -x; \ @@\
$(RM) Concat(lib,libname.so); \ @@\
$(LN) $@ Concat(lib,libname.so)); fi @@\
LinkBuildLibrary($@) @@\
LinkBuildLibraryMaybe(Concat(lib,libname.so),$(SOSYMLINK)) @@\
@@\
clean:: @@\
@MAJREV=`echo rev | sed 's/\([0-9]*\)\(\.[0-9]*\)\{1,2\}/\1/'`; \ @@\
set -x; $(RM) Concat(lib,libname.so.$$MAJREV) @@\
$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif /* SharedDepLibraryTarget */
#ifndef SharedDepModuleTarget
#define SharedDepModuleTarget(name,deps,solist) @@\
AllTarget(name) @@\
@@\
name: deps @@\
$(RM) $@~ @@\
$(CC) -o $@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS) BaseShLibReqs @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
@@\
clean:: @@\
$(RM) name
#endif /* SharedDepModuleTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */
XCOMM
XCOMM GNU Hurd shared library template
XCOMM
XCOMM $XFree86: xc/config/cf/gnuLib.tmpl,v 1.5 2003/05/29 21:56:57 herrb Exp $
XCOMM
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
#endif
#define SharedX11Reqs
#define SharedXlibi18nReqs $(LDPRELIB) $(XONLYLIB)
#define SharedOldXReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB)
#define SharedXaw6Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXaw7Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXawReqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWREQS) $(XLIB)
#define SharedXmuReqs $(LDPRELIB) $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXiReqs $(LDPRELIB) $(XLIB)
#define SharedXtstReqs $(LDPRELIB) $(XLIB)
#define SharedSMReqs $(LDPRELIB) $(ICELIB)
XCOMM platform: $Xorg: hp.cf,v 1.5 2000/08/17 19:41:47 cpqbld Exp $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
#endif
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion)
/* The default yacc options are too small for Uil.y. */
#define YaccFlags -Nm15000
/*
* C++ compiler setup. This file knows what options to use with
* certain compilers, including HP C++ and CenterLine C++.
*
* For HP C++, define HasHPCplusplus to YES in site.def.
* For CenterLine C++, define HasCenterLineCplusplus to YES in site.def.
* For other compilers, define HasCplusplus to YES in site.def, and
* check to see if you need to provide values for CplusplusOptions
* and/or DefaultCplusplusOptions.
*
* In any case, you may also need to set CplusplusDependIncludes.
*/
#if HasHPCplusplus
# ifndef HasCplusplus
# define HasCplusplus YES
# endif
# ifndef DefaultCplusplusOptions
# define DefaultCplusplusOptions -Aa
# endif
# ifndef CplusplusOptions
# define CplusplusOptions -Aa
# endif
# ifndef CplusplusCmd
# define CplusplusCmd /opt/CC/bin/CC
# endif
# ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/opt/CC/include/CC
# endif
#endif
#ifndef CcCmd
# define CcCmd /opt/ansic/bin/cc
#endif
#ifndef YaccCmd
# define YaccCmd /opt/langtools/bin/yacc
#endif
#ifndef LexCmd
# define LexCmd /opt/langtools/bin/lex
#endif
#ifndef LintCmd
# define LintCmd /opt/ansic/bin/lint
#endif
#if HasCenterLineCplusplus
# ifndef HasCplusplus
# define HasCplusplus YES
# endif
# ifndef OptimizedCplusplusDebugFlags
# define OptimizedCplusplusDebugFlags -O
# endif
# ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/usr/local/CenterLine/clc++/pa-hpux8/incl
# endif
#endif
#define SystemV YES
#define Malloc0ReturnsNull YES
#if OSMajorVersion > 9
# define AllocateLocalDefines -DINCLUDE_ALLOCA_H
#else
# define AllocateLocalDefines -DNO_ALLOCA
#endif
#ifdef __hp9000s800
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags +O1
# endif
# ifndef DefaultCCOptions
# define DefaultCCOptions -Ae +ESlit
# endif
# ifndef SharedLibraryCCOptions
# define SharedLibraryCCOptions -Ae
# endif
# define StandardDefines -Dhpux -DSYSV
# define ServerExtraDefines -DXOS -DBSTORE -DSOFTWARE_CURSOR -DSCREEN_PIXMAPS -DMERGE_SAVE_UNDERS -DHAS_IFREQ -DFORCE_SEPARATE_PRIVATE AllocateLocalDefines
# if OSMajorVersion > 9
# include <hpLib.rules>
# endif
#else /* __hp9000s800 */
# define StandardDefines -Dhpux -DSYSV
# if OSMajorVersion < 8
# define DefaultCCOptions -Wc,-Nd4000,-Ns4100,-Ne700,-Np200,-Nw300
# else
# define OptimizedCDebugFlags +O1
# endif
# define LintOpts -ax -Nd4000 -Ns8000 -Ne700 -Np200 -Na25000
#endif
#define MvCmd mv -f
#define LdCombineFlags -r
#define ExecableScripts YES
#define HasVFork YES
#define HasPoll YES
#define RemoveTargetProgramByMoving YES
#define ExpandManNames YES
#define HasPutenv YES
#define HasNdbm YES
#define DBMLibrary /usr/lib/libdbm.a
#define PrimaryScreenResolution 91
#define ExtensionOSDefines -DHPINPUT -DXTESTEXT1
#define XhpServer YES
#define ServerExtraSysLibs -ldld
#ifndef BuildXInputExt
# define BuildXInputExt YES
#endif
#define HPFastScrolling YES
#ifndef BuildServer
# define BuildServer __hp9000s700
#endif
#if OSMajorVersion < 10
#define NeedBerklib (BuildServer|BuildFontServer)
#endif
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
# define ConnectionFlags -DTCPCONN /* no unix sockets */
#endif
#if OSMajorVersion > 8
#define HasWChar32 YES
#define HasPlugin YES
#endif
#ifdef __hp9000s300
# ifndef CompatabilityDefines
# define CompatabilityDefines -D__hp9000s300 -Dhp9000s300
# endif
#elif defined(__hp9000s700)
# ifndef CompatabilityDefines
# define CompatabilityDefines -D__hp9000s800 -Dhp9000s800 -D__hp9000s700
# endif
#else
# ifndef CompatabilityDefines
# define CompatabilityDefines -D__hp9000s800 -Dhp9000s800
# endif
#endif
#ifndef OsDefines
# if OSMajorVersion > 9
# define OsDefines -DhpV4 -DHPUX
# else
# define OsDefines -DHPUX
# endif
#endif
#if OSMajorVersion > 9
# if ThreadedX
# define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
# endif
# ifndef CppCmd
# define CppCmd /usr/ccs/lbin/cpp
# endif
#endif
/* CC does not recognize -Ae, and has a different meaning for +e. */
/* +e also confuses cpp. */
#define AnsiDefines -Ae -D_HPUX_SOURCE
#define CplusplusAnsiDefines -Aa -D_HPUX_SOURCE
#define BuildLibPathVar SHLIB_PATH
#define CdeBaseProjectDefines \
-DNLS16 -DMALLOC_0_RETURNS_NULL -DMERGE -D__hpux \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion \
CompatabilityDefines OsDefines
#define CdeProjectDefines CdeBaseProjectDefines AnsiDefines
#define CdeCplusplusProjectDefines \
CdeBaseProjectDefines CplusplusAnsiDefines
#define DtSvcDefines -DXK_MISCELLANY -DMULTIBYTE -DMESSAGE_CAT
#define DtSearchDefines -DI18N_MSG DtSvcDefines
#define DtWidgetDefines DtSearchDefines
#define DtPrintDefines DtSearchDefines
#if OSMajorVersion > 9
#define DtMailDefines \
-DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
-DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\"
#else
#define DtMailDefines \
-DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
-DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/usr/mail/%s\"
#endif
#define ArchitectureDefines -DHP_ARCHITECTURE
#define ExportListGenSource elistgen.hp
XCOMM $Xorg: hpLib.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
/*
* HP shared library rules
*/
XCOMM $XFree86: xc/config/cf/hpLib.rules,v 3.3 1999/01/11 05:13:06 dawes Exp $
#ifndef HasSharedLibraries
# define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
# define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
# define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
# define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
# define ShLibIncludeFile <hpLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
# define SharedLibraryLoadFlags -b
#endif
#ifndef PositionIndependentCFlags
# define PositionIndependentCFlags +z
#endif
#ifndef LargePositionIndependentCFlags
# define LargePositionIndependentCFlags +Z
#endif
#ifndef InstLibFlags
# define InstLibFlags -m 0555
#endif
#ifndef UseInstalled
/* assert: LdPostLib pulls in -L$(USRLIBDIR), so it doesn't need to be here */
# define ExtraLoadFlags -Wl,+s -Wl,+b$(USRLIBDIRPATH)
#endif
#ifndef UseExportLists
# define UseExportLists YES
#endif
/* Pre-linking shared libraries is supported in HP/UX 10. */
#if OSMajorVersion > 9
# define HPRequiredLibs $(LDPRELIBS) $(REQUIREDLIBS) +s +b $(USRLIBDIRPATH)
#else
# define HPRequiredLibs $(REQUIREDLIBS)
#endif
#ifndef LinkWithExports
# if UseExportLists
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs) @@\
if [ -f Concat(lib,libname.elist) ]; then \ @@\
RemoveFiles($@.exports $@.list); \ @@\
$(CPP) $(ALLINCLUDES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES) Concat(lib,libname.elist) | CppSedMagic >$@.list; \ @@\
$(EXPORTLISTGEN) $@~ $@.list > $@.exports; \ @@\
(cd down; $(LD) -c up/$@.exports -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs); \ @@\
RemoveFiles($@.exports $@.list); \ @@\
fi
# else
# define LinkWithExports(libname,rev,solist,down,up) \
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) +h $@ solist HPRequiredLibs)
# endif
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
# define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.sl.rev) @@\
MakeDir($(DESTDIR)dest) @@\
RMoveToBakFile(Concat($(DESTDIR)dest/lib,libname.sl.rev)) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.sl.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.sl) @@\
cd $(DESTDIR)dest; $(LN) Concat(lib,libname.sl.rev) Concat(lib,libname.sl) @@\
-RemoveFile(Concat(lib,libname.sl.rev.bak))
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
# define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
# define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.sl.rev)) @@\
@@\
Concat(lib,libname.sl.rev): solist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
LinkWithExports(libname,rev,solist,down,up) @@\
-RemoveFiles($@ $@.bak) @@\
MoveToBakFile($@) @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.sl) @@\
$(LN) $@ Concat(lib,libname.sl) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.sl)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sl.rev) Concat(lib,libname.sl)
#endif /* SharedLibraryTarget */
/*
* SharedDepLibraryTarget - generate rules to create a shared library.
*/
#ifndef SharedDepLibraryTarget
# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat(lib,libname.sl.rev)) @@\
@@\
Concat(lib,libname.sl.rev): deplist $(EXTRALIBRARYDEPS) @@\
$(RM) $@~ @@\
LinkWithExports(libname,rev,solist,down,up) @@\
-RemoveFiles($@ $@.bak) @@\
MoveToBakFile($@) @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.sl) @@\
$(LN) $@ Concat(lib,libname.sl) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.sl)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sl.rev) Concat(lib,libname.sl)
#endif /* SharedDepLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
# define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */
XCOMM $Xorg: hpLib.tmpl,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM $XFree86$
/*
* HP shared library template
*/
#define SharedThreadReqs /**/
#define SharedOldXReqs $(XONLYLIB)
#define SharedX11Reqs SharedThreadReqs
#define SharedXtReqs $(XONLYLIB) $(SMLIB) $(ICELIB) SharedThreadReqs
#define SharedXawReqs $(XMULIB) $(XTOOLLIB) $(EXTRAXAWREQS) $(XLIB)
#define SharedXmuReqs $(XTOOLLIB) $(XLIB)
#define SharedXextReqs $(XONLYLIB)
#define SharedXiReqs $(XLIB)
#define SharedXtstReqs $(XLIB)
#define SharedSMReqs $(ICELIB)
#define SharedXpReqs $(XLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs
#define SharedXmReqs SharedXReqs
#define SharedMrmReqs $(XMLIB) SharedXReqs
#define SharedUilReqs $(MRESOURCELIB) $(XMLIB) SharedXReqs
/* #define SharedPamReqs */
#define SharedTtReqs $(XTOOLLIB) $(XLIB) SharedThreadReqs $(CXXLIB)
#define SharedDtSvcReqs $(TTLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtMmdbReqs $(DTSVCLIB) $(TTLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtSearchReqs -lm
#define SharedDtWidgetReqs $(DTSVCLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtHelpReqs $(DTSVCLIB) $(XMLIB) SharedXReqs -lm
#define SharedDtPrintReqs $(DTSVCLIB) $(DTHELPLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedDtTermReqs $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm
#define SharedDtMrmReqs $(DTTERMLIB) $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(MRESOURCELIB) $(XMLIB) SharedXReqs -lm
#define SharedDtMailReqs $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -lm $(CXXLIB)
#define SharedCsaReqs $(DTSVCLIB) $(XMLIB) SharedXReqs -lm
/* $XFree86: xc/config/cf/iPAQH3600.cf,v 1.2 2000/10/10 14:05:48 tsi Exp $ */
/*
* This configuration file contains additional configuration needed
* to cross compile X for the Compaq iPAQ H3600 PocketPC.
* To use this, add the following to host.def:
#define KDriveXServer YES
#define XiPAQH3500Server YES
*/
#define CrossCompiling YES
#undef i386Architecture
#define Arm32Architecture
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O2
#define ServerCDebugFlags -O2
#undef StandardDefines
#define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE \
-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
#undef CcCmd
#define StdIncDir /opt/Embedix/tools/arm-linux/include
#define PreIncDir
#undef PostIncDir
#define PostIncDir /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/include
#define CcCmd /opt/Embedix/tools/bin/arm-linux-gcc
#define DoRanlibCmd YES
#define RanlibCmd /opt/Embedix/tools/bin/arm-linux-ranlib
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary -ltermcap
#undef LdPostLib
#define LdPostLib -L/opt/Embedix/tools/arm-linux/lib
#undef XfbdevServer
#define XfbdevServer YES
#undef BuildXprint
#define BuildLBX NO
#define BuildFonts NO
#define BuildAppgroup NO
#define BuildRECORD NO
#define BuildDBE NO
#define BuildXCSecurity NO
#define ItsyCompilerBug YES
#define FontServerAccess NO
#define ServerXdmcpDefines /**/
#undef ExtensionOSDefines
#define ExtensionOSDefines
#define ProjectRoot /usr/X11R6
#define GzipFontCompression YES
#define KdriveServerExtraDefines -DITSY -DMAXSCREENS=1
#define HostLinkRule(target, flags, src, libs) cc -I$(BUILDINCDIR) -o target src
/* ComplexHostProgramTarget - Compile a program such that we can run
* it on this host, i.e., don't use the default cross compiler.
*/
#ifndef ComplexHostProgramTarget
#define ComplexHostProgramTarget(program) @@\
CC=cc @@\
STD_INCLUDES= @@\
CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) @@\
EXTRA_LOAD_FLAGS= @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
HostLinkRule($@,$(_NOOP_),$(OBJS),$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
@@\
DependTarget() @@\
@@\
LintTarget() @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(program))
#endif /* ComplexHostProgramTarget */
#ifndef SimpleHostProgramTarget
#define SimpleHostProgramTarget(program) @@\
SRCS = program.c @@\
@@\
CC=cc @@\
STD_INCLUDES= @@\
CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) @@\
EXTRA_LOAD_FLAGS= @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: program.o $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
HostLinkRule($@,$(_NOOP_),program.o,$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
@@\
DependTarget() @@\
@@\
LintTarget() @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(program))
#endif /* SimpleHostProgramTarget */
/* $XFree86: xc/config/cf/iPAQH3600.cf,v 1.2 2000/10/10 14:05:48 tsi Exp $ */
/*
* This configuration file contains additional configuration needed
* to cross compile X for the Compaq iPAQ H3600 PocketPC.
* To use this, add the following to host.def:
#define KDriveXServer YES
#define XiPAQH3500Server YES
*/
#define CrossCompiling YES
#undef i386Architecture
#define Arm32Architecture
#undef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O2
#define ServerCDebugFlags -O2
#undef StandardDefines
#define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE \
-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
#undef CcCmd
#define StdIncDir /opt/Embedix/tools/arm-linux/include
#define PreIncDir
#undef PostIncDir
#define PostIncDir /opt/Embedix/tools/lib/gcc-lib/arm-linux/2.95.2/include
#define CcCmd /opt/Embedix/tools/bin/arm-linux-gcc
#define DoRanlibCmd YES
#define RanlibCmd /opt/Embedix/tools/bin/arm-linux-ranlib
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary -ltermcap
#undef LdPostLib
#define LdPostLib -L/opt/Embedix/tools/arm-linux/lib
#undef XfbdevServer
#define XfbdevServer YES
#undef BuildXprint
#define BuildLBX NO
#define BuildFonts NO
#define BuildAppgroup NO
#define BuildRECORD NO
#define BuildDBE NO
#define BuildXCSecurity NO
#define ItsyCompilerBug YES
#define FontServerAccess NO
#define ServerXdmcpDefines /**/
#undef ExtensionOSDefines
#define ExtensionOSDefines
#define ProjectRoot /usr/X11R6
#define GzipFontCompression YES
#define KdriveServerExtraDefines -DITSY -DMAXSCREENS=1
#define HostLinkRule(target, flags, src, libs) cc -I$(BUILDINCDIR) -o target src
/* ComplexHostProgramTarget - Compile a program such that we can run
* it on this host, i.e., don't use the default cross compiler.
*/
#ifndef ComplexHostProgramTarget
#define ComplexHostProgramTarget(program) @@\
CC=cc @@\
STD_INCLUDES= @@\
CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) @@\
EXTRA_LOAD_FLAGS= @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
HostLinkRule($@,$(_NOOP_),$(OBJS),$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
@@\
DependTarget() @@\
@@\
LintTarget() @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(program))
#endif /* ComplexHostProgramTarget */
#ifndef SimpleHostProgramTarget
#define SimpleHostProgramTarget(program) @@\
SRCS = program.c @@\
@@\
CC=cc @@\
STD_INCLUDES= @@\
CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) @@\
EXTRA_LOAD_FLAGS= @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: program.o $(DEPLIBS) @@\
RemoveTargetProgram($@) @@\
HostLinkRule($@,$(_NOOP_),program.o,$(DEPLIBS) $(LOCAL_LIBRARIES)) @@\
@@\
DependTarget() @@\
@@\
LintTarget() @@\
@@\
clean:: @@\
RemoveFile(ProgramTargetName(program))
#endif /* SimpleHostProgramTarget */
XCOMM platform: $XdotOrg: xc/config/cf/ibm.cf,v 1.3 2004/08/30 13:32:51 kem Exp $
XCOMM platform: $Xorg: ibm.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
#ifndef OSName
# define OSName DefaultOSName
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# ifdef DefaultOSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
# elif (OSMajorVersion == 4) && (OSMinorVersion == 1)
# define OSTeenyVersion 3
# else
# define OSTeenyVersion 0
# endif
#endif
XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion)
#define RemoveFiles(files) for f in files; do RemoveFile($$f); done
#if (OSMajorVersion > 4)
# define HasSnprintf YES
# define HasStrcasecmp YES
#endif
#if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion >= 2)
#define HasBSD44Sockets YES
#define HasPutenv YES
#define HasPlugin YES
/*
* If you do not have threads support installed, put
* #define HasPosixThreads NO
* in the BeforeVendorCF section of your site.def.
*/
#if !defined(HasPosixThreads) && ((OSMajorVersion == 3 && (OSMinorVersion > 2 || (OSMinorVersion == 2 && OSTeenyVersion > 4))) || (OSMajorVersion == 4 && (OSMinorVersion > 1 || (OSMinorVersion == 1 && OSTeenyVersion > 1))) || (OSMajorVersion >= 5))
#define HasPosixThreads YES
#endif
#if HasPosixThreads
#ifndef ThreadedX
#define ThreadedX YES
#define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
#endif
#endif
#endif /* OS > 3.2 */
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#ifndef XVirtualFramebufferServer
#define XVirtualFramebufferServer YES
#endif
#if !defined(TermcapLibrary)
#define TermcapLibrary -lcurses
#endif
#if !defined(HasPam) && ((OSMajorVersion == 5) && (OSMinorVersion >= 2) || OSMajorVersion > 5)
#define HasPam YES
#ifndef PamLibraries
#define PamLibraries -lpam
#endif
#endif
/*
* For IBM platforms, we must define both the location of the compiler
* and the location of its standard C++ library. The library location
* is needed to resolve dependent library symbols if we build our own
* C++ shared libraries.
*/
#if !HasGcc2ForCplusplus
# ifndef CplusplusCmd
# if ThreadedX
# define CplusplusCmd xlC_r
# else
# define CplusplusCmd xlC
# endif
# endif
#endif
#ifndef CplusplusFilt
# define CplusplusFilt /usr/lpp/xlC/bin/c++filt
#endif
#ifndef CplusplusLibC
# if ThreadedX
# define CplusplusLibC /usr/lpp/xlC/lib/libC.a
# else
# define CplusplusLibC /usr/lpp/xlC/lib/libC_r.a
# endif
#endif
#if !HasGcc2ForCplusplus
# ifndef CplusplusDependIncludes
# define CplusplusDependIncludes -I/usr/lpp/xlC/include
# endif
#endif
/*
* IBM's xlC refuses to compile files unless their names end in ".C".
* As an alternative to this fix, one could edit /etc/xlC.cfg
* to change the suffix accepted by the compiler, but we prefer not
* requiring users to reconfigure their C++ compilers to make them work.
* We also have to override the default SUFFIXES to defeat the use of
* the builtin .C -> .o file, which doesn't use the right flags.
*/
.SUFFIXES:
.SUFFIXES: .o .c .y .l .s .sh .h .f .Y .L .cxx
#define NormalLibObjCplusplusCompile(options) test -r $*.C || $(LN) $*.CCsuf $*.C @@\
$(CXX) -c $(CXXFLAGS) options $*.C
#define SpecialCplusplusObjectRule(baseobj,basedep,options) @@\
baseobj.Osuf: basedep.CCsuf @@\
test -r basedep.C || $(LN) basedep.CCsuf basedep.C @@\
$(CXX) -c $(CXXFLAGS) options basedep.C
#define BuildLibPathVar LIBPATH
#define SystemV YES
#define LdCombineFlags -r
#define ExecableScripts YES
#define Malloc0ReturnsNull YES
#define CppCmd /usr/ccs/lib/cpp
#define ExpandManNames YES
#define ExtensionOSDefines -DXTESTEXT1
/* IBM cpp has slightly non-standard line directives, but supports -P */
#define CppNoLineInfoOption -P
#if OSMajorVersion > 3
#if OSMajorVersion > 4
#define StandardDefines -DSYSV -DAIXV3 -DAIXV4 -DAIXV5 -D_ALL_SOURCE
#else
#define StandardDefines -DSYSV -DAIXV3 -DAIXV4 -D_ALL_SOURCE
#endif
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#define ServerExtraDefines -D_IBM_LFT
#if ThreadedX
#define CcCmd xlc_r
#else
#define CcCmd xlc
#endif
#define SystemMTDefines /* xlc_r defines -D_THREAD_SAFE */
#define ThreadsLibraries -lpthreads /* xlc_r does -lc_r */
#define ThreadsCplusplusLibraries -lpthreads
#define AvoidNullMakeCommand YES
#define NullMakeCommand @ echo
/* AIX 4 appends all MAKEFLAGS (even dups), so cannot pass on command line. */
#define ConstructMFLAGS NO
#define LdPreLib _Use(-L$(USRLIBDIR),-L$(BUILDLIBDIR))
#define ExtraFilesToClean *.inp
#else /* OSMajorVersion < 4 */
#define StandardDefines -DSYSV -DAIXV3 -D_ALL_SOURCE
#define ServerExtraDefines -D_IBM_HFT
#define CcCmd xlc
#define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
#define SystemMTDefines -D_THREAD_SAFE
#define ThreadsLibraries -lpthreads -lc_r
#endif /* OSMajorVersion */
#define OPERATING_SYSTEM AIX /* directory name under server/ddx/ibm/ */
#define InstallCmd /usr/ucb/install
#include <ibmLib.rules>
#ifndef ManKeywordsTarget
#define ManKeywordsTarget(manpath) @@\
man_keywords:: @@\
/usr/lib/makewhatis $(DESTDIR)manpath
#endif
#define DtMailDefines \
-DI_HAVE_NO_BOOL -DI_HAVE_SELECT_H \
-DBIG_ENDIAN -DSTRCASECMP_NOT_DEFINED -DDO_ANONYMOUS_MAP -DSENDMAIL_LOCKS \
-DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\"
#define ArchitectureDefines -DIBM_ARCHITECTURE
#define ExportListGenSource elistgen.ibm
#define CdeProjectDefines \
-D_AIX -D__AIX -D__aix -D_aix -Daix -DMULTIBYTE -DNLS16 -DMESSAGE_CAT \
-DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion -DAIX
/*
* -D__STR31__ disables inlining of memcpy to work around optimization bug
* in XLC v1.2.0.7. Bug report filed as PMR 8X196, branch 060.
*/
#ifndef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O -D__STR31__ -DNDEBUG
#endif
#define CdeTicDefines -DHAS_KNL -DHAS_KTAB
XCOMM $Xorg: ibmLib.tmpl,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM $XdotOrg: xc/config/cf/ibmLib.tmpl,v 1.6 2005/05/19 18:53:42 ajax Exp $
/*
* AIX shared library template
*/
XCOMM $XFree86: xc/config/cf/ibmLib.tmpl,v 1.3tsi Exp $
/*
* IBM used an unusual shared object file name in some libraries.
* Mimic this behavior to preserve compatibility with IBM's libraries.
*/
#ifndef IBMShr4Compatibility
#define IBMShr4Compatibility YES
#endif
/*
* Imake thinks lines with colons are the result of a broken cpp
* inserting extra leading whitespace, so use ',' as a separator.
*/
#if IBMShr4Compatibility
SHR4OBJLIBS = X11,Xt,oldX,Xm,Mrm,Uil
#endif
#if ThreadedX
#define SharedThreadReqs -lpthreads
#define SharedX11Reqs -lpthreads
#else
#define SharedThreadReqs /**/
#endif
#define SharedXextReqs $(XONLYLIB)
#define SharedXmuReqs $(XTOOLLIB) $(XLIB)
#define SharedXmuuReqs $(XLIBONLY)
#define SharedOldXReqs $(XLIBONLY)
#define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB) SharedThreadReqs
#define SharedXawReqs $(XMULIB) $(XTOOLLIB) $(EXTRAXAWREQS) $(XLIB) $(XPMLIB)
#define SharedXaw7Reqs $(XMULIB) $(XTOOLLIB) $(XLIB) $(XPMLIB)
#define SharedXaw6Reqs $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXiReqs $(XLIB)
#define SharedXtstReqs $(XLIB)
#define SharedXieReqs $(XONLYLIB)
#define SharedSMReqs $(ICELIB)
#define SharedXpReqs $(XLIB)
#define SharedXpmReqs $(XLIB)
#define SharedDPSReqs $(XTOOLLIB) $(XLIB)
#define SharedDPSTKReqs $(DPSLIB) $(XTOOLLIB) $(XLIB)
#define SharedXrenderReqs $(XLIB)
#define SharedXrandrReqs $(XRENDERLIB) $(XLIB)
#define SharedXcursorReqs $(XRENDERLIB) $(XLIB)
#define SharedxkbfileReqs $(XLIBONLY)
#define SharedxkbuiReqs $(XLIBONLY) $(XKBFILELIB)
#define SharedFontencReqs $(BUILDLIBDIR)/libz.a
#define SharedXfontcacheReqs $(XLIB)
#define SharedXfontReqs stubs/libfntstubs.a $(FREETYPE2LIB)
#define SharedXfixesReqs $(XONLYLIB)
#define SharedXdamageReqs $(XONLYLIB)
#define SharedXcompositeReqs $(XONLYLIB)
#define SharedXevieReqs $(XONLYLIB) $(EXTENSIONLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs
#define SharedXmReqs $(LDPRELIBS) SharedXReqs
#define SharedMrmReqs $(LDPRELIBS) $(XMLIB) SharedXReqs
#define SharedUilReqs $(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs
/* #define SharedPamReqs */
#define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
#define SharedDtSvcReqs $(LDPRELIBS) $(TTLIB) $(XMLIB) SharedXReqs $(CXXLIB)
#define SharedDtMmdbReqs $(LDPRELIBS) $(DTSVCLIB) $(TTLIB) $(XMLIB) SharedXReqs $(CXXLIB)
#define SharedDtSearchReqs $(LDPRELIBS) -lisode
#define SharedDtWidgetReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs
#define SharedDtHelpReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs -liconv
#define SharedDtPrintReqs $(LDPRELIBS) $(DTSVCLIB) $(DTHELPLIB) $(XMLIB) SharedXReqs
#define SharedDtTermReqs $(LDPRELIBS) $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -liconv -lm
#define SharedDtMrmReqs $(LDPRELIBS) $(DTTERMLIB) $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(MRESOURCELIB) $(XMLIB) SharedXReqs
#define SharedCsaReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs
#if !defined(UseInstalled) && !defined(UseInstalledX11) \
&& !defined(UseImports) && !defined(ImportX11)
/* we want this to be defined only when building X */
# ifndef FixupLibReferences
# define FixupLibReferences() @@\
DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
# endif
#endif
/* The inbuf paramter to iconv(3) is "const char**", not "char **" */
ICONV_INBUF_DEFINE = -DICONV_INBUF_CONST
ICONVSYSLIB = -liconv
#if (OSMajorVersion > 4) || ((OSMajorVersion == 4) && (OSMinorVersion >= 2))
DYNLIBSYSLIB = -ldl
#endif
XCOMM $Xorg: isc.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM platform: $XFree86: xc/config/cf/isc.cf,v 3.15 1999/07/10 12:17:09 dawes Exp $
#ifndef HasGcc2
#define HasGcc2 YES
#endif
/* INTERACTIVE UNIX SYSTEM (IUS) Version 3.x 4.x */
#if IscVersion > 300
# define ISCVerDef -DISC40 -DISC30
# define OSVendor (IUS Version 4.x)
#else
# if IscVersion == 300
# define ISCVerDef -DISC30
# define OSVendor (ISC Version 3.0)
# else
# if IscVersion == 202
# define OSVendor (ISC Version 2.0.2)
# define ISCVerDef -DISC202
# else
# define OSVendor (ISC Version 2.2.1)
# define ISCVerDef -DISC22
# endif
# endif
#endif
/* Disable the use of /var/X11 */
#ifndef HasVarDirectory
#define HasVarDirectory NO
#endif
/* Use mmap Driver */
#ifndef HasSVR3mmapDrv
# define HasSVR3mmapDrv YES
#endif
#ifndef BuildXF86DRI
# define BuildXF86DRI NO
#endif
#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver YES
#endif
/*
* disable building DRI support into video drivers, which can be done
* even on platforms that don't have functional DRI support.
* maybe not on ISC ? (mr 28.06.1999)
*/
#ifndef BuildXF86DRIDriverSupport
#define BuildXF86DRIDriverSupport NO
#endif
/* to use inline Math from linux ;-) package inline-math-2.6.tar.gz */
/* you should first install the package, available on your favorite linux ftp */
/* and define UseInlineMath YES inside host.def */
#ifndef UseInlineMath
# define UseInlineMath NO
#endif
/* You could use cbrt from liboptm.a (Interactive icc Compiler) */
/* define to YES inside host.def */
#ifndef HasCbrt
# define HasCbrt NO
#endif
/* Use GNUs MallocLibrary */
#ifndef UseGnuMalloc
# define UseGnuMalloc NO
#endif
/* Install Zlib Headers - used in lib/zlib/Imakefile */
#ifndef OsNeedZlibHeaders
# define OsNeedZlibHeaders YES
#endif
/* Expand Manual Pages (needs S5L) */
#ifndef ExpandManNames
# define ExpandManNames NO
#endif
/* if you haven't groff or the TextProcessingWorkbench - do preformat*/
#ifndef FormattedManPages
# define FormattedManPages YES
#endif
#ifndef HasPosixRegex /* Need extra/regex since 3.9Ns */
#define HasPosixRegex NO
#endif
#ifndef DoLoadableServer
#define DoLoadableServer YES
#endif
#ifndef CpuOption
#define CpuOption -m486
#endif
/* gcc 2.7.2/2.8.1 tested Optimization Flags */
#ifndef DefaultGcc2i386Opt
#define DefaultGcc2i386Opt -O2 CpuOption -fno-strength-reduce GccWarningOptions
#endif
/* For a POSIXized build on Interactive maybe needed to use gcc2.7.2 */
#ifndef UsePosix
# define UsePosix YES
#endif
/* ISC 4.1Mu
#define IscCompileVersion 410
*/
#if !defined(IscCompileVersion) && IscVersion < 410
/* ISC 4.0 compatible */
#define IscCompileVersion 400
#endif
#if IscCompileVersion == 400
/* binaries which should run on ISC 4.0 or for the build on a real 4.0 System */
# define UseChmod YES
/* for compatibility with ISC 4.0 - reported by Ami Fischmann */
/* troubles when linking with libX11.a build on ISC4.1 and used with 4.0 */
# define HasSnprintf NO
# define UseXwctomb YES
#endif
#if defined(UseXwctomb)
# define XwctombDefine -DUSE_XMBTOWC
#else
# define XwctombDefine
#endif
#if defined(UseChmod)
# define IscCompatDefines XwctombDefine -DUSE_CHMOD
#else
# define IscCompatDefines XwctombDefine
#endif
#ifdef UsePosix
# define PosixDefines -posix -D_SYSV3 -D_POSIX_SOURCE
#else
# define PosixDefines
#endif
#define OSDefines -DISC ISCVerDef IscCompatDefines
/*
#define OSName Unix System V/386 Release 3.2
#define OSMajorVersion 3
#define OSMinorVersion 2
*/
#ifndef OSMajorVersion
#define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion DefaultOSTeenyVersion
#endif
#ifndef OSName
#define OSName INTERACTIVE UNIX System V/386 Release 3.2
#endif
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
/* Note, cpp already does -Di386 */
#define BootstrapCFlags OSDefines -DSYSV
#if IscVersion > 202
# define LocalLibraries -lpt
# define PosixLibraries -lcposix
#else
# define LocalLibraries MallocLibrary -lpt
# define PosixLibraries
#endif
#define SocketLibraries -linet
#ifndef GnuMallocLibrary
#ifndef UseIscLd
# define GnuMallocLibrary -L/usr/local/lib -lgnumalloc
#else
# define GnuMallocLibrary /usr/local/lib/libgmalloc.a
#endif
#endif
#ifndef MallocLibrary
# if UseGnuMalloc
# define MallocLibrary GnuMallocLibrary
# else
# define MallocLibrary -lmalloc
# endif
#endif
#ifndef ExtraLibraries
# if UseGnuMalloc
# define ExtraLibraries SocketLibraries LocalLibraries MallocLibrary PosixLibraries
# else
# define ExtraLibraries SocketLibraries LocalLibraries PosixLibraries
# endif
#endif
#if UseXwctomb
#define XawI18nDefines -DUSE_XWCHAR_STRING
#else
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif
#if HasCbrt
#define MathLibrary -loptm
#endif
#ifdef UseInlineMath
#define InlineMathDefines -DUseInlineMath
#if !HasCbrt
#define ServerExtraSysLibs $(CBRT) MathLibrary
#endif
#else
#define InlineMathDefines
#endif
#ifndef ServerExtraSysLibs
#define ServerExtraSysLibs $(CBRT)
#endif
#define ServerExtraDefines SVR3mmapFlags XFree86ServerDefines
#if IscVersion > 300
# ifndef HasSymLinks
# define HasSymLinks YES
# endif
#endif
#define HasShm YES
#ifndef HasSnprintf
#define HasSnprintf YES
#endif
#ifndef HasLibCrypt
#define HasLibCrypt YES
#define SpecialLibCrypt -lcrypt
#endif
#ifndef DefaultCDebugFlags
# if HasGcc2
# define DefaultCDebugFlags DefaultGcc2i386Opt PosixDefines InlineMathDefines
# else
# define DefaultCDebugFlags -O PosixDefines InlineMathDefines
# endif
#endif
#if HasGcc2
# define CcCmd gcc
#endif
#ifndef DefaultCplusplusOptions
#define DefaultCplusplusOptions -fno-implicit-templates
#endif
#ifndef ConnectionFlags
#define ConnectionFlags -DLOCALCONN -DTCPCONN
/* -DSTREAMSCONN -DUNIXCONN -- does not work on ISC SVR3 */
#endif
#define CompressManCmd $(COMPRESS) -v
#define XmanSearchPath /usr/catman
#ifndef RemoveDSDENroffMacros
#define RemoveDSDENroffMacros YES
#endif
#include <svr3.cf>
XCOMM $XFree86: xc/config/cf/lnxdoc.rules,v 3.27 2003/01/15 03:17:29 dawes Exp $
XCOMM
XCOMM Rules for formatting Linuxdoc-SGML documentation
XCOMM
#include <lnxdoc.tmpl>
#ifdef DontInstallLinuxDoc
#define LinuxDocInstall(file,dest) /* do nothing */
#define LinuxDocInstallMultiple(files,dest) /* do nothing */
#define LinuxDocInstallIfExists(file,dest) /* do nothing */
#else
#define LinuxDocInstall(file,dest) InstallNonExecFile(file,dest)
#define LinuxDocInstallMultiple(files,dest) @@\
InstallMultipleDest(install,files,dest)
#define LinuxDocInstallIfExists(file,dir) @@\
install:: @@\
MakeDir($(DESTDIR)dir) @@\
@if [ -f file ]; then set -x; \ @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) \ @@\
file $(DESTDIR)dir; \ @@\
fi
#endif
/* Version for sgmlfmt */
#if BuildLinuxDocPS
#define LinuxDocSgmlToPs(sgmlfile,base) @@\
all:: base.ps PdfTarget(base) @@\
@@\
base.ps: sgmlfile $(SGMLDEPENDS) @@\
RemoveFile(_$@ $@) @@\
@(BASE=`basename sgmlfile .sgml`;\ @@\
set -x;\ @@\
RemoveFile($$BASE.ps);\ @@\
$(SGMLFMTCMD) -f ps sgmlfile && \ @@\
$(MV) $$BASE.ps _$@ && $(MV) _$@ $@) @@\
@@\
LinuxDocInstall(base.ps,$(XFREE86PSDOCDIR)) @@\
@@\
ConvertPsToPdf(base) @@\
@@\
LinuxDocInstallIfExists(base.pdf,$(XFREE86PDFDOCDIR)) @@\
@@\
clean:: @@\
RemoveFile(Concat(_,base.ps) base.ps)
#else
#define LinuxDocSgmlToPs(sgmlfile,base) /**/
#endif
#if BuildLinuxDocText
#define LinuxDocSgmlToText(sgmlfile,textfile) @@\
AllTarget(textfile) @@\
@@\
textfile: sgmlfile $(SGMLDEPENDS) @@\
RemoveFiles(_$@ $@) @@\
@(BASE=`basename sgmlfile .sgml`;\ @@\
set -x;\ @@\
RemoveFile($$BASE.latin1);\ @@\
$(SGMLFMTCMD) -f latin1 -b -n sgmlfile && \ @@\
$(CVSIDENTFIX) < $$BASE.latin1 | $(XORGIDENTFIX) | $(XFREE86IDENTFIX) > _$@ && $(MV) _$@ $@ && \ @@\
RemoveFile($$BASE.latin1)) @@\
@@\
LinuxDocInstall(textfile,$(XFREE86DOCDIR)) @@\
@@\
clean:: @@\
@(file=textfile; set -x; RemoveFiles(_$$file $$file))
#else
#define LinuxDocSgmlToText(sgmlfile,textfile) /**/
#endif
#if BuildLinuxDocHtml
#define LinuxDocSgmlToHtml(sgmlfile,base) @@\
AllTarget(base.html) @@\
@@\
base.html: sgmlfile $(SGMLDEPENDS) @@\
@if [ sgmlfile != base.sgml ]; then $(LN) sgmlfile base.sgml; fi @@\
RemoveFiles(base*.html) @@\
$(SGMLFMTCMD) -f html base.sgml || RemoveFile($@) @@\
@if [ sgmlfile != base.sgml ]; then RemoveFile(base.sgml); fi @@\
@@\
LinuxDocInstallMultiple(base*.html,$(XFREE86HTMLDOCDIR)) @@\
@@\
clean:: @@\
RemoveFiles(base*.html)
#else
#define LinuxDocSgmlToHtml(sgmlfile,base) /**/
#endif
/*
* Rule for maintainers to use to updated formatted copies of docs in the
* source tree. Use with care.
*/
#ifndef UpdateFormattedDocLong
#define UpdateFormattedDocLong(textfile,dstdir,dstfile) @@\
update.docs:: textfile @@\
-@if [ -f dstdir/dstfile ]; then \ @@\
if [ "$(FORCEUPDATE)" = yes ]; then set -x; \ @@\
if [ "$(FOLLOWLINK)" = no ]; then \ @@\
$(RM) dstdir/dstfile; \ @@\
fi; \ @@\
cp textfile dstdir/dstfile; \ @@\
echo "" >> dstdir/dstfile; \ @@\
echo "\$$XdotOrg\$$" >> dstdir/dstfile; \ @@\
else \ @@\
$(RM) __tmp1__ __tmp2__; \ @@\
fgrep -v "\$$XdotOrg:" textfile > __tmp1__; \ @@\
fgrep -v "\$$XdotOrg:" dstdir/dstfile > __tmp2__; \ @@\
if diff -B __tmp1__ __tmp2__ > /dev/null 2>&1; then :; \ @@\
else set -x; \ @@\
if [ "$(FOLLOWLINK)" = no ]; then \ @@\
$(RM) dstdir/dstfile; \ @@\
fi; \ @@\
cp textfile dstdir/dstfile ; \ @@\
echo "" >> dstdir/dstfile; \ @@\
echo "\$$XdotOrg"": \$$" >> dstdir/dstfile; \ @@\
fi; \ @@\
fi; \ @@\
fi @@\
@$(RM) __tmp1__ __tmp2__
#endif
#ifndef UpdateFormattedDoc
#define UpdateFormattedDoc(textfile,dstdir) @@\
UpdateFormattedDocLong(textfile,dstdir,textfile)
#endif
/*
* Avoid using LinuxDocTargetLong with base != sgmlfile because HTML
* index generation assumes that base == sgmlfile.
*/
#define LinuxDocTargetLong(sgmlfile,textfile,base) @@\
LinuxDocSgmlToText(sgmlfile,textfile) @@\
LinuxDocSgmlToHtml(sgmlfile,base) @@\
LinuxDocSgmlToPs(sgmlfile,base) @@\
UpdateFormattedDoc(textfile,$(FORMATTEDDIR))
#define LinuxDocReadmeTarget(base) @@\
LinuxDocTargetLong(base.sgml,ReadmeFile(base),base)
#define LinuxDocTarget(base) @@\
LinuxDocTargetLong(base.sgml,base,base)
XCOMM $XFree86: xc/config/cf/lnxdoc.tmpl,v 3.11tsi Exp $
XCOMM
#ifndef HasSgmlFmt
#define HasSgmlFmt NO
#endif
#ifndef HasLinuxDoc
#define HasLinuxDoc NO
#endif
#ifndef DoSgmlDocs
#define DoSgmlDocs (HasLinuxDoc || HasSgmlFmt)
#endif
#ifndef XFree86IdentFix
#define XFree86IdentFix sed -e '/\$$\XFree86:/s/....\/..\/.. ..:..:.. *//' \
-e '/\$$\XFree86:/s/\$$/Generated from /'
#endif
#ifndef XorgIdentFix
#define XorgIdentFix sed -e '/\$$\XdotOrg:/s/....\/..\/.. ..:..:.. *//' \
-e '/\$$\XdotOrg:/s/\$$/Generated from /'
#endif
#ifndef CVSIdentFix
#define CVSIdentFix sed -e '/\$$\Id:/s/....\/..\/.. ..:..:.. *//' \
-e '/\$$\Id:/s/\$$/Generated from /'
#endif
#ifndef HasLatex
#define HasLatex NO
#endif
#ifndef SgmlFmtCmd
#define SgmlFmtCmd sgmlfmt
#endif
#ifndef HasDvips
#define HasDvips NO
#endif
#ifndef DvipsOptions
#define DvipsOptions /**/
#endif
#ifndef DvipsCmd
#define DvipsCmd dvips
#endif
#ifndef BuildLinuxDocText
#define BuildLinuxDocText DoSgmlDocs
#endif
#ifndef BuildLinuxDocHtml
#define BuildLinuxDocHtml DoSgmlDocs
#endif
#ifndef BuildLinuxDocPS
#define BuildLinuxDocPS DoSgmlDocs
#endif
#ifndef BuildSgmlDocs
#define BuildSgmlDocs DoSgmlDocs
#endif
#ifndef ReadmeFile
#define ReadmeFile(base) README.base
#endif
XFREE86IDENTFIX = XFree86IdentFix
XORGIDENTFIX = XorgIdentFix
CVSIDENTFIX = CVSIdentFix
DVIPS = DvipsCmd
DVIPSOPTIONS = DvipsOptions
SGMLFMTCMD = SgmlFmtCmd
XCOMM Some extra things to clean
#ifdef ExtraFilesToClean
#undef ExtraFilesToClean
#endif
#define ExtraFilesToClean *.aux *.dvi *.log *.tex *.toc *.html *.ps *.latin1
XCOMM platform: $Xorg: luna.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
/*
* Please set the values for OSMajorVerion and OSMinorVersion
* before making makefiles.
*
* The Luna version of the make program doesn't define the standard
* macro MAKE, so you must run it as "make MAKE=make" at top level,
* e.g., "make MAKE=make World"
*/
#ifdef Mc68000Architecture
# ifdef luna2
#ifndef OSName
#define OSName Mach 2.5 Vers 1.40
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 1
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 40
#endif
# else
#ifndef OSName
#define OSName UNIOS-B 4.3BSD UNIX: 2.00
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 2
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#define DirFailPrefix -
# endif
#else /* Mc88000Architecture */
#ifndef OSName
#define OSName Mach 2.5 Vers 2.00.1
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 2
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 1
#endif
#endif
XCOMM operating system: OSName
#define HasBsearch NO
#define HasVoidSignalReturn NO
#define HasGcc YES
#define HasCThreads YES
#define HasThreadSafeAPI NO
#define Malloc0ReturnsNull HasCThreads /* -lthreads fails, -lc works */
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
#define BootstrapCFlags -DUSE_CC_E -DNFS_STDOUT_BUG
#define ThreadsLibraries -lthreads -lmach
#define ThreadsCplusplusLibraries -lthreads -lmach
#define PrimaryScreenResolution 100
#define BuildXKB YES
#ifdef Mc68000Architecture
#ifdef luna2
#if ((OSMajorVersion <= 1) && (OSMinorVersion < 40))
#define ServerExtraDefines -DUNUSE_DRV_TIME -DUNUSE_SIGIO_SIGNAL
#endif
#else /* luna1 */
#if ((OSMajorVersion <= 1) && (OSMinorVersion <= 60))
#define StandardDefines -Dluna -Duniosb
#endif
#if ((OSMajorVersion < 2) || ((OSMajorVersion == 2) && (OSMinorVersion < 1)))
#define ServerExtraDefines -DUNUSE_DRV_TIME -DUNUSE_SIGIO_SIGNAL
#endif
#endif /* luna2 */
#if HasGcc
#define OptimizedCDebugFlags -O -traditional
#define ServerCDebugFlags -Dmc68020 -O -traditional
#else /* cc */
#define OptimizedCDebugFlags -O -Z18
#define ServerCDebugFlags -Dmc68020 -O -Z18
#endif /* HasGcc */
#endif /* Mc68000Architecture */
#ifdef Mc88000Architecture
#if ((OSMajorVersion <= 1) && (OSMinorVersion <= 12))
#define ServerExtraDefines -DUNUSE_DRV_TIME -DUNUSE_SIGIO_SIGNAL
#endif
#define HasNdbm YES
#define ExtraLibraries -li18n
#if HasGcc
#define CcCmd gcc -fstrength-reduce
#define PreIncDir /usr/local/lib/gcc/gcc-include
#define OptimizedCDebugFlags -O2 /* -traditional */
#else
#define PreIncDir /usr/lib/ccom/include
#endif
#define PostIncDir /usr/mach/include
#endif
#ifdef Mc68000Architecture
#define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */
#define XlunaServer YES
#endif
#ifdef Mc88000Architecture
#define XlunaServer YES
#endif
#if ((OSMajorVersion >= 2) && (OSMinorVersion >= 0) && (OSTeenyVersion >= 1))
#define HasWChar32 YES
#endif
XCOMM platform: $Xorg: macII.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
#ifndef OSName
#define OSName A/UX 3.0.1
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 3
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 1
#endif
XCOMM operating system: OSName
#if HasGcc
#define BootstrapCFlags -DmacII
#endif
#define SystemV YES
#define HasPoll NO
#define NeedBerklib YES
#define ExtraLibraries $(XBSDLIB) -lposix -lm -lmr
#define Malloc0ReturnsNull YES
#define StandardDefines -DmacII -DSYSV
#define ExecableScripts NO
#define RemoveTargetProgramByMoving YES
#define ExpandManNames YES
#define XmacIIServer YES
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#if MacHasc89
#define CcCmd c89 -D_POSIX_SOURCE
#else
#define HasVoidSignalReturn NO
#endif
#if OSMajorVersion <= 2
#define ServerExtraDefines -DSUPPORT_2_0
#endif
#define InstKmemFlags -g sys -m 2711
#define ExtensionOSDefines -DXTESTEXT1
#if !HasGcc
#define DefaultCCOptions -A 3
#endif
/*
* If you wish to override the man page directories, do so here using just
* one tab between the parameter name (e.g. ManDirectoryRoot) and the
* value so that cpp doesn't get confused.
*/
#define ManDirectoryRoot /usr/catman/u_man
XCOMM $Xorg: mach.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM platform: $XFree86: xc/config/cf/mach.cf,v 3.12 2001/01/17 16:22:32 dawes Exp $
#define OSName Mach 2.5/3.0
#define OSVendor /**/
XCOMM operating system: OSName
#define OSMajorVersion 1
#define OSMinorVersion 1
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define UseGccMakeDepend YES
#define CcCmd gcc
#define CppCmd /usr/mach3/lib/gcc-lib/i386-mach/2.3.3/cpp
#define PreProcessCmd /usr/mach3/lib/gcc-lib/i386-mach/2.3.3/cpp
#define DefaultCCOptions /**/
#define GccGasOption -DGCCUSESGAS
#define AsmDefines -DUSE_GAS
#define BootstrapCFlags -DNOSTDHDRS
#define ExtensionOSDefines /* -DXTESTEXT1 */
#define ServerExtraSysLibs /usr/lib/libmach.a
#ifdef i386Architecture
#define ServerExtraDefines GccGasOption XFree86ServerDefines
#else
#define ServerExtraDefines GccGasOption
#endif
#define StandardCppOptions -traditional
#define StandardCppDefines /**/
#define StandardDefines -DNOSTDHDRS -DMACH386
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
#define AvoidNullMakeCommand YES
#define CompressAllFonts YES
#define DirFailPrefix -
#define HasNdbm YES
#define HasPutenv YES
#define Malloc0ReturnsNull YES
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
#define StripInstalledPrograms YES
#ifndef GnuMallocLibrary
#define GnuMallocLibrary /* -lgnumalloc */
#endif
#ifdef InstallCmd
#undef InstallCmd
#endif
#define InstallCmd /usr/bin/install
#ifndef PreIncDir
# define PreIncDir /usr/include
#endif
#define HasGroff YES
#ifndef ExtraFilesToClean
# define ExtraFilesToClean *.core
#endif
#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver YES
#endif
#ifdef i386Architecture
# include <xorg.cf>
#endif
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment