head	1.2;
access;
symbols
	netbsd-7-2-RELEASE:1.1.1.7
	netbsd-7-1-2-RELEASE:1.1.1.7
	netbsd-7-1-1-RELEASE:1.1.1.7
	netbsd-7-1:1.1.1.7.0.28
	netbsd-7-1-RELEASE:1.1.1.7
	netbsd-7-1-RC2:1.1.1.7
	netbsd-7-1-RC1:1.1.1.7
	netbsd-7-0-2-RELEASE:1.1.1.7
	netbsd-7-0-1-RELEASE:1.1.1.7
	netbsd-7-0:1.1.1.7.0.26
	netbsd-7-0-RELEASE:1.1.1.7
	netbsd-7-0-RC3:1.1.1.7
	netbsd-7-0-RC2:1.1.1.7
	netbsd-7-0-RC1:1.1.1.7
	netbsd-5-2-3-RELEASE:1.1.1.7
	netbsd-5-1-5-RELEASE:1.1.1.7
	netbsd-6-0-6-RELEASE:1.1.1.7
	netbsd-6-1-5-RELEASE:1.1.1.7
	netbsd-7:1.1.1.7.0.24
	netbsd-7-base:1.1.1.7
	netbsd-6-1-4-RELEASE:1.1.1.7
	netbsd-6-0-5-RELEASE:1.1.1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.7
	riastradh-drm2:1.1.1.7.0.22
	riastradh-drm2-base:1.1.1.7
	netbsd-6-1-3-RELEASE:1.1.1.7
	netbsd-6-0-4-RELEASE:1.1.1.7
	netbsd-5-2-2-RELEASE:1.1.1.7
	netbsd-5-1-4-RELEASE:1.1.1.7
	netbsd-6-1-2-RELEASE:1.1.1.7
	netbsd-6-0-3-RELEASE:1.1.1.7
	netbsd-5-2-1-RELEASE:1.1.1.7
	netbsd-5-1-3-RELEASE:1.1.1.7
	netbsd-6-1-1-RELEASE:1.1.1.7
	netbsd-6-1:1.1.1.7.0.20
	netbsd-6-0-2-RELEASE:1.1.1.7
	netbsd-6-1-RELEASE:1.1.1.7
	netbsd-6-1-RC4:1.1.1.7
	netbsd-6-1-RC3:1.1.1.7
	netbsd-6-1-RC2:1.1.1.7
	netbsd-6-1-RC1:1.1.1.7
	netbsd-5-2:1.1.1.7.0.18
	netbsd-6-0-1-RELEASE:1.1.1.7
	netbsd-5-2-RELEASE:1.1.1.7
	netbsd-5-2-RC1:1.1.1.7
	netbsd-6-0:1.1.1.7.0.16
	netbsd-6-0-RELEASE:1.1.1.7
	netbsd-6-0-RC2:1.1.1.7
	netbsd-6-0-RC1:1.1.1.7
	netbsd-6:1.1.1.7.0.14
	netbsd-6-base:1.1.1.7
	netbsd-5-1-2-RELEASE:1.1.1.7
	netbsd-5-1-1-RELEASE:1.1.1.7
	netbsd-5-1:1.1.1.7.0.12
	netbsd-5-1-RELEASE:1.1.1.7
	netbsd-5-1-RC4:1.1.1.7
	netbsd-5-1-RC3:1.1.1.7
	netbsd-5-1-RC2:1.1.1.7
	netbsd-5-1-RC1:1.1.1.7
	netbsd-5-0-2-RELEASE:1.1.1.7
	netbsd-5-0-1-RELEASE:1.1.1.7
	netbsd-5-0:1.1.1.7.0.10
	netbsd-5-0-RELEASE:1.1.1.7
	netbsd-5-0-RC4:1.1.1.7
	netbsd-5-0-RC3:1.1.1.7
	netbsd-5-0-RC2:1.1.1.7
	netbsd-5-0-RC1:1.1.1.7
	netbsd-5:1.1.1.7.0.8
	netbsd-5-base:1.1.1.7
	netbsd-4-0-1-RELEASE:1.1.1.7
	netbsd-4-0:1.1.1.7.0.6
	netbsd-4-0-RELEASE:1.1.1.7
	netbsd-4-0-RC5:1.1.1.7
	netbsd-4-0-RC4:1.1.1.7
	netbsd-4-0-RC3:1.1.1.7
	netbsd-4-0-RC2:1.1.1.7
	netbsd-4-0-RC1:1.1.1.7
	netbsd-3-1-1-RELEASE:1.1.1.6.6.1
	netbsd-3-0-3-RELEASE:1.1.1.6.6.1
	abandoned-netbsd-4-base:1.1.1.7
	abandoned-netbsd-4:1.1.1.7.0.2
	netbsd-3-1:1.1.1.6.6.1.0.4
	netbsd-3-1-RELEASE:1.1.1.6.6.1
	netbsd-3-0-2-RELEASE:1.1.1.6.6.1
	netbsd-3-1-RC4:1.1.1.6.6.1
	netbsd-3-1-RC3:1.1.1.6.6.1
	netbsd-3-1-RC2:1.1.1.6.6.1
	netbsd-3-1-RC1:1.1.1.6.6.1
	netbsd-4:1.1.1.7.0.4
	netbsd-4-base:1.1.1.7
	netbsd-3-0-1-RELEASE:1.1.1.6.6.1
	netbsd-3-0:1.1.1.6.6.1.0.2
	netbsd-3-0-RELEASE:1.1.1.6.6.1
	netbsd-3-0-RC6:1.1.1.6.6.1
	netbsd-3-0-RC5:1.1.1.6.6.1
	netbsd-3-0-RC4:1.1.1.6.6.1
	netbsd-3-0-RC3:1.1.1.6.6.1
	netbsd-3-0-RC2:1.1.1.6.6.1
	netbsd-3-0-RC1:1.1.1.6.6.1
	netbsd-2-0-3-RELEASE:1.1.1.6
	netbsd-2-1:1.1.1.6.0.8
	netbsd-2-1-RELEASE:1.1.1.6
	netbsd-2-1-RC6:1.1.1.6
	netbsd-2-1-RC5:1.1.1.6
	netbsd-2-1-RC4:1.1.1.6
	netbsd-2-1-RC3:1.1.1.6
	netbsd-2-1-RC2:1.1.1.6
	netbsd-2-1-RC1:1.1.1.6
	netbsd-2-0-2-RELEASE:1.1.1.6
	v4-5-0:1.1.1.7
	v4-5-0_beforeimport:1.1.1.6
	netbsd-3:1.1.1.6.0.6
	netbsd-3-base:1.1.1.6
	netbsd-2-0-1-RELEASE:1.1.1.6
	netbsd-2:1.1.1.6.0.4
	netbsd-2-base:1.1.1.6
	netbsd-2-0-RELEASE:1.1.1.6
	netbsd-2-0-RC5:1.1.1.6
	netbsd-2-0-RC4:1.1.1.6
	netbsd-2-0-RC3:1.1.1.6
	netbsd-2-0-RC2:1.1.1.6
	netbsd-2-0-RC1:1.1.1.6
	netbsd-2-0:1.1.1.6.0.2
	netbsd-2-0-base:1.1.1.6
	v4-4-0:1.1.1.6
	v4-4-0_beforeimport:1.1.1.5
	netbsd-1-6-PATCH002-RELEASE:1.1.1.5
	netbsd-1-6-PATCH002:1.1.1.5
	netbsd-1-6-PATCH002-RC4:1.1.1.5
	v4-3-0-2003-12-19:1.1.1.5
	netbsd-1-6-PATCH002-RC3:1.1.1.5
	netbsd-1-6-PATCH002-RC2:1.1.1.5
	netbsd-1-6-PATCH002-RC1:1.1.1.5
	netbsd-1-6:1.1.1.5.0.2
	netbsd-1-6-base:1.1.1.5
	v4-3-0:1.1.1.5
	v4-3-0_beforeimport:1.1.1.4
	netbsd-1-6-PATCH001:1.1.1.4
	netbsd-1-6-RELEASE:1.1.1.4
	v4-2-1:1.1.1.4
	v4-2-1_beforeimport:1.1.1.4
	netbsd-1-5-PATCH003:1.1.1.4
	v4-2-0:1.1.1.4
	netbsd-1-5-PATCH002:1.1.1.3
	netbsd-1-5-PATCH001:1.1.1.2
	v4-1-0:1.1.1.3
	v4-0-3:1.1.1.2
	v4-0-2:1.1.1.1
	XF86:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2015.07.23.08.12.32;	author mrg;	state dead;
branches;
next	1.1;
commitid	3Fk7MoycOv7VSnuy;

1.1
date	2001.01.01.12.43.51;	author veego;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.01.01.12.43.51;	author veego;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.03.18.16.55.53;	author veego;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2001.06.09.14.52.56;	author tron;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2002.01.19.14.53.43;	author tron;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2003.02.28.13.18.42;	author tron;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2004.03.05.14.23.52;	author tron;	state Exp;
branches
	1.1.1.6.6.1;
next	1.1.1.7;

1.1.1.7
date	2005.03.18.13.03.12;	author tron;	state Exp;
branches;
next	;

1.1.1.6.6.1
date	2005.04.06.19.59.31;	author tron;	state Exp;
branches;
next	;


desc
@@


1.2
log
@remove obsolete XFree86 sources.
@
text
@XCOMM $TOG: lnxLib.rules /main/14 1998/03/16 11:15:30 mgreess $
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.38 2000/06/15 20:49:56 dawes Exp $

/*
 * Linux shared library rules (DLL & ELF versions)
 */
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef ForceNormalLib
#define ForceNormalLib NO
#endif

#ifndef SharedOldX
#define SharedOldX NO
#endif

#if UseElfFormat

#if (LinuxCLibMajorVersion >= 5 && LinuxCLibMinorVersion >= 4) || LinuxCLibMajorVersion >= 6
#ifndef SpecialMalloc
#define SpecialMalloc NO
#endif
#if 0
#ifndef UseInternalMalloc
#define UseInternalMalloc NO
#endif
#endif
#endif

#if LinuxCLibMajorVersion <= 5
/*
 *	#define BaseShLibReqs	-lc
 *
 * I don't want to use this since the normal ELF executables should
 * be linked with libc.so. If it is not, i.e., static, the variables in
 * libc.so which is loaded in because of the other shared libraries
 * may have different values than the ones in the static ELF
 * executables. That happens if the binaries are linked with libg.a
 * or libc_p.a.
 *
 * If an ELF executable linked with libg.a or libc_p.a loads a shared
 * object which needs libc.so via dlopen (), I think it should fail.
 * It is a very bad idea. The moral story is DON'T USE dlopen () IN
 * ELF EXECUTABLES LINKED WITH libg.a OR libc_p.a. H.J.
 *
 */
#define BaseShLibReqs
#else
/* With GNU libc 2 this works fine. */
#define BaseShLibReqs	-lc
#endif

#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <lnxLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -shared
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -fPIC
#endif
#ifndef PositionIndependentCplusplusFlags
#define PositionIndependentCplusplusFlags -fPIC
#endif
#ifndef ExtraLoadFlags
#if LinuxBinUtilsMajorVersion >= 26
#ifdef UseInstalled
#if LinuxBinUtilsMajorVersion < 27
#define ExtraLoadFlags -Wl,-rpath-link,$(USRLIBDIRPATH)
#endif
#else
#define ExtraLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR)
#endif
#else
#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
#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/\.[^\.]*$$//'`;\
	  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
#ifdef UseInstalled
#define LinkBuildSonameLibrary(lib) true
#else
#define LinkBuildSonameLibrary(lib) (RemoveFile($(BUILDLIBDIR)/lib); \
	cd $(BUILDLIBDIR); $(LN) $(BUILDINCTOP)/$(CURRENT_DIR)/lib .)
#endif

#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/\.[^\.]*$$//'`; 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=`expr rev : '\(.*\)\.'`; \				@@@@\
	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
#ifdef UseInstalled
#ifndef LinkBuildSonameLibrary
#define LinkBuildSonameLibrary(lib) true
#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)	@@@@\
AllTarget(Concat(lib,libname.so.rev))					@@@@\
									@@@@\
Concat(lib,libname.so.rev):  deplist $(EXTRALIBRARYDEPS)		@@@@\
	$(RM) $@@~							@@@@\
	@@SONAME=`echo $@@ | sed 's/\.[^\.]*$$//'`; 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=`expr rev : '\(.*\)\.'`; \				@@@@\
	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 */

#else /* UseElfFormat */

#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <lnxLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags /**/
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags -B/usr/bin/jump
#endif

/*
 * These definitions are now extended to work with the X sources and
 * external sources wishing to build shared libs.
 *
 * A library can create it's own shlibs (.so) or can be incorporated into
 * another "host" lib. All libraries generate stub (.sa) files.
 * A "host" lib does all the work to generate the stubs for itself and its
 * "guests", invoking the "guest" Makefiles to create the objects for
 * inclusion into the "host" shlib. A "guest" lib will ask the "host" to
 * create the stubfiles, then copy its own into its directory.
 * Most external libs are "host" libs; the concept of "guest" is a holdover
 * from older libs during the days of scarce shared library address space.
 *
 * To create a simple "host" shared lib, Xfoo, define:
 *
 *  JUMP_ROOT_Xfoo = <source directory>
 *  JUMP_IS_HOST_Xfoo = YES
 *  JUMP_STUBLIBS_Xfoo = libXfoo.sa
 *  JUMP_DIR_Xfoo = $(JUMP_ROOT_Xfoo)/shared		<work directory>
 *  JUMP_DEFS_Xfoo = -DFOO				<defs for jump files>
 *  JUMP_VARS_Xfoo = $(JUMP_ROOT_Xfoo)/jump_vars	<see DLL docs>
 *  JUMP_FUNCS_Xfoo = $(JUMP_ROOT_Xfoo)/jump_funcs	<see DLL docs>
 *  JUMP_IGNORE_Xfoo = $(JUMP_ROOT_Xfoo)/jump_ignore	<see DLL docs>
 *  JUMP_EXPORT_Xfoo = $(JUMP_DIR_Xfoo)/jump.vars	<exported symbols>
 *  JUMP_IMPORT_Xfoo = $(JUMP_EXPORT_Xbar)		<imported symbols>
 *  JUMP_ADDRESS_Xfoo = 0xXXXXXXXX			<fill in with address>
 *  JUMP_JUMPTABLESIZE_Xfoo = 0x4000			<adjust if necessary>
 *  JUMP_GOTSIZE_Xfoo = 4096				<adjust if necessary>
 *  JUMP_STUBNAMES_Xfoo = libXfoo			<and others>
 *  JUMP_STUBS_IMPORT_Xfoo = /usr/lib/libc.sa		<and others>
 *  JUMP_LDLIBS_Xfoo = `$(CC) --print-libgcc-file-name` -lc <and others>
 *
 * To create a complex "host", you need to add
 *  JUMP_SIBARS_Xt = jump/libXbar.a~			<and others>
 * These are the archives of the shared objects of the "guest" libs. They
 * need to be added to the JUMP_LDLIBS_Xfoo lines.
 *
 * For further clarification, study the definitions of libXaw, a simple "host"
 * lib, libXt, a complex "host" lib, and libXmu, one of libXts "guests".
 *
 * As a hint of how to start (with the DLL docs), touch jump_vars, jump_funcs
 * and jump_ignore, then compile. Then massage the jump.vars and jump.funcs
 * files in the shared subdirectory into jump_xxx files.
 */

#ifndef UseInstalled
XCOMM These are only needed to build the server

#if LinuxElfDefault
LIBC_SA = /usr/i486-linuxaout/lib/libc.sa
LIBM_SA = /usr/i486-linuxaout/lib/libm.sa
#else
LIBC_SA = /usr/lib/libc.sa
LIBM_SA = /usr/lib/libm.sa
#endif

JUMP_LDLIBS_libc = `$(CC) --print-libgcc-file-name` -lc

XCOMM libX11.so (X11, SM, ICE)
JUMP_ROOT_X11 = $(XLIBSRC)
JUMP_IS_HOST_X11 = YES
JUMP_STUBLIBS_X11 = libX11.sa libSM.sa libICE.sa
JUMP_SIBDIRS_X11 = $(JUMP_ROOT_SM) $(JUMP_ROOT_ICE)
JUMP_DIR_X11 = $(JUMP_ROOT_X11)/shared
JUMP_DEFS_X11 = $(XDMAUTHDEFS) $(XKB_DEFINES)
JUMP_VARS_X11 = $(JUMP_ROOT_X11)/jump_vars
JUMP_FUNCS_X11 = $(JUMP_ROOT_X11)/jump_funcs
JUMP_IGNORE_X11 = $(JUMP_ROOT_X11)/jump_ignore
JUMP_EXPORT_X11 = $(JUMP_DIR_X11)/jump.vars
JUMP_ADDRESS_X11 = 0x60200000
JUMP_JUMPTABLESIZE_X11 = 0x4000
JUMP_GOTSIZE_X11 = 4096
JUMP_STUBNAMES_X11 = libX11 libSM libICE
JUMP_STUBS_IMPORT_X11 = $(LIBC_SA)
JUMP_SIBARS_X11 = jump/libSM.a~ jump/libICE.a~
JUMP_LDLIBS_X11 = $(JUMP_SIBARS_X11) $(JUMP_LDLIBS_libc)

XCOMM libSM (part of libX11.so)
JUMP_ROOT_SM = $(SMSRC)
JUMP_IS_HOST_SM = NO
JUMP_HOST_SM = $(JUMP_ROOT_X11)
JUMP_DIR_SM = $(JUMP_DIR_X11)

XCOMM libICE (part of libX11.so)
JUMP_ROOT_ICE = $(ICESRC)
JUMP_IS_HOST_ICE = NO
JUMP_HOST_ICE = $(JUMP_ROOT_X11)
JUMP_DIR_ICE = $(JUMP_DIR_X11)

XCOMM libXt.so (Xt, Xmu, Xext, Xi, Xtst, Xp)
JUMP_ROOT_Xt = $(TOOLKITSRC)
JUMP_IS_HOST_Xt = YES
JUMP_STUBLIBS_Xt = libXt.sa libXmu.sa libXext.sa libXi.sa libXtst.sa libXp.sa
JUMP_SUBDIRS_Xt = $(JUMP_ROOT_X11)
JUMP_SIBDIRS_Xt = $(JUMP_ROOT_Xmu) $(JUMP_ROOT_Xext) \
	$(JUMP_ROOT_Xi) $(JUMP_ROOT_Xtst) $(JUMP_ROOT_Xp)
JUMP_DIR_Xt = $(JUMP_ROOT_Xt)/shared
JUMP_VARS_Xt = $(JUMP_ROOT_Xt)/jump_vars
JUMP_FUNCS_Xt = $(JUMP_ROOT_Xt)/jump_funcs
JUMP_IGNORE_Xt = $(JUMP_ROOT_Xt)/jump_ignore
JUMP_EXPORT_Xt = $(JUMP_DIR_Xt)/jump.vars
JUMP_IMPORT_Xt = $(JUMP_EXPORT_X11)
JUMP_ADDRESS_Xt = 0x602a0000
JUMP_JUMPTABLESIZE_Xt = 0x4000
JUMP_GOTSIZE_Xt = 4096
JUMP_STUBNAMES_Xt = libXt libXmu libXext libXi libXtst libXp
JUMP_STUBS_IMPORT_Xt = $(JUMP_STUBS_IMPORT_X11)
JUMP_SIBARS_Xt = jump/libXmu.a~ jump/libXext.a~ jump/libXi.a~ jump/libXtst.a~ jump/libXp.a~
JUMP_LDLIBS_Xt = $(JUMP_SIBARS_Xt) $(JUMP_ROOT_ICE)/libICE.sa \
	$(JUMP_ROOT_SM)/libSM.sa $(JUMP_ROOT_X11)/libX11.sa $(JUMP_LDLIBS_libc)

XCOMM libXmu (part of libXt.so)
JUMP_ROOT_Xmu = $(XMUSRC)
JUMP_IS_HOST_Xmu = NO
JUMP_HOST_Xmu = $(JUMP_ROOT_Xt)
JUMP_DIR_Xmu = $(JUMP_DIR_Xt)

XCOMM libXext (part of libXt.so)
JUMP_ROOT_Xext = $(XEXTLIBSRC)
JUMP_IS_HOST_Xext = NO
JUMP_HOST_Xext = $(JUMP_ROOT_Xt)
JUMP_DIR_Xext = $(JUMP_DIR_Xt)

XCOMM libXi (part of libXt.so)
JUMP_ROOT_Xi = $(XILIBSRC)
JUMP_IS_HOST_Xi = NO
JUMP_HOST_Xi = $(JUMP_ROOT_Xt)
JUMP_DIR_Xi = $(JUMP_DIR_Xt)

XCOMM libXtst (part of libXt.so)
JUMP_ROOT_Xtst = $(XTESTLIBSRC)
JUMP_IS_HOST_Xtst = NO
JUMP_HOST_Xtst = $(JUMP_ROOT_Xt)
JUMP_DIR_Xtst = $(JUMP_DIR_Xt)

XCOMM libXp (part of libXt.so)
JUMP_ROOT_Xp = $(XPLIBSRC)
JUMP_IS_HOST_Xp = NO
JUMP_HOST_Xp = $(JUMP_ROOT_Xt)
JUMP_DIR_Xp = $(JUMP_DIR_Xt)

XCOMM libXaw.so (Xaw)
JUMP_ROOT_Xaw = $(AWIDGETSRC)
JUMP_IS_HOST_Xaw = YES
JUMP_STUBLIBS_Xaw = libXaw.sa
JUMP_SUBDIRS_Xaw = $(JUMP_ROOT_Xt)
JUMP_DIR_Xaw = $(JUMP_ROOT_Xaw)/shared
JUMP_VARS_Xaw = $(JUMP_ROOT_Xaw)/jump_vars
JUMP_FUNCS_Xaw = $(JUMP_ROOT_Xaw)/jump_funcs
JUMP_IGNORE_Xaw = $(JUMP_ROOT_Xaw)/jump_ignore
JUMP_EXPORT_Xaw = $(JUMP_DIR_Xaw)/jump.vars
JUMP_IMPORT_Xaw = $(JUMP_EXPORT_Xt) $(JUMP_EXPORT_X11)
JUMP_ADDRESS_Xaw = 0x60300000
JUMP_JUMPTABLESIZE_Xaw = 0x4000
JUMP_GOTSIZE_Xaw = 4096
JUMP_STUBNAMES_Xaw = libXaw
JUMP_STUBS_IMPORT_Xaw = $(JUMP_STUBS_IMPORT_X11)
JUMP_LDLIBS_Xaw = $(JUMP_ROOT_Xt)/libXt.sa $(JUMP_ROOT_Xt)/libXmu.sa \
	$(JUMP_ROOT_Xt)/libXext.sa $(JUMP_ROOT_X11)/libX11.sa \
	$(JUMP_LDLIBS_libc)

# libPEX.so (PEX5)
JUMP_ROOT_PEX5 = $(PEXLIBSRC)
JUMP_IS_HOST_PEX5 = YES
JUMP_STUBLIBS_PEX5 = libPEX5.sa
JUMP_SUBDIRS_PEX5 = $(JUMP_ROOT_X11)
JUMP_DIR_PEX5 = $(JUMP_ROOT_PEX5)/shared
JUMP_VARS_PEX5 = $(JUMP_ROOT_PEX5)/jump_vars
JUMP_FUNCS_PEX5 = $(JUMP_ROOT_PEX5)/jump_funcs
JUMP_IGNORE_PEX5 = $(JUMP_ROOT_PEX5)/jump_ignore
JUMP_EXPORT_PEX5 = $(JUMP_DIR_PEX5)/jump.vars
JUMP_IMPORT_PEX5 = $(JUMP_EXPORT_X11)
JUMP_ADDRESS_PEX5 = 0x60b00000
JUMP_JUMPTABLESIZE_PEX5 = 0x4000
JUMP_GOTSIZE_PEX5 = 4096
JUMP_STUBNAMES_PEX5 = libPEX5
JUMP_STUBS_IMPORT_PEX5 = $(JUMP_STUBS_IMPORT_X11) $(LIBM_SA)
JUMP_LDLIBS_PEX5 = $(JUMP_ROOT_X11)/libX11.sa $(JUMP_LDLIBS_libc) -lm

# libXIE.so (XIE)
JUMP_ROOT_XIE = $(XIELIBSRC)
JUMP_IS_HOST_XIE = YES
JUMP_STUBLIBS_XIE = libXIE.sa
JUMP_SUBDIRS_XIE = $(JUMP_ROOT_X11)
JUMP_DIR_XIE = $(JUMP_ROOT_XIE)/shared
JUMP_VARS_XIE = $(JUMP_ROOT_XIE)/jump_vars
JUMP_FUNCS_XIE = $(JUMP_ROOT_XIE)/jump_funcs
JUMP_IGNORE_XIE = $(JUMP_ROOT_XIE)/jump_ignore
JUMP_EXPORT_XIE = $(JUMP_DIR_XIE)/jump.vars
JUMP_IMPORT_XIE = $(JUMP_EXPORT_X11)
JUMP_ADDRESS_XIE = 0x60be0000
JUMP_JUMPTABLESIZE_XIE = 0x4000
JUMP_GOTSIZE_XIE = 4096
JUMP_STUBNAMES_XIE = libXIE
JUMP_STUBS_IMPORT_XIE = $(JUMP_STUBS_IMPORT_X11) $(LIBM_SA)
JUMP_LDLIBS_XIE = $(JUMP_ROOT_X11)/libX11.sa $(JUMP_LDLIBS_libc) -lm

#endif /* !UseInstalled */

/*
 * SharedLibraryDataTarget - generate rules to create shared data file
 */
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif

/*
 * SharedLibraryTarget - generate rules to create a shared library;
 * There are two basic flavors of libs: self-generating, which create
 * their own (and possibly other) libs, and hosted, which rely on another
 * lib for all the work.
 */
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up)			@@@@\
XCOMM This logic is such to compile the libs in their proper order,	@@@@\
XCOMM remain dependent on subsidiary libs, and yet minimize local work	@@@@\
									@@@@\
JUMP_DIR=./jump								@@@@\
JUMP_LIB=Concat(lib,libname)						@@@@\
									@@@@\
XCOMM  this is needed for newer gnumake versions			@@@@\
export JUMP_DIR JUMP_LIB						@@@@\
									@@@@\
JUMP_IS_HOST=$(Concat(JUMP_IS_HOST_,libname))				@@@@\
JUMP_AR=$(JUMP_DIR)/Concat(lib,libname.a~)				@@@@\
JUMP_SA=Concat(lib,libname.sa)						@@@@\
JUMP_SO=Concat(lib,libname.so.rev)					@@@@\
									@@@@\
JUMP_HOST=$(Concat(JUMP_HOST_,libname))					@@@@\
									@@@@\
INSTSOLIBFLAGS=-m 0555							@@@@\
									@@@@\
AllTarget($(BUILDLIBDIR)/$(JUMP_SA))					@@@@\
									@@@@\
$(BUILDLIBDIR)/$(JUMP_SA): $(JUMP_SA)					@@@@\
	LinkBuildLibrary($(JUMP_SA))					@@@@\
									@@@@\
$(JUMP_SA) $(Concat(JUMP_STUBLIBS_,libname)) do_JUMP_SA: \
		down/mk_JUMP_SA_$(JUMP_IS_HOST)				@@@@\
									@@@@\
down/mk_JUMP_SA_0:: mk_JUMP_HOST					@@@@\
									@@@@\
down/mk_JUMP_SA_0:: $(JUMP_HOST)/$(JUMP_SA)				@@@@\
	$(RM) $(JUMP_SA)						@@@@\
	$(LN) $(JUMP_HOST)/$(JUMP_SA) $(JUMP_SA)			@@@@\
	touch $@@							@@@@\
									@@@@\
down/mk_JUMP_SA_1:: $(JUMP_SO)						@@@@\
									@@@@\
down/mk_JUMP_SA_1:: down/mk_JUMP_SO_2					@@@@\
	$(RM) $(Concat(JUMP_STUBLIBS_,libname))				@@@@\
	mkstubs -v rev -l $(JUMP_LIB) \
		-a $(Concat(JUMP_ADDRESS_,libname)) \
		-j $(Concat(JUMP_JUMPTABLESIZE_,libname)) \
		-g $(Concat(JUMP_GOTSIZE_,libname)) \
		-- $(Concat(JUMP_STUBNAMES_,libname))			@@@@\
	verify-shlib -l $(JUMP_SO) \
		$(Concat(JUMP_STUBLIBS_,libname))			@@@@\
	$(MV) verify.out $(JUMP_DIR)					@@@@\
	touch $@@							@@@@\
									@@@@\
mk_JUMP_HOST:								@@@@\
	@@echo checking stub library $(JUMP_SA) in $(JUMP_HOST)...	@@@@\
	@@(cd $(JUMP_HOST); $(MAKE) $(MFLAGS) $(JUMP_SA)) || exit 1	@@@@\
	@@echo ok. continuing in $(Concat(JUMP_ROOT_,libname))...	@@@@\
									@@@@\
$(JUMP_SO): down/mk_JUMP_SO_$(JUMP_IS_HOST)				@@@@\
									@@@@\
down/mk_JUMP_SO_0:							@@@@\
									@@@@\
down/mk_JUMP_SO_1:: $(JUMP_AR) mk_JUMP_SIBDIRS down/mk_JUMP_SO_2	@@@@\
									@@@@\
down/mk_JUMP_SO_2: down/mk_JUMP_AR $(Concat(JUMP_SIBARS_,libname))	@@@@\
	$(RM) $(JUMP_SO)						@@@@\
	mkimage -f -v rev -l $(JUMP_LIB) \
		-a $(Concat(JUMP_ADDRESS_,libname)) \
		-j $(Concat(JUMP_JUMPTABLESIZE_,libname)) \
		-g $(Concat(JUMP_GOTSIZE_,libname)) \
		-- $(JUMP_AR) $(Concat(JUMP_LDLIBS_,libname))		@@@@\
	$(RM) $(JUMP_DIR)/__jump.s $(JUMP_DIR)/__jump.o			@@@@\
	LinkBuildLibrary($(JUMP_SO))					@@@@\
	touch $@@							@@@@\
									@@@@\
mk_JUMP_SIBDIRS:							@@@@\
	@@for d in $(Concat(JUMP_SIBDIRS_,libname)); do \
		echo checking ar library in $$d...; \
		(cd $$d ; $(MAKE) $(MFLAGS) fastdo_JUMP_AR) || exit 1; \
		echo ok. continuing in $(Concat(JUMP_ROOT_,libname))...;done@@@@\
									@@@@\
fastdo_JUMP_AR: $(JUMP_DIR) down/mk_JUMP_AR				@@@@\
									@@@@\
$(JUMP_AR) do_JUMP_AR:: jumpsetup down/mk_JUMP_AR			@@@@\
									@@@@\
jumpsetup: $(JUMP_DIR) jumpsetup_$(JUMP_IS_HOST)			@@@@\
									@@@@\
$(JUMP_DIR):								@@@@\
	$(RM) jump							@@@@\
	LibMkdir($(Concat(JUMP_DIR_,libname)))				@@@@\
	$(LN) $(Concat(JUMP_DIR_,libname)) jump				@@@@\
									@@@@\
jumpsetup_0:								@@@@\
	@@echo doing jump setup in host $(JUMP_HOST)...			@@@@\
	@@(cd $(JUMP_HOST); $(MAKE) $(MFLAGS) jumpsetup) || exit 1	@@@@\
	@@echo ok. continuing in $(Concat(JUMP_ROOT_,libname))...	@@@@\
									@@@@\
jumpsetup_1::								@@@@\
	@@for d in $(Concat(JUMP_SUBDIRS_,libname)); do \
		echo checking stub library in $$d...; \
		(cd $$d ; $(MAKE) $(MFLAGS) do_JUMP_SA) || exit 1; \
		echo ok. continuing in $(Concat(JUMP_ROOT_,libname))...;done@@@@\
									@@@@\
jumpsetup_1:: $(JUMP_DIR)/jump.funcs $(JUMP_DIR)/jump.vars \
	$(JUMP_DIR)/jump.ignore $(JUMP_DIR)/jump.import			@@@@\
									@@@@\
$(JUMP_DIR)/jump.funcs: $(Concat(JUMP_FUNCS_,libname))			@@@@\
	$(RM) $(JUMP_DIR)/jump.funcs					@@@@\
	cat $(Concat(JUMP_FUNCS_,libname)) | \
		$(CPP) $(ALLDEFINES) $(Concat(JUMP_DEFS_,libname)) > $@@	@@@@\
									@@@@\
$(JUMP_DIR)/jump.vars: $(Concat(JUMP_VARS_,libname))			@@@@\
	$(RM) $(JUMP_DIR)/jump.vars					@@@@\
	cat $(Concat(JUMP_VARS_,libname)) | \
		$(CPP) $(ALLDEFINES) $(Concat(JUMP_DEFS_,libname)) > $@@	@@@@\
									@@@@\
$(JUMP_DIR)/jump.ignore: $(Concat(JUMP_IGNORE_,libname))		@@@@\
	$(RM) $(JUMP_DIR)/jump.ignore					@@@@\
	cat $(Concat(JUMP_IGNORE_,libname)) | \
		$(CPP) $(ALLDEFINES) $(Concat(JUMP_DEFS_,libname)) > $@@	@@@@\
									@@@@\
$(JUMP_DIR)/jump.import: $(JUMP_DIR)/stubs.import \
		$(Concat(JUMP_IMPORT_,libname))				@@@@\
	$(RM) $(JUMP_DIR)/jump.import					@@@@\
	cat $(JUMP_DIR)/stubs.import $(Concat(JUMP_IMPORT_,libname)) > $@@ @@@@\
									@@@@\
$(JUMP_DIR)/stubs.import: $(Concat(JUMP_STUBS_IMPORT_,libname))		@@@@\
	$(RM) $(JUMP_DIR)/stubs.import					@@@@\
	nm --no-cplus $(Concat(JUMP_STUBS_IMPORT_,libname)) | grep '__GOT__' | \
		sed 's/__GOT__/_/' > $@@					@@@@\
									@@@@\
down/mk_JUMP_AR: solist							@@@@\
	$(RM) $(JUMP_AR)						@@@@\
	@@if [ -s $(JUMP_DIR)/jump.log ]; then \
		echo "Error: Leftover globals for shared lib"; \
		exit 1; fi						@@@@\
	(cd down; $(AR) up/$(JUMP_AR) solist) || exit 1			@@@@\
	$(RANLIB) $(JUMP_AR)						@@@@\
	touch $@@							@@@@\
									@@@@\
clean:: jumpclean							@@@@\
									@@@@\
jumpclean: jumpclean_$(JUMP_IS_HOST)					@@@@\
	$(RM) $(JUMP_SA) down/mk_JUMP_AR				@@@@\
	$(RM) -r $(JUMP_DIR)						@@@@\
									@@@@\
jumpclean_0:								@@@@\
	$(RM) down/mk_JUMP_SA_0						@@@@\
	$(RM) $(JUMP_HOST)/$(JUMP_SA)					@@@@\
									@@@@\
jumpclean_1:								@@@@\
	$(RM) -r $(JUMP_SO) $(Concat(JUMP_DIR_,libname)) \		@@@@\
		down/mk_JUMP_SA_1 down/mk_JUMP_SO_1 down/mk_JUMP_SO_2
#endif /* SharedLibraryTarget */

/*
 * InstallSharedLibrary - generate rules to install the shared library.
 */
#ifndef InstallSharedLibrary
#define	InstallSharedLibrary(libname,rev,dest)				@@@@\
install:: $(JUMP_SA) $(JUMP_SO)						@@@@\
	MakeDir($(DESTDIR)dest)						@@@@\
	@@if [ "$(JUMP_IS_HOST)" = YES ]; then \
		(T=$(DESTDIR)dest/`echo $(JUMP_SO)|sed 's/\.[^\.]*$$//'`;\
		set -x; \
		$(INSTALL) -s -c $(INSTSOLIBFLAGS) $(JUMP_SO) $(DESTDIR)dest; \
		$(RM) $$T && $(LN) $(JUMP_SO) $$T); fi			@@@@\
	$(INSTALL) -c $(INSTLIBFLAGS) $(JUMP_SA) $(DESTDIR)dest
#endif /* InstallSharedLibrary */

/*
 * InstallSharedLibraryData - generate rules to install the shared library data
 */
#ifndef InstallSharedLibraryData
#define	InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */

#endif /* UseElfFormat */
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Initial import of XFree86 4.x
@
text
@@


1.1.1.2
log
@Import of XFree86 4.0.3
@
text
@d2 1
a2 1
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.37 1999/06/06 08:47:44 dawes Exp $
@


1.1.1.3
log
@Import of XFree86 4.1.0.
@
text
@d1 2
a2 2
XCOMM $Xorg: lnxLib.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.40 2001/02/16 01:26:08 dawes Exp $
a202 17

#ifndef SharedDriModuleTarget
#define SharedDriModuleTarget(name,deps,solist)				@@@@\
AllTarget(name)								@@@@\
									@@@@\
name: deps								@@@@\
	$(RM) $@@~ $@@.map						@@@@\
	@@(echo 'DRI_MODULE { global: __dri*; local: *; };' > $@@.map)	@@@@\
	$(CC) -o $@@~ -Wl,--version-script=$@@.map $(SHLIBLDFLAGS) solist $(REQUIREDLIBS) BaseShLibReqs @@@@\
	$(RM) $@@ $@@.map							@@@@\
	$(MV) $@@~ $@@							@@@@\
									@@@@\
clean::									@@@@\
	$(RM) name							@@@@\
	$(RM) name.map

#endif /* SharedDriModuleTarget */
@


1.1.1.4
log
@Import of XFree86 4.2.0.
@
text
@d2 1
a2 1
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.42 2002/01/16 00:39:59 keithp Exp $
d144 1
a144 1
	@@MAJREV=`expr rev : '\([^.]*\)'`; \				@@@@\
d183 1
a183 1
	@@MAJREV=`expr rev : '\([^.]*\)'`; \				@@@@\
a187 39

/*
 * SharedDepCplusplusLibraryTarget - generate rules to create a shared library.
 */
#ifndef SharedDepCplusplusLibraryTarget
#ifdef UseInstalled
#ifndef LinkBuildSonameLibrary
#define LinkBuildSonameLibrary(lib) true
#endif
#else
#ifndef LinkBuildSonameLibrary
#define LinkBuildSonameLibrary(lib) (RemoveFile($(BUILDLIBDIR)/lib); \
	cd $(BUILDLIBDIR); $(LN) $(BUILDINCTOP)/$(CURRENT_DIR)/lib .)
#endif
#endif

#define SharedDepCplusplusLibraryTarget(libname,rev,deplist,solist,down,up) @@@@\
AllTarget(Concat(lib,libname.so.rev))					@@@@\
									@@@@\
Concat(lib,libname.so.rev):  deplist $(EXTRALIBRARYDEPS)		@@@@\
	$(RM) $@@~							@@@@\
	@@SONAME=`echo $@@ | sed 's/\.[^\.]*$$//'`; set -x; \		@@@@\
		(cd down; $(CXX) -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=`expr rev : '\([^.]*\)'`; \				@@@@\
	set -x; $(RM) Concat(lib,libname.so.$$MAJREV)			@@@@\
	$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)

#endif /* SharedDepCplusplusLibraryTarget */
@


1.1.1.5
log
@Import of XFree86 4.3.0.
@
text
@d2 1
a2 1
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.44 2002/11/18 22:47:25 dawes Exp $
d8 1
a8 1
# define HasSharedLibraries YES
d11 1
a11 1
# define ForceNormalLib NO
d15 1
a15 1
# define SharedOldX NO
d20 4
a23 4
# if (LinuxCLibMajorVersion >= 5 && LinuxCLibMinorVersion >= 4) || LinuxCLibMajorVersion >= 6
#  ifndef SpecialMalloc
#   define SpecialMalloc NO
#  endif
d25 4
a28 3
#  ifndef UseInternalMalloc
#   define UseInternalMalloc NO
#  endif
a29 1
# endif
d31 1
a31 1
# if LinuxCLibMajorVersion <= 5
d48 2
a49 2
#  define BaseShLibReqs
# else
d51 2
a52 2
#  define BaseShLibReqs	-lc
# endif
d54 34
a87 38
# ifndef SharedDataSeparation
#  define SharedDataSeparation NO
# endif
# ifndef SharedCodeDef
#  define SharedCodeDef /**/
# endif
# ifndef SharedLibraryDef
#  define SharedLibraryDef /**/
# endif
# ifndef ShLibIncludeFile
#  define ShLibIncludeFile <lnxLib.tmpl>
# endif
# ifndef SharedLibraryLoadFlags
#  define SharedLibraryLoadFlags -shared
# endif
# ifndef PositionIndependentCFlags
#  define PositionIndependentCFlags -fPIC
# endif
# ifndef PositionIndependentCplusplusFlags
#  define PositionIndependentCplusplusFlags -fPIC
# endif
# ifndef ExtraLoadFlags
#  if LinuxBinUtilsMajorVersion >= 26
#   ifdef UseInstalled
#    if LinuxBinUtilsMajorVersion < 27
#     define ExtraLoadFlags -Wl,-rpath-link,$(USRLIBDIRPATH)
#    endif
#   else
#    define ExtraLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR)
#   endif
#  else
#   define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
#  endif
# endif

# if !defined(ShlibGlobalsFlags)
#  define ShlibGlobalsFlags -Wl,-Bsymbolic
# endif
d93 2
a94 2
# ifndef InstallSharedLibrary
#  define	InstallSharedLibrary(libname,rev,dest)			@@@@\
d103 1
a103 1
# endif /* InstallSharedLibrary */
d108 3
a110 3
# ifndef InstallSharedLibraryData
#  define	InstallSharedLibraryData(libname,rev,dest)
# endif /* InstallSharedLibraryData */
d118 5
a122 5
# ifndef SharedLibraryTarget
#  ifdef UseInstalled
#   define LinkBuildSonameLibrary(lib) true
#  else
#   define LinkBuildSonameLibrary(lib) (RemoveFile($(BUILDLIBDIR)/lib); \
d124 1
a124 1
#  endif
d126 1
a126 1
#  define SharedLibraryTarget(libname,rev,solist,down,up)		@@@@\
d148 1
a148 1
# endif /* SharedLibraryTarget */
d153 8
a160 8
# ifndef SharedDepLibraryTarget
#  ifdef UseInstalled
#   ifndef LinkBuildSonameLibrary
#    define LinkBuildSonameLibrary(lib) true
#   endif
#  else
#   ifndef LinkBuildSonameLibrary
#    define LinkBuildSonameLibrary(lib) (RemoveFile($(BUILDLIBDIR)/lib); \
d162 2
a163 2
#   endif
#  endif
d165 1
a165 1
#   define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up)	@@@@\
d228 2
a229 2
# ifndef SharedDepModuleTarget
#  define SharedDepModuleTarget(name,deps,solist)			@@@@\
d241 1
a241 1
# endif /* SharedDepModuleTarget */
d243 2
a244 2
# ifndef SharedDriModuleTarget
#  define SharedDriModuleTarget(name,deps,solist)			@@@@\
d258 1
a258 1
# endif /* SharedDriModuleTarget */
d263 3
a265 3
# ifndef SharedLibraryDataTarget
#  define SharedLibraryDataTarget(libname,rev,salist)
# endif /* SharedLibraryTarget */
d269 18
a286 18
# ifndef SharedDataSeparation
#  define SharedDataSeparation NO
# endif
# ifndef SharedCodeDef
#  define SharedCodeDef /**/
# endif
# ifndef SharedLibraryDef
#  define SharedLibraryDef /**/
# endif
# ifndef ShLibIncludeFile
#  define ShLibIncludeFile <lnxLib.tmpl>
# endif
# ifndef SharedLibraryLoadFlags
#  define SharedLibraryLoadFlags /**/
# endif
# ifndef PositionIndependentCFlags
#  define PositionIndependentCFlags -B/usr/bin/jump
# endif
d333 1
a333 1
# ifndef UseInstalled
d336 1
a336 1
#  if LinuxElfDefault
d339 1
a339 1
#  else
d342 1
a342 1
#  endif
d485 1
a485 1
# endif /* !UseInstalled */
d490 3
a492 3
# ifndef SharedLibraryDataTarget
#  define SharedLibraryDataTarget(libname,rev,salist)
# endif
d500 2
a501 2
# ifndef SharedLibraryTarget
#  define SharedLibraryTarget(libname,rev,solist,down,up)		@@@@\
d649 1
a649 1
# endif /* SharedLibraryTarget */
d654 2
a655 2
# ifndef InstallSharedLibrary
#  define	InstallSharedLibrary(libname,rev,dest)			@@@@\
d664 1
a664 1
# endif /* InstallSharedLibrary */
d669 3
a671 3
# ifndef InstallSharedLibraryData
#  define	InstallSharedLibraryData(libname,rev,dest)
# endif /* InstallSharedLibraryData */
@


1.1.1.6
log
@Import of XFree86 4.4.0.
@
text
@d2 1
a2 1
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.53 2004/01/27 01:37:39 dawes Exp $
a13 4
#ifndef UseRpath
#define UseRpath NO
#endif

a65 10
#ifndef RpathLoadFlags
#if UseRpath
#define RpathLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
#else
#define RpathLoadFlags /**/
#endif
#endif
#ifndef LibraryRpathLoadFlags
#define LibraryRpathLoadFlags RpathLoadFlags
#endif
d79 1
a79 1
#     define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link,$(USRLIBDIRPATH)
d82 1
a82 1
#    define ExtraLoadFlags RpathLoadFlags -Wl,-rpath-link,$(BUILDLIBDIR)
d85 1
a85 1
#   define ExtraLoadFlags RpathLoadFlags
d88 1
a88 3
# ifndef HardCodeLibdirFlag
#  define HardCodeLibdirFlag RpathLoadFlags
# endif
a108 20
# ifndef InstallSharedLibtoolLibrary

#  define SetRevisions(rev) V=`expr rev : '\([^:]*\)'`; \		@@@@\
		R=`expr rev : '.*:\([^:]*\):'`; \			@@@@\
		A=`expr rev : '.*:\([^:]*\)'`; \			@@@@\
		MAJ=`expr $$V - $$A`; \					@@@@\
		MIN=$$A.$$R

#  define	InstallSharedLibtoolLibrary(libname,rev,dest)		@@@@\
install:: Concat(lib,libname.so) 					@@@@\
	MakeDir($(DESTDIR)dest)						@@@@\
	@@set +e; SetRevisions(rev); \					@@@@\
		set -xe; \						@@@@\
		$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat(lib,libname.so.$$MAJ.$$MIN) $(DESTDIR)dest; \ @@@@\
		$(RM) Concat($(DESTDIR)dest/lib,libname.so.$$MAJ); \	@@@@\
		$(LN) Concat(lib,libname.so.$$MAJ.$$MIN) Concat($(DESTDIR)dest/lib,libname.so.$$MAJ); \ @@@@\
		$(RM) Concat($(DESTDIR)dest/lib,libname.so); \		@@@@\
		$(LN) Concat(lib,libname.so.$$MAJ.$$MIN) Concat($(DESTDIR)dest/lib,libname.so)
# endif /* InstallSharedLibrary */

d123 7
d135 3
a137 3
	@@SONAME=`echo $@@ | sed 's/\.[^\.]*$$//'`; (set -x; \		@@@@\
		cd down; $(CC) -o up/$@@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs) || exit 1; \ @@@@\
		(set -x; $(RM) $$SONAME; $(LN) $@@ $$SONAME); \		@@@@\
d148 1
a148 1
	@@MAJREV=`echo rev | sed 's/\.[^\.]*$$//'`; \			@@@@\
a153 32

# ifndef SharedLibtoolLibraryTarget
#  define SharedLibtoolLibraryTarget(libname,rev,solist,down,up)	@@@@\
AllTarget(Concat(lib,libname.so))					@@@@\
									@@@@\
Concat(lib,libname.so):  solist $(EXTRALIBRARYDEPS)			@@@@\
	$(RM) $@@~							@@@@\
	@@set +e; SetRevisions(rev); set -e; \				@@@@\
		SONAME=$@@.$$MAJ; \					@@@@\
		(set -x; \						@@@@\
		$(RM) $@@.$$MAJ.$$MIN~; \				@@@@\
		cd down; $(CC) -o up/$@@.$$MAJ.$$MIN~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs) || exit 1; \ @@@@\
		(set -x; \						@@@@\
		$(RM) $$SONAME; $(LN) $@@.$$MAJ.$$MIN $$SONAME); \	@@@@\
		LinkBuildSonameLibrary($$SONAME); \			@@@@\
		(set -x; \						@@@@\
		$(RM) $@@.$$MAJ.$$MIN; \					@@@@\
		$(MV) $@@.$$MAJ.$$MIN~ $@@.$$MAJ.$$MIN; \			@@@@\
	  	$(RM) $@@; \						@@@@\
	  	$(LN) $@@.$$MAJ.$$MIN $@@); \				@@@@\
		LinkBuildLibraryInline($@@.$$MAJ.$$MIN); \		@@@@\
		LinkBuildLibraryInline($@@)				@@@@\
									@@@@\
clean::									@@@@\
	@@set +e; SetRevisions(rev); \					@@@@\
		set -xe; \						@@@@\
		$(RM) Concat(lib,libname.so.$$MAJ); \			@@@@\
		$(RM) Concat(lib,libname.so.$$MAJ.$$MIN)		@@@@\
	$(RM) Concat(lib,libname.so)

# endif /* SharedLibtoolLibraryTarget */

d158 11
d187 1
a187 1
	@@MAJREV=`echo rev | sed 's/\.[^\.]*$$//'`; \			@@@@\
d197 11
d226 1
a226 1
	@@MAJREV=`echo rev | sed 's/\.[^\.]*$$//'`; \			@@@@\
d453 36
@


1.1.1.6.6.1
log
@Apply patch (requested by jmc in ticket #114):
Update XFree86 to version 4.5.0.
@
text
@d1 2
a2 47
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.61 2004/06/01 00:16:53 dawes Exp $
/*
 * Copyright (c) 1994-2004 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
a108 4
#ifndef SetSonameRev
#define SetSonameRev(rev) set +e; S=`expr rev : '\([0-9]*\)'`; set -e
#endif

d115 1
a115 1
install::								@@@@\
d117 6
a122 8
	$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat($(LIBPREFIX),libname.so.rev) $(DESTDIR)dest @@@@\
	@@SetSonameRev(rev); \						@@@@\
	T=Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so.$$S); \		@@@@\
	  if [ rev != $$S ]; then (set -x; \				@@@@\
	    $(RM) $$T && $(LN) Concat($(LIBPREFIX),libname.so.rev) $$T); fi @@@@\
	  @@if $(SOSYMLINK); then (set -x; \				@@@@\
	  $(RM) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so); \	@@@@\
	  $(LN) Concat($(LIBPREFIX),libname.so.rev) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so)); fi
d134 1
a134 1
install::								@@@@\
d138 5
a142 5
		$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN) $(DESTDIR)dest; \ @@@@\
		$(RM) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so.$$MAJ); \ @@@@\
		$(LN) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so.$$MAJ); \ @@@@\
		$(RM) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so); \		@@@@\
		$(LN) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so)
d160 1
a160 1
AllTarget(Concat($(LIBPREFIX),libname.so.rev))				@@@@\
d162 1
a162 1
Concat($(LIBPREFIX),libname.so.rev):  solist $(EXTRALIBRARYDEPS)	@@@@\
d164 1
a164 2
	@@SetSonameRev(rev); \						@@@@\
	SONAME=Concat($(LIBPREFIX),libname.so.$$S); (set -x; \		@@@@\
d166 1
a166 2
		if [ $$SONAME != $@@ ]; then (set -x; \			@@@@\
			$(RM) $$SONAME; $(LN) $@@ $$SONAME); fi; \	@@@@\
d171 2
a172 2
	  $(RM) Concat($(LIBPREFIX),libname.so); \			@@@@\
	  $(LN) $@@ Concat($(LIBPREFIX),libname.so)); fi			@@@@\
d174 1
a174 1
	LinkBuildLibraryMaybe(Concat($(LIBPREFIX),libname.so),$(SOSYMLINK)) @@@@\
d177 3
a179 3
	@@SetSonameRev(rev); \						@@@@\
	set -x; $(RM) Concat($(LIBPREFIX),libname.so.$$S)		@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so.rev) Concat($(LIBPREFIX),libname.so)
d186 1
a186 1
AllTarget(Concat($(LIBPREFIX),libname.so))				@@@@\
d188 1
a188 1
Concat($(LIBPREFIX),libname.so):  solist $(EXTRALIBRARYDEPS)		@@@@\
d209 3
a211 3
		$(RM) Concat($(LIBPREFIX),libname.so.$$MAJ); \		@@@@\
		$(RM) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN)	@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so)
d220 1
a220 1
AllTarget(Concat($(LIBPREFIX),libname.so.rev))				@@@@\
d222 1
a222 1
Concat($(LIBPREFIX),libname.so.rev):  deplist $(EXTRALIBRARYDEPS)	@@@@\
d224 3
a226 5
	@@SetSonameRev(rev); \						@@@@\
	SONAME=Concat($(LIBPREFIX),libname.so.$$S); (set -x; \		@@@@\
		cd down; $(CC) -o up/$@@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@@@\
		if [ $$SONAME != $@@ ]; then (set -x; \			@@@@\
			$(RM) $$SONAME; $(LN) $@@ $$SONAME); fi; \	@@@@\
d231 2
a232 2
	  $(RM) Concat($(LIBPREFIX),libname.so); \			@@@@\
	  $(LN) $@@ Concat($(LIBPREFIX),libname.so)); fi			@@@@\
d234 1
a234 1
	LinkBuildLibraryMaybe(Concat($(LIBPREFIX),libname.so),$(SOSYMLINK)) @@@@\
d237 3
a239 3
	@@SetSonameRev(rev); \						@@@@\
	set -x; $(RM) Concat($(LIBPREFIX),libname.so.$$S)		@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so.rev) Concat($(LIBPREFIX),libname.so)
d248 1
a248 1
AllTarget(Concat($(LIBPREFIX),libname.so.rev))				@@@@\
d250 1
a250 1
Concat($(LIBPREFIX),libname.so.rev):  deplist $(EXTRALIBRARYDEPS)	@@@@\
d252 3
a254 5
	@@SetSonameRev(rev); \						@@@@\
	SONAME=Concat($(LIBPREFIX),libname.so.$$S); (set -x; \		@@@@\
		cd down; $(CXX) -o up/$@@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@@@\
		if [ $$SONAME != $@@ ]; then (set -x; \			@@@@\
			$(RM) $$SONAME; $(LN) $@@ $$SONAME); fi; \	@@@@\
d259 2
a260 2
	  $(RM) Concat($(LIBPREFIX),libname.so); \			@@@@\
	  $(LN) $@@ Concat($(LIBPREFIX),libname.so)); fi			@@@@\
d262 1
a262 1
	LinkBuildLibraryMaybe(Concat($(LIBPREFIX),libname.so),$(SOSYMLINK)) @@@@\
d265 3
a267 3
	@@SetSonameRev(rev); \						@@@@\
	set -x; $(RM) Concat($(LIBPREFIX),libname.so.$$S)		@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so.rev) Concat($(LIBPREFIX),libname.so)
a295 1
	LinkBuildModule($@@,dri)						@@@@\
d663 1
a663 1
install::								@@@@\
@


1.1.1.7
log
@Import of XFree86 4.5.0.
@
text
@d1 2
a2 47
XCOMM $XFree86: xc/config/cf/lnxLib.rules,v 3.61 2004/06/01 00:16:53 dawes Exp $
/*
 * Copyright (c) 1994-2004 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
a108 4
#ifndef SetSonameRev
#define SetSonameRev(rev) set +e; S=`expr rev : '\([0-9]*\)'`; set -e
#endif

d115 1
a115 1
install::								@@@@\
d117 6
a122 8
	$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat($(LIBPREFIX),libname.so.rev) $(DESTDIR)dest @@@@\
	@@SetSonameRev(rev); \						@@@@\
	T=Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so.$$S); \		@@@@\
	  if [ rev != $$S ]; then (set -x; \				@@@@\
	    $(RM) $$T && $(LN) Concat($(LIBPREFIX),libname.so.rev) $$T); fi @@@@\
	  @@if $(SOSYMLINK); then (set -x; \				@@@@\
	  $(RM) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so); \	@@@@\
	  $(LN) Concat($(LIBPREFIX),libname.so.rev) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so)); fi
d134 1
a134 1
install::								@@@@\
d138 5
a142 5
		$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN) $(DESTDIR)dest; \ @@@@\
		$(RM) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so.$$MAJ); \ @@@@\
		$(LN) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so.$$MAJ); \ @@@@\
		$(RM) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so); \		@@@@\
		$(LN) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN) Concat($(DESTDIR)dest/$(LIBPREFIX),libname.so)
d160 1
a160 1
AllTarget(Concat($(LIBPREFIX),libname.so.rev))				@@@@\
d162 1
a162 1
Concat($(LIBPREFIX),libname.so.rev):  solist $(EXTRALIBRARYDEPS)	@@@@\
d164 1
a164 2
	@@SetSonameRev(rev); \						@@@@\
	SONAME=Concat($(LIBPREFIX),libname.so.$$S); (set -x; \		@@@@\
d166 1
a166 2
		if [ $$SONAME != $@@ ]; then (set -x; \			@@@@\
			$(RM) $$SONAME; $(LN) $@@ $$SONAME); fi; \	@@@@\
d171 2
a172 2
	  $(RM) Concat($(LIBPREFIX),libname.so); \			@@@@\
	  $(LN) $@@ Concat($(LIBPREFIX),libname.so)); fi			@@@@\
d174 1
a174 1
	LinkBuildLibraryMaybe(Concat($(LIBPREFIX),libname.so),$(SOSYMLINK)) @@@@\
d177 3
a179 3
	@@SetSonameRev(rev); \						@@@@\
	set -x; $(RM) Concat($(LIBPREFIX),libname.so.$$S)		@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so.rev) Concat($(LIBPREFIX),libname.so)
d186 1
a186 1
AllTarget(Concat($(LIBPREFIX),libname.so))				@@@@\
d188 1
a188 1
Concat($(LIBPREFIX),libname.so):  solist $(EXTRALIBRARYDEPS)		@@@@\
d209 3
a211 3
		$(RM) Concat($(LIBPREFIX),libname.so.$$MAJ); \		@@@@\
		$(RM) Concat($(LIBPREFIX),libname.so.$$MAJ.$$MIN)	@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so)
d220 1
a220 1
AllTarget(Concat($(LIBPREFIX),libname.so.rev))				@@@@\
d222 1
a222 1
Concat($(LIBPREFIX),libname.so.rev):  deplist $(EXTRALIBRARYDEPS)	@@@@\
d224 3
a226 5
	@@SetSonameRev(rev); \						@@@@\
	SONAME=Concat($(LIBPREFIX),libname.so.$$S); (set -x; \		@@@@\
		cd down; $(CC) -o up/$@@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@@@\
		if [ $$SONAME != $@@ ]; then (set -x; \			@@@@\
			$(RM) $$SONAME; $(LN) $@@ $$SONAME); fi; \	@@@@\
d231 2
a232 2
	  $(RM) Concat($(LIBPREFIX),libname.so); \			@@@@\
	  $(LN) $@@ Concat($(LIBPREFIX),libname.so)); fi			@@@@\
d234 1
a234 1
	LinkBuildLibraryMaybe(Concat($(LIBPREFIX),libname.so),$(SOSYMLINK)) @@@@\
d237 3
a239 3
	@@SetSonameRev(rev); \						@@@@\
	set -x; $(RM) Concat($(LIBPREFIX),libname.so.$$S)		@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so.rev) Concat($(LIBPREFIX),libname.so)
d248 1
a248 1
AllTarget(Concat($(LIBPREFIX),libname.so.rev))				@@@@\
d250 1
a250 1
Concat($(LIBPREFIX),libname.so.rev):  deplist $(EXTRALIBRARYDEPS)	@@@@\
d252 3
a254 5
	@@SetSonameRev(rev); \						@@@@\
	SONAME=Concat($(LIBPREFIX),libname.so.$$S); (set -x; \		@@@@\
		cd down; $(CXX) -o up/$@@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@@@\
		if [ $$SONAME != $@@ ]; then (set -x; \			@@@@\
			$(RM) $$SONAME; $(LN) $@@ $$SONAME); fi; \	@@@@\
d259 2
a260 2
	  $(RM) Concat($(LIBPREFIX),libname.so); \			@@@@\
	  $(LN) $@@ Concat($(LIBPREFIX),libname.so)); fi			@@@@\
d262 1
a262 1
	LinkBuildLibraryMaybe(Concat($(LIBPREFIX),libname.so),$(SOSYMLINK)) @@@@\
d265 3
a267 3
	@@SetSonameRev(rev); \						@@@@\
	set -x; $(RM) Concat($(LIBPREFIX),libname.so.$$S)		@@@@\
	$(RM) Concat($(LIBPREFIX),libname.so.rev) Concat($(LIBPREFIX),libname.so)
a295 1
	LinkBuildModule($@@,dri)						@@@@\
d663 1
a663 1
install::								@@@@\
@


