/*
 * Copyright 1993 Network Computing Devices, Inc.
 *
 * Permission to use, copy, modify, distribute, and sell this software and
 * its documentation for any purpose is hereby granted without fee, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name Network Computing Devices, Inc. not be
 * used in advertising or publicity pertaining to distribution of this 
 * software without specific, written prior permission.
 * 
 * THIS SOFTWARE IS PROVIDED 'AS-IS'.  NETWORK COMPUTING DEVICES, INC.,
 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT
 * LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NONINFRINGEMENT.  IN NO EVENT SHALL NETWORK
 * COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING
 * SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE, DATA,
 * OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND REGARDLESS OF
 * WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE, ARISING OUT OF OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 * 
 * $NCDId: @(#)Imakefile.rel,v 1.3 1993/11/10 21:20:04 greg Exp $
 */

XCOMM $NCDId: @(#)Imakefile.rel,v 1.3 1993/11/10 21:20:04 greg Exp $

#include <Library.tmpl>
#include "NetAudio.tmpl"

#if !defined(SYSV) && !defined(SVR4)
  STRING_DEFINES = -DSTRING_HEADER='<strings.h>'
#else /* defined(SYSV) || defined(SVR4) */
  STRING_DEFINES = -DSTRING_HEADER='<string.h>' -Drindex=strrchr
#endif /* defined(SYSV) || defined(SVR4) */

#if Malloc0ReturnsNull
 MALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

        DEFINES = $(MALLOC_DEFINES) $(STRING_DEFINES) -DNETAUDIO
   CONN_DEFINES = ConnectionFlags

HEADERS = Alibint.h Alibnet.h Xtutil.h audiolib.h audioutil.h snd.h wave.h    \
          voc.h aiff.h sound.h soundlib.h fileutil.h

   SRCS = AlibAsync.c Alibint.c AuErrDes.c AuFreeEData.c CloseSvr.c ConnSvr.c \
          CrFlow.c DesFlow.c Flush.c HandleEv.c IDOfEvent.c KillClient.c      \
          NextEvent.c OpenSvr.c ReqEvent.c ScanEvents.c ScanTEvent.c	      \
          SetElState.c GetElState.c SetElement.c GetElement.c SvrName.c Sync.c\
          Xtutil.c ReadEl.c WriteEl.c Util.c SetElParms.c GetDevAttr.c	      \
          SetDevAttr.c CrBucket.c DesBucket.c GetBucAttr.c ListBucket.c	      \
          ListDevice.c GetSvrTime.c					      \
          snd.c wave.c voc.c aiff.c sound.c soundlib.c fileutil.c

   OBJS = AlibAsync.o Alibint.o AuErrDes.o AuFreeEData.o CloseSvr.o ConnSvr.o \
          CrFlow.o DesFlow.o Flush.o HandleEv.o IDOfEvent.o KillClient.o      \
          NextEvent.o OpenSvr.o ReqEvent.o ScanEvents.o ScanTEvent.o	      \
          SetElState.o GetElState.o SetElement.o GetElement.o SvrName.o Sync.o\
          Xtutil.o ReadEl.o WriteEl.o Util.o SetElParms.o GetDevAttr.o	      \
          SetDevAttr.o CrBucket.o DesBucket.o GetBucAttr.o ListBucket.o	      \
          ListDevice.o GetSvrTime.o					      \
          snd.o wave.o voc.o aiff.o sound.o soundlib.o fileutil.o

LibraryObjectRule()

SpecialLibObjectRule(ConnSvr.o,/**/,$(CONN_DEFINES))
SpecialLibObjectRule(OpenSvr.o,/**/,$(CONN_DEFINES))
SpecialLibObjectRule(AlibInt.o,/**/,$(CONN_DEFINES))

BuildIncludes($(HEADERS),audio,..)
InstallMultiple($(HEADERS),$(INCDIR))

NormalLibraryTarget(audio,$(OBJS))
InstallLibrary(audio,$(USRLIBDIR))

BuildReleaseHeader()

DependTarget()
