2009-03-11 04:13:30 +00:00
|
|
|
subdir-m += avl
|
|
|
|
subdir-m += nvpair
|
|
|
|
subdir-m += unicode
|
|
|
|
subdir-m += zcommon
|
|
|
|
subdir-m += zfs
|
2008-12-11 22:55:55 +00:00
|
|
|
|
2010-03-08 21:45:51 +00:00
|
|
|
modules:
|
2009-03-11 04:13:30 +00:00
|
|
|
# Make the exported SPL symbols available to these modules.
|
2009-07-01 17:53:05 +00:00
|
|
|
cp @SPL_OBJ@/@SPL_SYMBOLS@ .
|
|
|
|
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
|
2008-12-11 22:55:55 +00:00
|
|
|
|
2010-03-08 21:45:51 +00:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
|
|
|
|
if [ -f @SPL_SYMBOLS@ ]; then $(RM) @SPL_SYMBOLS@; fi
|
|
|
|
if [ -f @LINUX_SYMBOLS@ ]; then $(RM) @LINUX_SYMBOLS@; fi
|
|
|
|
if [ -f Module.markers ]; then $(RM) Module.markers; fi
|
|
|
|
|
2009-03-11 04:13:30 +00:00
|
|
|
modules_install:
|
2009-07-01 17:53:05 +00:00
|
|
|
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
|
|
|
|
INSTALL_MOD_PATH=$(DESTDIR) \
|
|
|
|
INSTALL_MOD_DIR=addon/zfs $@
|
|
|
|
find ${DESTDIR}/lib/modules/ -name 'modules.*' | xargs ${RM}
|
2009-03-11 04:13:30 +00:00
|
|
|
# Install the required headers in to the kernel source
|
2009-07-01 17:53:05 +00:00
|
|
|
destname=zfs-@ZFS_META_VERSION@/@LINUX_VERSION@; \
|
|
|
|
instdest=$(DESTDIR)/@prefix@/src/$$destname; \
|
|
|
|
(mkdir -p $$instdest && \
|
2009-03-11 04:13:30 +00:00
|
|
|
find . -mindepth 3 -maxdepth 3 -name '*.h' | \
|
2009-07-01 17:53:05 +00:00
|
|
|
xargs cp -t $$instdest) || exit 1; \
|
|
|
|
(mkdir -p $$instdest/sys && \
|
2009-03-11 04:13:30 +00:00
|
|
|
find . -mindepth 4 -maxdepth 4 -name '*.h' | \
|
2009-07-01 17:53:05 +00:00
|
|
|
xargs cp -t $$instdest/sys) || exit 1;
|
2009-03-11 04:13:30 +00:00
|
|
|
|
|
|
|
distdir:
|
|
|
|
distfiles=`find . -name '*.c' -o -name '*.h'`; \
|
|
|
|
for distfile in $$distfiles; do \
|
|
|
|
distpath=`dirname $$distdir/$$distfile`; \
|
|
|
|
(/bin/mkdir -p $$distpath && \
|
|
|
|
/bin/cp $$distfile $$distdir/$$distfile) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
distclean maintainer-clean: clean
|
|
|
|
install: modules_install
|
|
|
|
all: modules
|
2008-12-11 22:55:55 +00:00
|
|
|
check:
|