head	1.9;
access;
symbols
	netbsd-7-2-RELEASE:1.8
	netbsd-7-1-2-RELEASE:1.8
	netbsd-7-1-1-RELEASE:1.8
	netbsd-7-1:1.8.0.28
	netbsd-7-1-RELEASE:1.8
	netbsd-7-1-RC2:1.8
	netbsd-7-1-RC1:1.8
	netbsd-7-0-2-RELEASE:1.8
	netbsd-7-0-1-RELEASE:1.8
	netbsd-7-0:1.8.0.26
	netbsd-7-0-RELEASE:1.8
	netbsd-7-0-RC3:1.8
	netbsd-7-0-RC2:1.8
	netbsd-7-0-RC1:1.8
	netbsd-5-2-3-RELEASE:1.8
	netbsd-5-1-5-RELEASE:1.8
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.8.0.24
	netbsd-7-base:1.8
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2:1.8.0.22
	riastradh-drm2-base:1.8
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-5-2-2-RELEASE:1.8
	netbsd-5-1-4-RELEASE:1.8
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.8
	netbsd-5-1-3-RELEASE:1.8
	netbsd-6-1-1-RELEASE:1.8
	netbsd-6-1:1.8.0.20
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	netbsd-5-2:1.8.0.18
	netbsd-6-0-1-RELEASE:1.8
	netbsd-5-2-RELEASE:1.8
	netbsd-5-2-RC1:1.8
	netbsd-6-0:1.8.0.16
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	netbsd-6-0-RC1:1.8
	netbsd-6:1.8.0.14
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.8
	netbsd-5-1-1-RELEASE:1.8
	netbsd-5-1:1.8.0.12
	netbsd-5-1-RELEASE:1.8
	netbsd-5-1-RC4:1.8
	netbsd-5-1-RC3:1.8
	netbsd-5-1-RC2:1.8
	netbsd-5-1-RC1:1.8
	netbsd-5-0-2-RELEASE:1.8
	netbsd-5-0-1-RELEASE:1.8
	netbsd-5-0:1.8.0.10
	netbsd-5-0-RELEASE:1.8
	netbsd-5-0-RC4:1.8
	netbsd-5-0-RC3:1.8
	netbsd-5-0-RC2:1.8
	netbsd-5-0-RC1:1.8
	netbsd-5:1.8.0.8
	netbsd-5-base:1.8
	netbsd-4-0-1-RELEASE:1.8
	netbsd-4-0:1.8.0.6
	netbsd-4-0-RELEASE:1.8
	netbsd-4-0-RC5:1.8
	netbsd-4-0-RC4:1.8
	netbsd-4-0-RC3:1.8
	netbsd-4-0-RC2:1.8
	netbsd-4-0-RC1:1.8
	netbsd-3-1-1-RELEASE:1.7.6.1
	netbsd-3-0-3-RELEASE:1.7.6.1
	abandoned-netbsd-4-base:1.8
	abandoned-netbsd-4:1.8.0.2
	netbsd-3-1:1.7.6.1.0.4
	netbsd-3-1-RELEASE:1.7.6.1
	netbsd-3-0-2-RELEASE:1.7.6.1
	netbsd-3-1-RC4:1.7.6.1
	netbsd-3-1-RC3:1.7.6.1
	netbsd-3-1-RC2:1.7.6.1
	netbsd-3-1-RC1:1.7.6.1
	netbsd-4:1.8.0.4
	netbsd-4-base:1.8
	netbsd-3-0-1-RELEASE:1.7.6.1
	netbsd-3-0:1.7.6.1.0.2
	netbsd-3-0-RELEASE:1.7.6.1
	netbsd-3-0-RC6:1.7.6.1
	netbsd-3-0-RC5:1.7.6.1
	netbsd-3-0-RC4:1.7.6.1
	netbsd-3-0-RC3:1.7.6.1
	netbsd-3-0-RC2:1.7.6.1
	netbsd-3-0-RC1:1.7.6.1
	netbsd-2-0-3-RELEASE:1.7
	netbsd-2-1:1.7.0.8
	netbsd-2-1-RELEASE:1.7
	netbsd-2-1-RC6:1.7
	netbsd-2-1-RC5:1.7
	netbsd-2-1-RC4:1.7
	netbsd-2-1-RC3:1.7
	netbsd-2-1-RC2:1.7
	netbsd-2-1-RC1:1.7
	netbsd-2-0-2-RELEASE:1.7
	v4-5-0:1.1.1.8
	v4-5-0_beforeimport:1.7
	netbsd-3:1.7.0.6
	netbsd-3-base:1.7
	netbsd-2-0-1-RELEASE:1.7
	netbsd-2:1.7.0.4
	netbsd-2-base:1.7
	netbsd-2-0-RELEASE:1.7
	netbsd-2-0-RC5:1.7
	netbsd-2-0-RC4:1.7
	netbsd-2-0-RC3:1.7
	netbsd-2-0-RC2:1.7
	netbsd-2-0-RC1:1.7
	netbsd-2-0:1.7.0.2
	netbsd-2-0-base:1.7
	v4-4-0:1.1.1.7
	v4-4-0_beforeimport:1.6
	netbsd-1-6-PATCH002-RELEASE:1.6
	netbsd-1-6-PATCH002:1.6
	netbsd-1-6-PATCH002-RC4:1.6
	v4-3-0-2003-12-19:1.1.1.6
	netbsd-1-6-PATCH002-RC3:1.6
	netbsd-1-6-PATCH002-RC2:1.6
	netbsd-1-6-PATCH002-RC1:1.6
	netbsd-1-6:1.6.0.2
	netbsd-1-6-base:1.6
	v4-3-0:1.1.1.6
	v4-3-0_beforeimport:1.5
	netbsd-1-6-PATCH001:1.5
	netbsd-1-6-RELEASE:1.3
	v4-2-1:1.1.1.5
	v4-2-1_beforeimport:1.3
	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.9
date	2015.07.23.08.12.32;	author mrg;	state dead;
branches;
next	1.8;
commitid	3Fk7MoycOv7VSnuy;

1.8
date	2005.03.18.14.54.40;	author tron;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.05.16.32.44;	author tron;	state Exp;
branches
	1.7.6.1;
next	1.6;

1.6
date	2003.02.28.21.49.17;	author tron;	state Exp;
branches;
next	1.5;

1.5
date	2002.09.19.15.37.12;	author tron;	state Exp;
branches;
next	1.4;

1.4
date	2002.09.04.20.38.56;	author tron;	state Exp;
branches;
next	1.3;

1.3
date	2002.09.03.21.03.08;	author tron;	state Exp;
branches;
next	1.2;

1.2
date	2002.08.03.21.59.09;	author chris;	state Exp;
branches;
next	1.1;

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

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

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

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

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

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

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

1.1.1.6
date	2003.02.28.13.18.41;	author tron;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2004.03.05.14.23.51;	author tron;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2005.03.18.13.02.55;	author tron;	state Exp;
branches;
next	;


desc
@@


1.9
log
@remove obsolete XFree86 sources.
@
text
@XCOMM ----------------------------------------------------------------------
XCOMM Makefile generated from IMAKE_TEMPLATE and INCLUDE_IMAKEFILE
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.169 2005/02/11 03:02:53 dawes Exp $
XCOMM ----------------------------------------------------------------------
/*
 * 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.
 */

/*
 * generic imake template
 */

/*
 * Modify Imake.cf when adding a new architecture, do not modify this file.
 * Platform-specific parameters may be set in the appropriate <vendor>.cf
 * configuration files.  Site-specific parameters should be set in the file
 * site.def.  Full rebuilds are recommended if any parameters are changed.
 * If your C preprocessor does not define any unique symbols, you will need
 * to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
 * "make World" the first time).
 */

#define ImakeConfigRelease 6

#define	YES	1
#define NO	0

/* Ensure that "all" is the default target in the Makefile. */
all::

.SUFFIXES: .i

/* Intercept clean rules for current directory */
#undef clean
#define clean cleandir

#include <Imake.cf>

XCOMM -----------------------------------------------------------------------
XCOMM site-specific configuration parameters that need to come before
XCOMM the platform-specific parameters - edit site.def to change
#define BeforeVendorCF
#include <site.def>
#undef BeforeVendorCF

#if defined(HasGcc3) && !defined(HasGcc2)
# define HasGcc2 HasGcc3
#endif
#if defined(HasGcc2) && !defined(HasGcc)
# define HasGcc HasGcc2
#endif

#ifndef HasCenterLineC
#define HasCenterLineC NO
#endif
#ifndef HasCenterLineCplusplus
#define HasCenterLineCplusplus NO
#endif

#ifndef HasClearmake
# define HasClearmake NO
#endif

/*
 * ClearmakeOSName - insert the current OS type into the clearmake
 * build script, so .o files from different platforms cannot be winked in.
 * If clearmake finds the build script for two .o files is the same, it
 * will share the .o, even across different architectures.  Inserting the
 * O/S name into the build script in a comment prevents unwanted sharing.
 * Note the trailing double-@@ in the macro: end a line using this macro
 * with backslash without the double-@@ usually used.
 * Like this:
 *
 * #define SomeRule() @@@@\
 *     something or other @@@@\
 *     ClearmakeOSName \
 *     something else @@@@\
 *     and more
 */
#ifndef ClearmakeOSName
# if HasClearmake
#  define ClearmakeOSName @@ XCOMM $(OSNAME) @@@@
# else
#  define ClearmakeOSName /**/
# endif
#endif

#if HasClearmake
# ifndef MakeCmd
#  define MakeCmd clearmake
# endif
#endif

#if HasClearmake
XCOMM ----------------------------------------------------------------------
.c.o:
	ClearmakeOSName	$(CC) -c $(CFLAGS) $*.c
#endif

XCOMM ----------------------------------------------------------------------
XCOMM platform-specific configuration parameters - edit MacroFile to change
#include MacroIncludeFile

XCOMM ----------------------------------------------------------------------
XCOMM site-specific configuration parameters that go after
XCOMM the platform-specific parameters - edit site.def to change
#define AfterVendorCF
#include <site.def>
#undef AfterVendorCF

/*
 * defaults for various generic parameters; set in site.def if needed
 */

/* the following are needed before we can include Imake.rules */

#ifndef NothingOutsideProjectRoot
#define NothingOutsideProjectRoot NO
#endif

#ifndef RemoveObsoleteFiles
#define RemoveObsoleteFiles YES
#endif

#ifndef HasVarDirectory
#define HasVarDirectory		YES
#endif
#ifndef UseEtcX11
#define UseEtcX11		YES
#endif
#ifndef UseInstalledX11
# define UseInstalledX11        NO
#endif
#ifdef UseInstalled
# undef UseInstalledX11
# define UseInstalledX11        YES
#endif
#if NothingOutsideProjectRoot
#undef UseEtcX11
#define UseEtcX11		NO
#endif
#ifndef UseSeparateConfDir
#define UseSeparateConfDir	(UseEtcX11 || HasVarDirectory)
#endif
#if NothingOutsideProjectRoot
#undef UseSeparateConfDir
#define UseSeparateConfDir	NO
#endif
#ifndef SystemV
#define SystemV			NO	/* SYSV (R3) */
#endif
#ifndef SystemV4
#define SystemV4		NO	/* SVR4 */
#endif
#ifndef HasCodeCenter
#define HasCodeCenter		NO
#endif
#ifndef HasSentinel
#define HasSentinel		NO
#endif
#ifndef HasPurify
#define HasPurify		NO
#endif
#ifndef HasTestCenter
#define HasTestCenter		NO
#endif
#ifndef HasGnuMake
#define HasGnuMake		NO
#endif
/*
 * The following fixes a glitch with GNU make -j
 */
#ifndef ForceServerRemake
#define ForceServerRemake	HasGnuMake
#endif
#ifndef HasBsdMake
#define HasBsdMake		NO
#endif
#ifndef HasParallelMake
#define HasParallelMake		NO
#endif
#ifndef RemoveTargetProgramByMoving
#define RemoveTargetProgramByMoving NO
#endif
#ifndef DoRanlibCmd
#if SystemV || SystemV4
#define DoRanlibCmd NO
#else
#define DoRanlibCmd YES
#endif
#endif
#ifndef ExecableScripts
#if SystemV
#define ExecableScripts		NO
#else
#define ExecableScripts		YES	/* kernel exec() can handle #! */
#endif
#endif

#ifndef HasMakefileSafeInclude	    /* -include or sinclude in a Makefile */
#if HasClearmake || HasBsdMake
#define HasMakefileSafeInclude	YES
#else
#define HasMakefileSafeInclude	NO   /* see also vendor-specific .cf files */
#endif
#endif

#ifndef HasSymLinks
#define HasSymLinks YES
#endif

#ifndef HasPerl
#define HasPerl			YES
#endif

#ifndef HasPerl5
#define HasPerl5		HasPerl
#endif

#ifndef PerlCmd
#define PerlCmd			perl
#endif

#ifndef PerlOptions
#define PerlOptions		/**/
#endif

#ifndef PerlEnvSetup
#define PerlEnvSetup		env LC_ALL=C
#endif

#ifndef BuildRman
#define BuildRman YES
#endif

#ifndef HasGperf
#define HasGperf		NO
#endif

#ifndef GperfCmd
#define GperfCmd		gperf
#endif

#ifndef RmanCmd
#if BuildRman
#ifdef UseInstalled		/* assume BINDIR in path */
#define RmanCmd rman
#else
#define RmanCmd $(TOP)/config/util/rman
#endif
#endif
#endif

#ifndef RmanOptions
#if BuildRman
#define RmanOptions -f HTML
#endif
#endif

#ifndef BuildHtmlManPages
#ifdef RmanCmd
#define BuildHtmlManPages YES
#else
#define BuildHtmlManPages NO
#endif
#endif
/* Can't do this while bootstrapping imake */
#ifdef BootStrap
#undef BuildHtmlManPages
#define BuildHtmlManPages NO
#endif

#ifndef DontPreprocessManPages
#ifdef UseInstalled
#define DontPreprocessManPages YES
#else
#define DontPreprocessManPages NO
#endif
#endif

#ifndef CompressManPages
#define CompressManPages NO
#endif

#ifndef HasGroff
#define HasGroff NO
#endif
#ifndef HasGroffHtml
#define HasGroffHtml NO
#endif

#ifndef HasCookieMaker
#define HasCookieMaker	NO
#endif

#ifndef DoLoadableServer
#define DoLoadableServer NO
#endif
#ifndef MakeDllModules
#define MakeDllModules NO
#endif
#ifndef StripInstalledPrograms
#define StripInstalledPrograms NO	/* leave symbol table just in case */
#endif
#ifndef StaticNeedsPicForShared
#define StaticNeedsPicForShared NO
#endif

#include <Imake.rules>

#ifndef HasSharedLibraries
#define HasSharedLibraries NO
#endif
#ifndef OSMajorVersion
#define OSMajorVersion          0
#endif
#ifndef OSMinorVersion
#define OSMinorVersion          0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion		0
#endif
#ifndef UnalignedReferencesAllowed
#define UnalignedReferencesAllowed NO	/* if arbitrary deref is okay */
#endif
#ifndef AvoidNullMakeCommand
#if !HasBsdMake
#define AvoidNullMakeCommand NO
#else
#define AvoidNullMakeCommand YES
#endif
#endif
#if AvoidNullMakeCommand
#ifndef NullMakeCommand
#define NullMakeCommand		@@ echo -n
#endif
/*
 * An obscure bug in BSD4.3's original make causes it not to recognize a
 * macro definition if the macro name starts with a non-alpha and in
 * column one.
 */
 _NULLCMD_ = NullMakeCommand
#endif

#ifndef CrossCompiling
#define CrossCompiling		NO
#undef  CrossCompileDir
#endif
#ifndef BourneShell			/* to force shell in makefile */
#define BourneShell		/bin/sh
#endif
#ifndef ConstructMFLAGS
#if SystemV
#define ConstructMFLAGS		YES	/* build MFLAGS from MAKEFLAGS */
#else
#define ConstructMFLAGS		NO	/* build MFLAGS from MAKEFLAGS */
#endif
#endif

#ifndef ConstructMAKEFLAGS		/* needed on old BSD-based? */
#define ConstructMAKEFLAGS	NO	/* build MAKEFLAGS from MFLAGS */
#endif

#ifndef HasLargeTmp
#define HasLargeTmp		NO	/* be paranoid */
#endif

#ifndef HasMotif
#define HasMotif		NO
#endif
#ifndef HasBSDAuth
#define HasBSDAuth		NO
#endif

#ifndef HasBSD44Sockets
#define HasBSD44Sockets		NO
#endif
#ifndef HasSockets
#define HasSockets		YES
#endif
#ifndef HasStreams
#define HasStreams		!HasSockets
#endif
#ifndef HasDECnet
#define HasDECnet		NO
#endif
#ifndef HasPoll
#if SystemV || SystemV4
#define HasPoll			YES
#else
#define HasPoll			NO
#endif
#endif
#ifndef HasVFork
#if SystemV
#define HasVFork		NO	/* not yet... */
#else
#define HasVFork		YES
#endif
#endif
#ifndef HasSetProcTitle
#define HasSetProcTitle		NO
#endif
#ifndef HasSetUserContext
#define HasSetUserContext	NO
#endif
#ifndef HasLibCrypt
#define HasLibCrypt		NO
#endif
#ifndef HasPutenv
#define HasPutenv		NO	/* assume not */
#endif
/* setenv(3) and unsetenv(3) */
#ifndef HasSetenv
#define HasSetenv		YES	/* assume yes */
#endif
#ifndef HasVoidSignalReturn
#define HasVoidSignalReturn	YES	/* assume yes */
#endif
#ifndef HasBsearch
#define HasBsearch		YES	/* assume yes */
#endif
#ifndef HasSnprintf
#define HasSnprintf		NO	/* assume not */
#endif
#ifndef HasAsprintf
#define HasAsprintf		NO	/* assume not */
#endif
#ifndef HasStrlcat
#define HasStrlcat		NO	/* assume not */
#endif
#ifndef HasDlopen
#define HasDlopen		NO	/* assume not */
#endif
#ifndef HasWeakSymbols
#define HasWeakSymbols		NO	/* assume not */
#endif
#ifndef HasIssetugid
#define HasIssetugid		NO	/* assume not */
#endif
#ifndef HasGetresuid
#define HasGetresuid		NO	/* assume not */
#endif
#ifndef HasMkstemp
#define HasMkstemp		NO	/* assume not */
#endif
#ifndef HasUsableFileMmap
#define HasUsableFileMmap	NO	/* assume not */
#endif
#ifndef HasGetIfAddrs
#define HasGetIfAddrs		NO	/* assume not */
#endif
#ifndef HasStickyDirBit
#define HasStickyDirBit		YES
#endif
#ifndef HasFchown
#define HasFchown		YES
#endif
#ifndef HasPam
#define HasPam			NO
#endif
#ifndef HasPamMisc
#define HasPamMisc		NO
#endif
#ifndef HasGetpeereid
#define HasGetpeereid		NO
#endif
#ifndef NoStrstr
#define NoStrstr		NO
#endif
#ifndef HasShadowPasswd
#define HasShadowPasswd		NO
#endif
#ifndef HasBasename
#define HasBasename		YES
#endif
/* byte-order defaults */
#ifndef ByteOrder
#if defined(VaxArchitecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(MipsArchitecture) && defined(MipselArchitecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(MipsArchitecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(i386Architecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(ia64Architecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(AMD64Architecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(SparcArchitecture) || defined(Sparc64Architecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(AlphaArchitecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(Mc68000Architecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(Mc68020Architecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(Mc88000Architecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(s390Architecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(s390xArchitecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(Arm32Architecture) || defined(CatsArchitecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(PpcArchitecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(HPArchitecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(SuperHArchitecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(SuperHebArchitecture)
#define ByteOrder		X_BIG_ENDIAN
#endif
#endif /* ByteOrder */
X_BYTE_ORDER = ByteOrder

#ifndef HasFortran
#define HasFortran		NO
#endif
#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus	NO
#endif
#ifndef HasCplusplus
#if HasGcc2ForCplusplus
#define HasCplusplus		YES
#else
#define HasCplusplus		NO
#endif
#endif
#ifndef HasMktemp
#define HasMktemp		NO	/* if you have the mktemp command */
#endif
#ifndef HasNdbm
#define HasNdbm			NO
#endif
#ifndef HasSecureRPC
#define HasSecureRPC		NO	/* if you have Secure RPC */
#endif
#ifndef HasKrbIV
#define HasKrbIV		NO	/* if you have Kerberos IV */
#endif
#ifndef HasKrb5
#define HasKrb5			NO      /* if you have Kerberos V5 */
#endif
#ifndef HasLatex
#define HasLatex		NO
#endif
#ifndef HasShm
#if SystemV || SystemV4
#define HasShm			YES
#else
#define HasShm			NO
#endif
#endif
#ifndef HasCbrt
#define HasCbrt			YES
#endif
#ifndef HasFfs
#define HasFfs			YES
#endif
#ifndef HasZlib
#define HasZlib			NO
#endif
#ifndef OsNeedZlibHeaders
#define OsNeedZlibHeaders	!HasZlib
#endif
#if !HasZlib		/* if OS doesn't have it, we'll build it */
#undef GzipLibrary	/* GzipLibrary was valid only if HasZlib */
#endif
#ifndef GzipLibrary	/* if OS config didn't define it, assume it's -lz */
#define GzipLibrary -lz
#endif
/* If the system has the Freetype2 library */
#ifndef HasFreetype2
#define HasFreetype2		NO
#endif
/* If the system has the Fontconfig library */
#ifndef HasFontconfig
#define HasFontconfig		NO
#endif
#ifndef HasLibpng
#define HasLibpng		NO
#endif
#if HasKrbIV
#ifndef KrbIVIncludes
#define KrbIVIncludes /**/
#endif
#ifndef KrbIVLibraries
#define KrbIVLibraries -lkrb -ldes
#endif
#endif
#if HasKrb5
#ifndef Krb5Includes
#define Krb5Includes -I/krb5/include
#endif
#ifndef Krb5Libraries
#define Krb5Libraries -L/krb5/lib -L/usr/isode/lib -lkrb5 -lcrypto -lisode -lcom_err -ldbm
#endif
#else
#undef Krb5Includes
#define Krb5Includes /**/
#undef Krb5Libraries
#define Krb5Libraries /**/
#endif
#ifndef UseGnuMalloc
#define UseGnuMalloc		NO
#endif
#ifndef GnuMallocLibrary
#define GnuMallocLibrary -lgmalloc
#endif
#ifndef MallocLibraries
#if UseGnuMalloc
#define MallocLibraries	GnuMallocLibrary
#else
#define MallocLibraries	/**/
#endif
#endif
#ifndef HasPosixRegex		/* Most modern platforms have it */
#define HasPosixRegex		YES
#endif
#ifndef RegexLibrary
#if HasPosixRegex
#define RegexLibrary		/**/
#else
#define RegexLibrary		-lregex
#endif
#endif
#ifndef HasNCurses
#define HasNCurses		NO
#endif
#ifndef NCursesLibName
#if HasNCurses
#define NCursesLibName	-lncurses
#else
#define NCursesLibName
#endif
#endif
#ifdef NCursesLibDir
NCURSESLIBDIR = NCursesLibDir
#endif
#ifdef NCursesIncDir
NCURSESINCDIR = NCursesIncDir
#endif
#ifndef HasGlide2
#define HasGlide2 NO
#endif
#ifndef Glide2IncDir
#if HasGlide2
#define Glide2IncDir /usr/include/glide
#else
#define Glide2IncDir
#endif
#endif
GLIDE2INCDIR = Glide2IncDir
#ifndef HasGlide3
#define HasGlide3 NO
#endif
#ifndef Glide3IncDir
#if HasGlide3
#define Glide3IncDir /usr/include/glide3
#else
#define Glide3IncDir
#endif
#endif
GLIDE3INCDIR = Glide3IncDir
#ifndef Glide3LibName
#if HasGlide3
#define Glide3LibName glide3
#else
#define Glide3LibName
#endif
#endif
GLIDE3LIBNAME = Glide3LibName
#ifndef HasTk
#define HasTk NO
#endif
#ifndef TkLibName
#if HasTk
#define TkLibName tk
#else
#define TkLibName
#endif
#endif
TKLIBNAME = TkLibName
#ifndef TkLibDir
#if HasTk
#define TkLibDir /usr/local/lib
#else
#define TkLibDir
#endif
#endif
TKLIBDIR = TkLibDir
#ifndef TkIncDir
#if HasTk
#define TkIncDir /usr/local/include
#else
#define TkIncDir
#endif
#endif
#ifndef TkLibrary
#ifdef HasTk
#define TkLibrary Concat(-L,$(TKLIBDIR)) Concat(-l,$(TKLIBNAME))
#else
#define TkLibrary
#endif
#endif
#ifndef HasTcl
#define HasTcl NO
#endif
#ifndef TclLibName
#if HasTcl
#define TclLibName tcl
#else
#define TclLibName
#endif
#endif
TCLLIBNAME = TclLibName
#ifndef TclLibDir
#if HasTcl
#define TclLibDir /usr/local/lib
#else
#define TclLibDir
#endif
#endif
TCLIBDIR = TclLibDir
#ifndef TclIncDir
#if HasTcl
#define TclIncDir /usr/local/include
#else
#define TclIncDir
#endif
#endif
#ifndef TclLibrary
#ifdef HasTcl
#define TclLibrary Concat(-L,$(TCLLIBDIR)) Concat(-l,$(TCLLIBNAME))
#else
#define TclLibrary
#endif
#endif
#ifndef HasTsLib
#define HasTsLib NO
#endif
/*
 * Libtool has two different behaviours for version numbers.
 * On platforms which support a minor number, the library
 * version is (version - minor).minor, on those that don't,
 * the version if version.0.  Linux and Darwin support minor
 * numbers; some BSDs do as well.  Set this to YES if libtool
 * uses minor numbers on your platform.
 */
#ifndef LibtoolMinorVersions
#define LibtoolMinorVersions	NO
#endif
#ifndef NeedConstPrototypes
#define NeedConstPrototypes	NO
#endif
#ifndef NeedVarargsPrototypes
#define NeedVarargsPrototypes	NO
#endif
#ifndef NeedNestedPrototypes
#define NeedNestedPrototypes	NO
#endif
#ifndef NeedFunctionPrototypes
#define NeedFunctionPrototypes (NeedVarargsPrototypes || NeedNestedPrototypes)
#endif
#ifndef NeedWidePrototypes
#define NeedWidePrototypes	YES	/* mix and match ANSI-C, non-ANSI */
#endif

#ifndef UseCCMakeDepend			/* use slow cc -E script */
#define UseCCMakeDepend NO
#endif
#ifndef UseGccMakeDepend		/* use slowish but correct gcc -M */
#define UseGccMakeDepend NO
#endif

#ifndef CaseSensitiveFileSystem
#define CaseSensitiveFileSystem YES
#endif

/* DefaultUsrBin is independent of ProjectRoot.
   This is a directory where programs will be found even if PATH
   is not set, for example when coming in remotely via rsh. */
#ifndef DefaultUsrBin
#define	DefaultUsrBin /usr/bin
#endif

#ifndef LibDirName
# define LibDirName lib
#endif

#ifndef UsrLibDir
#ifdef ProjectRoot
#define UsrLibDir Concat3(ProjectRoot,/,LibDirName)
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir YES
#endif
#else
#define UsrLibDir Concat3(/usr,/,LibDirName)
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir NO
#endif
#endif
#else
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir YES
#endif
#endif
#ifndef VarDirectory
#ifdef ProjectVar
#define VarDirectory ProjectVar
#else
#define VarDirectory /var
#endif
#endif
#ifndef VarLibDir
#define VarLibDir $(VARDIR)/lib
#endif

/*
 * SystemUsrLibDir is independent of ProjectRoot.  It is used primarily
 * to allow links for shared libraries in /usr/lib for compliance to
 * various standards (e.g., Linux/OpenGL).
 */
#ifndef SystemUsrLibDir
#define SystemUsrLibDir /usr/LibDirName
#endif
#ifndef SystemUsrIncDir
#define SystemUsrIncDir /usr/include
#endif

#ifndef ShLibDir
#define ShLibDir UsrLibDir
#endif
#ifndef IncRoot
#ifdef ProjectRoot
#define IncRoot Concat(ProjectRoot,/include)
#ifndef AlternateIncRoot
#define AlternateIncRoot YES
#endif
#else
#define IncRoot /usr/include
#ifndef AlternateIncRoot
#define AlternateIncRoot NO
#endif
#endif
#else
#ifndef AlternateIncRoot
#define AlternateIncRoot YES
#endif
#endif
#ifndef LintlibDir
#define LintlibDir $(USRLIBDIR)/lint
#endif
#ifndef SystemManDirectory
#if SystemV4
#define SystemManDirectory /usr/share/man
#else
#define SystemManDirectory /usr/man
#endif
#endif
#ifndef ManDirectoryRoot
#ifdef ProjectRoot
#define ManDirectoryRoot Concat(ProjectRoot,/man)
#else
#define ManDirectoryRoot SystemManDirectory
#endif
#endif
#ifndef ManPath
#define ManPath ManDirectoryRoot
#endif
#ifndef ManSourcePath
#define ManSourcePath $(MANPATH)/man
#endif
#ifndef ManDir
#define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
#endif
#ifndef LibmanDir
#define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
#endif
#ifndef FileManDir
#define FileManDir $(MANSOURCEPATH)$(FILEMANSUFFIX)
#endif
#ifndef MiscManDir
#define MiscManDir $(MANSOURCEPATH)$(MISCMANSUFFIX)
#endif
#ifndef DriverManDir
#define DriverManDir $(MANSOURCEPATH)$(DRIVERMANSUFFIX)
#endif
#ifndef AppLoadDefs
#define AppLoadDefs -D__apploaddir__=$(XAPPLOADDIR)
#endif
#ifndef LibManDefs
#define LibManDefs -D__libmansuffix__=$(LIBMANSUFFIX)
#endif
#ifndef FileManDefs
#define FileManDefs -D__filemansuffix__=$(FILEMANSUFFIX)
#endif
#ifndef MiscManDefs
#define MiscManDefs -D__miscmansuffix__=$(MISCMANSUFFIX)
#endif
#ifndef DriverManDefs
#define DriverManDefs -D__drivermansuffix__=$(DRIVERMANSUFFIX)
#endif
#ifndef AdminManDefs
#define AdminManDefs -D__adminmansuffix__=$(ADMINMANSUFFIX)
#endif
#ifndef ProjectManDefs
#define ProjectManDefs -D__projectroot__=$(PROJECTROOT)
#endif

#ifndef CompressManCmd
#define CompressManCmd gzip -n
#endif

#ifndef HtmlIndexCmd
#if BuildHtmlManPages
#define HtmlIndexCmd $(MKHTMLINDEX)
#endif
#endif

#ifndef LogDirectory
#if HasVarDirectory
#define LogDirectory $(VARDIR)/log
#else
#define LogDirectory /usr/adm
#endif
#endif

#ifndef HasVarRun
#define HasVarRun NO
#endif

#ifndef VarRunDirectory
#if HasVarRun
#define VarRunDirectory $(VARDIR)/run
#endif
#endif

#ifndef HasVarDb
#define HasVarDb NO
#endif

#ifndef VarDbDirectory
#if HasVarDb
#define VarDbDirectory $(VARDIR)/db
#endif
#endif

#ifndef ConfigSrc
#define ConfigSrc $(TOP)/config
#endif
#ifndef DependDir
#if UseCCMakeDepend || UseGccMakeDepend
#define DependDir $(CONFIGSRC)/util
#else
#define DependDir $(CONFIGSRC)/makedepend
#endif
#endif
#ifndef UNCOMPRESSPATH
#define UNCOMPRESSPATH /usr/ucb/uncompress /* obsolete */
#endif
#ifndef OptimizedCDebugFlags
#define OptimizedCDebugFlags -O
#endif
#ifndef OptimizedCplusplusDebugFlags
#define OptimizedCplusplusDebugFlags OptimizedCDebugFlags
#endif
#ifndef DebuggableCDebugFlags
#define DebuggableCDebugFlags -g
#endif
#ifndef DebuggableCplusplusDebugFlags
#define DebuggableCplusplusDebugFlags DebuggableCDebugFlags
#endif
#ifndef ProfiledCDebugFlags
#define ProfiledCDebugFlags -pg
#endif
#ifndef ProfiledCplusplusDebugFlags
#define ProfiledCplusplusDebugFlags ProfiledCDebugFlags
#endif
#ifndef NoOpCDebugFlags
#define NoOpCDebugFlags /**/
#endif
#ifndef DefaultCDebugFlags
#define DefaultCDebugFlags OptimizedCDebugFlags
#endif
#ifndef DefaultCplusplusDebugFlags
#define DefaultCplusplusDebugFlags OptimizedCplusplusDebugFlags
#endif
#ifndef DefaultCCOptions
#define DefaultCCOptions /* floating point, etc. */
#endif
#ifndef DefaultCplusplusOptions
#define DefaultCplusplusOptions /* floating point, etc. */
#endif
#ifndef HardCodeLibdirFlag
#define HardCodeLibdirFlag	/**/
#endif
#ifndef NoRConst
#define NoRConst NO /* YES if const for structs of funcs is bad */
#endif
#ifndef InstPgmFlags
#define InstPgmFlags -s
#endif
#ifndef InstBinFlags
#define InstBinFlags -m 0755
#endif
#ifndef InstUidFlags
#define InstUidFlags -m 4711
#endif
#ifndef InstLibFlags
#define InstLibFlags -m 0644
#endif
#ifndef InstIncFlags
#define InstIncFlags -m 0444
#endif
#ifndef InstManFlags
#define InstManFlags -m 0444
#endif
#ifndef InstDatFlags
#define InstDatFlags -m 0444
#endif
#ifndef InstKmemFlags     /* put -g kmem -m 2711 in site.def... */
#define InstKmemFlags InstUidFlags
#endif
#ifndef ParallelMakeFlags
#define ParallelMakeFlags /**/
#endif
#ifndef ArCmdBase
#define ArCmdBase ar
#endif
#ifndef ArCmd
#if HasLargeTmp || SystemV4
#define ArCmd ArCmdBase cq
#else
#define ArCmd ArCmdBase clq
#endif
#endif
#ifndef ArAddCmd
#if HasLargeTmp || SystemV4
#define ArAddCmd ArCmdBase ru
#else
#define ArAddCmd ArCmdBase rul
#endif
#endif
#ifndef ArExtCmd
#if HasLargeTmp || SystemV4
#define ArExtCmd ArCmdBase x
#else
#define ArExtCmd ArCmdBase xl
#endif
#endif
#ifndef BootstrapCFlags
#define BootstrapCFlags /**/
#endif
#ifndef HasGcc3
#define HasGcc3 NO
#endif
#ifndef HasGcc2
#define HasGcc2 HasGcc3
#endif
#ifndef HasGcc
#define HasGcc HasGcc2
#endif
#ifndef HasBrokenCCForLink
#define HasBrokenCCForLink NO
#endif
#ifndef CcCmd
#if HasGcc2
#define CcCmd gcc -fpcc-struct-return
#else
#if HasGcc
#define CcCmd gcc -fstrength-reduce -fpcc-struct-return
#else
#if HasCenterLineC
#define CcCmd clcc
#else
#define CcCmd cc
#endif
#endif
#endif
#endif
#ifndef CplusplusCmd
#if HasGcc2ForCplusplus
#define CplusplusCmd g++
#else
#define CplusplusCmd CC
#endif
#endif
#ifndef CplusplusFilt
# define CplusplusFilt	c++filt
#endif
#ifndef CplusplusLibC
#if HasGcc2ForCplusplus
#define CplusplusLibC	-lstdc++
#else
#define CplusplusLibC /**/
#endif
#endif
#ifndef CplusplusStandardDefines
#define CplusplusStandardDefines StandardDefines
#endif
#ifndef CplusplusExtraDefines
#define CplusplusExtraDefines /**/
#endif
#ifndef CplusplusExtraIncludes
#define CplusplusExtraIncludes /**/
#endif
#ifndef CplusplusDependIncludes
#define CplusplusDependIncludes /**/
#endif
#ifndef CplusplusOptions
#define CplusplusOptions DefaultCplusplusOptions
#endif
#ifndef CplusplusSpecialOptions
#define CplusplusSpecialOptions /**/
#endif
#if HasFortran
#ifndef FortranCmd
#define FortranCmd f77
#endif
#ifndef FortranFlags
#define FortranFlags /**/
#endif
#ifndef FortranDebugFlags	/* for -O or -g */
#define FortranDebugFlags /**/
#endif
#endif
#ifndef AsCmd
#define AsCmd as
#endif
#ifndef AsmDefines
#define AsmDefines /**/
#endif
#ifndef CPPAsmOptions
# if HasGcc && \
     ((GccMajorVersion < 3) || \
      ((GccMajorVersion == 3) && (GccMinorVersion < 3)))
#  define CPPAsmOptions -$$
# else
#  define CPPAsmOptions /**/
# endif
#endif
#ifndef CompressCmd
#define CompressCmd compress
#endif
#ifndef GzipCmd
#define GzipCmd gzip
#endif
#ifndef CppCmd
#define CppCmd /LibDirName/cpp
#endif
#ifndef RawCppCmd
#define RawCppCmd CppCmd -undef
#endif
#ifndef CppNoLineInfoOption
#define CppNoLineInfoOption /**/
#endif
#ifndef PreProcessCmd
#define PreProcessCmd CcCmd -E
#endif
#ifndef InstallCmd		/* hack should be in project */
#if SystemV || SystemV4
#ifdef UseInstalled		/* assume BINDIR in path */
#define InstallCmd bsdinst
#else
#define InstallCmd $(SHELL) $(CONFIGSRC)/util/bsdinst.sh
#endif
#else
#define InstallCmd install
#endif
#endif
#ifndef InstallFlags
#define InstallFlags -c
#endif
#ifndef LdCmd
#define LdCmd ld
#endif
#ifndef M4Cmd
#define M4Cmd m4
#endif
#ifndef M4Flags
#define M4Flags /**/
#endif
#ifndef LexCmd
#define LexCmd lex
#endif
#ifndef LexLib
#define LexLib -ll
#endif
#ifndef HasFlex
#define HasFlex NO
#endif
#ifndef YaccCmd
#define YaccCmd yacc
#endif
#ifndef CplusplusYaccCmd
#define CplusplusYaccCmd YaccCmd
#endif
#ifndef LintCmd
#define LintCmd lint
#endif
#ifndef LintLibFlag
#if SystemV || SystemV4
#define LintLibFlag -o
#else
#define LintLibFlag -C
#endif
#endif
#ifndef LintOpts
#if SystemV || SystemV4
#define LintOpts -bh
#else
#define LintOpts -axz
#endif
#endif
#ifndef CpCmd
#define CpCmd cp
#endif
#ifndef LnCmd /* can use cp instead of ln if necessary */
#if HasSymLinks
#define LnCmd ln -s
#else
#define LnCmd ln
#endif
#endif
#ifndef MakeCmd
#define MakeCmd make
#endif
#ifndef MvCmd
#define MvCmd mv -f
#endif
#ifndef RanlibCmd
#define RanlibCmd ranlib
#endif
#ifndef RanlibInstFlags
#define RanlibInstFlags /**/
#endif
#ifndef RmCmd
#define RmCmd rm -f
#endif

/*
 * Module cross-compile stuff.  By default they are defined to be exactly the
 * same as the non-module versions.
 */
#ifndef ModuleCcCmd
#define ModuleCcCmd CcCmd
#endif
#ifndef ModuleCppCmd
#define ModuleCppCmd CppCmd
#endif
#ifndef ModuleCFlags
#define ModuleCFlags $(CFLAGS)
#endif
#ifndef ModuleAsCmd
#define ModuleAsCmd AsCmd
#endif
#ifndef ModuleAsFlags
#define ModuleAsFlags /**/
#endif
#ifndef ModuleLdCmd
#define ModuleLdCmd LdCmd
#endif
#ifndef ModuleLdFlags
#define ModuleLdFlags /**/
#endif
#ifndef ModuleLdCombineFlags
#define ModuleLdCombineFlags LdCombineFlags
#endif
#ifndef ModuleArCmd
#define ModuleArCmd ArCmd
#endif
#ifndef NeedModuleRanlib
#define NeedModuleRanlib NO
#endif
#ifndef ModuleRanlibCmd
#define ModuleRanlibCmd RanlibCmd
#endif

#ifndef HostCcCmd
#define HostCcCmd cc
#endif
#ifndef StandardIncludes	/* for platform-specifics */
#define StandardIncludes /**/
#endif
#ifndef StandardDefines
#if SystemV
#define StandardDefines -DSYSV
#else
#if SystemV4
#define StandardDefines -DSVR4
#else
#define StandardDefines /**/
#endif
#endif
#endif
#ifndef StandardCppOptions
#define StandardCppOptions /**/
#endif
#ifndef StandardCppDefines
#define StandardCppDefines StandardCppOptions StandardDefines
#endif
#ifndef Malloc0ReturnsNull
#if UseGnuMalloc
#define Malloc0ReturnsNull YES
#else
#define Malloc0ReturnsNull NO
#endif
#endif
#if Malloc0ReturnsNull
#ifndef Malloc0ReturnsNullDefines
#define Malloc0ReturnsNullDefines -DMALLOC_0_RETURNS_NULL
#endif
#endif
#ifndef ToolkitStringsABIOptions
#define ToolkitStringsABIOptions /**/
#endif
#ifndef NdbmDefines
#if HasNdbm
#define NdbmDefines -DNDBM
#else
#define NdbmDefines /**/
#endif
#endif
#ifndef HasLdRunPath
#define HasLdRunPath NO
#endif
#ifndef LdPreLib
# if !defined(UseInstalled)
#  define LdPreLib -L$(BUILDLIBDIR)
# else
# if AlternateUsrLibDir
#  define LdPreLib -L$(USRLIBDIR)
# else
# define LdPreLib /**/
# endif
#endif
#endif
#ifndef LdPostLib
#if !defined(UseInstalled) && AlternateUsrLibDir && !HasLdRunPath && !defined(CrossCompileDir)
#define LdPostLib -L$(USRLIBDIR)
#else
#define LdPostLib /**/
#endif
#endif
#ifndef MathLibrary
#define MathLibrary -lm
#endif
#ifndef ExpatLibrary
#define ExpatLibrary $(EXPATLIB)
#endif
#ifndef DBMLibrary
#define DBMLibrary -ldbm
#endif
#ifndef DlLibrary
#define DlLibrary -ldl
#endif
#ifndef ExtraLibraries
#if SystemV4
#if HasSockets
#define ExtraLibraries -lsocket -lnsl -lw
#else
#define ExtraLibraries -lnsl -lw
#endif
#else
#define ExtraLibraries /**/
#endif
#endif
#ifndef ExtraLoadOptions
#define ExtraLoadOptions /**/
#endif
#ifndef ExtraLoadFlags
#define ExtraLoadFlags /**/
#endif
#ifndef ExtraSharedLibraryLoadOptions
#define ExtraSharedLibraryLoadOptions ExtraLoadOptions
#endif
#ifndef ExtraSharedLibraryLoadFlags
#define ExtraSharedLibraryLoadFlags ExtraLoadFlags
#endif
#ifndef LdCombineFlags
#if SystemV4
#define LdCombineFlags -r
#else
#define LdCombineFlags -X -r
#endif
#endif
#ifndef LdStripFlags
#define LdStripFlags -x
#endif
#ifndef TagsCmd
#define TagsCmd ctags
#endif
#ifndef LoaderLibPrefix
#define LoaderLibPrefix /**/
#endif
#ifndef ImakeCmd
#ifdef UseInstalled		/* assume BINDIR in path */
#define ImakeCmd imake
#else
#define ImakeCmd $(IMAKESRC)/imake
#endif
#endif
#ifndef ImakeWarningFlags
#define ImakeWarningFlags	/* Nothing */
#endif
#ifndef DependCmd
#if UseGccMakeDepend
#ifdef UseInstalled		/* assume BINDIR in path */
#define DependCmd gccmakedep
#else
#define DependCmd $(DEPENDSRC)/gccmakedep
#endif
#elif UseCCMakeDepend
#ifdef UseInstalled		/* assume BINDIR in path */
#define DependCmd ccmakedep
#else
#define DependCmd $(DEPENDSRC)/ccmakedep
#endif
#else
#ifdef UseInstalled		/* assume BINDIR in path */
#define DependCmd makedepend
#else
#define DependCmd $(DEPENDSRC)/makedepend
#endif
#endif
#endif
#ifndef DependDefines
# define DependDefines /**/
#endif
#ifndef DependFlags
#define DependFlags /**/
#endif
#ifndef DependFileName
#if !HasBsdMake
#define DependFileName Makefile.dep
#else
#define DependFileName .depend
#endif
#endif
#ifndef ExportListCmd
# ifndef ExportListGenSource
#  define ExportListCmd		/**/
# elif !defined(UseInstalled)
#  define ExportListCmd		$(CONFIGSRC)/util/exportlistgen
# else
#  define ExportListCmd		exportlistgen
# endif
#endif
#ifndef MkdirHierCmd
#ifdef UseInstalled		/* assume BINDIR in path */
#define MkdirHierCmd mkdirhier
#else
#define MkdirHierCmd $(SHELL) $(CONFIGSRC)/util/mkdirhier.sh
#endif
#endif
#ifndef RevPathCmd
#ifdef UseInstalled		/* assume BINDIR in path */
#define RevPathCmd revpath
#else
#define RevPathCmd $(CONFIGSRC)/util/revpath
#endif
#endif
#ifndef TroffCmd
#if HasGroff
#define TroffCmd groff -Tps
#else
#define TroffCmd troff -Tps
#endif
#endif
#ifndef NroffCmd
#define NroffCmd nroff
#endif
#ifndef HTMLroffCmd
#if HasGroff && HasGroffHtml
#define HTMLroffCmd groff -Thtml
#endif
#endif
#ifdef HTMLroffCmd
#ifndef DocFilesToClean
#define DocFilesToClean grohtml*.png *-auto-*.png
#endif
#endif
#ifndef MsMacros
#define MsMacros -ms
#endif
#ifndef ManMacros
#define ManMacros -man
#endif
#ifndef TblCmd
#define TblCmd tbl
#endif
#ifndef EqnCmd
#define EqnCmd eqn
#endif
#ifndef NeqnCmd
#define NeqnCmd neqn
#endif
#ifndef ColCmd
#define ColCmd col
#endif
#ifndef ColFlags
#define ColFlags -b
#endif
#ifndef DvipsCmd
#define DvipsCmd dvips
#endif
#ifndef LatexCmd
#define LatexCmd latex
#endif
#ifndef HasPdfLatex
#define HasPdfLatex NO
#endif
#ifndef PdfLatexCmd
#define PdfLatexCmd pdflatex
#endif
#ifndef GhostScriptCmd
#define GhostScriptCmd gs
#endif
#ifndef HasGhostScript
#define HasGhostScript NO
#endif
#if HasGhostScript
#define PsToPdfCmd GhostScriptCmd -q -sOutputFile=- -sDEVICE=pdfwrite -dSAFER -dNOPAUSE -
#endif
#if HasSentinel
#ifndef SentinelCmd
#define SentinelCmd sentinel
#endif
#ifndef SentinelOptions
#define SentinelOptions /**/
#endif
#endif
#if HasPurify
#ifndef PurifyCmd
#define PurifyCmd purify
#endif
#ifndef PurifyOptions
#define PurifyOptions /**/
#endif
#endif
#if HasTestCenter
#ifndef ProofCmd
#define ProofCmd proof
#endif
#ifndef ProofOptions
#define ProofOptions /**/
#endif
#endif
#ifndef PathSeparator
#define PathSeparator /
#endif
#ifndef Osuf
#define Osuf o
#endif
#ifndef CCsuf
#define CCsuf cc
#endif
#ifndef SHsuf
#define SHsuf sh
#endif
#ifndef ManSuffix
#define ManSuffix	n		/* use just one tab or cpp will die */
#endif
#ifndef LibManSuffix
#define LibManSuffix	3		/* use just one tab or cpp will die */
#endif
#ifndef FileManSuffix
#if SystemV || SystemV4 || defined(OSF1Architecture)
#define FileManSuffix	4		/* use just one tab or cpp will die */
#else
#define FileManSuffix	5		/* use just one tab or cpp will die */
#endif
#endif
#ifndef MiscManSuffix
#if SystemV || SystemV4 || defined(OSF1Architecture)
#define MiscManSuffix	5		/* use just one tab or cpp will die */
#else
#define MiscManSuffix	7		/* use just one tab or cpp will die */
#endif
#endif
#ifndef DriverManSuffix
#if SystemV || SystemV4 || defined(OSF1Architecture)
#define DriverManSuffix	7		/* use just one tab or cpp will die */
#else
#define DriverManSuffix	4		/* use just one tab or cpp will die */
#endif
#endif
#ifndef AdminManSuffix
#if SystemV || SystemV4
#define AdminManSuffix	1m		/* use just one tab or cpp will die */
#else
#define AdminManSuffix	8		/* use just one tab or cpp will die */
#endif
#endif
#ifndef ExpandManNames
#if SystemV
#define ExpandManNames NO
#else
#define ExpandManNames YES
#endif
#endif
#ifndef ManSrcSuffix
#define ManSrcSuffix	man
#endif
#ifndef ManNewSuffix
#define ManNewSuffix	_man
#endif
#ifndef TOPDIR
#define TOPDIR .
#endif
#ifndef CURDIR
#define CURDIR .
#endif
#ifndef SiteIConfigFiles
#define SiteIConfigFiles /**/
#endif
#ifndef OtherIConfigFiles
#define OtherIConfigFiles /**/
#endif
#ifndef ExtraFilesToClean
#define ExtraFilesToClean /**/
#endif
#ifndef DocFilesToClean
#define DocFilesToClean /**/
#endif
#ifndef FilesToClean
#define FilesToClean *.CKP *.ln *.BAK *.bak *.Osuf core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
#endif

#ifdef CrossCompileDir
# ifndef StripPath
#  define StripPath(x) `echo x|sed "s%.*/%%"`
# endif
# ifndef CrossArCmd
#  define CrossArCmd Concat3(CrossCompileDir,/,StripPath(ArCmd))
# endif
# ifndef CrossCcCmd
#  define CrossCcCmd Concat3(CrossCompileDir,/,StripPath(CcCmd))
# endif
# ifndef CrossAsCmd
#  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
# endif
# ifdef HasFortran
#  ifndef CrossFortranCmd
#   define CrossFortranCmd Concat3(CrossCompileDir,/,StripPath(FortranCmd))
#  endif
# endif
# ifndef CrossCplusplusCmd
#  define CrossCplusplusCmd Concat3(CrossCompileDir,/,StripPath(CplusplusCmd))
# endif
# ifndef CrossCppCmd
#  define CrossCppCmd Concat3(CrossCompileDir,/,StripPath(CppCmd))
# endif
# ifndef CrossRawCppCmdCmd
#  define CrossRawCppCmd Concat3(CrossCompileDir,/,StripPath(RawCppCmd))
# endif
# ifndef CrossPreProcessCmd
#  define CrossPreProcessCmd Concat3(CrossCompileDir,/,StripPath(PreProcessCmd))
# endif
# ifndef CrossAsCmd
#  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
# endif
# ifndef CrossLdCmd
#  define CrossLdCmd Concat3(CrossCompileDir,/,StripPath(LdCmd))
# endif
# ifndef CrossModuleLdCmd
#  define CrossModuleLdCmd CrossLdCmd
# endif
# ifndef CrossLintCmd
#  define CrossLintCmd Concat3(CrossCompileDir,/,StripPath(LintCmd))
# endif
# ifndef CrossRanlibCmd
#  define CrossRanlibCmd Concat3(CrossCompileDir,/,StripPath(RanlibCmd))
# endif
# ifndef CrossModuleCcCmd
#  define CrossModuleCcCmd Concat3(CrossCompileDir,/,StripPath(ModuleCcCmd))
# endif
# ifndef CrossAsCmd
#  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
# endif
#endif

          PATHSEP = PathSeparator
            SHELL = BourneShell

              TOP = TOPDIR
      CURRENT_DIR = CURDIR

            IMAKE = ImakeCmd
           DEPEND = DependCmd
        MKDIRHIER = MkdirHierCmd
          REVPATH = RevPathCmd
    EXPORTLISTGEN = ExportListCmd
             RMAN = RmanCmd
     RMANBASENAME = HostProgramTargetName(rman)
      RMANOPTIONS = RmanOptions
        CONFIGSRC = ConfigSrc
         IMAKESRC = $(CONFIGSRC)/imake
        DEPENDSRC = DependDir

        LIBPREFIX = lib

          INCROOT = IncRoot		/* base of where to put header files */
        USRLIBDIR = UsrLibDir		/* nonshared libraries */
           VARDIR = VarDirectory	/* usually /var */
        VARLIBDIR = VarLibDir		/* xdm runtime files */
  SYSTEMUSRLIBDIR = SystemUsrLibDir	/* system's "/usr/lib" */
  SYSTEMUSRINCDIR = SystemUsrIncDir	/* system's "/usr/include" */
         SHLIBDIR = ShLibDir            /* shared libraries */
       LINTLIBDIR = LintlibDir		/* lint libraries */
          MANPATH = ManPath		/* top of manual page tree */
    MANSOURCEPATH = ManSourcePath	/* prefix for man page sources */
           MANDIR = ManDir		/* man pages for commands */
        LIBMANDIR = LibmanDir		/* man pages for library routines */
       FILEMANDIR = FileManDir		/* man pages for config files */
       MISCMANDIR = MiscManDir		/* man pages for miscellaneous files */
     DRIVERMANDIR = DriverManDir	/* man pages for drivers */
     LOGDIRECTORY = LogDirectory	/* OS location of log files */
#ifdef VarRunDirectory
        VARRUNDIR = VarRunDirectory	/* OS location of PID files */
#endif
#ifdef VarDbDirectory
         VARDBDIR = VarDbDirectory	/* OS location of db/state files */
#endif
#ifdef CrossCompileDir
               AR = CrossArCmd
#else
               AR = ArCmd
#endif
XCOMM Nice try but useless: make will inherit BOOTSTRAPCFLAGS
XCOMM from  top Makefile
  BOOTSTRAPCFLAGS = BootstrapCFlags	/* set if cpp does not have uniq sym */
#ifdef CrossCompileDir
               CC = CrossCcCmd
               AS = CrossAsCmd
#else
               CC = CcCmd
               AS = AsCmd
#endif
#if HasFortran
# ifdef CrossCompileDir
               FC = CrossFortranCmd
# else
               FC = FortranCmd
# endif
      FDEBUGFLAGS = FortranDebugFlags
          FCFLAGS = FortranFlags $(FDEBUGFLAGS)
#endif
#if HasCplusplus

.SUFFIXES: Concat(.,CCsuf)

#ifdef CrossCompileDir
              CXX = CrossCplusplusCmd
#else
              CXX = CplusplusCmd
#endif
          CXXFILT = CplusplusFilt
#ifdef CplusplusLibCDir
        CXXLIBDIR = CplusplusLibCDir
           CXXLIB = -L$(CXXLIBDIR) CplusplusLibC
#else
           CXXLIB = CplusplusLibC
#endif

    CXXDEBUGFLAGS = DefaultCplusplusDebugFlags
CXXDEPENDINCLUDES = CplusplusDependIncludes
 CXXEXTRA_DEFINES = CplusplusExtraDefines
CXXEXTRA_INCLUDES = CplusplusExtraIncludes
   CXXSTD_DEFINES = CplusplusStandardDefines $(CXXPROJECT_DEFINES)
       CXXOPTIONS = CplusplusOptions
      CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES)
       CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(DEFINES) $(CXXEXTRA_DEFINES)
         CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(THREADS_CXXFLAGS) $(CXXDEFINES)
#endif
         COMPRESS = CompressCmd
          GZIPCMD = GzipCmd
#ifdef CrossCompileDir
              CPP = CrossCppCmd $(STD_CPP_DEFINES)
           RAWCPP = CrossRawCppCmd $(STD_CPP_OPTIONS)
    PREPROCESSCMD = CrossPreProcessCmd $(STD_CPP_DEFINES)
#else
              CPP = CppCmd $(STD_CPP_DEFINES)		/* simple filters */
           RAWCPP = RawCppCmd $(STD_CPP_OPTIONS)
    PREPROCESSCMD = PreProcessCmd $(STD_CPP_DEFINES)	/* prefered; mdep */
#endif
          INSTALL = InstallCmd
     INSTALLFLAGS = InstallFlags
#ifdef CrossCompileDir
               LD = CrossLdCmd
#else
               LD = LdCmd
#endif
              LEX = LexCmd
               M4 = M4Cmd
          M4FLAGS = M4Flags
           LEXLIB = LexLib
             YACC = YaccCmd
           CCYACC = CplusplusYaccCmd
#ifdef CrossCompileDir
             LINT = CrossLintCmd
#else
             LINT = LintCmd
#endif
      LINTLIBFLAG = LintLibFlag
         LINTOPTS = LintOpts
               LN = LnCmd
             MAKE = MakeCmd
               MV = MvCmd
               CP = CpCmd
#if DoRanlibCmd
#ifdef CrossCompileDir
           RANLIB = CrossCompileDir/RanlibCmd
#else
           RANLIB = RanlibCmd
#endif
  RANLIBINSTFLAGS = RanlibInstFlags
#endif
               RM = RmCmd
             PERL = PerlCmd
         PERLOPTS = PerlOptions
     PERLENVSETUP = PerlEnvSetup
        MANSUFFIX = ManSuffix		/* suffix for command man pages */
     LIBMANSUFFIX = LibManSuffix	/* suffix for library man pages */
    FILEMANSUFFIX = FileManSuffix	/* suffix for file format man pages */
    MISCMANSUFFIX = MiscManSuffix	/* suffix for misc man pages */
  DRIVERMANSUFFIX = DriverManSuffix	/* suffix for driver man pages */
   ADMINMANSUFFIX = AdminManSuffix	/* suffix for admin command man pages */
     MANSRCSUFFIX = ManSrcSuffix	/* suffix for man page source */
     MANNEWSUFFIX = ManNewSuffix	/* suffix for preprocessed man source */
          MANDEFS = AppLoadDefs FileManDefs LibManDefs MiscManDefs DriverManDefs AdminManDefs ProjectManDefs $(VENDORMANDEFS)

   COMPRESSMANCMD = CompressManCmd

            TROFF = TroffCmd
            NROFF = NroffCmd
#ifdef HTMLroffCmd
         HTMLROFF = HTMLroffCmd
#endif
#ifdef PsToPdfCmd
       PSTOPDFCMD = PsToPdfCmd
#endif
         MSMACROS = MsMacros
        MANMACROS = ManMacros
              TBL = TblCmd
              EQN = EqnCmd
             NEQN = NeqnCmd
              COL = ColCmd
         COLFLAGS = ColFlags
#ifdef CrossCompileDir
	    MODCC = CrossModuleCcCmd
#else
            MODCC = ModuleCcCmd
#endif
           MODCPP = ModuleCppCmd $(STD_CPP_DEFINES)
        MODCFLAGS = ModuleCFlags
            MODAS = ModuleAsCmd
       MODASFLAGS = ModuleAsFlags
#ifdef CrossCompileDir
	    MODLD = CrossModuleLdCmd
#else
            MODLD = ModuleLdCmd
#endif
       MODLDFLAGS = ModuleLdFlags
MODLDCOMBINEFLAGS = ModuleLdCombineFlags
            MODAR = ModuleArCmd
#ifdef CrossCompileDir
        MODRANLIB = CrossCompileDir/ModuleRanlibCmd
#else
        MODRANLIB = ModuleRanlibCmd
#endif
#if HasLatex
            DVIPS = DvipsCmd
            LATEX = LatexCmd
#endif
#if HasPdfLatex
      PDFLATEXCMD = PdfLatexCmd
#endif
#if HasSentinel
         SENTINEL = SentinelCmd
  SENTINELOPTIONS = SentinelOptions
#endif
#if HasPurify
           PURIFY = PurifyCmd
    PURIFYOPTIONS = PurifyOptions
#endif
#if HasTestCenter
           PROOF = ProofCmd
    PROOFOPTIONS = ProofOptions
#endif
#if CrossCompiling
          HOST_CC = HostCcCmd
#endif
     STD_INCLUDES = StandardIncludes
  STD_CPP_OPTIONS = StandardCppOptions
  STD_CPP_DEFINES = StandardCppOptions StandardCppDefines $(PROJECT_DEFINES)
      STD_DEFINES = StandardDefines $(PROJECT_DEFINES)
 EXTRA_LOAD_FLAGS = ExtraLoadFlags
  EXTRA_LDOPTIONS = ExtraLoadOptions
  EXTRA_LIBRARIES = MallocLibraries ExtraLibraries Krb5Libraries
             TAGS = TagsCmd
#if ConstructMFLAGS
           MFLAGS = -$(MAKEFLAGS)
#endif
#if ConstructMAKEFLAGS
        MAKEFLAGS = $(MFLAGS)
#endif
   PARALLELMFLAGS = ParallelMakeFlags
#if HasSharedLibraries
    SHAREDCODEDEF = SharedCodeDef
         SHLIBDEF = SharedLibraryDef
#ifdef SharedLibraryLoadFlags
     SHLIBLDFLAGS = SharedLibraryLoadFlags \
                    $(SHLIBGLOBALSFLAGS) \
                    ExtraSharedLibraryLoadFlags ExtraSharedLibraryLoadOptions
#endif
/*
 * Here we set up flags needed to produce position-independent code
 * when doing C and C++ compilation.  The default if you specify C
 * PIC flags without also specifying C++ PIC flags is to assume that
 * the C flags work for both.  If your C++ compiler requires different
 * flags, specify them explicitly in PositionIndependentCplusplusFlags.
 */
#ifdef PositionIndependentCFlags
         PICFLAGS = PositionIndependentCFlags
#endif
#ifdef PositionIndependentCplusplusFlags
      CXXPICFLAGS = PositionIndependentCplusplusFlags
#else
#ifdef PositionIndependentCFlags
      CXXPICFLAGS = PositionIndependentCFlags
#endif
#endif
#endif
#if !HasVoidSignalReturn
   SIGNAL_DEFINES = -DSIGNALRETURNSINT
#endif
/*
 * The following supports forcing of function prototypes
 */
#if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedConstPrototypes && NeedNestedPrototypes
#define _funcprotodef -DFUNCPROTO=15
#else
#if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedNestedPrototypes
#define _funcprotodef -DFUNCPROTO=11
#else
#if NeedFunctionPrototypes && NeedNestedPrototypes
#define _funcprotodef -DFUNCPROTO=9
#else
#if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedConstPrototypes
#define _funcprotodef -DFUNCPROTO=7
#else
#if NeedFunctionPrototypes && NeedConstPrototypes
#define _funcprotodef -DFUNCPROTO=5
#else
#if NeedFunctionPrototypes && NeedVarargsPrototypes
#define _funcprotodef -DFUNCPROTO=3
#else
#if NeedFunctionPrototypes
#define _funcprotodef -DFUNCPROTO
#else
#define _funcprotodef /**/
#endif
#endif
#endif
#endif
#endif
#endif
#endif
#if NeedWidePrototypes
#define _wideprotodef /**/
#else
#define _wideprotodef -DNARROWPROTO
#endif
    PROTO_DEFINES = _funcprotodef _wideprotodef
#undef _funcprotodef
#undef _wideprotodef

#if StripInstalledPrograms
     INSTPGMFLAGS = InstPgmFlags	/* install flags for stripping */
#else
     INSTPGMFLAGS =
#endif
     INSTBINFLAGS = InstBinFlags	/* install flags for programs */
     INSTUIDFLAGS = InstUidFlags	/* install flags for setuid programs */
     INSTLIBFLAGS = InstLibFlags	/* install flags for libraries */
     INSTINCFLAGS = InstIncFlags	/* install flags for headers */
     INSTMANFLAGS = InstManFlags	/* install flags for man pages */
     INSTDATFLAGS = InstDatFlags	/* install flags for data files */
    INSTKMEMFLAGS = InstKmemFlags	/* install flags for /dev/kmem progs */

#ifdef ProjectRoot
      PROJECTROOT = ProjectRoot
#endif
#ifdef UseInstalled
# if AlternateIncRoot
#  define TopInclude	-I$(INCROOT)
# else
#  define TopInclude	/**/
# endif
#else
# define TopInclude	-I$(TOP)
#endif

      CDEBUGFLAGS = DefaultCDebugFlags
        CCOPTIONS = DefaultCCOptions	/* to distinguish from param flags */
/*
 * STD_INCLUDES contains system-specific includes
 * TOP_INCLUDES specifies how to get to /usr/include or its build substitute
 * EXTRA_INCLUDES contains project-specific includes set in project incfiles
 * INCLUDES contains client-specific includes set in Imakefile
 * LOCAL_LDFLAGS contains client-specific ld flags flags set in Imakefile
 */
      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INSTALLED_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES) $(EXTRA_DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(MODULE_CFLAGS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
         LDPRELIB = LdPreLib $(INSTALLED_LIBS)
        LDPOSTLIB = LdPostLib
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)  $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS)
     CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS)

           LDLIBS = $(LDPOSTLIBS) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
#if HasBrokenCCForLink
           CCLINK = LdCmd
#else
#if AlternateUsrLibDir && HasLdRunPath
       CCENVSETUP = LD_RUN_PATH=$(USRLIBDIRPATH)
           CCLINK = $(CCENVSETUP) $(CC)
#else
           CCLINK = $(CC)
#endif
#endif
#if AlternateUsrLibDir && HasLdRunPath
      CXXENVSETUP = LD_RUN_PATH=$(USRLIBDIRPATH)
          CXXLINK = $(CXXENVSETUP) $(CXX)
#else
          CXXLINK = $(CXX)
#endif
     LDSTRIPFLAGS = LdStripFlags
   LDCOMBINEFLAGS = LdCombineFlags
      DEPENDFLAGS = DependFlags
   DEPEND_DEFINES = DependDefines

XCOMM Not sure this belongs here
         TKLIBDIR = TkLibDir
         TKINCDIR = TkIncDir
        TKLIBNAME = TkLibName
        TKLIBRARY = TkLibrary
        TCLLIBDIR = TclLibDir
        TCLINCDIR = TclIncDir
       TCLLIBNAME = TclLibName
       TCLLIBRARY = TclLibrary

        MACROFILE = MacroFile
           RM_CMD = $(RM)

    IMAKE_DEFINES = /* leave blank, for command line use only */
   IMAKE_WARNINGS = ImakeWarningFlags
#ifdef UseInstalled
         IRULESRC = $(CONFIGDIR)	/* used in rules file */
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) \
		    $(IMAKE_WARNINGS)
#else
         IRULESRC = $(CONFIGSRC)/cf
        IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES) $(IMAKE_WARNINGS)
#endif
#if !HasClearmake
     /* clearmake records relevant defines and flags in the build script,
	so it knows when they change and we don't need this coarser-level
	dependency.  We also don't want it, since it prevents sharing if
	even one config file, say site.def or host.def, changes. */
     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/X11.tmpl \
			$(IRULESRC)/site.def $(IRULESRC)/$(MACROFILE) \
			OtherIConfigFiles SiteIConfigFiles $(EXTRA_ICONFIGFILES)
#endif

#ifndef TopLevelProject
# define TopLevelProject	X11
#endif
#ifndef ProjectRulesFile
# define ProjectRulesFile	Concat3(<,TopLevelProject,.rules>)
#endif
#include ProjectRulesFile
#ifndef LocalRulesFile
/* need this to make ANSI-style preprocessors happy */
#define LocalRulesFile <noop.rules>
#endif
#include LocalRulesFile

/*
 * get project-specific configuration and rules
 */
#ifndef ProjectTmplFile
#define ProjectTmplFile		Concat3(<,TopLevelProject,.tmpl>)
#endif
#include ProjectTmplFile
#ifndef LocalTmplFile
/* need this to make ANSI-style preprocessors happy */
#define LocalTmplFile <noop.rules>
#endif
#include LocalTmplFile

#if !BuildLibraries && AlternateIncRoot && !defined(CrossCompileDir)
INSTALLED_INCLUDES = -I$(INCROOT)
#endif

#if !defined(UseInstalled) && !BuildLibraries && AlternateUsrLibDir && !defined(CrossCompileDir)
INSTALLED_LIBS = -L$(USRLIBDIR)
#endif

#ifdef FixupLibReferences
FixupLibReferences()
#endif

/* ConfigDir comes from X11.tmpl */
        CONFIGDIR = ConfigDir		/* build configuration information */
#if HasClearmake
           OSNAME = OSName
#endif
    USRLIBDIRPATH = UsrLibDirPath
        LDPRELIBS = LdPreLibs $(INSTALLED_LIBS)
       LDPOSTLIBS = LdPostLibs
     TOP_INCLUDES = TopIncludes
  PROJECT_DEFINES = ProjectDefines
#if HasCplusplus
CXXPROJECT_DEFINES = CplusplusProjectDefines
#endif

XCOMM ----------------------------------------------------------------------
XCOMM start of Imakefile
#include INCLUDE_IMAKEFILE

XCOMM ----------------------------------------------------------------------
XCOMM common rules for all Makefiles - do not edit

.c.i:
	CPPOnlyCompile($*.c,$(_NOOP_))

.SUFFIXES: .S

.S.i:
	CPPOnlyAsm($*,$(_NOOP_))

.SUFFIXES: .ii

.cc.ii:
	CPPOnlyCompile($*.cc,$(_NOOP_))

.SUFFIXES: .s

.c.s:
	CompileCToAsm($(_NOOP_))

.cc.s:
	CompileCplusplusToAsm($(_NOOP_))

/*
 * These need to be here so that rules in Imakefile occur first;  the blank
 * emptyrule is to make sure that an empty Imakefile does not default to make
 * clean.
 */
emptyrule::

CleanTarget()

#ifndef IHaveSpecialMakefileTarget
MakefileTarget()
#endif

#if BuildHtmlManPages
RmanDependency()
#endif

TagsTarget()
#ifdef MakefileAdditions
MakefileAdditions()
#endif

CenterLoadTarget(debug_src,$(SRCS),NullParameter,$(ALLDEFINES))

CenterLoadTarget(debug_obj,$(OBJS),NullParameter,$(ALLDEFINES))

ManKeywordsTarget($(MANPATH))

HtmlManIndex

/* Generate the "real" clean rules */
#undef clean

clean:: cleandir

distclean:: cleandir

#ifdef IHaveSubdirs
XCOMM ----------------------------------------------------------------------
XCOMM rules for building in SUBDIRS - do not edit

InstallSubdirs($(SUBDIRS))
InstallManSubdirs($(SUBDIRS))
InstallDriverSDKSubdirs($(SUBDIRS))
CleanSubdirs($(SUBDIRS))
TagSubdirs($(SUBDIRS))
MakefileSubdirs($(SUBDIRS))
IncludesSubdirs($(SUBDIRS))

/* "distclean" subdirectories */
#undef  BootstrapCleanSubdirs
#define BootstrapCleanSubdirs /**/
#define clean distclean
CleanSubdirs($(SUBDIRS))
#undef clean

#endif

/* must be after all install.man rules that install anything */
#ifndef MakeManKeywords
#define MakeManKeywords		NO
#endif
#if MakeManKeywords		/* typically only at top level */
install.man:: man_keywords
#endif

/* must be after all install.man rules that install anything */
#ifndef MakeHtmlManIndex
#define MakeHtmlManIndex	NO
#endif
#if MakeHtmlManIndex		/* typically only at top level */
install.man:: html_index
#endif

#ifndef IHaveSubdirs
XCOMM ----------------------------------------------------------------------
XCOMM empty rules for directories that do not have SUBDIRS - do not edit

install::
	@@echo "install in $(CURRENT_DIR) done"

install.man::
	@@echo "install.man in $(CURRENT_DIR) done"

install.sdk::
	@@echo "install.sdk in $(CURRENT_DIR) done"

Makefiles::

includes::

depend::

#endif /* if subdirectory rules are needed */

#ifndef IHaveSpecialMakefileTarget
/* "distclean" also removes the Makefile and the depend file */
distclean::
	RemoveFiles(Makefile DependFileName)
#endif

XCOMM ----------------------------------------------------------------------
XCOMM dependencies generated by makedepend
IncludeMakefile(DependFileName)
@


1.8
log
@Resolve conflicts from import of XFree86 4.5.0.
@
text
@@


1.7
log
@Resolve conflicts from import of XFree86 4.4.0.
@
text
@d3 1
a3 6
XCOMM $Xorg: Imake.tmpl,v 1.4 2000/08/17 19:41:46 cpqbld Exp $
XCOMM
XCOMM
XCOMM
XCOMM
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.156 2004/01/12 21:43:18 herrb Exp $
d5 46
d469 3
d1180 9
d1395 3
d1421 6
d1475 1
a1475 5
# if UseCCMakeDepend || UseGccMakeDepend
#  define DependDefines /**/
# else
#  define DependDefines -DUSE_MAKEDEPEND
# endif
d1748 2
d1878 1
a1878 1
          MANDEFS = AppLoadDefs FileManDefs LibManDefs MiscManDefs DriverManDefs AdminManDefs ProjectManDefs $(XORGMANDEFS) $(VENDORMANDEFS)
d1902 1
a1902 1
           MODCPP = ModuleCppCmd
d1960 3
a1962 1
     SHLIBLDFLAGS = SharedLibraryLoadFlags $(SHLIBGLOBALSFLAGS)
d2187 5
@


1.7.6.1
log
@Apply patch (requested by jmc in ticket #114):
Update XFree86 to version 4.5.0.
@
text
@d3 6
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.169 2005/02/11 03:02:53 dawes Exp $
a9 46
/*
 * 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.
 */
a427 3
#ifndef HasAsprintf
#define HasAsprintf		NO	/* assume not */
#endif
a1135 9
#ifndef CPPAsmOptions
# if HasGcc && \
     ((GccMajorVersion < 3) || \
      ((GccMajorVersion == 3) && (GccMinorVersion < 3)))
#  define CPPAsmOptions -$$
# else
#  define CPPAsmOptions /**/
# endif
#endif
a1341 3
#ifndef ExpatLibrary
#define ExpatLibrary $(EXPATLIB)
#endif
a1364 6
#ifndef ExtraSharedLibraryLoadOptions
#define ExtraSharedLibraryLoadOptions ExtraLoadOptions
#endif
#ifndef ExtraSharedLibraryLoadFlags
#define ExtraSharedLibraryLoadFlags ExtraLoadFlags
#endif
d1413 5
a1417 1
# define DependDefines /**/
a1689 2
        LIBPREFIX = lib

d1818 1
a1818 1
          MANDEFS = AppLoadDefs FileManDefs LibManDefs MiscManDefs DriverManDefs AdminManDefs ProjectManDefs $(VENDORMANDEFS)
d1842 1
a1842 1
           MODCPP = ModuleCppCmd $(STD_CPP_DEFINES)
d1900 1
a1900 3
     SHLIBLDFLAGS = SharedLibraryLoadFlags \
                    $(SHLIBGLOBALSFLAGS) \
                    ExtraSharedLibraryLoadFlags ExtraSharedLibraryLoadOptions
a2124 5
.SUFFIXES: .S

.S.i:
	CPPOnlyAsm($*,$(_NOOP_))

@


1.6
log
@Resolve conflicts from import of XFree86 4.3.0.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.139 2003/01/28 22:06:08 alanh Exp $
d123 4
d230 4
d290 3
d428 3
d434 3
d470 6
d488 1
a488 1
#elif defined(x86_64Architecture)
d516 2
d906 3
d997 3
d1071 1
a1071 1
#define CcCmd gcc -fpcc-struct-return 
d1074 1
a1074 1
#define CcCmd gcc -fstrength-reduce -fpcc-struct-return 
d1095 3
d1100 1
d1114 1
a1114 1
#define CplusplusOptions /**/
d1333 1
a1333 1
#if !defined(UseInstalled) && AlternateUsrLibDir && !HasLdRunPath
d1462 10
d1499 15
d1577 7
d1612 3
d1616 1
a1616 1
#define FilesToClean *.CKP *.ln *.BAK *.bak *.Osuf core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut 
d1717 1
a1717 1
XCOMM Nice try but useless: make will inherit BOOTSTRAPCFLAGS 
d1738 1
a1738 1
.SUFFIXES: .CCsuf
d1746 4
d1751 2
d1759 1
a1759 1
      CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES) 
d1809 1
d1815 1
d1818 1
a1818 1
          MANDEFS = AppLoadDefs FileManDefs LibManDefs MiscManDefs DriverManDefs ProjectManDefs $(XORGMANDEFS) $(VENDORMANDEFS)
d1824 6
d1863 3
d1903 1
a1903 1
 * Here we set up flags needed to produce position-independent code 
d1905 1
a1905 1
 * PIC flags without also specifying C++ PIC flags is to assume that 
d1960 1
a1960 1
    PROTO_DEFINES = _funcprotodef _wideprotodef 
d1967 1
a1967 1
     INSTPGMFLAGS = 
d2089 1
a2089 1
#if !BuildLibraries && AlternateIncRoot
d2093 1
a2093 1
#if !defined(UseInstalled) && !BuildLibraries && AlternateUsrLibDir
d2125 5
d2135 3
@


1.5
log
@Fix security problem in XFree86 4.2.1:
The MIT-SHM update in 4.2.1 is incomplete as the case where the X
server is started from xdm was not handled.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.116.2.1 2002/09/04 02:38:08 dawes Exp $
d48 3
d55 7
d129 7
d275 4
d287 13
d338 1
d359 7
d404 4
d432 3
d450 3
d465 2
d496 3
d553 7
d565 1
a565 1
#define KrbIVLibraries -lkafs -lkrb -ldes
d716 3
a745 3
#ifndef StripInstalledPrograms
#define StripInstalledPrograms NO	/* leave symbol table just in case */
#endif
d764 4
d770 1
a770 1
#define UsrLibDir Concat(ProjectRoot,/lib)
d775 1
a775 1
#define UsrLibDir /usr/lib
d802 1
a802 1
#define SystemUsrLibDir /usr/lib
d869 3
a884 5

#ifndef CompressManPages
#define CompressManPages NO
#endif

d1026 3
d1030 1
a1030 1
#define HasGcc2 NO
a1034 3
#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus NO
#endif
a1037 6
#ifndef HasCenterLineC
#define HasCenterLineC NO
#endif
#ifndef HasCenterLineCplusplus
#define HasCenterLineCplusplus NO
#endif
d1108 1
a1108 1
#define CppCmd /lib/cpp
d1238 3
d1283 3
d1287 8
a1294 12
#if !defined(UseInstalled)
#if !BuildLibraries && AlternateUsrLibDir
#define LdPreLib -L$(BUILDLIBDIR) -L$(USRLIBDIR)
#else
#define LdPreLib -L$(BUILDLIBDIR)
#endif
#else
#if AlternateUsrLibDir
#define LdPreLib -L$(USRLIBDIR)
#else
#define LdPreLib /**/
#endif
d1353 3
d1378 1
a1378 1
# if UseCCMakedepend || UseGccMakedepend
d1549 53
d1614 1
d1642 3
a1644 1

d1646 3
d1650 4
d1656 1
d1658 3
d1662 1
d1670 3
d1674 1
a1686 5

#if !BuildLibraries && AlternateIncRoot
INSTALLED_INCLUDES = -I$(INCROOT)
#endif

d1689 5
d1697 1
d1700 3
d1704 1
d1711 3
d1715 1
d1723 3
d1727 1
d1740 1
a1740 1
          MANDEFS = AppLoadDefs FileManDefs MiscManDefs DriverManDefs ProjectManDefs $(XORGMANDEFS) $(VENDORMANDEFS)
d1753 3
d1757 1
d1762 3
d1766 1
d1770 3
d1774 1
d1791 3
d1813 1
a1813 1
     SHLIBLDFLAGS = SharedLibraryLoadFlags
d1902 1
d1916 1
a1916 1
         LDPRELIB = LdPreLib
d1957 1
d1960 2
a1961 1
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
d1964 1
a1964 1
        IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)
d2002 8
d2020 1
a2020 1
        LDPRELIBS = LdPreLibs
d2102 3
d2110 3
d2139 1
a2139 1
/* "distclean" also removes the Makefile */
d2141 1
a2141 1
	RemoveFile(Makefile)
@


1.4
log
@Resolve conflicts from last import.
@
text
@d398 3
@


1.3
log
@Fix security problem in the i18n module code for Xlib that was integrated
in XFree86 4.2.0 causing a vulnerability in setuid clients. For XFree86
only xterm is concerned. XFree86 versions before 4.2.0 are not vulnerable.
The patches were provided by Matthieu Herrb of the XFree86 project.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.116 2002/01/15 21:22:33 keithp Exp $
@


1.2
log
@Add support for cats to X 4.2.0.

Note that some changes are generic arm changes, some aren't but are enclosed with #if defined(__arm__).  Currently the only arm port supported by X 4.2.0 is cats, so this is not a problem.  However shark support should be relatively easy based upon on the cats changes.

Ideally a few more things should be abstracted out, so that we can run the same X server on shark and cats, but currently my aim is to get X working just in time for NetBSD 1.6 release.

This has been tested on a s3virge card on my cats, I've also checked that i386 isn't broken by any of these changes.
@
text
@d374 6
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
XCOMM $TOG: Imake.tmpl /main/249 1997/10/13 15:28:56 kaleb $
d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.87 2000/12/02 19:06:57 herrb Exp $
d35 4
d197 4
d213 8
d250 12
d350 3
d396 1
a396 1
#elif defined(MipsArchitecture) && (defined(UltrixArchitecture) || defined(OSF1Architecture))
d404 1
a404 1
#elif defined(SparcArchitecture)
d414 5
a418 1
#elif defined(Arm32Architecture)
d422 6
d440 3
d474 3
d483 4
d643 11
d680 4
d789 3
d801 11
a811 2
#ifndef ExtraManDefs
#define ExtraManDefs -D__projectroot__=$(PROJECTROOT)
d859 1
a859 1
#define UNCOMPRESSPATH /usr/ucb/uncompress
d960 3
d1131 4
a1134 1
/* Module cross-compile stuff */
d1142 1
a1142 1
#define ModuleCFlags $(CDEBUGFLAGS) $(CCOPTIONS) $(THREAD_CFLAGS) $(ALLDEFINES)
d1166 1
a1166 1
#define ModuleRanlibCmd /*won't be used unless NeedModuleRanlib is YES*/
d1213 3
d1217 1
d1289 6
d1303 7
d1344 1
d1346 3
d1450 6
d1538 1
a1538 1
       CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(CXXEXTRA_DEFINES) $(DEFINES)
d1541 5
d1579 5
a1583 1
          MANDEFS = FileManDefs MiscManDefs DriverManDefs ExtraManDefs
d1737 2
a1738 2
      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES)
d1766 1
d1888 7
d1907 7
d1946 6
@


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


1.1.1.2
log
@Import of XFree86 4.0.3
@
text
@a398 3
#ifndef HasMktemp
#define HasMktemp		NO	/* if you have the mktemp command */
#endif
@


1.1.1.3
log
@Import of XFree86 4.1.0.
@
text
@d3 1
a3 1
XCOMM $Xorg: Imake.tmpl,v 1.4 2000/08/17 19:41:46 cpqbld Exp $
d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.102 2001/04/26 21:09:38 dawes Exp $
a34 4
/* Intercept clean rules for current directory */
#undef clean
#define clean cleandir

a192 4
#ifndef HasPerl5
#define HasPerl5		HasPerl
#endif

a233 12
#ifndef DontPreprocessManPages
#ifdef UseInstalled
#define DontPreprocessManPages YES
#else
#define DontPreprocessManPages NO
#endif
#endif

#ifndef HasGroff
#define HasGroff NO
#endif

d365 1
a365 1
#elif defined(MipsArchitecture) && defined(MipselArchitecture)
a438 4
/* If the system has the Freetype2 library */
#ifndef HasFreetype2
#define HasFreetype2		NO
#endif
d735 2
a736 11
#ifndef ProjectManDefs
#define ProjectManDefs -D__projectroot__=$(PROJECTROOT)
#endif


#ifndef CompressManPages
#define CompressManPages NO
#endif

#ifndef CompressManCmd
#define CompressManCmd gzip -n
d784 1
a784 1
#define UNCOMPRESSPATH /usr/ucb/uncompress /* obsolete */
a884 3
#ifndef HasBrokenCCForLink
#define HasBrokenCCForLink NO
#endif
a1203 6
#elif UseCCMakeDepend
#ifdef UseInstalled		/* assume BINDIR in path */
#define DependCmd ccmakedep
#else
#define DependCmd $(DEPENDSRC)/ccmakedep
#endif
a1211 7
#ifndef DependDefines
# if UseCCMakedepend || UseGccMakedepend
#  define DependDefines /**/
# else
#  define DependDefines -DUSE_MAKEDEPEND
# endif
#endif
a1245 1
#if HasGroff
a1246 3
#else
#define TroffCmd troff -Tps
#endif
a1347 6
#ifndef ManSrcSuffix
#define ManSrcSuffix	man
#endif
#ifndef ManNewSuffix
#define ManNewSuffix	_man
#endif
d1430 1
a1430 1
       CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(DEFINES) $(CXXEXTRA_DEFINES)
d1466 1
a1466 5
     MANSRCSUFFIX = ManSrcSuffix	/* suffix for man page source */
     MANNEWSUFFIX = ManNewSuffix	/* suffix for preprocessed man source */
          MANDEFS = FileManDefs MiscManDefs DriverManDefs ProjectManDefs $(XORGMANDEFS) $(VENDORMANDEFS)

   COMPRESSMANCMD = CompressManCmd
d1621 1
a1621 1
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES) $(EXTRA_DEFINES)
a1648 1
   DEPEND_DEFINES = DependDefines
a1769 7
/* Generate the "real" clean rules */
#undef clean

clean:: cleandir

distclean:: cleandir

a1781 7
/* "distclean" subdirectories */
#undef  BootstrapCleanSubdirs
#define BootstrapCleanSubdirs /**/
#define clean distclean
CleanSubdirs($(SUBDIRS))
#undef clean

a1813 6

#ifndef IHaveSpecialMakefileTarget
/* "distclean" also removes the Makefile */
distclean::
	RemoveFile(Makefile)
#endif
@


1.1.1.4
log
@Import of XFree86 4.2.0.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.116 2002/01/15 21:22:33 keithp Exp $
a212 8
#ifndef HasGperf
#define HasGperf		NO
#endif

#ifndef GperfCmd
#define GperfCmd		gperf
#endif

a341 3
#ifndef HasSetProcTitle
#define HasSetProcTitle		NO
#endif
d393 1
a393 1
#elif defined(SparcArchitecture) || defined(Sparc64Architecture)
a402 4
#elif defined(s390Architecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(s390xArchitecture)
#define ByteOrder		X_BIG_ENDIAN
a406 6
#elif defined(HPArchitecture)
#define ByteOrder		X_BIG_ENDIAN
#elif defined(SuperHArchitecture)
#define ByteOrder		X_LITTLE_ENDIAN
#elif defined(SuperHebArchitecture)
#define ByteOrder		X_BIG_ENDIAN
a452 3
#ifndef OsNeedZlibHeaders
#define OsNeedZlibHeaders	!HasZlib
#endif
a618 11
/*
 * Libtool has two different behaviours for version numbers.
 * On platforms which support a minor number, the library
 * version is (version - minor).minor, on those that don't,
 * the version if version.0.  Linux and Darwin support minor
 * numbers; some BSDs do as well.  Set this to YES if libtool
 * uses minor numbers on your platform.
 */
#ifndef LibtoolMinorVersions
#define LibtoolMinorVersions	NO
#endif
a644 4
#ifndef CaseSensitiveFileSystem
#define CaseSensitiveFileSystem YES
#endif

a749 3
#ifndef AppLoadDefs
#define AppLoadDefs -D__apploaddir__=$(XAPPLOADDIR)
#endif
d1089 1
a1089 4
/*
 * Module cross-compile stuff.  By default they are defined to be exactly the
 * same as the non-module versions.
 */
d1097 1
a1097 1
#define ModuleCFlags $(CFLAGS)
d1121 1
a1121 1
#define ModuleRanlibCmd RanlibCmd
a1167 3
#if !BuildLibraries && AlternateUsrLibDir
#define LdPreLib -L$(BUILDLIBDIR) -L$(USRLIBDIR)
#else
a1168 1
#endif
a1491 5

#if !BuildLibraries && AlternateIncRoot
INSTALLED_INCLUDES = -I$(INCROOT)
#endif

d1527 1
a1527 1
          MANDEFS = AppLoadDefs FileManDefs MiscManDefs DriverManDefs ProjectManDefs $(XORGMANDEFS) $(VENDORMANDEFS)
d1683 1
a1683 1
      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INSTALLED_INCLUDES) $(STD_INCLUDES)
@


1.1.1.5
log
@Import of XFree86 4.2.1.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.116.2.1 2002/09/04 02:38:08 dawes Exp $
a372 6
#endif
#ifndef HasIssetugid
#define HasIssetugid		NO	/* assume not */
#endif
#ifndef HasGetresuid
#define HasGetresuid		NO	/* assume not */
@


1.1.1.6
log
@Import of XFree86 4.3.0.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.139 2003/01/28 22:06:08 alanh Exp $
a47 3
#if defined(HasGcc3) && !defined(HasGcc2)
# define HasGcc2 HasGcc3
#endif
a51 7
#ifndef HasCenterLineC
#define HasCenterLineC NO
#endif
#ifndef HasCenterLineCplusplus
#define HasCenterLineCplusplus NO
#endif

a118 7
#ifndef UseInstalledX11
# define UseInstalledX11        NO
#endif
#ifdef UseInstalled
# undef UseInstalledX11
# define UseInstalledX11        YES
#endif
a257 4
#ifndef CompressManPages
#define CompressManPages NO
#endif

a265 13
#ifndef DoLoadableServer
#define DoLoadableServer NO
#endif
#ifndef MakeDllModules
#define MakeDllModules NO
#endif
#ifndef StripInstalledPrograms
#define StripInstalledPrograms NO	/* leave symbol table just in case */
#endif
#ifndef StaticNeedsPicForShared
#define StaticNeedsPicForShared NO
#endif

a303 1
#undef  CrossCompileDir
a323 7
#ifndef HasMotif
#define HasMotif		NO
#endif
#ifndef HasBSDAuth
#define HasBSDAuth		NO
#endif

a361 4
/* setenv(3) and unsetenv(3) */
#ifndef HasSetenv
#define HasSetenv		YES	/* assume yes */
#endif
a385 3
#ifndef HasGetIfAddrs
#define HasGetIfAddrs		NO	/* assume not */
#endif
a397 6
#ifndef HasGetpeereid
#define HasGetpeereid		NO
#endif
#ifndef NoStrstr
#define NoStrstr		NO
#endif
a409 2
#elif defined(x86_64Architecture)
#define ByteOrder		X_LITTLE_ENDIAN
a438 3
#ifndef HasGcc2ForCplusplus
#define HasGcc2ForCplusplus	NO
#endif
a492 7
/* If the system has the Fontconfig library */
#ifndef HasFontconfig
#define HasFontconfig		NO
#endif
#ifndef HasLibpng
#define HasLibpng		NO
#endif
d498 1
a498 1
#define KrbIVLibraries -lkrb -ldes
a648 3
#ifndef HasTsLib
#define HasTsLib NO
#endif
d676 3
a696 4
#ifndef LibDirName
# define LibDirName lib
#endif

d699 1
a699 1
#define UsrLibDir Concat3(ProjectRoot,/,LibDirName)
d704 1
a704 1
#define UsrLibDir Concat3(/usr,/,LibDirName)
d731 1
a731 1
#define SystemUsrLibDir /usr/LibDirName
a797 3
#ifndef LibManDefs
#define LibManDefs -D__libmansuffix__=$(LIBMANSUFFIX)
#endif
d811 5
a956 3
#ifndef HasGcc3
#define HasGcc3 NO
#endif
d958 1
a958 1
#define HasGcc2 HasGcc3
d963 3
d969 6
d1045 1
a1045 1
#define CppCmd /LibDirName/cpp
a1174 3
#ifndef HostCcCmd
#define HostCcCmd cc
#endif
d1217 12
a1228 2
#ifndef HasLdRunPath
#define HasLdRunPath NO
a1229 9
#ifndef LdPreLib
# if !defined(UseInstalled)
#  define LdPreLib -L$(BUILDLIBDIR)
# else
# if AlternateUsrLibDir
#  define LdPreLib -L$(USRLIBDIR)
# else
# define LdPreLib /**/
# endif
a1287 3
#ifndef ImakeWarningFlags
#define ImakeWarningFlags	/* Nothing */
#endif
d1310 1
a1310 1
# if UseCCMakeDepend || UseGccMakeDepend
a1480 53
#ifdef CrossCompileDir
# ifndef StripPath
#  define StripPath(x) `echo x|sed "s%.*/%%"`
# endif
# ifndef CrossArCmd
#  define CrossArCmd Concat3(CrossCompileDir,/,StripPath(ArCmd))
# endif
# ifndef CrossCcCmd
#  define CrossCcCmd Concat3(CrossCompileDir,/,StripPath(CcCmd))
# endif
# ifndef CrossAsCmd
#  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
# endif
# ifdef HasFortran
#  ifndef CrossFortranCmd
#   define CrossFortranCmd Concat3(CrossCompileDir,/,StripPath(FortranCmd))
#  endif
# endif
# ifndef CrossCplusplusCmd
#  define CrossCplusplusCmd Concat3(CrossCompileDir,/,StripPath(CplusplusCmd))
# endif
# ifndef CrossCppCmd
#  define CrossCppCmd Concat3(CrossCompileDir,/,StripPath(CppCmd))
# endif
# ifndef CrossRawCppCmdCmd
#  define CrossRawCppCmd Concat3(CrossCompileDir,/,StripPath(RawCppCmd))
# endif
# ifndef CrossPreProcessCmd
#  define CrossPreProcessCmd Concat3(CrossCompileDir,/,StripPath(PreProcessCmd))
# endif
# ifndef CrossAsCmd
#  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
# endif
# ifndef CrossLdCmd
#  define CrossLdCmd Concat3(CrossCompileDir,/,StripPath(LdCmd))
# endif
# ifndef CrossModuleLdCmd
#  define CrossModuleLdCmd CrossLdCmd
# endif
# ifndef CrossLintCmd
#  define CrossLintCmd Concat3(CrossCompileDir,/,StripPath(LintCmd))
# endif
# ifndef CrossRanlibCmd
#  define CrossRanlibCmd Concat3(CrossCompileDir,/,StripPath(RanlibCmd))
# endif
# ifndef CrossModuleCcCmd
#  define CrossModuleCcCmd Concat3(CrossCompileDir,/,StripPath(ModuleCcCmd))
# endif
# ifndef CrossAsCmd
#  define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd))
# endif
#endif

a1492 1
     RMANBASENAME = HostProgramTargetName(rman)
d1520 1
a1520 3
#ifdef CrossCompileDir
               AR = CrossArCmd
#else
a1521 3
#endif
XCOMM Nice try but useless: make will inherit BOOTSTRAPCFLAGS 
XCOMM from  top Makefile
a1522 4
#ifdef CrossCompileDir
               CC = CrossCcCmd
               AS = CrossAsCmd
#else
a1524 1
#endif
a1525 3
# ifdef CrossCompileDir
               FC = CrossFortranCmd
# else
a1526 1
# endif
a1533 3
#ifdef CrossCompileDir
              CXX = CrossCplusplusCmd
#else
a1534 1
#endif
d1547 5
a1553 5
#ifdef CrossCompileDir
              CPP = CrossCppCmd $(STD_CPP_DEFINES)
           RAWCPP = CrossRawCppCmd $(STD_CPP_OPTIONS)
    PREPROCESSCMD = CrossPreProcessCmd $(STD_CPP_DEFINES)
#else
a1556 1
#endif
a1558 3
#ifdef CrossCompileDir
               LD = CrossLdCmd
#else
a1559 1
#endif
a1565 3
#ifdef CrossCompileDir
             LINT = CrossLintCmd
#else
a1566 1
#endif
a1573 3
#ifdef CrossCompileDir
           RANLIB = CrossCompileDir/RanlibCmd
#else
a1574 1
#endif
d1587 1
a1587 1
          MANDEFS = AppLoadDefs FileManDefs LibManDefs MiscManDefs DriverManDefs ProjectManDefs $(XORGMANDEFS) $(VENDORMANDEFS)
a1599 3
#ifdef CrossCompileDir
	    MODCC = CrossModuleCcCmd
#else
a1600 1
#endif
a1604 3
#ifdef CrossCompileDir
	    MODLD = CrossModuleLdCmd
#else
a1605 1
#endif
a1608 3
#ifdef CrossCompileDir
        MODRANLIB = CrossCompileDir/ModuleRanlibCmd
#else
a1609 1
#endif
a1625 3
#if CrossCompiling
          HOST_CC = HostCcCmd
#endif
d1645 1
a1645 1
     SHLIBLDFLAGS = SharedLibraryLoadFlags $(SHLIBGLOBALSFLAGS)
a1733 1

d1747 1
a1747 1
         LDPRELIB = LdPreLib $(INSTALLED_LIBS)
a1787 1
   IMAKE_WARNINGS = ImakeWarningFlags
d1790 1
a1790 2
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) \
		    $(IMAKE_WARNINGS)
d1793 1
a1793 1
        IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES) $(IMAKE_WARNINGS)
a1830 8
#if !BuildLibraries && AlternateIncRoot
INSTALLED_INCLUDES = -I$(INCROOT)
#endif

#if !defined(UseInstalled) && !BuildLibraries && AlternateUsrLibDir
INSTALLED_LIBS = -L$(USRLIBDIR)
#endif

d1841 1
a1841 1
        LDPRELIBS = LdPreLibs $(INSTALLED_LIBS)
a1922 3
#ifndef MakeManKeywords
#define MakeManKeywords		NO
#endif
a1927 3
#ifndef MakeHtmlManIndex
#define MakeHtmlManIndex	NO
#endif
d1954 1
a1954 1
/* "distclean" also removes the Makefile and the depend file */
d1956 1
a1956 1
	RemoveFiles(Makefile DependFileName)
@


1.1.1.7
log
@Import of XFree86 4.4.0.
@
text
@d8 1
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.156 2004/01/12 21:43:18 herrb Exp $
a122 4
#ifndef RemoveObsoleteFiles
#define RemoveObsoleteFiles YES
#endif

a225 4
#ifndef PerlEnvSetup
#define PerlEnvSetup		env LC_ALL=C
#endif

a281 3
#ifndef HasGroffHtml
#define HasGroffHtml NO
#endif
a416 3
#ifndef HasStrlcat
#define HasStrlcat		NO	/* assume not */
#endif
a419 3
#ifndef HasWeakSymbols
#define HasWeakSymbols		NO	/* assume not */
#endif
a452 6
#ifndef HasShadowPasswd
#define HasShadowPasswd		NO
#endif
#ifndef HasBasename
#define HasBasename		YES
#endif
d465 1
a465 1
#elif defined(AMD64Architecture)
a492 2
X_BYTE_ORDER = ByteOrder

a880 3
#ifndef AdminManDefs
#define AdminManDefs -D__adminmansuffix__=$(ADMINMANSUFFIX)
#endif
a968 3
#ifndef HardCodeLibdirFlag
#define HardCodeLibdirFlag	/**/
#endif
d1040 1
a1040 1
#define CcCmd gcc -fpcc-struct-return
d1043 1
a1043 1
#define CcCmd gcc -fstrength-reduce -fpcc-struct-return
a1063 3
#if HasGcc2ForCplusplus
#define CplusplusLibC	-lstdc++
#else
a1065 1
#endif
d1079 1
a1079 1
#define CplusplusOptions DefaultCplusplusOptions
d1298 1
a1298 1
#if !defined(UseInstalled) && AlternateUsrLibDir && !HasLdRunPath && !defined(CrossCompileDir)
a1426 10
#ifndef HTMLroffCmd
#if HasGroff && HasGroffHtml
#define HTMLroffCmd groff -Thtml
#endif
#endif
#ifdef HTMLroffCmd
#ifndef DocFilesToClean
#define DocFilesToClean grohtml*.png *-auto-*.png
#endif
#endif
a1453 15
#ifndef HasPdfLatex
#define HasPdfLatex NO
#endif
#ifndef PdfLatexCmd
#define PdfLatexCmd pdflatex
#endif
#ifndef GhostScriptCmd
#define GhostScriptCmd gs
#endif
#ifndef HasGhostScript
#define HasGhostScript NO
#endif
#if HasGhostScript
#define PsToPdfCmd GhostScriptCmd -q -sOutputFile=- -sDEVICE=pdfwrite -dSAFER -dNOPAUSE -
#endif
a1516 7
#ifndef AdminManSuffix
#if SystemV || SystemV4
#define AdminManSuffix	1m		/* use just one tab or cpp will die */
#else
#define AdminManSuffix	8		/* use just one tab or cpp will die */
#endif
#endif
a1544 3
#ifndef DocFilesToClean
#define DocFilesToClean /**/
#endif
d1546 1
a1546 1
#define FilesToClean *.CKP *.ln *.BAK *.bak *.Osuf core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
d1647 1
a1647 1
XCOMM Nice try but useless: make will inherit BOOTSTRAPCFLAGS
d1668 1
a1668 1
.SUFFIXES: Concat(.,CCsuf)
a1675 4
#ifdef CplusplusLibCDir
        CXXLIBDIR = CplusplusLibCDir
           CXXLIB = -L$(CXXLIBDIR) CplusplusLibC
#else
a1676 2
#endif

d1683 1
a1683 1
      CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES)
a1732 1
     PERLENVSETUP = PerlEnvSetup
a1737 1
   ADMINMANSUFFIX = AdminManSuffix	/* suffix for admin command man pages */
d1740 1
a1740 1
          MANDEFS = AppLoadDefs FileManDefs LibManDefs MiscManDefs DriverManDefs AdminManDefs ProjectManDefs $(XORGMANDEFS) $(VENDORMANDEFS)
a1745 6
#ifdef HTMLroffCmd
         HTMLROFF = HTMLroffCmd
#endif
#ifdef PsToPdfCmd
       PSTOPDFCMD = PsToPdfCmd
#endif
a1778 3
#if HasPdfLatex
      PDFLATEXCMD = PdfLatexCmd
#endif
d1816 1
a1816 1
 * Here we set up flags needed to produce position-independent code
d1818 1
a1818 1
 * PIC flags without also specifying C++ PIC flags is to assume that
d1873 1
a1873 1
    PROTO_DEFINES = _funcprotodef _wideprotodef
d1880 1
a1880 1
     INSTPGMFLAGS =
d2002 1
a2002 1
#if !BuildLibraries && AlternateIncRoot && !defined(CrossCompileDir)
d2006 1
a2006 1
#if !defined(UseInstalled) && !BuildLibraries && AlternateUsrLibDir && !defined(CrossCompileDir)
a2037 5
.SUFFIXES: .ii

.cc.ii:
	CPPOnlyCompile($*.cc,$(_NOOP_))

a2042 3
.cc.s:
	CompileCplusplusToAsm($(_NOOP_))

@


1.1.1.8
log
@Import of XFree86 4.5.0.
@
text
@d3 6
a8 1
XCOMM $XFree86: xc/config/cf/Imake.tmpl,v 3.169 2005/02/11 03:02:53 dawes Exp $
a9 46
/*
 * 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.
 */
a427 3
#ifndef HasAsprintf
#define HasAsprintf		NO	/* assume not */
#endif
a1135 9
#ifndef CPPAsmOptions
# if HasGcc && \
     ((GccMajorVersion < 3) || \
      ((GccMajorVersion == 3) && (GccMinorVersion < 3)))
#  define CPPAsmOptions -$$
# else
#  define CPPAsmOptions /**/
# endif
#endif
a1341 3
#ifndef ExpatLibrary
#define ExpatLibrary $(EXPATLIB)
#endif
a1364 6
#ifndef ExtraSharedLibraryLoadOptions
#define ExtraSharedLibraryLoadOptions ExtraLoadOptions
#endif
#ifndef ExtraSharedLibraryLoadFlags
#define ExtraSharedLibraryLoadFlags ExtraLoadFlags
#endif
d1413 5
a1417 1
# define DependDefines /**/
a1689 2
        LIBPREFIX = lib

d1818 1
a1818 1
          MANDEFS = AppLoadDefs FileManDefs LibManDefs MiscManDefs DriverManDefs AdminManDefs ProjectManDefs $(VENDORMANDEFS)
d1842 1
a1842 1
           MODCPP = ModuleCppCmd $(STD_CPP_DEFINES)
d1900 1
a1900 3
     SHLIBLDFLAGS = SharedLibraryLoadFlags \
                    $(SHLIBGLOBALSFLAGS) \
                    ExtraSharedLibraryLoadFlags ExtraSharedLibraryLoadOptions
a2124 5
.SUFFIXES: .S

.S.i:
	CPPOnlyAsm($*,$(_NOOP_))

@


