#include <Library.tmpl>

#ifdef BandAidCompiler
#include BandAidCompiler
#endif

MANDIR = $(LIBMANDIR)
MANSUFFIX = $(LIBMANSUFFIX)

       INCLUDES = -I. -I$(TOP)/include
   INSTALLFLAGS = $(INSTINCFLAGS)
       LINTLIBS = $(LINTXLIB)

HEADERS = \
	AFauth.h

SRCS =	AuDispose.c AuFileName.c AuGetAddr.c AuLock.c \
	AuRead.c AuUnlock.c AuWrite.c

OBJS =	AuDispose.o AuFileName.o AuGetAddr.o AuLock.o \
	AuRead.o AuUnlock.o AuWrite.o

all::

#if DebugLibAau && ProfileLibAau
DebuggedAndProfiledLibraryObjectRule()
#else
# if DebugLibAau
DebuggedLibraryObjectRule()
# else
#  if ProfileLibAau
ProfiledLibraryObjectRule()
#  else
NormalLibraryObjectRule()
#  endif
# endif
#endif

NormalLibraryTarget(Aau,$(OBJS))
LintLibraryTarget(Aau,$(SRCS))
InstallLibrary(Aau,$(USRLIBDIR))
InstallLintLibrary(Aau,$(LINTLIBDIR))

#if ProfileLibAau
ProfiledLibraryTarget(Aau,$(OBJS))
InstallLibrary(Aau_p,$(USRLIBDIR))
#endif

#if DebugLibAau
DebuggedLibraryTarget(Aau,$(OBJS))
#endif

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

InstallManPage(Aau,$(MANDIR))

#ifdef HasSaberC
saber_src:
	/**/#load $(CFLAGS) $(SRCS)
#endif

DependTarget()

NormalLintTarget($(SRCS))
