XCOMM site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

/*****************************************************************************
 *                                                                           *
 *			   SITE-SPECIFIC DEFINITIONS                         *
 *                                                                           *
 * This file contains two halves, one included before the vendor-specific    *
 * configuration file (.cf file), and one included after the .cf file.       *
 * The before-half should be protected by #ifdef BeforeVendorCF, and the     *
 * after-half should be protected by #ifdef AfterVendorCF.                   *
 *                                                                           *
 * The before-half should only set things that the .cf file depends on.      *
 * For the .cf files shipped in this release, the main variable in this      *
 * category is HasGcc.                                                       *
 *                                                                           *
 * The after-half should contain all other definitions.  For example,        *
 * place your ProjectRoot definition here.  Beware that several of the       *
 * .cf files supplied by vendors have a ProjectRoot already defined, so      *
 * you may need to #undef it first.                                          *
 *                                                                           *
 * OS Major and Minor version numbers should be changed directly in the .cf  *
 * file, not overridden in site.def.                                         *
 *                                                                           *
 *****************************************************************************/

#ifdef BeforeVendorCF
#define	ATHENA
#if defined(VaxArchitecture) || defined(sparc) || defined(SparcArchitecture)
#define	HasGcc	YES
#endif

#define	TroffCmd psroff -t

#if defined(RsArchitecture) || defined(SparcArchitecture)
#define HasSharedLibraries	NO
#endif

#endif /* BeforeVendorCF */

#ifdef AfterVendorCF

#undef ProjectRoot

#ifdef PS2Architecture
#define	ProjectRoot	/mit/x11/ps2
#define	UsrLibDir	/mit/x11/ps2lib
#define	BinDir		/mit/x11/ps2bin
#define ExtraLoadFlags  -T0x400000
#define	HasSaberC	YES			/* stop jik from flaming */
#endif

#ifdef RtArchitecture
#define	ProjectRoot	/mit/x11/rt
#define	UsrLibDir	/mit/x11/rtlib
#define	BinDir		/mit/x11/rtbin
#define ExtraLoadFlags  -Z
#define	BuildPexExt	NO
#define	StripInstalledPrograms YES
#endif

#ifdef MipsArchitecture
#define	ProjectRoot	/mit/x11/decmips
#define	UsrLibDir	/mit/x11/decmipslib
#define	BinDir		/mit/x11/decmipsbin
/* Build the Xdec server */
#define XcfbpmaxServer NO
/* We have better uses for 100 MB of disk space than to hold mips
   debugging information.  If you own stock in a disk manufacturer,
   define KeepHugeSymbols and you will get full size MIPS binaries.  */
#ifndef KeepHugeSymbols
#undef	ObjectCompile
#define	ObjectCompile(options) $(RM) $@					@@\
	$(CC) -c options $(CFLAGS) $*.c					@@\
	ld -X -r -o $@.strip $@						@@\
	mv $@.strip $@

#undef	LibObjCompile
#define	LibObjCompile(dir,options) $(RM) $@ dir/$@			@@\
	$(CC) -c options $(CCOPTIONS) $(ALLDEFINES) $*.c		@@\
	ld -X -r -o dir/$@ $@						@@\
	$(RM) $@

.c.o:
	$(CC) -c $(CFLAGS) $*.c
	ld -X -r -o $@.strip $@
	mv $@.strip $@
#endif
#define	StripInstalledPrograms YES
#endif

#ifdef RsArchitecture
#define BuildPex	NO
#define	ProjectRoot	/mit/x11/rsaix
#define	UsrLibDir	/mit/x11/rsaixlib
#define	BinDir		/mit/x11/rsaixbin
#define	CcCmd		xlc -D_ALL_SOURCE
#endif

#ifdef VaxArchitecture
#define	ProjectRoot	/mit/x11/vax
#define	UsrLibDir	/mit/x11/vaxlib
#define	BinDir		/mit/x11/vaxbin
#define ExtraLoadFlags  -Z
#define	StripInstalledPrograms YES
#undef CcCmd
#define	CcCmd gcc2 -pipe -fpcc-struct-return
#define OptimizedCDebugFlags -O3
#endif

#ifdef SparcArchitecture
#define BuildPex	NO
#define	ProjectRoot	/mit/x11/sun4
#define	UsrLibDir	/mit/x11/sun4lib
#define	BinDir		/mit/x11/sun4bin
#define	CcCmd		/usr/gcc/bin/gcc -B/usr/gcc/lib/ -I/usr/gcc/include
/* #define ExtraLibraries	-lsocket /usr/athena/lib/libresolv.a -lnsl -lc /usr/ucblib/libucb.a -lelf -ldl */

#undef SharedLibraryCcCmd
#define SharedLibraryCcCmd gcc2 -pipe
#undef XSunMonoServer
#define	XSunMonoServer	NO
#define OptimizedCDebugFlags -O2
#undef PositionIndependentCFlags
#define	PositionIndependentCFlags -fpic
#undef ExtraLoadFlags
#endif

#ifdef HPArchitecture
#define BuildPex	NO
#define	ProjectRoot	/mit/x11/arch/hp700_ux90
#define	UsrLibDir	ProjectRoot/lib
#define	BinDir		ProjectRoot/bin
#endif

#define	XSharedFilePath		/mit/x11/lib
#define	XAppLoadDir		XSharedFilePath/app-defaults
#define	ConfigDir		XSharedFilePath/config
#define	TwmDir			XSharedFilePath/twm

#define	IncRoot			/mit/x11/include
#define	ManDirectoryRoot	/mit/x11/man

/* MIT Athena path for app-defaults, etc. */

#define XFileSearchPathBase /mit/x11/lib/%T/%N%S:/usr/athena/lib/X11/%T/%N%S:/usr/lib/X11/%T/%N%S
#define XFileSearchPathDefault XFileSearchPathBase

#define MotifBC	YES

#endif /* AfterVendorCF */

#define BuildXInputLib  NO
