/**/###########################################################################
/**/# AudioFile Build Parameters

/*****************************************************************************
 *                                                                           *
 *                            DEFAULT DEFINITONS                             *
 *                                                                           *
 * The following section contains defaults for things that can be overridden *
 * in the various *.cf and site.def files.  DO NOT EDIT!                     *
 *                                                                           *
 ****************************************************************************/

/*
 * audio specific things
 */
#ifndef BuildServer
#define BuildServer		YES	/* go ahead and build server */
#endif
#ifndef DebugLibAudio
#define DebugLibAudio		NO	/* debugged audio library */
#endif
#ifndef ProfileLibAudio
#define ProfileLibAudio		NO	/* profiled Audio library */
#endif
#ifndef ProfileLibAudioArchive
#define ProfileLibAudioArchive	NO	/* archive file of above */
#endif
#ifndef ManDirectoryRoot
#define ManDirectoryRoot /usr/man		/* if not set in .macros */
#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 SHELLPATH
#define SHELLPATH -DSHELLPATH=\"/bin/sh\"
#endif
#ifndef ConnectionFlags
#define ConnectionFlags -DTCPCONN -DUNIXCONN
#endif
#ifndef ServerCDebugFlags
#define ServerCDebugFlags OptimizedCDebugFlags
#endif
#ifndef LibraryDefines
#define LibraryDefines StandardDefines
#endif
#ifndef ServerDefines
#define ServerDefines StandardDefines ExtensionDefines
#endif

#ifndef BinDir
#define BinDir $(DESTDIR)/usr/bin/audio
#endif
#ifndef IncRoot
#define IncRoot $(DESTDIR)/usr/include
#endif
#ifndef BuildIncRoot
#define BuildIncRoot $(TOP)
#endif
#ifndef BuildIncTop
#define BuildIncTop ..		/* relative to $(TOP)/audio */
#endif
#ifndef LibDir
#define LibDir $(USRLIBDIR)/AF
#endif
#ifndef ConfigDir
#define ConfigDir $(LIBDIR)/config
#endif
#ifndef LintlibDir
#define LintlibDir $(USRLIBDIR)/lint
#endif
#ifndef AdmDir
#define AdmDir $(DESTDIR)/usr/adm
#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 OsNameDefines
#define OsNameDefines /* as nothing */
#endif
#ifndef DefaultSystemShell		/* for xdm to set in SHELL */
#define DefaultSystemShell BourneShell
#endif
#ifndef UseCCMakeDepend			/* use slow cc -E script */
#define UseCCMakeDepend NO
#endif
#ifndef DependDir
#if UseCCMakeDepend
#define DependDir $(SCRIPTSRC)
#else
#define DependDir $(UTILSRC)/makedepend
#endif
#endif
#ifndef ContribDir
#define ContribDir $(TOP)/../contrib	/* R4 contrib is outside core tree */
#endif
#ifndef DependCmd
#define DependCmd $(DEPENDSRC)/makedepend
#endif
#ifndef RemoveTargetProgramByMoving
#define RemoveTargetProgramByMoving NO
#endif
#ifndef AllocateLocalDefines
#define AllocateLocalDefines /**/
#endif


#ifndef SharedAudioRev
#define SharedAudioRev 0.0
#endif


/**/###########################################################################
/**/# AudioFile make variables; this need to be coordinated with rules

/*
 * This list must be reflected in the DIRS_TO_BUILD list in the top-level
 * Makefile.
 */
          PATHSEP = /			/* for building filenames */
        USRLIBDIR = UsrLibDir		/* libraries */
           BINDIR = BinDir		/* programs */
          INCROOT = IncRoot		/* base of where to put header files */
     BUILDINCROOT = BuildIncRoot	/* base of build loc */
      BUILDINCDIR = $(BUILDINCROOT)/AF
      BUILDINCTOP = BuildIncTop		/* top relative to BUILDINCDIR */
           INCDIR = $(INCROOT)/AF	/* header files, must end in AF */
           ADMDIR = AdmDir		/* server log files */
           LIBDIR = LibDir		/* whatever seems appropriate */
        CONFIGDIR = ConfigDir		/* build configuration information */
       LINTLIBDIR = LintlibDir		/* lint libraries */

          MANPATH = ManPath		/* top of manual page tree */
    MANSOURCEPATH = ManSourcePath	/* prefix for man page sources */
        MANSUFFIX = ManSuffix		/* Suffix for manpage. */
     LIBMANSUFFIX = LibManSuffix	/* Suffix for manpage. */
           MANDIR = ManDir		/* man pages for commands */
        LIBMANDIR = LibmanDir		/* man pages for library routines */
    SOAUDIOLIBREV = SharedAudioRev

           LODDIR = LodfileDir
      DSPTOOLROOT = DspToolRoot

#ifdef UseInstalled
            IMAKE = imake		/* assume BINDIR in path */
           DEPEND = makedepend		/* assume BINDIR in path */
        MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
#else
            IMAKE = $(IMAKESRC)/imake
           DEPEND = DependCmd
        MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
#endif

        CONFIGSRC = $(TOP)/config
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
           LIBSRC = $(TOP)/lib
       INCLUDESRC = $(TOP)/AF
        SERVERSRC = $(TOP)/server
          UTILSRC = $(TOP)/util
        SCRIPTSRC = $(UTILSRC)/scripts
       EXAMPLESRC = $(TOP)/examples
       CONTRIBSRC = ContribDir
           DOCSRC = $(TOP)/doc
        DEPENDSRC = DependDir
         IMAKESRC = $(CONFIGSRC)
         AFLIBSRC = $(LIBSRC)/AF
     AFUTILLIBSRC = $(LIBSRC)/AFUtil
     EXTENSIONSRC = $(TOP)/extensions

/*
 * Motif stuff for clients.
 * I'd bet this should go elsewhere, but I don't know where.
 */
        UIDLIBDIR = $(USRLIBDIR)/uid
        MOTIFBASE = /usr/lib/DXM
           UILSRC = $(MOTIFBASE)/clients/uil
              UIL = $(UILSRC)/uil

/*
 * and now a little bit of magic for using imake without source tree
 */
#ifdef UseInstalled
#define _Use(a,b) a
#else
#define _Use(a,b) b
#endif

/*
 * _UseCat - combination of _Use and Concat.
 *           exists to avoid problems with some preprocessors
 */
#ifndef _UseCat
#if __STDC__ && !defined(UnixCpp)
#ifdef UseInstalled
#define _UseCat(a,b,c) a##c
#else
#define _UseCat(a,b,c) b##c
#endif
#else
#ifdef UseInstalled
#define _UseCat(a,b,c) a/**/c
#else
#define _UseCat(a,b,c) b/**/c
#endif
#endif
#endif

     LINTAUDIOLIB = _Use($(USRLIBDIR),$(AFLIBSRC))/llib-lAF.ln
        AFLIBONLY = _Use(-lAF,-L$(AFLIBSRC) -lAF)
         DEPAFLIB = _UseCat($(USRLIBDIR),$(AFLIBSRC),/libAF.a)
        AFUTILLIB = _Use(-lAFUtil,-L$(AFUTILLIBSRC) -lAFUtil)
     DEPAFUTILLIB = _UseCat($(USRLIBDIR),$(AFUTILLIBSRC),/libAFUtil.a)
  DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libAFext.a)
     EXTENSIONLIB = _Use(-lAFext,-L$(EXTENSIONSRC)/lib -lAFext)
            AFLIB = $(EXTENSIONLIB) $(AFLIBONLY)

/*
 * Contrib support - you shouldn't need to change these.
 */

#undef _Use
#undef _UseCat

         DEPLIBS = $(LOCAL_LIBRARIES)
         DEPLIBS1 = $(DEPLIBS)
         DEPLIBS2 = $(DEPLIBS)
         DEPLIBS3 = $(DEPLIBS)
