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.4
	netbsd-2-1:1.1.1.4.0.8
	netbsd-2-1-RELEASE:1.1.1.4
	netbsd-2-1-RC6:1.1.1.4
	netbsd-2-1-RC5:1.1.1.4
	netbsd-2-1-RC4:1.1.1.4
	netbsd-2-1-RC3:1.1.1.4
	netbsd-2-1-RC2:1.1.1.4
	netbsd-2-1-RC1:1.1.1.4
	netbsd-2-0-2-RELEASE:1.1.1.4
	netbsd-2-0-1-RELEASE:1.1.1.4
	netbsd-2:1.1.1.4.0.6
	netbsd-2-base:1.1.1.4
	netbsd-2-0-RELEASE:1.1.1.4
	netbsd-2-0-RC5:1.1.1.4
	netbsd-2-0-RC4:1.1.1.4
	netbsd-2-0-RC3:1.1.1.4
	netbsd-2-0-RC2:1.1.1.4
	netbsd-2-0-RC1:1.1.1.4
	netbsd-2-0:1.1.1.4.0.4
	netbsd-2-0-base:1.1.1.4
	netbsd-1-6-PATCH002-RELEASE:1.1.1.4
	netbsd-1-6-PATCH002:1.1.1.4
	netbsd-1-6-PATCH002-RC4:1.1.1.4
	netbsd-1-6-PATCH002-RC3:1.1.1.4
	netbsd-1-6-PATCH002-RC2:1.1.1.4
	netbsd-1-6-PATCH002-RC1:1.1.1.4
	netbsd-1-6:1.1.1.4.0.2
	netbsd-1-6-base:1.1.1.4
	netbsd-1-6-PATCH001:1.1.1.4
	netbsd-1-6-RELEASE:1.1.1.4
	netbsd-1-5-PATCH003:1.1.1.4
	netbsd-1-5-PATCH002:1.1.1.4
	netbsd-1-5-PATCH001:1.1.1.4
	xf-3_3-branch-2001-03-05:1.1.1.4
	netbsd-1-5-RELEASE:1.1.1.4
	netbsd-1-4-PATCH003:1.1.1.4
	netbsd-1-4-PATCH002:1.1.1.4
	v3-3-6:1.1.1.4
	comdex-fall-1999:1.1.1.4
	v3-3-5:1.1.1.4
	v3-3-4:1.1.1.4
	netbsd-1-4-PATCH001:1.1.1.4
	netbsd-1-4-RELEASE:1.1.1.4
	v3-3-3-1:1.1.1.4
	netbsd-1-3-PATCH003:1.1.1.4
	v3-3-3:1.1.1.4
	pre-xf86-3-3-3-import:1.1.1.3
	netbsd-1-3-PATCH002:1.1.1.3
	v3-3-2:1.1.1.3
	netbsd-1-3-RELEASE:1.1.1.3
	v3-3-1:1.1.1.3
	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.36;	author tron;	state dead;
branches;
next	1.1;

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

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

1.1.1.2
date	97.06.30.12.32.08;	author mrg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	97.08.20.05.44.59;	author mrg;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	98.11.23.15.32.59;	author veego;	state Exp;
branches;
next	;


desc
@@


1.2
log
@EOL of XFree86 3.3.6, approved by core@@NetBSD.org
@
text
@/*
 * Library imakefile info  - this contains any special redefinitions, etc.
 * that Imakefiles in the various library subtrees will need.
 *
 * Before including this, you must set the following boolean variables:
 * DoNormalLib, DoSharedLib, DoDebugLib, DoProfileLib
 *
 * To get automatic generation of standard rules, also set the variables:
 * LibName, SoRev, HasSharedData, and optionally HugeLibrary and IncSubdir
 */

XCOMM $XConsortium: Library.tmpl /main/36 1995/12/05 16:41:16 mor $
XCOMM $XFree86: xc/config/cf/Library.tmpl,v 3.4 1996/01/05 13:06:29 dawes Exp $

#ifndef LibraryCplusplusOptions
#if DoSharedLib && defined(SharedLibraryCplusplusOptions)
#define LibraryCplusplusOptions SharedLibraryCplusplusOptions
#else
#define LibraryCplusplusOptions DefaultCplusplusOptions
#endif
#endif
#ifndef LibraryDefines
#define LibraryDefines StandardDefines
#endif
#ifndef LibraryCDebugFlags
#define LibraryCDebugFlags DefaultCDebugFlags
#endif
#ifndef LibraryCplusplusDebugFlags
#define LibraryCplusplusDebugFlags DefaultCplusplusDebugFlags
#endif
#ifndef SeparateSharedCompile
#define SeparateSharedCompile YES
#endif

#ifndef CplusplusSource
#ifndef LibraryCcCmd
#if DoSharedLib && defined(SharedLibraryCcCmd)
#define LibraryCcCmd SharedLibraryCcCmd
#else
#define LibraryCcCmd CcCmd
#endif
#endif
#ifndef LibraryCCOptions
#if DoSharedLib && defined(SharedLibraryCCOptions)
#define LibraryCCOptions SharedLibraryCCOptions
#else
#define LibraryCCOptions DefaultCCOptions
#endif
#endif

         CC = LibraryCcCmd
  CCOPTIONS = LibraryCCOptions
STD_DEFINES = LibraryDefines
CDEBUGFLAGS = LibraryCDebugFlags
#else
#ifndef LibraryCplusplusCmd
#if DoSharedLib && defined(SharedLibraryCplusplusCmd)
#define LibraryCplusplusCmd SharedLibraryCplusplusCmd
#else
#define LibraryCplusplusCmd CplusplusCmd
#endif
#endif
#ifndef LibraryCplusplusOptions
#if DoSharedLib && defined(SharedLibraryCplusplusOptions)
#define LibraryCplusplusOptions SharedLibraryCplusplusOptions
#else
#define LibraryCplusplusOptions DefaultCplusplusOptions
#endif
#endif

          CXX = LibraryCplusplusCmd
   CXXOPTIONS = LibraryCplusplusOptions
  STD_DEFINES = LibraryDefines
CXXDEBUGFLAGS = LibraryCplusplusDebugFlags
#endif

#if DoDebugLib
#define _DebuggedLibMkdir() LibMkdir(debugger)
#ifndef CplusplusSource
#define _DebuggedObjCompile(options) DebuggedLibObjCompile(options)
#else
#define _DebuggedObjCompile(options) DebuggedLibObjCplusplusCompile(options)
#endif
#define _DebuggedCleanDir() LibCleanDir(debugger)
#else
#define _DebuggedLibMkdir() $(_NULLCMD_)
#define _DebuggedObjCompile(options) $(_NULLCMD_)
#define _DebuggedCleanDir() $(_NULLCMD_)
#endif

#if DoProfileLib
#define _ProfiledLibMkdir() LibMkdir(profiled)
#ifndef CplusplusSource
#define _ProfiledObjCompile(options) ProfiledLibObjCompile(options)
#else
#define _ProfiledObjCompile(options) ProfiledLibObjCplusplusCompile(options)
#endif
#define _ProfiledCleanDir() LibCleanDir(profiled)
#else
#define _ProfiledLibMkdir() $(_NULLCMD_)
#define _ProfiledObjCompile(options) $(_NULLCMD_)
#define _ProfiledCleanDir() $(_NULLCMD_)
#endif

#if !DoNormalLib
#define _NormalLibMkdir() $(_NULLCMD_)
#define _NormalObjCompile(options) $(_NULLCMD_)
#define _NormalCleanDir() $(_NULLCMD_)
#else
#if DoSharedLib && SeparateSharedCompile
#define _NormalLibMkdir() LibMkdir(unshared)
#ifndef CplusplusSource
#define _NormalObjCompile(options) UnsharedLibObjCompile(options)
#else
#define _NormalObjCompile(options) UnsharedLibObjCplusplusCompile(options)
#endif
#define _NormalCleanDir() LibCleanDir(unshared)
#else
#define _NormalLibMkdir() $(_NULLCMD_)
#ifndef CplusplusSource
#define _NormalObjCompile(options) NormalLibObjCompile(options)
#else
#define _NormalObjCompile(options) NormalLibObjCplusplusCompile(options)
#endif
#define _NormalCleanDir() $(_NULLCMD_)
#endif
#endif

#if !DoSharedLib || (DoNormalLib && !SeparateSharedCompile)
#define _SharedObjCompile(options) $(_NULLCMD_)
#else
#if SeparateSharedCompile
#ifndef CplusplusSource
#define _SharedObjCompile(options) NormalSharedLibObjCompile(options)
#else
#define _SharedObjCompile(options) NormalSharedLibObjCplusplusCompile(options)
#endif
#else
#ifndef CplusplusSource
#define _SharedObjCompile(options) NormalLibObjCompile(options)
#else
#define _SharedObjCompile(options) NormalLibObjCplusplusCompile(options)
#endif
#endif
#endif

#ifndef CplusplusSource
#define SRCsuf c
#else
#define SRCsuf CCsuf
#ifdef SunArchitecture
.SUFFIXES: .CCsuf
#endif
#endif

#ifndef LibraryObjectRule
#define LibraryObjectRule()						@@@@\
all::									@@@@\
	_DebuggedLibMkdir()						@@@@\
	_ProfiledLibMkdir()						@@@@\
	_NormalLibMkdir()						@@@@\
									@@@@\
includes::								@@@@\
	_DebuggedLibMkdir()						@@@@\
	_ProfiledLibMkdir()						@@@@\
	_NormalLibMkdir()						@@@@\
									@@@@\
.SRCsuf.Osuf:								@@@@\
	_DebuggedObjCompile($(_NOOP_))					@@@@\
	_ProfiledObjCompile($(_NOOP_))					@@@@\
	_NormalObjCompile($(_NOOP_))					@@@@\
	_SharedObjCompile($(_NOOP_))					@@@@\
									@@@@\
clean::									@@@@\
	_DebuggedCleanDir()						@@@@\
	_ProfiledCleanDir()						@@@@\
	_NormalCleanDir()						@@@@\

#endif /* LibraryObjectRule */

#ifndef SpecialLibObjectRule
#define SpecialLibObjectRule(objs,depends,options)			@@@@\
objs: depends								@@@@\
	_DebuggedObjCompile(options)					@@@@\
	_ProfiledObjCompile(options)					@@@@\
	_NormalObjCompile(options)					@@@@\
	_SharedObjCompile(options)					@@@@\

#endif /* SpecialLibObjectRule */

#ifndef SpecialCLibObjectRule
#define SpecialCLibObjectRule(basename,depends,options)			@@@@\
SpecialLibObjectRule(basename.Osuf,basename.SRCsuf depends,options)	@@@@\
									@@@@\
basename.i: basename.SRCsuf depends					@@@@\
	CPPOnlyCompile(basename.SRCsuf,options)				@@@@\
									@@@@\
CenterLoadTarget(debug_src,basename.SRCsuf,NullParameter,$(ALLDEFINES) options)
#endif /* SpecialCLibObjectRule */

#ifndef SpecialCplusplusLibObjectRule
#define SpecialCplusplusLibObjectRule(basename,depends,options)		@@@@\
SpecialLibObjectRule(basename.Osuf,basename.SRCsuf depends,options)	@@@@\
									@@@@\
CenterLoadTarget(debug_src,basename.SRCsuf,NullParameter,$(ALLDEFINES) options)
#endif /* SpecialCplusplusLibObjectRule */

/*
 * ToolkitMakeStrings generates a string-table, i.e., a C source
 * file and the matching header(s), e.g., Xt's StringDefs.c, StringDefs.h,
 * and Shell.h files; or Motif's XmStrDefs.c and XmStrDefs.h files.
 *
 * The 'files' argument is the list of files that will be produced by
 * this rule, e.g., for Xt they would be "Shell.h StringDefs.c StringDefs.h"
 * and for Motif they would be "XmStrDefs.c XmStrDefs.h".
 *
 * The 'source' argument is the string-list file to be parsed, e.g., in
 * Xt that would be "util/string.list".  For Motif 2.0 it would be
 * "../../tools/makestr/xmstring.list", and for Motif-CDE1 it would be
 * "util/xmstring.list".
 *
 * The 'options' argument is passed by the library's Imakefile, see the
 * Xt Imakefile for an example.  Typically this would be nothing, -intelabi,
 * or -sparcabi; there are other choices, but these are typical.
 *
 * The 'depends' argument names additional files the target files
 * depend on.  It should name the #ctmpl and #htmpl files from the
 * 'source' file.
 *
 * The 'dest' argument is the C source output file.  For Xt this should
 * be "StringDefs.c", and for all versions of Motif it would be "XmStrDefs.c"
 *
 * Headers are generated and named according to data in the 'source'
 * file.
 */
/*
 * The NoCmpScript
 * prevents clearmake from trying to remake makestrs if it exists.
 * Including both $(MAKESTRS) and $(MAKESTRS).o as primary targets
 * prevents clearmake from trying to recompile makestrs from here.
 * We have includes, not files, depend on makestrs to try to get
 * clearmake to wink in the files.  Bug in clearmake 2.0.2?
 */

#ifndef ToolkitMakeStrings
#define ToolkitMakeStrings(files,source,options,depends,dest)		@@@@\
MAKESTRS = $(CONFIGSRC)/util/makestrs					@@@@\
NoCmpScript(ProgramTargetName($(MAKESTRS)) $(MAKESTRS).Osuf)		@@@@\
									@@@@\
ProgramTargetName($(MAKESTRS)) $(MAKESTRS).Osuf:			@@@@\
	cd $(CONFIGSRC)/util && $(MAKE) ProgramTargetName(makestrs)	@@@@\
									@@@@\
includes:: ProgramTargetName($(MAKESTRS)) 				@@@@\
									@@@@\
files: source depends							@@@@\
	RemoveFiles(files)						@@@@\
	RunProgram(MAKESTRS,options < source > dest)			@@@@\
									@@@@\
AllTarget(files)							@@@@\
									@@@@\
includes:: files							@@@@\
									@@@@\
depend:: files								@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(files)

#endif /* ToolkitMakeStrings */

#ifdef LibName

LIBNAME = LibName

LibraryObjectRule()

#undef _LinkBuildLibrary
#define _LinkBuildLibrary(lib) LinkBuildLibrary(lib)

#if DoSharedLib
#if HugeLibrary && defined(SharedLibraryTarget3)
SharedLibraryTarget3($(LIBNAME),$(SoRev),$(OBJS1),$(OBJS2),$(OBJS3),.,.)
#else
SharedLibraryTarget($(LIBNAME),$(SoRev),$(OBJS),.,.)
#endif
InstallSharedLibrary($(LIBNAME),$(SoRev),$(SHLIBDIR))
#if HasSharedData
SharedLibraryDataTarget($(LIBNAME),$(SoRev),$(UNSHAREDOBJS))
InstallSharedLibraryData($(LIBNAME),$(SoRev),$(SHLIBDIR))
#endif
#endif
#if DoNormalLib
#if HugeLibrary
#if DoSharedLib && SeparateSharedCompile
UnsharedLibraryTarget3($(LIBNAME),$(OBJS1),$(OBJS2),$(OBJS3),unshared,..)
#else
NormalLibraryTarget3($(LIBNAME),$(OBJS1),$(OBJS2),$(OBJS3))
#endif
#else
#if DoSharedLib && SeparateSharedCompile
UnsharedLibraryTarget($(LIBNAME),$(OBJS),unshared,..)
#else
NormalLibraryTarget($(LIBNAME),$(OBJS))
#endif
#endif
InstallLibrary($(LIBNAME),$(USRLIBDIR))
#endif
#if DoProfileLib
ProfiledLibraryTarget($(LIBNAME),$(OBJS))
InstallLibrary($(LIBNAME)_p,$(USRLIBDIR))
#endif
#if DoDebugLib
DebuggedLibraryTarget($(LIBNAME),$(OBJS))
InstallLibrary($(LIBNAME)_d,$(USRLIBDIR))
#endif

LintLibraryTarget($(LIBNAME),$(SRCS))
InstallLintLibrary($(LIBNAME),$(LINTLIBDIR))
#ifdef IncSubdir
BuildIncludes($(HEADERS),IncSubdir,..)
InstallMultipleFlags($(HEADERS),$(INCDIR)/IncSubdir,$(INSTINCFLAGS))
#else
#ifndef CplusplusSource
#if !defined(LibHeaders) || LibHeaders
BuildIncludesTop($(HEADERS))
InstallMultipleFlags($(HEADERS),$(INCDIR),$(INSTINCFLAGS))
#endif
#endif
#endif

NormalLintTarget($(SRCS))
#endif
@


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
@d9 1
a9 6
 * LibName, SoRev, HasSharedData, and optionally HugeLibrary and IncSubdir.
 *
 * To suppress installation of the library define LibInstall NO.
 * To suppress creating (and installing) the library define LibCreate NO.
 * To suppress installing headers define LibHeaders NO.
 * Define LargePICTable YES if large (32-bit) PIC tables are needed.
d12 2
a13 2
XCOMM $XConsortium: Library.tmpl /main/42 1996/12/04 10:10:19 swick $
XCOMM $XFree86: xc/config/cf/Library.tmpl,v 3.5 1996/12/23 05:50:08 dawes Exp $
d16 5
a20 5
# if DoSharedLib && defined(SharedLibraryCplusplusOptions)
#  define LibraryCplusplusOptions SharedLibraryCplusplusOptions
# else
#  define LibraryCplusplusOptions DefaultCplusplusOptions
# endif
d23 1
a23 1
# define LibraryDefines StandardDefines
d26 1
a26 1
# define LibraryCDebugFlags DefaultCDebugFlags
d29 1
a29 1
# define LibraryCplusplusDebugFlags DefaultCplusplusDebugFlags
d32 1
a32 1
# define SeparateSharedCompile YES
d36 14
a49 14
# ifndef LibraryCcCmd
#  if DoSharedLib && defined(SharedLibraryCcCmd)
#   define LibraryCcCmd SharedLibraryCcCmd
#  else
#   define LibraryCcCmd CcCmd
#  endif
# endif
# ifndef LibraryCCOptions
#  if DoSharedLib && defined(SharedLibraryCCOptions)
#   define LibraryCCOptions SharedLibraryCCOptions
#  else
#   define LibraryCCOptions DefaultCCOptions
#  endif
# endif
d53 1
a53 1
STD_DEFINES = LibraryDefines $(PROJECT_DEFINES)
d55 15
a69 18
# if defined(LargePICTable) && LargePICTable && defined(LargePositionIndependentCFlags)
   PICFLAGS = LargePositionIndependentCFlags
# endif
#else
# ifndef LibraryCplusplusCmd
#  if DoSharedLib && defined(SharedLibraryCplusplusCmd)
#   define LibraryCplusplusCmd SharedLibraryCplusplusCmd
#  else
#   define LibraryCplusplusCmd CplusplusCmd
#  endif
# endif
# ifndef LibraryCplusplusOptions
#  if DoSharedLib && defined(SharedLibraryCplusplusOptions)
#   define LibraryCplusplusOptions SharedLibraryCplusplusOptions
#  else
#   define LibraryCplusplusOptions DefaultCplusplusOptions
#  endif
# endif
d73 1
a73 1
  STD_DEFINES = LibraryDefines $(PROJECT_DEFINES)
a74 7
# if defined(LargePICTable) && LargePICTable
#  ifdef LargePositionIndependentCplusplusFlags
  CXXPICFLAGS = LargePositionIndependentCplusplusFlags
#  elif defined(LargePositionIndependentCFlags)
  CXXPICFLAGS = LargePositionIndependentCFlags
#  endif
# endif
d77 4
a80 4
LIB_MT_DEFINES = LibraryMTDefines

#if defined(IHaveSubdirs) && HasSymLinks
#define _LibMkdir LibMkdirLinkSubdirs
d82 1
a82 1
#define _LibMkdir LibMkdir
d84 5
a88 11

#if DoDebugLib
# define _DebuggedLibMkdir() _LibMkdir(debugger)
# define _DebuggedObjCompile(options) DebuggedLibObjCompile(options)
# define _DebuggedObjCplusplusCompile(options) DebuggedLibObjCplusplusCompile(options)
# define _DebuggedCleanDir() LibCleanDir(debugger)
#else
# define _DebuggedLibMkdir() $(_NULLCMD_)
# define _DebuggedObjCompile(options) $(_NULLCMD_)
# define _DebuggedObjCplusplusCompile(options) $(_NULLCMD_)
# define _DebuggedCleanDir() $(_NULLCMD_)
d92 11
a102 9
# define _ProfiledLibMkdir() _LibMkdir(profiled)
# define _ProfiledObjCompile(options) ProfiledLibObjCompile(options)
# define _ProfiledObjCplusplusCompile(options) ProfiledLibObjCplusplusCompile(options)
# define _ProfiledCleanDir() LibCleanDir(profiled)
#else
# define _ProfiledLibMkdir() $(_NULLCMD_)
# define _ProfiledObjCompile(options) $(_NULLCMD_)
# define _ProfiledObjCplusplusCompile(options) $(_NULLCMD_)
# define _ProfiledCleanDir() $(_NULLCMD_)
d106 21
a126 16
# define _NormalLibMkdir() $(_NULLCMD_)
# define _NormalObjCompile(options) $(_NULLCMD_)
# define _NormalObjCplusplusCompile(options) $(_NULLCMD_)
# define _NormalCleanDir() $(_NULLCMD_)
#else
# if DoSharedLib && SeparateSharedCompile
#  define _NormalLibMkdir() _LibMkdir(unshared)
#  define _NormalObjCompile(options) UnsharedLibObjCompile(options)
#  define _NormalObjCplusplusCompile(options) UnsharedLibObjCplusplusCompile(options)
#  define _NormalCleanDir() LibCleanDir(unshared)
# else
#  define _NormalLibMkdir() $(_NULLCMD_)
#  define _NormalObjCompile(options) NormalLibObjCompile(options)
#  define _NormalObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options)
#  define _NormalCleanDir() $(_NULLCMD_)
# endif
d130 1
a130 2
# define _SharedObjCompile(options) $(_NULLCMD_)
# define _SharedObjCplusplusCompile(options) $(_NULLCMD_)
d132 6
a137 3
# if SeparateSharedCompile
#  define _SharedObjCompile(options) NormalSharedLibObjCompile(options)
#  define _SharedObjCplusplusCompile(options) NormalSharedLibObjCplusplusCompile(options)
d139 5
a143 2
# define _SharedObjCompile(options) NormalLibObjCompile(options)
# define _SharedObjCpluplusCompile(options) NormalLibObjCplusplusCompile(options)
d148 1
a148 1
# define SRCsuf c
d150 2
a151 2
# define SRCsuf CCsuf
# ifdef SunArchitecture
a152 1
# endif
a153 17

#define _CompileObj(target, options)					@@@@\
target									@@@@\
	_DebuggedObjCompile(options)					@@@@\
	_ProfiledObjCompile(options)					@@@@\
	_NormalObjCompile(options)					@@@@\
	_SharedObjCompile(options)

#ifdef CplusplusSource
# define _CompileObjCplusplus(target, options)				@@@@\
target									@@@@\
	_DebuggedObjCplusplusCompile(options)				@@@@\
	_ProfiledObjCplusplusCompile(options)				@@@@\
	_NormalObjCplusplusCompile(options)				@@@@\
	_SharedObjCplusplusCompile(options)
#else
# define _CompileObjCplusplus(target, options)
d157 1
a157 1
# define LibraryObjectRule()						@@@@\
d168 5
a172 2
_CompileObj(.c.Osuf:,$(_NOOP_))						@@@@\
_CompileObjCplusplus(.SRCsuf.Osuf:,$(_NOOP_))				@@@@\
d182 7
a188 3
# define SpecialLibObjectRule(objs,depends,options)			@@@@\
_CompileObj(objs: depends,options)					@@@@\
_CompileObjCplusplus(objs: depends,options)
d192 1
a192 1
# define SpecialCLibObjectRule(basename,depends,options)		@@@@\
d202 1
a202 1
# define SpecialCplusplusLibObjectRule(basename,depends,options)	@@@@\
d245 2
a246 2
#ifndef MakeStringsDependency
# define MakeStringsDependency						@@@@\
d253 1
a253 20
includes:: ProgramTargetName($(MAKESTRS))
#endif
#ifndef ToolkitMakeStrings
# if defined(LibTookitMakeStringsDependency) && LibTookitMakeStringsDependency
#  define ToolkitMakeStrings(files,source,options,depends,dest)		@@@@\
files: source depends							@@@@\
	RemoveFiles(files)						@@@@\
	RunProgram(MAKESTRS,options < source > dest)			@@@@\
									@@@@\
AllTarget(files)							@@@@\
									@@@@\
includes:: files							@@@@\
									@@@@\
depend:: files								@@@@\
									@@@@\
clean::									@@@@\
	RemoveFiles(files)
# else
#  define ToolkitMakeStrings(files,source,options,depends,dest)		@@@@\
MakeStringsDependency							@@@@\
d267 1
a267 1
# endif
d274 1
a274 7
# if defined(LibTookitMakeStringsDependency) && LibTookitMakeStringsDependency
/*
 * Do ToolkitMakeStrings() before BuildIncludes so makestrs is still
 * built first, even if the generated header will be installed.
 */
MakeStringsDependency
# endif
d276 2
a277 1
LibraryObjectRule()
d279 2
a280 10
# undef _LinkBuildLibrary
# if !defined(LibInstall) || LibInstall
#  define _LinkBuildLibrary(lib) LinkBuildLibrary(lib)
# else
#  define _LinkBuildLibrary(lib) $(_NULLCMD_)
# endif

# if !defined(LibCreate) || LibCreate
#  if DoSharedLib
#   if HugeLibrary && defined(SharedLibraryTarget3)
d282 1
a282 1
#   else
d284 1
a284 2
#   endif
#   if !defined(LibInstall) || LibInstall
d286 1
a286 2
#   endif
#   if HasSharedData
a287 1
#    if !defined(LibInstall) || LibInstall
d289 5
a293 6
#    endif
#   endif
#  endif
#  if DoNormalLib
#   if HugeLibrary
#    if DoSharedLib && SeparateSharedCompile
d295 1
a295 1
#    else
d297 3
a299 3
#    endif
#   else
#    if DoSharedLib && SeparateSharedCompile
d301 1
a301 1
#    else
d303 2
a304 3
#    endif
#   endif
#   if !defined(LibInstall) || LibInstall
d306 2
a307 3
#   endif
#  endif
#  if DoProfileLib
a308 1
#   if !defined(LibInstall) || LibInstall
d310 2
a311 3
#   endif
#  endif
#  if DoDebugLib
a312 1
#   if !defined(LibInstall) || LibInstall
d314 1
a314 2
#   endif
#  endif
a316 1
#  if !defined(LibInstall) || LibInstall
d318 1
a318 15
#  endif
# else /* not LibCreate */
#  if HugeLibrary
AllTarget($(OBJS1))
AllTarget($(OBJS2))
AllTarget($(OBJS3))
#  else
AllTarget($(OBJS))
#  endif
# endif /* LibCreate */
# ifdef IncSubdir
#  ifdef IncSubSubdir
BuildIncludes($(HEADERS),IncSubdir/IncSubSubdir,../..)
InstallMultipleFlags($(HEADERS),$(INCDIR)/IncSubdir/IncSubSubdir,$(INSTINCFLAGS))
#  else
d321 3
a323 4
#  endif
# else
#  ifndef CplusplusSource
#   if !defined(LibHeaders) || LibHeaders
d326 3
a328 3
#   endif
#  endif
# endif
d331 1
a331 1
#endif /* defined(LibName) */
@


1.1.1.3
log
@xfree86 3.3.1 sources.
@
text
@d17 2
a18 6
XCOMM $TOG: Library.tmpl /main/44 1997/04/28 11:47:53 kaleb $




XCOMM $XFree86: xc/config/cf/Library.tmpl,v 3.5.2.1 1997/06/11 12:08:29 dawes Exp $
d152 1
a152 1
# define _SharedObjCplusplusCompile(options) NormalLibObjCplusplusCompile(options)
d207 2
a208 1
_CompileObj(objs: depends,options)
d213 1
a213 1
_CompileObj(basename.Osuf: basename.SRCsuf depends,options)		@@@@\
d223 1
a223 1
_CompileObjCplusplus(basename.Osuf: basename.SRCsuf depends,options)	@@@@\
@


1.1.1.4
log
@XFree86 3.3.3 sources
@
text
@d22 1
a22 1
XCOMM $XFree86: xc/config/cf/Library.tmpl,v 3.5.2.3 1998/11/06 23:14:02 dawes Exp $
a159 16
#ifndef DoExtraLib
#define DoExtraLib NO
#endif

#if DoExtraLib && defined(ExtraLibRules)
# define _ExtraLibMkdir() ExtraLibMkdir()
# define _ExtraObjCompile(options) ExtraObjCompile(options)
# define _ExtraObjCplusplusCompile(options) ExtraObjCplusplusCompile(options)
# define _ExtraCleanDir() ExtraCleanDir()
#else
# define _ExtraLibMkdir() $(_NULLCMD_)
# define _ExtraObjCompile(options) $(_NULLCMD_)
# define _ExtraObjCplusplusCompile(options) $(_NULLCMD_)
# define _ExtraCleanDir() $(_NULLCMD_)
#endif

a173 1
	_ExtraObjCompile(options)					@@@@\
a181 1
	_ExtraObjCplusplusCompile(options)				@@@@\
a192 1
	_ExtraLibMkdir()						@@@@\
a197 1
	_ExtraLibMkdir()						@@@@\
a205 1
	_ExtraCleanDir()						@@@@\
a377 6
#   endif
#  endif
#  if DoExtraLib && defined(ExtraLibRules)
ExtraLibraryTarget($(LIBNAME),$(SoRev),$(OBJS))
#   if !defined(LibInstall) || LibInstall
ExtraInstallLibrary($(LIBNAME),$(SoRev))
@

