#
# Installation vars
#
afsbackupdir=@afsbackupdir@
afsbosconfigdir=@afsbosconfigdir@
afsconfdir=@afsconfdir@
afsdbdir=@afsdbdir@
afslocaldir=@afslocaldir@
afslogsdir=@afslogsdir@
afssrvbindir=@afssrvbindir@
afskerneldir=@afskerneldir@
afssrvlibexecdir=@afssrvlibexecdir@
afssrvsbindir=@afssrvsbindir@
afsdatadir=@afsdatadir@
bindir=@bindir@
exec_prefix=@exec_prefix@
datarootdir=@datarootdir@
datadir=@datadir@
includedir=@includedir@
libdir=@libdir@
libexecdir=@libexecdir@
localstatedir=@localstatedir@
mandir=@mandir@
prefix=@prefix@
sbindir=@sbindir@
sysconfdir=@sysconfdir@
viceetcdir=@viceetcdir@


#
# Programs and other defines
#
AR = @AR@
AS = @AS@
AFSD_LIBS = @AFSD_LIBS@
AFSD_LDFLAGS = @AFSD_LDFLAGS@
CC = @CC@
CPP = @CPP@
CCOBJ = @CCOBJ@
CCXPG2 = @CCXPG2@
CFLAGS = @CFLAGS@
CP = @CP@
DARWIN_INFOFILE=@DARWIN_INFOFILE@
DBG = @DBG@
DEST = @DEST@
FSINCLUDES = @FSINCLUDES@
INCLUDE_LIBINTL = @INCLUDE_libintl@
KERN_DBG = @KERN_DBG@
KERN_OPTMZ = @KERN_OPTMZ@
LD = @LD@
LEX = @LEX@
LIB_AFSDB = @LIB_AFSDB@
LIB_crypt = @LIB_crypt@
LIB_curses = @LIB_curses@
LIBS = @LIBS@
LIB_LIBINTL = @LIB_libintl@
LINUX_KERNEL_PATH = @LINUX_KERNEL_PATH@
LINUX_KERNEL_BUILD = @LINUX_KERNEL_BUILD@
LINUX_LIBAFS_NAME = @LINUX_LIBAFS_NAME@
LINUX_KERNEL_PACKAGING = @LINUX_KERNEL_PACKAGING@
LINUX_VERSION = @LINUX_VERSION@
LINUX_VERS = @LINUX_VERSION@
LWP_OPTMZ = @LWP_OPTMZ@
LWP_DBG = @LWP_DBG@
MKAFS_OSTYPE = @MKAFS_OSTYPE@
AFS_PARAM_COMMON = @AFS_PARAM_COMMON@
MT_CC = @MT_CC@
MT_CFLAGS = @MT_CFLAGS@
MT_LIBS = @MT_LIBS@
MV = @MV@
NO_STRIP_BIN = @NO_STRIP_BIN@
OPTMZ = @OPTMZ@
PAM_CFLAGS = @PAM_CFLAGS@
PAM_LIBS = @PAM_LIBS@
PAM_OPTMZ = @PAM_OPTMZ@
PAM_DBG = @PAM_DBG@
PATH_CPP = @PATH_CPP@
RANLIB = @RANLIB@
REGEX_OBJ = @REGEX_OBJ@
RM = @RM@
RXDEBUG = @RXDEBUG@
SHLIB_CFLAGS = @SHLIB_CFLAGS@
SHLIB_LDFLAGS = @SHLIB_LDFLAGS@
SHLIB_LINKER = @SHLIB_LINKER@
SHLIB_SUFFIX = @SHLIB_SUFFIX@
SYS_NAME = @AFS_SYSNAME@
TOP_INCDIR = @TOP_INCDIR@
TOP_LIBDIR = @TOP_LIBDIR@
TOP_JLIBDIR= @TOP_JLIBDIR@
TOP_OBJDIR = @TOP_OBJDIR@
TOP_SRCDIR = @TOP_SRCDIR@
VPATH = ${srcdir}
XCFLAGS64 = @XCFLAGS64@
XCFLAGS = @XCFLAGS@
XLDFLAGS64 = @XLDFLAGS64@
XLDFLAGS = @XLDFLAGS@
XLIBELFA = @XLIBELFA@
XLIBKVM = @XLIBKVM@
XLIBS = @XLIBS@
YACC = @YACC@

#
# Special build targets
#
dest_XFS_SIZE_CHECK = @dest_XFS_SIZE_CHECK@
install_XFS_SIZE_CHECK = @install_XFS_SIZE_CHECK@
XFS_SIZE_CHECK = @XFS_SIZE_CHECK@

#
# Paths to build dirs
#
# Could be absolute, but leaving as relative for now
#UKERNELDIR = ${TOP_OBJDIR}/src/libuafs
#KERNELDIR = ${TOP_OBJDIR}/src/libafs
UKERNELDIR = ../libuafs
KERNELDIR = ../libafs

#
# Build helper apps
#
COMPILE_ET = ${TOP_OBJDIR}/src/comerr/compile_et
RXGEN = ${TOP_OBJDIR}/src/rxgen/rxgen
SHELL = /bin/sh

#
# Common/standard cflags/paths/etc
# Cflags defaults, will be overridden later if necessary
#
# -I. and -I${srcdir} are only needed for objdir builds - we should
# conditionalise them on that.

COMMON_INCL=-I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} -I${srcdir} -I.
COMMON_CFLAGS=${DBG} ${OPTMZ} ${COMMON_INCL} ${INCLUDE_LIBINTL}

CFLAGS=${COMMON_CFLAGS} ${XCFLAGS} ${ARCHFLAGS} $(CFLAGS_NOERROR)
LDFLAGS=${XLDFLAGS} ${ARCHFLAGS}

.c.o:
	$(CCOBJ) $(CFLAGS) -c $<
