Commit c0fd23c1 authored by dawes's avatar dawes
Browse files

Import of XFree86 4.0.1b

parent 30722f51
XCOMM $TOG: Imakefile /main/138 1997/12/29 16:37:30 kaleb $
XCOMM $XFree86: xc/Imakefile,v 3.19 2000/05/31 15:02:54 eich Exp $
XCOMM $XFree86: xc/Imakefile,v 3.20 2000/07/07 20:06:55 tsi Exp $
#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
......@@ -50,6 +50,10 @@ VerifyOS::
@echo binutils version: `expr LinuxBinUtilsMajorVersion / 10`.`expr LinuxBinUtilsMajorVersion % 10`
@echo ""
#endif
#if defined(GccMajorVersion) && defined(GccMinorVersion)
@echo GCC version: GccMajorVersion"."GccMinorVersion
@echo ""
#endif
includes::
MakeDir($(BUILDINCDIR))
......
XCOMM platform: $XFree86: xc/config/cf/DGUX.cf,v 1.4 1998/12/29 13:00:46 dawes Exp $
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
*/
......@@ -66,9 +66,6 @@ XCOMM platform: $XFree86: xc/config/cf/DGUX.cf,v 1.4 1998/12/29 13:00:46 dawes
#define HasSockets YES
#define BuildServer YES
#define HasSharedLibraries YES /* to build shared libs */
#define HasGcc YES
#define HasGcc2 YES
#define HasGcc2ForCplusplus YES
#define HasCplusplus YES
#define HasGnuMake YES /* Added for 3.2Xc */
#define UseGnuMalloc YES
......@@ -91,13 +88,6 @@ XCOMM platform: $XFree86: xc/config/cf/DGUX.cf,v 1.4 1998/12/29 13:00:46 dawes
#define StandardDefines -DDGUX -DSVR4 -Di386 -D__ix86 -D_DGUX_SOURCE -D_LITTLE_ENDIAN -D_PENTIUM_CHANGE
#ifndef HasGcc2
#define HasGcc2 YES /* We suppose that your DG/ux has gcc-dg.2.7.2.88 */
#endif /* Do NOT use native DG/ux gcc, it is faulty in general */
#ifndef HasGcc
#define HasGcc HasGcc2
#endif
#define PositionIndependentCFlags -fpic
#define PositionIndependentCplusplusFlags -fpic
......@@ -182,7 +172,7 @@ XCOMM platform: $XFree86: xc/config/cf/DGUX.cf,v 1.4 1998/12/29 13:00:46 dawes
#endif
#ifndef StaticLibrary
#if !HasGcc
#ifndef HasGcc
#define StaticLibrary(libpath,libname) -B static Concat(-L,libpath) Concat(-l,libname) -B dynamic
#endif
#endif
......
......@@ -2,7 +2,7 @@ XCOMM platform: $TOG: FreeBSD.cf /main/21 1997/10/05 20:42:34 kaleb $
XCOMM
XCOMM
XCOMM
XCOMM platform: $XFree86: xc/config/cf/FreeBSD.cf,v 3.95 2000/06/23 19:50:58 dawes Exp $
XCOMM platform: $XFree86: xc/config/cf/FreeBSD.cf,v 3.97 2000/08/01 23:38:45 dawes Exp $
#ifndef UseElfFormat
#define UseElfFormat DefaultToElfFormat
......@@ -39,10 +39,7 @@ XCOMM platform: $XFree86: xc/config/cf/FreeBSD.cf,v 3.95 2000/06/23 19:50:58 da
XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion) (OsRelVersion)
#define HasGcc YES
#define HasGcc2 YES
#define HasCplusplus YES
#define HasGcc2ForCplusplus YES
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
......@@ -495,11 +492,10 @@ InstallManPageAliasesBase(file,destdir,aliases)
#define ServerExtraSysLibs IoLibrary
/*
* A hack to work around an optimisation problem with the compiler on
* FreeBSD 4.0-current in late 1999/early 2000.
* A hack to work around an optimization problem with gcc 2.95.2
*/
#if OSMajorVersion >= 4
#define FreeBSDGccOptBug
#define GccOptBug295
#endif
#include <bsdLib.rules>
......
......@@ -17,7 +17,7 @@ XCOMM $TOG: Imake.cf /main/30 1998/04/28 13:55:25 barstow $
*
* 4. Create a .cf file with the name given by MacroFile.
*/
XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.58 2000/06/30 17:15:05 dawes Exp $
XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.60 2000/08/11 17:27:10 dawes Exp $
#if defined(clipper) || defined(__clipper__)
# undef clipper
......@@ -26,6 +26,16 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.58 2000/06/30 17:15:05 dawes Exp $
# define IngrArchitecture
#endif /* clipper */
#ifdef __CYGWIN__
#define MacroIncludeFile <cygwin.cf>
#define MacroFile cygwin.cf
#define cygwinArchitecture
#define i386Architecture
#undef i386
#undef __i386__
#undef _X86_
#endif /* CYGWIN */
#ifdef ultrix
# define MacroIncludeFile <ultrix.cf>
# define MacroFile ultrix.cf
......@@ -593,6 +603,12 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686
# endif
# undef __alpha__
# endif /* __alpha__ */
# ifdef __arm__
# define Arm32Architecture
# undef arm
# undef __arm
# undef __arm__
# endif
# ifdef mc68000
# define Mc68020Architecture
# undef mc68000
......
XCOMM $XConsortium: Imakefile /main/38 1996/11/07 14:43:46 kaleb $
XCOMM $XFree86: xc/config/cf/Imakefile,v 3.22 2000/01/21 02:29:34 dawes Exp $
XCOMM $XFree86: xc/config/cf/Imakefile,v 3.23 2000/08/09 23:40:08 dawes Exp $
XCOMM Some compilers generate fatal errors if an -L directory does
XCOMM not exist. Since BUILDLIBDIR may not exist yet suppress its use.
......@@ -23,6 +23,7 @@ site.def
RULEFILES = \
Imake.rules \
Motif.rules \
cygwin.rules \
Win32.rules \
X11.rules \
bsdLib.rules \
......@@ -55,6 +56,7 @@ Motif.tmpl \
Server.tmpl \
ServerLib.tmpl \
Threads.tmpl \
cygwin.tmpl \
WinLib.tmpl \
X11.tmpl \
bsdLib.tmpl \
......@@ -82,6 +84,7 @@ Mips.cf \
NetBSD.cf \
OpenBSD.cf \
Oki.cf \
cygwin.cf \
Win32.cf \
apollo.cf \
bsd.cf \
......
......@@ -2,7 +2,7 @@ XCOMM platform: $XConsortium: NetBSD.cf /main/16 1996/10/31 14:47:14 kaleb $
XCOMM platform: $XFree86: xc/config/cf/NetBSD.cf,v 3.83 2000/06/14 00:16:02 dawes Exp $
XCOMM platform: $XFree86: xc/config/cf/NetBSD.cf,v 3.84 2000/07/07 20:06:56 tsi Exp $
#ifndef OSName
......@@ -75,12 +75,6 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
/*
* Compiler Features
*/
#undef HasGcc
#define HasGcc YES
#define HasGcc2 YES
#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus YES
#endif
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
......
XCOMM platform: $XFree86: xc/config/cf/OpenBSD.cf,v 3.37 2000/06/24 17:43:44 dawes Exp $
XCOMM platform: $XFree86: xc/config/cf/OpenBSD.cf,v 3.39 2000/08/01 23:38:45 dawes Exp $
XCOMM
#ifndef OSName
......@@ -80,12 +80,6 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
/*
* Compiler Features
*/
#undef HasGcc
#define HasGcc YES
#define HasGcc2 YES
#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus YES
#endif
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
......@@ -381,11 +375,10 @@ install:: fonts.alias @@\
# endif
/*
* A hack to work around an optimisation problem with the compiler on
* OpenBSD 2.6-current in late 1999/early 2000.
* A hack to work around an optimization problem with gcc 2.95.2
*/
# if OSMajorVersion == 2 && OSMinorVersion >= 6
# define FreeBSDGccOptBug
# define GccOptBug295
# endif
# include <xfree86.cf>
......
XCOMM platform: $XFree86: xc/config/cf/QNX4.cf,v 1.2 2000/01/21 02:29:34 dawes Exp $
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
......@@ -30,8 +30,6 @@ XCOMM in the generated Makefile
#define OSDefines -DQNX4 -DQNX -D__QNX__ -DNO_REGEX -DSTRINGS_ALIGNED -D__i386__
#define SourceDefines -D_POSIX_SOURCE
#define HasGcc NO
#define HasGcc2 NO
#define DoRanlibCmd NO
#undef ArCmd
#define ArCmd wlib -b -c -p=256
......
......@@ -5,7 +5,7 @@ XCOMM
XCOMM
XCOMM
XCOMM
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.71 2000/06/25 20:17:28 dawes Exp $
XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.73 2000/08/09 02:57:19 tsi Exp $
/***************************************************************************
* *
......@@ -274,12 +274,6 @@ XCOMM $XFree86: xc/config/cf/X11.tmpl,v 1.71 2000/06/25 20:17:28 dawes Exp $
#ifndef BuildXvLibrary
#define BuildXvLibrary BuildXvExt
#endif
#ifndef BuildXantiExt
#define BuildXantiExt NO
#endif
#ifndef BuildXantiLibrary
#define BuildXantiLibrary BuildXantiExt
#endif
#ifndef BuildGlxExt
#define BuildGlxExt NO
#endif
......@@ -526,6 +520,9 @@ FCHOWN_DEFINES = -DHAS_FCHOWN
#define GlxDefines /**/
#endif
#endif
#ifndef MesaSrcDir
#define MesaSrcDir $(TOP)/extras/Mesa
#endif
#ifndef ShmDefines
#if HasShm
#define ShmDefines -DMITSHM
......@@ -666,14 +663,6 @@ FCHOWN_DEFINES = -DHAS_FCHOWN
#endif
#endif
#ifndef XantiExtensionDefines
#if BuildXantiExt
#define XantiExtensionDefines -DXANTI
#else
#define XantiExtensionDefines /**/
#endif
#endif
#ifndef RECORDDefines
#if BuildRECORD
#define RECORDDefines -DXRECORD
......@@ -750,7 +739,7 @@ FCHOWN_DEFINES = -DHAS_FCHOWN
XCMiscDefines RECORDDefines \
PexDefines ShmDefines XieDefines BigReqDefines VidModeExtensionDefines \
XF86MiscExtensionDefines DBEDefines DPMSDefines EVIDefines \
ScreenSaverExtensionDefines XvExtensionDefines XantiExtensionDefines \
ScreenSaverExtensionDefines XvExtensionDefines \
GlxDefines FontCacheExtensionDefines SiteExtensionDefines
#endif
#define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
......@@ -1185,6 +1174,7 @@ XCOMM X Window System make variables; these need to be coordinated with rules
EXTINCSRC = $(XTOP)/include/extensions
FTSOURCEDIR = FreeTypeSrcDir
XTTSOURCEDIR = XTrueTypeSrcDir
MESASRCDIR = MesaSrcDir
PSWRAPSRC = $(XTOP)/config/pswrap
TRANSCOMMSRC = $(LIBSRC)/xtrans
TRANS_INCLUDES = -I$(TRANSCOMMSRC)
......@@ -1418,21 +1408,6 @@ ProjectUnsharedLibReferences(XTHRSTUB,XThrStub,$(XTHRSTUBSRC),XBuildLibDir)
#endif
#endif
#if BuildXantiLibrary
#ifndef SharedLibXanti
#define SharedLibXanti NO
#endif
#ifndef NormalLibXanti
#define NormalLibXanti YES
#endif
#ifndef DebugLibXanti
#define DebugLibXanti NO
#endif
#ifndef ProfileLibXanti
#define ProfileLibXanti NO
#endif
#endif
#if BuildGLXLibrary
#ifndef SharedLibGlx
#define SharedLibGlx HasSharedLibraries
......@@ -1622,18 +1597,6 @@ ProjectUnsharedLibReferences(PSRES,psres,$(PSRESLIBSRC),XBuildLibDir)
#endif
#endif
#if BuildXantiLibrary
XANTILIBSRC = $(LIBSRC)/Xanti
#if SharedLibXanti
#ifndef SharedXantiRev
#define SharedXantiRev 1.0
#endif
SharedLibReferences(XANTI,Xanti,$(XANTILIBSRC),SOXANTIREV,SharedXantiRev)
#else
ProjectUnsharedLibReferences(XANTI,Xanti,$(XANTILIBSRC),XBuildLibDir)
#endif
#endif
#if BuildGLXLibrary
GLXLIBSRC = $(LIBSRC)/GL
#if SharedLibGlx
......@@ -1646,8 +1609,6 @@ ProjectUnsharedLibReferences(GLX,GL,$(GLXLIBSRC),XBuildLibDir)
#endif
#endif
#if BuildFontCacheLib
# ifndef SharedLibXfontcache
# define SharedLibXfontcache NO
......
XCOMM platform: $XConsortium: bsdi.cf /main/22 1996/09/28 16:09:30 rws $
XCOMM platform: $XFree86: xc/config/cf/bsdi.cf,v 3.30 2000/06/30 17:15:05 dawes Exp $
XCOMM platform: $XFree86: xc/config/cf/bsdi.cf,v 3.31 2000/08/01 23:38:45 dawes Exp $
#ifndef OSName
#define OSName DefaultOSName
......@@ -87,6 +87,13 @@ XCOMM xf86site.def
# define OptimizedCDebugFlags -O
#endif
/*
* A hack to work around an optimization problem with GCC 2.95.2
*/
#if (OSMajorVersion == 4 && OSMinorVersion == 2)
#define GccOptBug295
#endif
#define CppCmd /usr/bin/cpp
#define TroffCmd groff -Tps
#define MkdirHierCmd mkdir -p
......@@ -160,7 +167,11 @@ XCOMM xf86site.def
#define LdPreLib -L$(BUILDLIBDIR) -L$(USRLIBDIR)
#endif
#if OSMajorVersion >= 4
#define StandardDefines -D__ELF__ -DCSRG_BASED
#else
#define StandardDefines -DCSRG_BASED
#endif
#define InstallCmd /usr/bin/install
#define EqnCmd eqn -Tps
......
XCOMM platform: $XFree86: xc/config/cf/cygwin.cf,v 3.1 2000/08/09 23:40:09 dawes Exp $
XCOMM
XCOMM - changes since B20 Cygwin32 release
XCOMM - avoided tons of "not in XXX directory" messages;
XCOMM - dlls are built stripped;
XCOMM - search for cpp in a default location;
XCOMM - fixed problem with missing netinet/tcp.h;
XCOMM - Added AF_UNIX socket support;
XCOMM - xterm compiles and works;
XCOMM - more libs are built as a DLLs;
XCOMM - all DLLs have different base addresses;
XCOMM - changes since B20 Cygwin32 release
XCOMM - dllwrap is used to build DLLs;
XCOMM - Plan to add WATCOM TCP headers support;
XCOMM - gcc -E is invoked instead of cpp;
#ifndef OSName
#define OSName Cygwin
#endif
#ifndef OSVendor
#define OSVendor Red Hat Inc.
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 1
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 1
#endif
#ifndef OSTeenyVersion 2
#define OSTeenyVersion
#endif
XCOMM #define OSDefines -DSYSV -DSYSV386
#define ProjectRoot /usr/X11R6
#define BuildServer YES
#ifndef UnixCpp
#define UnixCpp
#endif
#define HasGcc YES
#define HasGcc2 YES
#define HasGcc2ForCplusplus YES
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define HasShadowPasswd NO
#define HasLibCrypt YES
#define HasPutenv YES
#define HasPoll NO
#define HasShm NO
#define Hastcl YES
#define Hastk YES
#define TclLibName tcl80
#define TkLibName tk80
#define HasSockets YES
#define GzipFontCompression YES
#define BuildXKB YES
#define BuildXF86MiscExt YES
#define BuildXF86VidModeExt YES /* need -fpcc-struct-return for gcc-2.95.2 or it will fail*/
#define SharedLibFont NO
#define AvoidNullMakeCommand YES
#define StripInstalledPrograms NO
#define CompressAllFonts YES
#define Malloc0ReturnsNull NO
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
#define SetTtyGroup YES
#define ExpandManNames NO
#define HasDlopen NO
#define HasGnuMake YES
XCOMM #define ExtraLoaderDefines DlopenHack
#define DefaultCCOptions -Wall
#define DefaultGcc2i386Opt -O2
#define LibraryCDebugFlags -O2
#define UseGccMakeDepend YES
#define ThreadedX NO
#define HasThreadSafeAPI NO
#define LnCmd ln -s
#define CcCmd gcc
#define CpluplusCmd c++ -fpermissive
#define AsCmd as
XCOMM #define AsCmd gcc -S
#define GccGasOption -DGCCUSESGAS
#define AsmDefines -DUSE_GAS -DGCCUSESGAS
#define LdCmd ld
#define MkdirHierCmd mkdir -p
#define CppCmd cpp
#define YaccCmd byacc
#define LexCmd flex -l
#define LexLib -lfl
#define PreProcessCmd CcCmd -E
XCOMM #define StdIncDir `CcCmd --print-libgcc-file-name | sed ':libgcc.a:../../../../i586-cygwin32/include:'|sed 's,\\\\,/,g'`
XCOMM #define PostIncDir `CcCmd --print-libgcc-file-name | sed ':libgcc.a:/include:'|sed 's,\\\\,/,g'`
#define StdIncDir `CcCmd --print-libgcc-file-name | sed 's,\\\\,/,g' | sed 's,libgcc.a,../../../../i686-pc-cygwin/include,'`
#define PostIncDir `CcCmd --print-libgcc-file-name | sed 's,\\\\,/,g' | sed 's,libgcc.a,include,'`
#define LdCombineFlags -r
#define OptimizedCDebugFlags -O2 -pedantic -fno-strength-reduce -fpcc-struct-return -fvtable-thunks -m486
#define StandardDefines -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_MT -D_X86_ -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE -D_REENTRANT -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DX_SOURCE
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#define HasWChar32 YES
#define StandardCppDefines -traditional StandardDefines
#define ServerOSDefines XFree86ServerDefines -DDDXTIME -DFD_SETSIZE=256 -DDXOSINIT
#define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#define ConnectionFlags -DTCPCONN -DUNIXCONN
#define ExtraLibraries
#define InstUidFlags -m 4711
#define UseRgbTxt YES
#define ExtraFilesToClean *.obj *.orig *.rej junk.c *.exe *.dll *.lib *~
/* This a must to compile for xfddx display driver, or your server will NOT work on Win32. DO NOT change to NO */
#define BuildSurfLibrary YES
/* The DRM module requires Linux kernel services, thus useless for CYGWIN compilers*/
#define BuildXF86DRI NO
#define BuildXF86DRM NO
#define BuildGlxExt YES
#define BuildXinrama YES
#define BuildPlugin NO
#define BuildDPSLibrary YES
XCOMM #define GlxStaticServerLib YES
#define DoLoadableServer NO
/* 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
#define TermcapLibrary -ltermcap
#define XnestServer YES
#define BuildXprint YES
#define XprtServer YES
#define XVirtualFramebufferServer YES
#define XWinServer YES
#define UseSmartScheduler NO
/* --unix option of cygwin make fools the standard MakeFlagsToShellFlags macro */
#define MakeFlagsToShellFlags(makeflags,shellcmd)\
for flag in ${MAKEFLAGS} ''; do \ @@\
case "$$flag" in *=*) ;;--*) ;; *[makeflags]*) shellcmd;; esac; done
#include <cygwin.rules>
#include <xfree86.cf>
/*#include <xttMod.tmpl>*/
XCOMM $XFree86: xc/config/cf/cygwin.rules,v 3.1 2000/08/09 23:40:09 dawes Exp $
#define CPPOnlyAsm(basename,options) RemoveFile(basename.i) @@\
$(CPP) AsmDefines $(DEFINES) $(INCLUDES) options basename.S | grep -v '^\#' > basename.i
/*
* Cygwin shared library rules (DLL versions)
*/
#define HasSharedLibraries YES
#define NeedLibInsideFlag YES
#define ForceNormalLib NO
#define SharedLibXaw NO
#define SharedLibXmu NO
#define SharedLibXt NO
#define SharedLibSM YES
#define SharedLibICE YES
#define SharedLibXext YES
#define SharedLibXie YES
#define SharedLibXi YES
#define SharedLibPex YES
#define SharedLibXtst YES
#define SharedOldX YES
#define SharedLibXp YES
#define SharedLibGL YES
#define SharedLibXpm YES
#define SharedLibFont NO
#define SharedLibXaw6 NO
#define SharedLibgetsurf NO
#define SharedLibDps YES
#define SharedLibDpsTk YES
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <cygwin.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -dll /**/
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -D_DLL
#endif
#ifndef PositionIndependentCplusplusFlags
#define PositionIndependentCplusplusFlags -D_DLL
#endif
#ifndef UseExportLists
#define UseExportLists YES
#endif
/*
* SharedDepLibraryTarget - generate rules to create a shared library.
*/
#ifndef SharedDepLibraryTarget
#ifdef UseInstalled
#ifndef LinkBuildSonameLibrary
#define LinkBuildSonameLibrary(lib)
#endif
#else
#ifndef LinkBuildSonameLibrary
#define LinkBuildSonameLibrary(lib) (RemoveFile($(BUILDLIBDIR)/lib); \
cd $(BUILDLIBDIR); $(LN) $(BUILDINCTOP)/$(CURRENT_DIR)/lib .)
#endif
#endif
#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
SharedLibraryTarget(libname,rev,solist,down,up)
#endif /* SharedDepLibraryTarget */
#ifndef SharedDepModuleTarget
#define SharedDepModuleTarget(name,deps,solist) @@\
AllTarget(name) @@\
@@\
name: deps @@\
$(CC) -o $@ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS) BaseShLibReqs @@\
@@\
clean:: @@\
RemoveFile(name)
#endif /* SharedDepModuleTarget */
/*
* SharedLibraryDataTarget - generate rules to create shared data file
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
BASE_COUNTER=/tmp/DLL_BASE_COUNTER
#define MakeDLL(libname,solist) @@\
if [ -f $(BASE_COUNTER) ]; then true; \ @@\
else echo 0x67000000 > $(BASE_COUNTER); fi @@\
dllwrap -s --def libname.def --output-lib Concat3(lib,libname,.a) -o Concat3(lib,libname,.dll) solist junk.o $(REQUIREDLIBS) -image-base `cat $(BASE_COUNTER)` @@\
IMAGE_LENGTH=`objdump -x Concat3(lib,libname,.dll) |awk '/SizeOfImage/ {print "0x"$$2}'`; \ @@\
export IMAGE_LENGTH=`expr '(' \`printf %u $$IMAGE_LENGTH\` / 65536 + 1 ')' '*' 65536` ; \ @@\
export IMAGE_BASE=`cat $(BASE_COUNTER)`; \ @@\
printf 0x%x `expr \`printf %u $$IMAGE_BASE\` + $$IMAGE_LENGTH` > $(BASE_COUNTER)
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat3(lib,libname,.dll)) @@\
@@\
CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=rev,$(ICONFIGFILES)) @@\
@@\
@@\
junk.c: @@\
echo "#include <cygwin/cygwin_dll.h>" >junk.c @@\
echo "DECLARE_CYGWIN_DLL(dll_main);" >>junk.c @@\