# @(#)$Header: /home/wesw/Audio/crl/audio/AF/extensions/lib/RCS/Imakefile,v 1.1 1993/09/28 23:05:25 wesw Exp $

/**/# $XConsortium: Imakefile,v 1.39 92/06/28 17:49:04 rws Exp $

#include <Library.tmpl>

#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'


#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif
      DEFINES = ExtensionDefines $(ALLOC_DEFINES)
     INCLUDES = -I$(AFLIBSRC) -I../include
         SRCS = globals.c extutil.c AFTime.c
         OBJS = globals.o extutil.o AFTime.o
     LINTLIBS = $(LINTAFLIB)

NormalLibraryObjectRule()
NormalLibraryTarget(AFext,$(OBJS))
InstallLibrary(AFext,$(USRLIBDIR))
#if DoInstallExtensionsIntoAFlib
MergeIntoInstalledLibrary($(USRLIBDIR)/libAF.a,libAFext.a)
#endif

#if ProfileLibAudio
ProfiledLibraryTarget(AFext,$(OBJS))
InstallLibrary(AFext_p,$(USRLIBDIR))
#if DoInstallExtensionsIntoAFlib
MergeIntoInstalledLibrary($(USRLIBDIR)/libAF_p.a,libAFext_p.a)
#endif
#endif

#if DebugLibAudio
DebuggedLibraryTarget(AFext,$(OBJS))
InstallLibrary(AFext_d,$(USRLIBDIR))
#if DoInstallExtensionsIntoAFlib
MergeIntoInstalledLibrary($(USRLIBDIR)/libAF_d.a,libAFext_d.a)
#endif
#endif

LintLibraryTarget(AFext,$(SRCS))
InstallLintLibrary(AFext,$(LINTLIBDIR))

DependTarget()

#ifdef IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(SUBDIRS))
MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
#endif

NormalLintTarget($(SRCS))
