XCOMM -------------------------------------------------------------------------
XCOMM from <local.def>:

/*********************************************************/
/* start of things you might want to change in this file */

/*
 * Default customization of kits.
 * Possible flags to define:
 *	sgi_motif_kit (SMFKit), motif_kit (MFKit),
 *	openlook_kit (OLKit), bw_kit (MonoKit)
 */
#ifndef KitFlags
#define KitFlags \
-Dmotif_kit \
-Dsgi_motif_kit \
-Dopenlook_kit \
-Dbw_kit \
-Ddefault_kit=SMFKit
#endif

/*
 * What you need to turn on debugging
 */
#undef TurnOnDebugging
#define TurnOnDebugging YES

/*
 * What you need to turn on optimizing (a good idea)
 */
#undef TurnOnOptimizing
#define TurnOnOptimizing YES

/*
 * To disable removal of programs if a "make install" is done"
 */
#undef RemoveAfterInstall
#define RemoveAfterInstall NO

/* end of things you might want to change in this file */
/*******************************************************/

/*
 * Assume the use of gcc-2.3.3 or greater
 */ 
#undef LanguageCCDefines
#if LibStdCPlusPlusV3
#define LanguageCCDefines -Dcplusplus_2_1 -Wno-deprecated
#else
#define LanguageCCDefines -Dcplusplus_2_1
#endif
#include <gcc.def>

/* 
 * Where to look for config files.
 */
#undef ImakeIncludes
#if InstallRelative
#define ImakeIncludes -I$(ABSTOP)/config -I$(CONFIGSRC) -I$(XCONFIGDIR) -I$(IVTOOLSSRC)/../config
#else
#define ImakeIncludes -I$(ABSTOP)/config -I$(CONFIGDIR) -I$(CONFIGDIR)/.. -I$(XCONFIGDIR) -I$(IVTOOLSSRC)/../config
#endif

/* 
 * TIFF C Compiler
 */ 
#ifndef TIFFCDriver
#ifdef CDriver
#define TIFFCDriver CDriver
#endif
#endif

/* 
 * Make variables for building local to these packages.
 * APP_CCLDLIBS is defined in the Imakefile.
 */
    NORM_CCINCLUDES = -I$(CURRENT_DIR)/.. -I$(CURRENT_DIR)/../..  \
-I$(IVTOOLSSRC) $(BACKWARD_CCINCLUDES) -I$(IVTOOLSSRC)/include \
-I$(IVTOOLSSRC)/include/ivstd $(X_CCINCLUDES)
    APP_CCINCLUDES = $(NORM_CCINCLUDES)
#if !HasDynamicSharedLibraries
     APP_CCDEPLIBS = $(APP_CCLDLIBS)
#endif

/*
 * filename for when ./configure hasn\'t been used
 */
#ifndef ConfigureOsCompilerMk
#define ConfigureOsCompilerMk config-null.mk
#endif

/*
 * Set base of this package to $(ABSTOP)
 * (determined by configure script)
 */
#ifndef IvToolsSrcRoot
#define IvToolsSrcRoot $(ABSTOP)
#endif

/*
 * Location of ivtools libraries
 */
#ifndef UseInstalled
             IVTOOLSSRC = IvToolsSrcRoot/src
#else
             IVTOOLSSRC = Prefix
#endif

/*
 * defines libvar and depvar macros
 */
#include <makevars.def>

/* 
 * Macros for defining makefile variables for library linking
 */
libvar(LIBUNIDRAWCOMMON,IVTOOLSSRC,Unidraw-common,libUnidraw-common,-lUnidraw-common)
libvar(LIBIVCOMMON,IVTOOLSSRC,IV-common,libIV-common,-lIV-common)
libvar(LIBTIME,IVTOOLSSRC,Time,libTime,-lTime)
libvar(LIBATTRIBUTE,IVTOOLSSRC,Attribute,libAttribute,-lAttribute)
libvar(LIBCOMUTIL,IVTOOLSSRC,ComUtil,libComUtil,-lComUtil)
libvar(LIBCOMTERP,IVTOOLSSRC,ComTerp,libComTerp,-lComTerp)
libvar(LIBIVGLYPH,IVTOOLSSRC,IVGlyph,libIVGlyph,-lIVGlyph)
libvar(LIBATTRGLYPH,IVTOOLSSRC,AttrGlyph,libAttrGlyph,-lAttrGlyph)
libvar(LIBCOMGLYPH,IVTOOLSSRC,ComGlyph,libComGlyph,-lComGlyph)
libvar(LIBGLYPHTERP,IVTOOLSSRC,GlyphTerp,libGlyphTerp,-lGlyphTerp)
libvar(LIBUNIIDRAW,IVTOOLSSRC,UniIdraw,libUniIdraw,-lUniIdraw)
libvar(LIBTOPOFACE,IVTOOLSSRC,TopoFace,libTopoFace,-lTopoFace)
libvar(LIBOVERLAYUNIDRAW,IVTOOLSSRC,OverlayUnidraw,libOverlayUnidraw,-lOverlayUnidraw)
#ifdef IueDir
libvar(LIBIUESERV,IVTOOLSSRC,IueServ,libIueServ,-lIueServ)
#endif
#ifdef AceLibDir
libvar(LIBACEDISPATCH,IVTOOLSSRC,AceDispatch,libAceDispatch,-lAceDispatch)
#else
  LIBACEDISPATCH =
#endif
libvar(LIBCOMUNIDRAW,IVTOOLSSRC,ComUnidraw,libComUnidraw,-lComUnidraw)
libvar(LIBFRAMEUNIDRAW,IVTOOLSSRC,FrameUnidraw,libFrameUnidraw,-lFrameUnidraw)
libvar(LIBGRAPHUNIDRAW,IVTOOLSSRC,GraphUnidraw,libGraphUnidraw,-lGraphUnidraw)
libvar(LIBDRAWSERV,IVTOOLSSRC,DrawServ,libDrawServ,-lDrawServ)

/*
 * Macros for defining library dependency make variables.
 */
depvar(DEPUNIDRAWCOMMON,IVTOOLSSRC,Unidraw-common,libUnidraw-common,$(VERSION))
depvar(DEPIVCOMMON,IVTOOLSSRC,IV-common,libIV-common,$(VERSION))
depvar(DEPTIME,IVTOOLSSRC,Time,libTime,$(VERSION))
depvar(DEPATTRIBUTE,IVTOOLSSRC,Attribute,libAttribute,$(VERSION))
depvar(DEPCOMUTIL,IVTOOLSSRC,ComUtil,libComUtil,$(VERSION))
depvar(DEPCOMTERP,IVTOOLSSRC,ComTerp,libComTerp,$(VERSION))
depvar(DEPIVGLYPH,IVTOOLSSRC,IVGlyph,libIVGlyph,$(VERSION))
depvar(DEPATTRGLYPH,IVTOOLSSRC,AttrGlyph,libAttrGlyph,$(VERSION))
depvar(DEPCOMGLYPH,IVTOOLSSRC,ComGlyph,libComGlyph,$(VERSION))
depvar(DEPGLYPHTERP,IVTOOLSSRC,GlyphTerp,libGlyphTerp,$(VERSION))
depvar(DEPUNIIDRAW,IVTOOLSSRC,UniIdraw,libUniIdraw,$(VERSION))
depvar(DEPTOPOFACE,IVTOOLSSRC,TopoFace,libTopoFace,$(VERSION))
depvar(DEPOVERLAYUNIDRAW,IVTOOLSSRC,OverlayUnidraw,libOverlayUnidraw,$(VERSION))
#ifdef IueDir
depvar(DEPIUESERV,IVTOOLSSRC,IueServ,libIueServ,$(VERSION))
#endif
#ifdef AceLibDir
depvar(DEPACEDISPATCH,IVTOOLSSRC,AceDispatch,libAceDispatch,$(VERSION))
#else
    DEPACEDISPATCH =
#endif
depvar(DEPCOMUNIDRAW,IVTOOLSSRC,ComUnidraw,libComUnidraw,$(VERSION))
depvar(DEPFRAMEUNIDRAW,IVTOOLSSRC,FrameUnidraw,libFrameUnidraw,$(VERSION))
depvar(DEPGRAPHUNIDRAW,IVTOOLSSRC,GraphUnidraw,libGraphUnidraw,$(VERSION))
depvar(DEPDRAWSERV,IVTOOLSSRC,DrawServ,libDrawServ,$(VERSION))

/* local override of location of libUnidraw */
#undef Ld_libUnidraw
#if !UseRpath
#define Ld_libUnidraw -L$(IVTOOLSSRC)/Unidraw/$(CPU) -lUnidraw
#else
#define Ld_libUnidraw -Wl,-rpath,$(IVTOOLSSRC)/Unidraw/$(CPU) -L$(IVTOOLSSRC)/Unidraw/$(CPU) -lUnidraw
#endif
#undef Dep_libUnidraw
#if HasDynamicSharedLibraries
#ifndef DarwinArchitecture
#define Dep_libUnidraw $(IVTOOLSSRC)/Unidraw/$(CPU)/libUnidraw.SO.$(VERSION)
#else
#define Dep_libUnidraw $(IVTOOLSSRC)/Unidraw/$(CPU)/libUnidraw.$(VERSION).dylib
#endif
#else
#define Dep_libUnidraw $(IVTOOLSSRC)/Unidraw/$(CPU)/libUnidraw.a
#endif

/* actual shared library filename for install of symbolic link only */
#undef ClipPolyLibBase
#define ClipPolyLibBase libclippoly.SO

/* substitute C compiler for makedepend */
#define DependCmd CCDriver -M 

XCOMM -------------------------------------------------------------------------
