#
# Makefile for the linux ext2-filesystem routines.
#

LINUXSRC = /lib/modules/`uname -r`/build
TOPINC   = -I${LINUXSRC}/include
EXTRA_CFLAGS += -DFSBENCH

obj-m += slowfs.o

slowfs-y := balloc.o dir.o file.o fsync.o ialloc.o inode.o \
	  ioctl.o namei.o super.o symlink.o fsbench.o

slowfs-$(CONFIG_EXT2_FS_XATTR)		 += xattr.o xattr_user.o xattr_trusted.o
slowfs-$(CONFIG_EXT2_FS_POSIX_ACL)	 += acl.o
slowfs-$(CONFIG_EXT2_FS_SECURITY)	 += xattr_security.o
slowfs-$(CONFIG_EXT2_FS_XIP)		 += xip.o

all:	slowfs

slowfs:
	make -C ${LINUXSRC} SUBDIRS=$(PWD) modules

clean:
	rm -f *.o *.ko slowfs.mod.c
