diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-15 16:00:01 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-15 16:00:01 +0000 |
commit | bcd44265f480bc4bd601a5e011d6d717b1dc2af2 (patch) | |
tree | dcda6018c8995c8694fb9a5c1fcc6081295b1c68 | |
parent | c165262a31d03e633191971cd7fc6fdbbdcee691 (diff) |
bring AIX config into the 21st Century
-rw-r--r-- | Imake.cf | 8 | ||||
-rw-r--r-- | Imake.tmpl | 2 | ||||
-rw-r--r-- | ibm.cf | 8 | ||||
-rw-r--r-- | ibmLib.rules | 146 | ||||
-rw-r--r-- | ibmLib.tmpl | 18 |
5 files changed, 133 insertions, 49 deletions
@@ -1,4 +1,4 @@ -XCOMM $XdotOrg$ +XCOMM $XdotOrg: xc/config/cf/Imake.cf,v 1.1.4.3 2003/12/06 13:22:41 kaleb Exp $ XCOMM $Xorg: Imake.cf,v 1.4 2000/08/17 19:41:45 cpqbld Exp $ /* * To add support for another platform: @@ -492,7 +492,11 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.87 2003/11/29 01:08:30 dawes Exp $ # endif # ifdef _IBMR2 # undef _IBMR2 -# define RsArchitecture +# if (DefaultOSMajorVersion < 5) +# define RsArchitecture +# else +# define PpcArchitecture +# endif # endif #endif /* ibm */ @@ -503,6 +503,8 @@ XCOMM the platform-specific parameters - edit site.def to change #define ByteOrder X_BIG_ENDIAN #elif defined(Arm32Architecture) #define ByteOrder X_LITTLE_ENDIAN +#elif defined(RsArchitecture) +#define ByteOrder X_BIG_ENDIAN #elif defined(PpcArchitecture) #define ByteOrder X_BIG_ENDIAN #elif defined(HPArchitecture) @@ -20,6 +20,10 @@ XCOMM platform: $Xorg: ibm.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $ #endif XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion) +#if (OSMajorVersion > 4) +# define HasSnprintf YES +# define HasStrcasecmp YES +#endif #if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion >= 2) #define HasBSD44Sockets YES #define HasPutenv YES @@ -107,7 +111,11 @@ baseobj.Osuf: basedep.CCsuf @@\ #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 diff --git a/ibmLib.rules b/ibmLib.rules index 215c913..64a1257 100644 --- a/ibmLib.rules +++ b/ibmLib.rules @@ -4,8 +4,6 @@ XCOMM $Xorg: ibmLib.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $ * AIX shared library rules */ -XCOMM $XFree86: xc/config/cf/ibmLib.rules,v 3.6 2001/01/17 16:22:31 dawes Exp $ - #ifndef HasSharedLibraries # define HasSharedLibraries YES #endif @@ -18,8 +16,12 @@ XCOMM $XFree86: xc/config/cf/ibmLib.rules,v 3.6 2001/01/17 16:22:31 dawes Exp $ #ifndef SharedCodeDef # define SharedCodeDef -DSHAREDCODE #endif -#ifndef SharedLibraryDef -# define SharedLibraryDef -DAIXSHLIB +#if OSMajorVersion < 5 +# ifndef SharedLibraryDef +# define SharedLibraryDef -DAIXSHLIB +# endif +#else +# define SharedLibraryDef /**/ #endif #ifndef ShLibIncludeFile # define ShLibIncludeFile <ibmLib.tmpl> @@ -32,9 +34,9 @@ XCOMM $XFree86: xc/config/cf/ibmLib.rules,v 3.6 2001/01/17 16:22:31 dawes Exp $ #endif #if !defined(LdPostLib) && !defined(UseInstalled) && OSMajorVersion > 3 # if ThreadedX -# define LdPostLib -blibpath:$(USRLIBDIRPATH):/usr/lib/threads:/usr/lib:/lib +# define LdPostLib -bnoipath -blibpath:$(USRLIBDIRPATH):/usr/lib/threads:/usr/lib:/lib # else -# define LdPostLib -blibpath:$(USRLIBDIRPATH):/usr/lib:/lib +# define LdPostLib -bnoipath -blibpath:$(USRLIBDIRPATH):/usr/lib:/lib # endif # define SharedLibPostRef $(LDPOSTLIBS) #endif @@ -80,51 +82,68 @@ XCOMM $XFree86: xc/config/cf/ibmLib.rules,v 3.6 2001/01/17 16:22:31 dawes Exp $ && !defined(UseImports) && !defined(ImportX11) /* we want this to be defined only when building X */ -# if OSMajorVersion < 4 +# if OSMajorVersion < 5 +# if OSMajorVersion < 4 /* * SharedLibReferences - variables for shared libraries */ +# ifndef SharedLibReferences +# define SharedLibReferences(varname,libname,libsource,revname,rev) @@\ +Concat3(DEP,varname,LIB) = /**/ @@\ +Concat(varname,LIB) = _Use(Concat(-l,libname),Concat(libsource/lib,libname.a)) @@\ +LintLibReferences(varname,libname,libsource) +# endif + +# else /* OSMajorVersion < 4 */ + +# ifndef SharedLibReferences +# define SharedLibReferences(varname,libname,libsource,revname,rev) @@\ +Concat3(DEP,varname,LIB) = /**/ @@\ +Concat(varname,LIB) = _Use(Concat(-l,libname),Concat($(BUILDLIBDIR),/libname.imp) Concat3($(BUILDLIBDIR),/lib,libname.a)) @@\ +LintLibReferences(varname,libname,libsource) +# endif + +# endif +# else /* OSMajorVersion < 5 */ + # ifndef SharedLibReferences # define SharedLibReferences(varname,libname,libsource,revname,rev) @@\ Concat3(DEP,varname,LIB) = /**/ @@\ -Concat(varname,LIB) = _Use(Concat(-l,libname),Concat(libsource/lib,libname.a)) @@\ +Concat(varname,LIB) = _Use(Concat(-l,libname), Concat3($(BUILDLIBDIR),/lib,libname.so)) @@\ LintLibReferences(varname,libname,libsource) # endif # endif -# if OSMajorVersion < 4 +# if OSMajorVersion < 5 +# if OSMajorVersion < 4 /* * SharedFontLibReferences - shared font libraries */ -# ifndef SharedLibReferences -# define SharedLibReferences() @@\ +# ifndef SharedFontLibReferences +# define SharedFontLibReferences() @@\ DEPFONTLIB = /**/ @@\ FONTLIB = -L$(FREETYPELIBDIR) _Use(-lXfont,$(FONTLIBSRC)/libXfont.a) @@\ LintLibReferences(XFONT,Xfont,$(FONTLIBSRC)) +# endif +# else +# ifndef SharedFontLibReferences +# define SharedFontLibReferences() @@\ +DEPFONTLIB = /**/ @@\ +FONTLIB = -L$(FREETYPELIBDIR) _Use(-lXfont,$(BUILDLIBDIR)/font.imp) $(BUILDLIBDI)/libXfont.a)) @@\ +LintLibReferences(XFONT,Xfont,$(FONTLIBSRC)) +# endif # endif - -# else - +# else /* OSMajorVersion < 5 */ # ifndef SharedFontLibReferences # define SharedFontLibReferences() @@\ DEPFONTLIB = /**/ @@\ -FONTLIB = -L$(FREETYPELIBDIR) _Use(-lXfont,$(BUILDLIBDIR)/font.imp) $(BUILDLIBDI -)/libXfont.a)) @@\ +FONTLIB = -L$(FREETYPELIBDIR) _Use(-lXfont,$(BUILDLIBDI)/libXfont.so)) @@\ LintLibReferences(XFONT,Xfont,$(FONTLIBSRC)) # endif -# else - -# ifndef SharedLibReferences -# define SharedLibReferences(varname,libname,libsource,revname,rev) @@\ -Concat3(DEP,varname,LIB) = /**/ @@\ -Concat(varname,LIB) = _Use(Concat(-l,libname),Concat($(BUILDLIBDIR),/libname.imp) Concat3($(BUILDLIBDIR),/lib,libname.a)) @@\ -LintLibReferences(varname,libname,libsource) -# endif - # endif /* @@ -173,10 +192,11 @@ InstallLibrary(libname,dest) * IBM uses an unusual shared object file name (shr4.o) in some libraries. * Duplicate this behavior to preserve compatibility with IBM's libraries. */ -#if OSMajorVersion < 4 +#if OSMajorVersion < 5 +# if OSMajorVersion < 4 -# ifndef SharedLibraryTarget -# define SharedLibraryTarget(libname,rev,solist,down,up) @@\ +# ifndef SharedLibraryTarget +# define SharedLibraryTarget(libname,rev,solist,down,up) @@\ AllTarget(Concat(lib,libname.a)) @@\ @@\ Concat(lib,libname.a): solist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ @@ -194,12 +214,12 @@ Concat(lib,libname.a): solist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ @@\ clean:: @@\ $(RM) Concat(lib,libname.a) -# endif /* SharedLibraryTarget */ +# endif /* SharedLibraryTarget */ -#else /* OSMajorVersion >= 4 */ +# else /* OSMajorVersion < 4 */ -# ifndef SharedLibraryTarget -# define SharedLibraryTarget(libname,rev,solist,down,up) @@\ +# ifndef SharedLibraryTarget +# define SharedLibraryTarget(libname,rev,solist,down,up) @@\ AllTarget(Concat(lib,libname.a)) @@\ @@\ Concat(lib,libname.a): solist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ @@ -218,23 +238,42 @@ Concat(lib,libname.a): solist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ @@\ clean:: @@\ $(RM) Concat(lib,libname.a) -# endif /* SharedLibraryTarget */ +# endif /* SharedLibraryTarget */ +# endif /* OSMajorVersion < 4 */ +#else /* OSMajorVersion < 5 */ +# ifndef SharedLibraryTarget +# define SharedLibraryTarget(libname,rev,solist,down,up) @@\ +AllTarget(Concat(lib,libname.so)) @@\ + @@\ +Concat(lib,libname.so): solist $(EXTRALIBRARYDEPS) @@\ + $(RM) $@~ @@\ + $(AR) $*.a solist @@\ + dump -g $*.a | sed -n -e 's/^[ ]*[0-9][0-9]*[[:space:]]*\([_[:alpha:]][[:alnum:]]*\)/\1/p' | egrep -v \\\. | sort | uniq > $*.syms @@\ + $(LD) -bnoipath -bnoentry -bM\:SRE -bE\:$*.syms -o $@~ solist $(REQUIREDLIBS) BaseShLibReqs -lc @@\ + $(RM) $@ $*.a $*.syms @@\ + $(MV) $@~ $@ @@\ + LinkBuildLibrary($@) @@\ + @@\ +clean:: @@\ + $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so) -#endif +# endif /* SharedLibraryTarget */ +#endif /* OSMajorVersion < 5 */ /* * SharedDepLibraryTarget - generate rules to create a shared library. */ -#if OSMajorVersion < 4 +#if OSMajorVersion < 5 +# if OSMajorVersion < 4 -# ifndef SharedDepLibraryTarget -# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ +# ifndef SharedDepLibraryTarget +# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ AllTarget(Concat(lib,libname.a)) @@\ @@\ Concat(lib,libname.a): deplist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ $(RM) $@~ shr.o shr4.o @@\ (cd down; $(AR) up/$@~ solist) @@\ - dump -g $@~ | sed -n -e 's/^[ ]*[0-9][0-9]*[ ]*\([^ .][^ ]*\)$$/\1/p' > $@.syms @@\ + dump -g $@~ | sed -n -e 's/^[ ]*[0-9][0-9]*[ ]*\([^ .][^ ]*\)$$/\1/p' > $@.syms @@\ $(LD) -o shr.o $@~ -H512 -T512 -bM\:SRE -bE\:$@.syms $(REQUIREDLIBS) BaseShLibReqs SharedLibPostRef @@\ $(LN) shr.o shr4.o @@\ $(RM) $@~ @@\ @@ -246,12 +285,12 @@ Concat(lib,libname.a): deplist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ @@\ clean:: @@\ $(RM) Concat(lib,libname.a) -# endif /* SharedDepLibraryTarget */ +# endif /* SharedDepLibraryTarget */ -#else /* OSMajorVersion >= 4 */ +# else /* OSMajorVersion < 4 */ -# ifndef SharedDepLibraryTarget -# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ +# ifndef SharedDepLibraryTarget +# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ AllTarget(Concat(lib,libname.a)) @@\ @@\ Concat(lib,libname.a): deplist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ @@ -270,9 +309,28 @@ Concat(lib,libname.a): deplist $(UNSHAREDOBJS) $(EXTRALIBRARYDEPS) @@\ @@\ clean:: @@\ $(RM) Concat(lib,libname.a) -# endif /* SharedDepLibraryTarget */ +# endif /* SharedDepLibraryTarget */ -#endif +# endif /* OSMajorVersion < 4 */ +#else /* OSMajorVersion < 5 */ +# ifndef SharedDepLibraryTarget +# define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ +AllTarget(Concat(lib,libname.so)) @@\ + @@\ +Concat(lib,libname.so): deplist $(EXTRALIBRARYDEPS) @@\ + $(RM) $@~ @@\ + $(AR) $*.a solist @@\ + dump -g $*.a | sed -n -e 's/^[ ]*[0-9][0-9]*[[:space:]]*\([_[:alpha:]][[:alnum:]]*\)/\1/p' | egrep -v \\\. | sort | uniq > $*.syms @@\ + $(LD) -bnoipath -bnoentry -bsymbolic -bM\:SRE -bE\:$*.syms -o $@~ solist $(REQUIREDLIBS) BaseShLibReqs -lc @@\ + $(RM) $@ $*.a $*.syms @@\ + $(MV) $@~ $@ @@\ + LinkBuildLibrary($@) @@\ + @@\ +clean:: @@\ + $(RM) Concat(lib,libname.so) Concat(lib,libname.so) + +# endif /* SharedDepLibraryTarget */ +#endif /* OSMajorVersion < 5 */ /* * SharedLibraryDataTarget - generate rules to create shlib data file; diff --git a/ibmLib.tmpl b/ibmLib.tmpl index 9546ba9..38e558e 100644 --- a/ibmLib.tmpl +++ b/ibmLib.tmpl @@ -31,9 +31,11 @@ XCOMM $XFree86: xc/config/cf/ibmLib.tmpl,v 1.4 2003/05/27 21:56:40 tsi Exp $ #define SharedXextReqs $(XONLYLIB) #define SharedXmuReqs $(XTOOLLIB) $(XLIB) -#define SharedOldXReqs $(XONLYLIB) -#define SharedXtReqs $(XONLYLIB) $(SMLIB) $(ICELIB) SharedThreadReqs -#define SharedXawReqs $(XMULIB) $(XTOOLLIB) $(XLIB) +#define SharedXmuuReqs $(XLIBONLY) +#define SharedOldXReqs $(XLIBONLY) +#define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB) SharedThreadReqs +#define SharedXawReqs $(XMULIB) $(XTOOLLIB) $(XLIB) $(XPMLIB) +#define SharedXaw6Reqs $(XMULIB) $(XTOOLLIB) $(XLIB) #define SharedXiReqs $(XLIB) #define SharedXtstReqs $(XLIB) #define SharedPexReqs $(XONLYLIB) @@ -41,6 +43,16 @@ XCOMM $XFree86: xc/config/cf/ibmLib.tmpl,v 1.4 2003/05/27 21:56:40 tsi Exp $ #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 SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs #define SharedXmReqs $(LDPRELIBS) SharedXReqs |