#
# Installation vars
#
afsbackupdir=@afsbackupdir@
afsbosconfigdir=@afsbosconfigdir@
afsconfdir=@afsconfdir@
afsdbdir=@afsdbdir@
afslocaldir=@afslocaldir@
afslogsdir=@afslogsdir@
afssrvbindir=@afssrvbindir@
afskerneldir=@afskerneldir@
afssrvlibexecdir=@afssrvlibexecdir@
afssrvsbindir=@afssrvsbindir@
bindir=@bindir@
exec_prefix=@exec_prefix@
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@
KERN_DBG = @KERN_DBG@
KERN_OPTMZ = @KERN_OPTMZ@
LD = @LD@
LEX = @LEX@
LIB_AFSDB = @LIB_AFSDB@
LIBS = @LIBS@
LINUX_KERNEL_PATH = @LINUX_KERNEL_PATH@
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@
NO_STRIP_KRB = @NO_STRIP_KRB@
OPTMZ = @OPTMZ@
PAM_CFLAGS = @PAM_CFLAGS@
PAM_LIBS = @PAM_LIBS@
PAM_OPTMZ = @PAM_OPTMZ@
PAM_DBG = @PAM_DBG@
PATH_CPP = @PATH_CPP@
PINSTALL_LIBS = @PINSTALL_LIBS@
RANLIB = @RANLIB@
REGEX_OBJ = @REGEX_OBJ@
RM = @RM@
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@
TXLIBS = @TXLIBS@
VPATH = ${srcdir}
XCFLAGS64 = @XCFLAGS64@
XCFLAGS = @XCFLAGS@
XLDFLAGS64 = @XLDFLAGS64@
XLDFLAGS = @XLDFLAGS@
XLIBELFA = @XLIBELFA@
XLIBKVM = @XLIBKVM@
XLIBS = @XLIBS@
YACC = @YACC@

#
# Special build targets
#
dest_FS_CONV_OSF40D = @dest_FS_CONV_OSF40D@
install_FS_CONV_OSF40D = @install_FS_CONV_OSF40D@
FS_CONV_OSF40D = @FS_CONV_OSF40D@

dest_FS_CONV_SOL26 = @dest_FS_CONV_SOL26@
install_FS_CONV_SOL26 = @install_FS_CONV_SOL26@
FS_CONV_SOL26 = @FS_CONV_SOL26@

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
INSTALL = ${TOP_OBJDIR}/src/pinstall/pinstall ${NO_STRIP_BIN}
INSTALLex = ${INSTALL} -m 755
RXGEN = ${TOP_OBJDIR}/src/rxgen/rxgen
SHELL = /bin/sh

#
# Common/standard cflags/paths/etc
# Cflags defaults, will be overridden later if necessary
#
COMMON_INCL=-I${TOP_OBJDIR}/src/config -I. -I${srcdir} -I${TOP_INCDIR} -I${TOP_INCDIR}/afs -I${TOP_INCDIR}/rx -I${TOP_OBJDIR} -I${TOP_SRCDIR} -I${TOP_OBJDIR}/src
COMMON_CFLAGS=${DBG} ${OPTMZ} ${COMMON_INCL}

CFLAGS=${COMMON_CFLAGS} ${XCFLAGS} ${ARCHFLAGS}
LDFLAGS=${XLDFLAGS} ${ARCHFLAGS}

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