#include <Library.tmpl>

       INCLUDES = -I. -I$(TOP)/include -I$(INCLUDESRC)
   CONN_DEFINES = ConnectionFlags
     EDB_DEFINES = -DERRORDB=\"$(LIBDIR)/AErrorDB\"
   INSTALLFLAGS = $(INSTINCFLAGS)
        HEADERS = AFUtils.h AFClientTypes.h
       LINTLIBS =
           SRCS = MakeGnTable.c \
	        Power.c \
		SingleTone.c \
		Silence.c \
		TonePair.c \
		comp_a.c \
		comp_u.c \
		cvt_a2f.c \
		cvt_a2s.c \
		cvt_a2u.c \
		cvt_u2a.c \
		cvt_u2f.c \
		cvt_u2s.c \
		exp_a.c \
		exp_u.c \
		table_a.c \
		table_u.c \
		mix_a.c \
		mix_u.c \
		power_af.c \
		power_uf.c \
		samples.c \
		sine_float.c \
		sine_int.c \
		AoD.c \
		LintodB.c \
		dBtoLin.c

OBJS1 =		MakeGnTable.o \
	        Power.o \
		SingleTone.o \
		Silence.o \
		TonePair.o \
		comp_a.o \
		comp_u.o \
		cvt_a2f.o \
		cvt_a2s.o \
		cvt_a2u.o \
		cvt_u2a.o \
		cvt_u2f.o \
		cvt_u2s.o \
		exp_a.o \
		exp_u.o \
		table_a.o \
		table_u.o \
		mix_a.o \
		mix_u.o \
		power_af.o \
		power_uf.o \
		samples.o \
		sine_float.o \
		sine_int.o \
		AoD.o  \
		LintodB.o \
		dBtoLin.o

OBJS = $(OBJS1) $(OBJS2)

all::

NormalLibraryTarget2(AFUtil,$(OBJS1),$(OBJS2))
InstallLibrary(AFUtil,$(USRLIBDIR))

LintLibraryTarget(AFUtil,*.c)

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

InstallLintLibrary(AFUtil,$(LINTLIBDIR))


#if ProfileLibAudio && ProfileLibAudioArchive
ProfiledLibraryTarget(AFUtil,$(OBJS))
AliasedLibraryTarget(AFUtil_p,AFUtil_p)
InstallLibrary(AFUtil_p,$(USRLIBDIR))
#endif

#if DebugLibAudio && DebugLibAudioArchive
DebuggedLibraryTarget(AFUtil,$(OBJS))
#endif

#if HasSaberC
saber_src:
	/**/#load $(CFLAGS) $(CONN_DEFINES) $(EXT_DEFINES) \
		$(SRCS)
#endif

LinkSourceFile(Alibint.h,../AF)

clean::

depend::

DependTarget()


/**/# structure alignment errors can safely be ignored.
/**/# complaints about qevent can be ignored too.

NormalLintTarget(*.c)
