#include <Library.tmpl>

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

SUBDIRS = sphere

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

       INCLUDES = -I.
   INSTALLFLAGS = $(INSTINCFLAGS)
       LINTLIBS = $(LINTXLIB)
         SPHERE = sphere
           SRCS = chans.c file.c aconvert.c init.c adpcm.c \
                  rasta.c fft.c ima.c
           OBJS = chans.o file.o aconvert.o init.o adpcm.o \
                  rasta.o fft.o ima.o $(SPHERE)/sp_utils.o \
		  $(SPHERE)/spinput.o $(SPHERE)/spoutput.o \
		  $(SPHERE)/stdfield.o $(SPHERE)/spmalloc.o
        HEADERS = aconvert.h aconvP.h
      MANSUFFIX = 3

all::

NormalLibraryObjectRule()
NormalLibraryTarget(aconvert,$(OBJS))
LintLibraryTarget(aconvert,$(SRCS))
InstallLibrary(aconvert,$(USRLIBDIR))
InstallLintLibrary(aconvert,$(LINTLIBDIR))
BuildIncludes($(HEADERS),.,contrib)
InstallMultiple($(HEADERS),$(INCDIR))

InstallManPage(AConvert,$(LIBMANDIR))
InstallManPageAliases(AConvert, $(LIBMANDIR), AConvertError AConvertAllocInit)
InstallManPageAliases(AConvert, $(LIBMANDIR), AConvertInit AConvertFiles)
InstallManPageAliases(AConvert, $(LIBMANDIR), AConvertStats AConvertClose)

DependTarget()
NormalLintTarget($(SRCS))
