2009-03-11 04:13:30 +00:00
|
|
|
subdir-m += avl
|
|
|
|
subdir-m += nvpair
|
|
|
|
subdir-m += unicode
|
|
|
|
subdir-m += zcommon
|
|
|
|
subdir-m += zfs
|
2009-03-11 04:45:50 +00:00
|
|
|
subdir-m += zpios
|
2008-12-11 22:55:55 +00:00
|
|
|
|
2009-03-11 04:13:30 +00:00
|
|
|
modules clean:
|
|
|
|
# Make the exported SPL symbols available to these modules.
|
2008-12-11 22:55:55 +00:00
|
|
|
cp @splsymvers@ .
|
|
|
|
$(MAKE) -C @LINUX@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
|
|
|
|
|
2009-03-11 04:13:30 +00:00
|
|
|
modules_install:
|
2009-03-11 20:14:08 +00:00
|
|
|
$(MAKE) -C @LINUX@ SUBDIRS=`pwd` \
|
|
|
|
INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=addon $@
|
2009-03-11 04:13:30 +00:00
|
|
|
# Install the required headers in to the kernel source
|
|
|
|
(mkdir -p $(DESTDIR)/@LINUX@/include/zfs && \
|
|
|
|
find . -mindepth 3 -maxdepth 3 -name '*.h' | \
|
|
|
|
xargs cp -t $(DESTDIR)/@LINUX@/include/zfs) || exit 1; \
|
|
|
|
(mkdir -p $(DESTDIR)/@LINUX@/include/zfs/sys && \
|
|
|
|
find . -mindepth 4 -maxdepth 4 -name '*.h' | \
|
|
|
|
xargs cp -t $(DESTDIR)/@LINUX@/include/zfs/sys) || exit 1;
|
|
|
|
|
|
|
|
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:
|