head	1.2;
access;
symbols
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base:1.2
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	netbsd-5-2:1.2.0.8
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	netbsd-5-1:1.2.0.6
	netbsd-5-1-RELEASE:1.2
	netbsd-5-1-RC4:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	netbsd-5-1-RC1:1.2
	netbsd-5-0-2-RELEASE:1.2
	netbsd-5-0-1-RELEASE:1.2
	netbsd-5-0:1.2.0.4
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	netbsd-5-0-RC2:1.2
	netbsd-5-0-RC1:1.2
	netbsd-5:1.2.0.2
	netbsd-5-base:1.2
	netbsd-2-0-3-RELEASE:1.1.1.2
	netbsd-2-1:1.1.1.2.0.8
	netbsd-2-1-RELEASE:1.1.1.2
	netbsd-2-1-RC6:1.1.1.2
	netbsd-2-1-RC5:1.1.1.2
	netbsd-2-1-RC4:1.1.1.2
	netbsd-2-1-RC3:1.1.1.2
	netbsd-2-1-RC2:1.1.1.2
	netbsd-2-1-RC1:1.1.1.2
	netbsd-2-0-2-RELEASE:1.1.1.2
	netbsd-2-0-1-RELEASE:1.1.1.2
	netbsd-2:1.1.1.2.0.6
	netbsd-2-base:1.1.1.2
	netbsd-2-0-RELEASE:1.1.1.2
	netbsd-2-0-RC5:1.1.1.2
	netbsd-2-0-RC4:1.1.1.2
	netbsd-2-0-RC3:1.1.1.2
	netbsd-2-0-RC2:1.1.1.2
	netbsd-2-0-RC1:1.1.1.2
	netbsd-2-0:1.1.1.2.0.4
	netbsd-2-0-base:1.1.1.2
	netbsd-1-6-PATCH002-RELEASE:1.1.1.2
	netbsd-1-6-PATCH002:1.1.1.2
	netbsd-1-6-PATCH002-RC4:1.1.1.2
	netbsd-1-6-PATCH002-RC3:1.1.1.2
	netbsd-1-6-PATCH002-RC2:1.1.1.2
	netbsd-1-6-PATCH002-RC1:1.1.1.2
	netbsd-1-6:1.1.1.2.0.2
	netbsd-1-6-base:1.1.1.2
	netbsd-1-6-PATCH001:1.1.1.2
	netbsd-1-6-RELEASE:1.1.1.2
	netbsd-1-5-PATCH003:1.1.1.2
	netbsd-1-5-PATCH002:1.1.1.2
	netbsd-1-5-PATCH001:1.1.1.2
	xf-3_3-branch-2001-03-05:1.1.1.2
	netbsd-1-5-RELEASE:1.1.1.2
	netbsd-1-4-PATCH003:1.1.1.2
	netbsd-1-4-PATCH002:1.1.1.2
	v3-3-6:1.1.1.2
	comdex-fall-1999:1.1.1.2
	v3-3-5:1.1.1.2
	v3-3-4:1.1.1.2
	netbsd-1-4-PATCH001:1.1.1.2
	netbsd-1-4-RELEASE:1.1.1.2
	v3-3-3-1:1.1.1.2
	netbsd-1-3-PATCH003:1.1.1.2
	v3-3-3:1.1.1.2
	pre-xf86-3-3-3-import:1.1.1.2
	netbsd-1-3-PATCH002:1.1.1.2
	v3-3-2:1.1.1.2
	netbsd-1-3-RELEASE:1.1.1.2
	v3-3-1:1.1.1.2
	v3-3:1.1.1.2
	v3-2:1.1.1.1
	XF86:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2005.01.07.18.51.37;	author tron;	state dead;
branches;
next	1.1;

1.1
date	97.03.15.06.08.26;	author scottr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.03.15.06.08.26;	author scottr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	97.06.30.12.33.04;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.2
log
@EOL of XFree86 3.3.6, approved by core@@NetBSD.org
@
text
@XCOMM $XConsortium: sv4Lib.rules /main/17 1995/12/01 18:31:40 kaleb $
XCOMM $XFree86: xc/config/cf/sv4Lib.rules,v 3.3 1996/10/06 13:09:48 dawes Exp $

/*
 * SVR4 shared library rules
 */

#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 <sv4Lib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -G -z text
#endif
#ifndef PositionIndependentCFlags
#if HasGcc2
#define PositionIndependentCFlags -fpic
#else
#define PositionIndependentCFlags -K PIC
#endif
#endif
#ifndef PositionIndependentCplusplusFlags
#if HasGcc2ForCplusplus
#define PositionIndependentCplusplusFlags -fpic
#else
#define PositionIndependentCplusplusFlags -K PIC
#endif
#endif

/*
 * InstallSharedLibrary - generate rules to install the shared library.
 */
#ifndef InstallSharedLibrary
#if StripInstalledPrograms
#define	InstallSharedLibrary(libname,rev,dest)				@@@@\
install:: Concat(lib,libname.so.rev) 					@@@@\
	MakeDir($(DESTDIR)dest)						@@@@\
	$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@@@\
	mcs -d Concat($(DESTDIR)dest/lib,libname.so.rev)		@@@@\
	$(RM) Concat($(DESTDIR)dest/lib,libname.so)			@@@@\
	cd $(DESTDIR)dest; $(LN) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#else
#define	InstallSharedLibrary(libname,rev,dest)				@@@@\
install:: Concat(lib,libname.so.rev) 					@@@@\
	MakeDir($(DESTDIR)dest)						@@@@\
	$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@@@\
	$(RM) Concat($(DESTDIR)dest/lib,libname.so)			@@@@\
	cd $(DESTDIR)dest; $(LN) Concat(lib,libname.so.rev) Concat(lib,libname.so)
#endif

#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) $@@~							@@@@\
	(cd down; $(CCENVSETUP) $(LD) -o up/$@@~ $(SHLIBLDFLAGS) -h $@@ solist $(REQUIREDLIBS))		@@@@\
	$(RM) $@@ 							@@@@\
	$(MV) $@@~ $@@							@@@@\
	$(RM) Concat(lib,libname.so)					@@@@\
	$(LN) $@@ Concat(lib,libname.so)					@@@@\
	LinkBuildLibrary($@@)						@@@@\
	LinkBuildLibrary(Concat(lib,libname.so))			@@@@\
									@@@@\
clean::									@@@@\
	$(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)

#endif /* SharedLibraryTarget */


#ifndef SharedDepModuleTarget
#define SharedDepModuleTarget(name,deps,solist)				@@@@\
AllTarget(name)								@@@@\
									@@@@\
name: deps								@@@@\
	$(RM) $@@~							@@@@\
	$(LD) -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 /* SharedLibraryTarget */
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@XFree86 3.2 sources
@
text
@@


1.1.1.2
log
@XFree86 3.3 sources.
@
text
@d1 2
a2 2
XCOMM $XConsortium: sv4Lib.rules /main/18 1996/09/28 16:13:29 rws $
XCOMM $XFree86: xc/config/cf/sv4Lib.rules,v 3.4 1996/12/23 05:50:34 dawes Exp $
d9 1
a9 1
# define HasSharedLibraries YES
d12 1
a12 1
# define SharedDataSeparation NO
d15 1
a15 1
# define SharedCodeDef /**/
d18 1
a18 1
# define SharedLibraryDef /**/
d21 1
a21 1
# define ShLibIncludeFile <sv4Lib.tmpl>
d24 1
a24 1
# define SharedLibraryLoadFlags -G -z text
d27 5
a31 5
# if HasGcc2
#  define PositionIndependentCFlags -fpic
# else
#  define PositionIndependentCFlags -K PIC
# endif
d34 4
a37 5
# if HasGcc2ForCplusplus
#  define PositionIndependentCplusplusFlags -fpic
# else
#  define PositionIndependentCplusplusFlags -K PIC
# endif
a38 2
#ifndef UseExportLists
# define UseExportLists NO
d46 1
a46 1
# define InstallSharedLibrary(libname,rev,dest)				@@@@\
d54 1
a54 1
# define InstallSharedLibrary(libname,rev,dest)				@@@@\
d68 1
a68 1
# define InstallSharedLibraryData(libname,rev,dest)
a70 16
#ifndef LinkWithExports
# if UseExportLists
#  define LinkWithExports(libname,rev,solist,down,up) \
	(cd down; $(CCENVSETUP) $(LD) -o up/$@@~ $(SHLIBLDFLAGS) -h $@@ solist $(REQUIREDLIBS))	@@@@\
	if [ -f Concat(lib,libname.elist) ]; then \			@@@@\
	    $(RM) down/$@@.exports $@@.list; \				@@@@\
	    $(CPP) $(ALLINCLUDES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES) Concat(lib,libname.elist) | CppSedMagic >$@@.list; \	@@@@\
	    $(EXPORTLISTGEN) $@@~ $@@.list > down/$@@.exports; \		@@@@\
	    (cd down; $(CCENVSETUP) $(LD) -o up/$@@~ $(SHLIBLDFLAGS) -h $@@ ShlibExportListOpt($@@.exports) solist $(REQUIREDLIBS)); \	@@@@\
	    $(RM) down/$@@.exports $@@.list; \				@@@@\
	fi;
# else
#  define LinkWithExports(libname,rev,solist,down,up) \
	(cd down; $(CCENVSETUP) $(LD) -o up/$@@~ $(SHLIBLDFLAGS) -h $@@ solist $(REQUIREDLIBS))
# endif
#endif
d78 1
a78 1
# define SharedLibraryTarget(libname,rev,solist,down,up)		@@@@\
d81 1
a81 1
Concat(lib,libname.so.rev):  solist $(EXTRALIBRARYDEPS)			@@@@\
d83 1
a83 1
	LinkWithExports(libname,rev,solist,down,up)			@@@@\
d117 1
a117 1
# define SharedLibraryDataTarget(libname,rev,salist)
@
