Support parallel build trees (VPATH builds)

Build products from an out of tree build should be written
relative to the build directory.  Sources should be referred
to by their locations in the source directory.

This is accomplished by adding the 'src' and 'obj' variables
for the module Makefile.am, using relative paths to reference
source files, and by setting VPATH when source files are not
co-located with the Makefile.  This enables the following:

  $ mkdir build
  $ cd build
  $ ../configure \
    --with-spl=$HOME/src/git/spl/ \
    --with-spl-obj=$HOME/src/git/spl/build
  $ make -s

This change also has the advantage of resolving the following
warning which is generated by modern versions of automake.

  Makefile.am:00: warning: source file 'xxx' is in a subdirectory,
  Makefile.am:00: but option 'subdir-objects' is disabled

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes 
This commit is contained in:
Turbo Fredriksson 2014-06-09 23:55:31 +02:00 committed by Brian Behlendorf
parent 2a53e2dacc
commit 47a4a6fd5f
42 changed files with 476 additions and 388 deletions
Makefile.am
cmd
config
contrib/dracut/90zfs
etc
init.d
modules-load.d
systemd/system
lib
libavl
libefi
libnvpair
libshare
libspl
Makefile.am
asm-generic
asm-i386
asm-x86_64
libunicode
libuutil
libzfs
libzfs_core
libzpool
module
udev/rules.d

View File

@ -1,9 +1,8 @@
ACLOCAL_AMFLAGS = -I config
include $(top_srcdir)/config/rpm.am
include $(top_srcdir)/config/deb.am
include $(top_srcdir)/config/tgz.am
include config/rpm.am
include config/deb.am
include config/tgz.am
SUBDIRS = include rpm
if CONFIG_USER
@ -57,11 +56,11 @@ shellcheck:
fi
ctags:
$(RM) $(top_srcdir)/tags
$(RM) tags
find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
etags:
$(RM) $(top_srcdir)/TAGS
$(RM) TAGS
find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a
tags: ctags etags

View File

@ -1,2 +1 @@
bin_SCRIPTS = arc_summary.py
EXTRA_DIST = $(bin_SCRIPTS)
dist_bin_SCRIPTS = arc_summary.py

View File

@ -1,2 +1 @@
bin_SCRIPTS = arcstat.py
EXTRA_DIST = $(bin_SCRIPTS)
dist_bin_SCRIPTS = arcstat.py

View File

@ -1,2 +1 @@
bin_SCRIPTS = dbufstat.py
EXTRA_DIST = $(bin_SCRIPTS)
dist_bin_SCRIPTS = dbufstat.py

View File

@ -12,7 +12,7 @@ sbindir=$(mounthelperdir)
sbin_PROGRAMS = mount.zfs
mount_zfs_SOURCES = \
$(top_srcdir)/cmd/mount_zfs/mount_zfs.c
mount_zfs.c
mount_zfs_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -7,8 +7,8 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zdb
zdb_SOURCES = \
$(top_srcdir)/cmd/zdb/zdb.c \
$(top_srcdir)/cmd/zdb/zdb_il.c
zdb.c \
zdb_il.c
zdb_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -4,25 +4,25 @@ DEFAULT_INCLUDES += \
-I$(top_srcdir)/include \
-I$(top_srcdir)/lib/libspl/include
EXTRA_DIST = $(top_srcdir)/cmd/zed/zed.d/README
EXTRA_DIST = zed.d/README
sbin_PROGRAMS = zed
zed_SOURCES = \
$(top_srcdir)/cmd/zed/zed.c \
$(top_srcdir)/cmd/zed/zed.h \
$(top_srcdir)/cmd/zed/zed_conf.c \
$(top_srcdir)/cmd/zed/zed_conf.h \
$(top_srcdir)/cmd/zed/zed_event.c \
$(top_srcdir)/cmd/zed/zed_event.h \
$(top_srcdir)/cmd/zed/zed_exec.c \
$(top_srcdir)/cmd/zed/zed_exec.h \
$(top_srcdir)/cmd/zed/zed_file.c \
$(top_srcdir)/cmd/zed/zed_file.h \
$(top_srcdir)/cmd/zed/zed_log.c \
$(top_srcdir)/cmd/zed/zed_log.h \
$(top_srcdir)/cmd/zed/zed_strings.c \
$(top_srcdir)/cmd/zed/zed_strings.h
zed.c \
zed.h \
zed_conf.c \
zed_conf.h \
zed_event.c \
zed_event.h \
zed_exec.c \
zed_exec.h \
zed_file.c \
zed_file.h \
zed_log.c \
zed_log.h \
zed_strings.c \
zed_strings.h
zed_LDADD = \
$(top_builddir)/lib/libavl/libavl.la \
@ -35,22 +35,22 @@ zed_LDADD = \
zedconfdir = $(sysconfdir)/zfs/zed.d
dist_zedconf_DATA = \
$(top_srcdir)/cmd/zed/zed.d/zed-functions.sh \
$(top_srcdir)/cmd/zed/zed.d/zed.rc
zed.d/zed-functions.sh \
zed.d/zed.rc
zedexecdir = $(libexecdir)/zfs/zed.d
dist_zedexec_SCRIPTS = \
$(top_srcdir)/cmd/zed/zed.d/all-debug.sh \
$(top_srcdir)/cmd/zed/zed.d/all-syslog.sh \
$(top_srcdir)/cmd/zed/zed.d/checksum-notify.sh \
$(top_srcdir)/cmd/zed/zed.d/checksum-spare.sh \
$(top_srcdir)/cmd/zed/zed.d/data-notify.sh \
$(top_srcdir)/cmd/zed/zed.d/generic-notify.sh \
$(top_srcdir)/cmd/zed/zed.d/io-notify.sh \
$(top_srcdir)/cmd/zed/zed.d/io-spare.sh \
$(top_srcdir)/cmd/zed/zed.d/resilver.finish-notify.sh \
$(top_srcdir)/cmd/zed/zed.d/scrub.finish-notify.sh
zed.d/all-debug.sh \
zed.d/all-syslog.sh \
zed.d/checksum-notify.sh \
zed.d/checksum-spare.sh \
zed.d/data-notify.sh \
zed.d/generic-notify.sh \
zed.d/io-notify.sh \
zed.d/io-spare.sh \
zed.d/resilver.finish-notify.sh \
zed.d/scrub.finish-notify.sh
zedconfdefaults = \
all-syslog.sh \

View File

@ -7,10 +7,10 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zfs
zfs_SOURCES = \
$(top_srcdir)/cmd/zfs/zfs_iter.c \
$(top_srcdir)/cmd/zfs/zfs_iter.h \
$(top_srcdir)/cmd/zfs/zfs_main.c \
$(top_srcdir)/cmd/zfs/zfs_util.h
zfs_iter.c \
zfs_iter.h \
zfs_main.c \
zfs_util.h
zfs_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -7,7 +7,7 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zhack
zhack_SOURCES = \
$(top_srcdir)/cmd/zhack/zhack.c
zhack.c
zhack_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -7,9 +7,9 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zinject
zinject_SOURCES = \
$(top_srcdir)/cmd/zinject/translate.c \
$(top_srcdir)/cmd/zinject/zinject.c \
$(top_srcdir)/cmd/zinject/zinject.h
translate.c \
zinject.c \
zinject.h
zinject_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -6,7 +6,6 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zpios
zpios_SOURCES = \
$(top_srcdir)/cmd/zpios/zpios_main.c \
$(top_srcdir)/cmd/zpios/zpios_util.c \
$(top_srcdir)/cmd/zpios/zpios.h
zpios_main.c \
zpios_util.c \
zpios.h

View File

@ -7,11 +7,11 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zpool
zpool_SOURCES = \
$(top_srcdir)/cmd/zpool/zpool_iter.c \
$(top_srcdir)/cmd/zpool/zpool_main.c \
$(top_srcdir)/cmd/zpool/zpool_util.c \
$(top_srcdir)/cmd/zpool/zpool_util.h \
$(top_srcdir)/cmd/zpool/zpool_vdev.c
zpool_iter.c \
zpool_main.c \
zpool_util.c \
zpool_util.h \
zpool_vdev.c
zpool_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -7,7 +7,7 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zstreamdump
zstreamdump_SOURCES = \
$(top_srcdir)/cmd/zstreamdump/zstreamdump.c
zstreamdump.c
zstreamdump_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -9,7 +9,7 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = ztest
ztest_SOURCES = \
$(top_srcdir)/cmd/ztest/ztest.c
ztest.c
ztest_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \

View File

@ -11,4 +11,4 @@ DEFAULT_INCLUDES += \
udev_PROGRAMS = zvol_id
zvol_id_SOURCES = \
$(top_srcdir)/cmd/zvol_id/zvol_id_main.c
zvol_id_main.c

View File

@ -338,6 +338,8 @@ AC_DEFUN([ZFS_AC_SPL], [
splbuild="${splsrc}/${LINUX_VERSION}"
], [ test -e "${splsrc}/spl_config.h" ], [
splbuild="${splsrc}"
], [ find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ], [
splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
], [
splbuild="[Not found]"
])

View File

@ -51,7 +51,7 @@ rpm-local:
mkdir -p $(rpmbuild)/SPECS && \
cp ${RPM_SPEC_DIR}/$(rpmspec) $(rpmbuild)/SPECS && \
mkdir -p $(rpmbuild)/SOURCES && \
cp scripts/kmodtool $(rpmbuild)/SOURCES && \
cp $(top_srcdir)/scripts/kmodtool $(rpmbuild)/SOURCES && \
cp $(distdir).tar.gz $(rpmbuild)/SOURCES)
srpm-common: dist

View File

@ -1,10 +1,10 @@
pkgdracutdir = $(dracutdir)/modules.d/90zfs
pkgdracut_SCRIPTS = \
$(top_srcdir)/contrib/dracut/90zfs/export-zfs.sh \
$(top_srcdir)/contrib/dracut/90zfs/module-setup.sh \
$(top_srcdir)/contrib/dracut/90zfs/mount-zfs.sh \
$(top_srcdir)/contrib/dracut/90zfs/parse-zfs.sh \
$(top_srcdir)/contrib/dracut/90zfs/zfs-lib.sh
export-zfs.sh \
module-setup.sh \
mount-zfs.sh \
parse-zfs.sh \
zfs-lib.sh
EXTRA_DIST = \
$(top_srcdir)/contrib/dracut/90zfs/export-zfs.sh.in \
@ -19,7 +19,7 @@ $(pkgdracut_SCRIPTS):
-e 's,@udevdir\@,$(udevdir),g' \
-e 's,@udevruledir\@,$(udevruledir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
'$@.in' >'$@'
"$(top_srcdir)/contrib/dracut/90zfs/$@.in" >'$@'
distclean-local::
-$(RM) $(pkgdracut_SCRIPTS)

View File

@ -36,7 +36,7 @@ $(init_SCRIPTS) $(initconf_SCRIPTS) $(initcommon_SCRIPTS): $(EXTRA_DIST)
-e 's,@runstatedir\@,$(runstatedir),g' \
-e "s,@SHELL\@,$$SHELL,g" \
-e "s,@NFS_SRV\@,$$NFS_SRV,g" \
'$@.in' >'$@'; \
"$(top_srcdir)/etc/init.d/$@.in" >'$@'; \
[ '$@' = 'zfs-functions' -o '$@' = 'zfs' ] || \
chmod +x '$@')

View File

@ -1,5 +1,5 @@
modulesload_DATA = \
$(top_srcdir)/etc/modules-load.d/zfs.conf
zfs.conf
EXTRA_DIST = \
$(top_srcdir)/etc/modules-load.d/zfs.conf.in
@ -7,7 +7,7 @@ EXTRA_DIST = \
$(modulesload_DATA):
-$(SED) \
-e '' \
'$@.in' >'$@'
"$(top_srcdir)/etc/modules-load.d/$@.in" >'$@'
distclean-local::
-$(RM) $(modulesload_DATA)

View File

@ -1,12 +1,13 @@
systemdpreset_DATA = \
$(top_srcdir)/etc/systemd/system/50-zfs.preset
50-zfs.preset
systemdunit_DATA = \
$(top_srcdir)/etc/systemd/system/zed.service \
$(top_srcdir)/etc/systemd/system/zfs-import-cache.service \
$(top_srcdir)/etc/systemd/system/zfs-import-scan.service \
$(top_srcdir)/etc/systemd/system/zfs-mount.service \
$(top_srcdir)/etc/systemd/system/zfs-share.service \
$(top_srcdir)/etc/systemd/system/zfs.target
zed.service \
zfs-import-cache.service \
zfs-import-scan.service \
zfs-mount.service \
zfs-share.service \
zfs.target
EXTRA_DIST = \
$(top_srcdir)/etc/systemd/system/zed.service.in \
@ -22,14 +23,14 @@ $(systemdunit_DATA):
-e 's,@runstatedir\@,$(runstatedir),g' \
-e 's,@sbindir\@,$(sbindir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
'$@.in' >'$@'
"$(top_srcdir)/etc/systemd/system/$@.in" >'$@'
$(systemdpreset_DATA):
-$(SED) -e 's,@bindir\@,$(bindir),g' \
-e 's,@runstatedir\@,$(runstatedir),g' \
-e 's,@sbindir\@,$(sbindir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
'$@.in' >'$@'
"$(top_srcdir)/etc/systemd/system/$@.in" >'$@'
distclean-local::
-$(RM) $(systemdunit_DATA) $(systemdpreset_DATA)

View File

@ -1,5 +1,7 @@
include $(top_srcdir)/config/Rules.am
VPATH = $(top_srcdir)/module/avl/
AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
DEFAULT_INCLUDES += \
@ -8,5 +10,13 @@ DEFAULT_INCLUDES += \
noinst_LTLIBRARIES = libavl.la
libavl_la_SOURCES = \
$(top_srcdir)/module/avl/avl.c
USER_C =
KERNEL_C = \
avl.c
nodist_libavl_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
EXTRA_DIST = $(USER_C)

View File

@ -8,7 +8,15 @@ DEFAULT_INCLUDES += \
noinst_LTLIBRARIES = libefi.la
libefi_la_SOURCES = \
$(top_srcdir)/lib/libefi/rdwr_efi.c
USER_C = \
rdwr_efi.c
KERNEL_C =
nodist_libefi_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
libefi_la_LIBADD = $(LIBUUID) $(ZLIB)
EXTRA_DIST = $(USER_C)

View File

@ -1,5 +1,9 @@
include $(top_srcdir)/config/Rules.am
VPATH = \
$(top_srcdir)/module/nvpair \
$(top_srcdir)/lib/libnvpair
AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
DEFAULT_INCLUDES += \
@ -8,17 +12,22 @@ DEFAULT_INCLUDES += \
lib_LTLIBRARIES = libnvpair.la
libnvpair_la_SOURCES = \
$(top_srcdir)/lib/libnvpair/libnvpair.c \
$(top_srcdir)/lib/libnvpair/nvpair_alloc_system.c \
$(top_srcdir)/module/nvpair/nvpair_alloc_fixed.c \
$(top_srcdir)/module/nvpair/nvpair.c \
$(top_srcdir)/module/nvpair/fnvpair.c
USER_C = \
libnvpair.c \
nvpair_alloc_system.c
KERNEL_C = \
nvpair_alloc_fixed.c \
nvpair.c \
fnvpair.c
nodist_libnvpair_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
libnvpair_la_LIBADD = \
$(top_builddir)/lib/libuutil/libuutil.la
libnvpair_la_LDFLAGS = -version-info 1:1:0
EXTRA_DIST = \
$(top_srcdir)/module/nvpair/nvpair_alloc_spl.c
EXTRA_DIST = $(USER_C)

View File

@ -6,10 +6,18 @@ DEFAULT_INCLUDES += \
noinst_LTLIBRARIES = libshare.la
libshare_la_SOURCES = \
$(top_srcdir)/lib/libshare/libshare_impl.h \
$(top_srcdir)/lib/libshare/libshare.c \
$(top_srcdir)/lib/libshare/nfs.c \
$(top_srcdir)/lib/libshare/nfs.h \
$(top_srcdir)/lib/libshare/smb.c \
$(top_srcdir)/lib/libshare/smb.h
USER_C = \
libshare_impl.h \
libshare.c \
nfs.c \
nfs.h \
smb.c \
smb.h
KERNEL_C =
nodist_libshare_la_SOURCES = \
$(USER_C)
$(KERNEL_C)
EXTRA_DIST = $(USER_C)

View File

@ -1,5 +1,9 @@
include $(top_srcdir)/config/Rules.am
VPATH = \
$(top_srcdir)/lib/libspl \
$(top_srcdir)/lib/libspl/$(TARGET_ASM_DIR)
AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
SUBDIRS = include $(TARGET_ASM_DIR)
@ -13,21 +17,31 @@ AM_CCASFLAGS = \
noinst_LTLIBRARIES = libspl.la
libspl_la_SOURCES = \
$(top_srcdir)/lib/libspl/getexecname.c \
$(top_srcdir)/lib/libspl/gethrtime.c \
$(top_srcdir)/lib/libspl/gethrestime.c \
$(top_srcdir)/lib/libspl/getmntany.c \
$(top_srcdir)/lib/libspl/list.c \
$(top_srcdir)/lib/libspl/mkdirp.c \
$(top_srcdir)/lib/libspl/strlcat.c \
$(top_srcdir)/lib/libspl/strlcpy.c \
$(top_srcdir)/lib/libspl/strnlen.c \
$(top_srcdir)/lib/libspl/timestamp.c \
$(top_srcdir)/lib/libspl/zone.c \
$(top_srcdir)/lib/libspl/xdr.c \
$(top_srcdir)/lib/libspl/$(TARGET_ASM_DIR)/atomic.S \
$(top_srcdir)/lib/libspl/include/sys/list.h \
$(top_srcdir)/lib/libspl/include/sys/list_impl.h
USER_C = \
getexecname.c \
gethrtime.c \
gethrestime.c \
getmntany.c \
list.c \
mkdirp.c \
strlcat.c \
strlcpy.c \
strnlen.c \
timestamp.c \
zone.c \
xdr.c \
include/sys/list.h \
include/sys/list_impl.h
USER_ASM = atomic.S
KERNEL_C =
nodist_libspl_la_SOURCES = \
$(USER_C) \
$(USER_ASM) \
$(KERNEL_C)
libspl_la_LIBADD = -lrt
EXTRA_DIST = $(USER_C)

View File

@ -1,6 +0,0 @@
Stub file for 'make dist' distdir rule.
This file is directly referenced by ../Makefile.am as a source
file and thus will be expected by 'make dist'. To avoid this
being a problem this stub file was added. It will be overwritten
at build time based on assmebly generated from atomic.c.

View File

@ -1 +1 @@
noinst_HEADERS = $(top_srcdir)/lib/libspl/asm-i386/*.S
noinst_HEADERS = atomic.S

View File

@ -1 +1 @@
noinst_HEADERS = $(top_srcdir)/lib/libspl/asm-x86_64/*.S
noinst_HEADERS = atomic.S

View File

@ -1,5 +1,7 @@
include $(top_srcdir)/config/Rules.am
VPATH = $(top_srcdir)/module/unicode
AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
DEFAULT_INCLUDES += \
@ -8,6 +10,14 @@ DEFAULT_INCLUDES += \
noinst_LTLIBRARIES = libunicode.la
libunicode_la_SOURCES = \
$(top_srcdir)/module/unicode/u8_textprep.c \
$(top_srcdir)/module/unicode/uconv.c
USER_C =
KERNEL_C = \
u8_textprep.c \
uconv.c
nodist_libunicode_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
EXTRA_DIST = $(USER_C)

View File

@ -8,17 +8,23 @@ DEFAULT_INCLUDES += \
lib_LTLIBRARIES = libuutil.la
libuutil_la_SOURCES = \
$(top_srcdir)/lib/libuutil/uu_alloc.c \
$(top_srcdir)/lib/libuutil/uu_avl.c \
$(top_srcdir)/lib/libuutil/uu_dprintf.c \
$(top_srcdir)/lib/libuutil/uu_ident.c \
$(top_srcdir)/lib/libuutil/uu_list.c \
$(top_srcdir)/lib/libuutil/uu_misc.c \
$(top_srcdir)/lib/libuutil/uu_open.c \
$(top_srcdir)/lib/libuutil/uu_pname.c \
$(top_srcdir)/lib/libuutil/uu_string.c \
$(top_srcdir)/lib/libuutil/uu_strtoint.c
USER_C = \
uu_alloc.c \
uu_avl.c \
uu_dprintf.c \
uu_ident.c \
uu_list.c \
uu_misc.c \
uu_open.c \
uu_pname.c \
uu_string.c \
uu_strtoint.c
KERNEL_C =
nodist_libuutil_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
libuutil_la_LIBADD = \
$(top_builddir)/lib/libavl/libavl.la \
@ -26,3 +32,5 @@ libuutil_la_LIBADD = \
$(top_builddir)/lib/libefi/libefi.la
libuutil_la_LDFLAGS = -pthread -version-info 1:1:0
EXTRA_DIST = $(USER_C)

View File

@ -1,8 +1,7 @@
include $(top_srcdir)/config/Rules.am
libzfs_pcdir = $(datarootdir)/pkgconfig
libzfs_pc_DATA = $(top_srcdir)/lib/libzfs/libzfs.pc $(top_srcdir)/lib/libzfs/libzfs_core.pc
EXTRA_DIST = $(top_srcdir)/lib/libzfs/libzfs.pc $(top_srcdir)/lib/libzfs/libzfs_core.pc
libzfs_pc_DATA = libzfs.pc libzfs_core.pc
DEFAULT_INCLUDES += \
-I$(top_srcdir)/include \
@ -10,20 +9,26 @@ DEFAULT_INCLUDES += \
lib_LTLIBRARIES = libzfs.la
libzfs_la_SOURCES = \
$(top_srcdir)/lib/libzfs/libzfs_changelist.c \
$(top_srcdir)/lib/libzfs/libzfs_config.c \
$(top_srcdir)/lib/libzfs/libzfs_dataset.c \
$(top_srcdir)/lib/libzfs/libzfs_diff.c \
$(top_srcdir)/lib/libzfs/libzfs_fru.c \
$(top_srcdir)/lib/libzfs/libzfs_graph.c \
$(top_srcdir)/lib/libzfs/libzfs_import.c \
$(top_srcdir)/lib/libzfs/libzfs_iter.c \
$(top_srcdir)/lib/libzfs/libzfs_mount.c \
$(top_srcdir)/lib/libzfs/libzfs_pool.c \
$(top_srcdir)/lib/libzfs/libzfs_sendrecv.c \
$(top_srcdir)/lib/libzfs/libzfs_status.c \
$(top_srcdir)/lib/libzfs/libzfs_util.c
USER_C = \
libzfs_changelist.c \
libzfs_config.c \
libzfs_dataset.c \
libzfs_diff.c \
libzfs_fru.c \
libzfs_graph.c \
libzfs_import.c \
libzfs_iter.c \
libzfs_mount.c \
libzfs_pool.c \
libzfs_sendrecv.c \
libzfs_status.c \
libzfs_util.c
KERNEL_C =
nodist_libzfs_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
libzfs_la_LIBADD = \
$(top_builddir)/lib/libzfs_core/libzfs_core.la \
@ -33,3 +38,5 @@ libzfs_la_LIBADD = \
libzfs_la_LIBADD += -lm -ldl $(LIBBLKID)
libzfs_la_LDFLAGS = -version-info 2:0:0
EXTRA_DIST = $(libzfs_pc_DATA) $(USER_C)

View File

@ -6,10 +6,18 @@ DEFAULT_INCLUDES += \
lib_LTLIBRARIES = libzfs_core.la
libzfs_core_la_SOURCES = \
$(top_srcdir)/lib/libzfs_core/libzfs_core.c
USER_C = \
libzfs_core.c
KERNEL_C =
nodist_libzfs_core_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
libzfs_core_la_LIBADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la
libzfs_core_la_LDFLAGS = -version-info 1:0:0
EXTRA_DIST = $(USER_C)

View File

@ -1,5 +1,10 @@
include $(top_srcdir)/config/Rules.am
VPATH = \
$(top_srcdir)/module/zfs \
$(top_srcdir)/module/zcommon \
$(top_srcdir)/lib/libzpool
AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
DEFAULT_INCLUDES += \
@ -8,99 +13,105 @@ DEFAULT_INCLUDES += \
lib_LTLIBRARIES = libzpool.la
libzpool_la_SOURCES = \
$(top_srcdir)/lib/libzpool/kernel.c \
$(top_srcdir)/lib/libzpool/taskq.c \
$(top_srcdir)/lib/libzpool/util.c \
$(top_srcdir)/module/zcommon/zfs_comutil.c \
$(top_srcdir)/module/zcommon/zfs_deleg.c \
$(top_srcdir)/module/zcommon/zfs_fletcher.c \
$(top_srcdir)/module/zcommon/zfs_namecheck.c \
$(top_srcdir)/module/zcommon/zfs_prop.c \
$(top_srcdir)/module/zcommon/zfs_uio.c \
$(top_srcdir)/module/zcommon/zpool_prop.c \
$(top_srcdir)/module/zcommon/zprop_common.c \
$(top_srcdir)/module/zfs/arc.c \
$(top_srcdir)/module/zfs/blkptr.c \
$(top_srcdir)/module/zfs/bplist.c \
$(top_srcdir)/module/zfs/bpobj.c \
$(top_srcdir)/module/zfs/bptree.c \
$(top_srcdir)/module/zfs/dbuf.c \
$(top_srcdir)/module/zfs/dbuf_stats.c \
$(top_srcdir)/module/zfs/ddt.c \
$(top_srcdir)/module/zfs/ddt_zap.c \
$(top_srcdir)/module/zfs/dmu.c \
$(top_srcdir)/module/zfs/dmu_diff.c \
$(top_srcdir)/module/zfs/dmu_object.c \
$(top_srcdir)/module/zfs/dmu_objset.c \
$(top_srcdir)/module/zfs/dmu_send.c \
$(top_srcdir)/module/zfs/dmu_traverse.c \
$(top_srcdir)/module/zfs/dmu_tx.c \
$(top_srcdir)/module/zfs/dmu_zfetch.c \
$(top_srcdir)/module/zfs/dnode.c \
$(top_srcdir)/module/zfs/dnode_sync.c \
$(top_srcdir)/module/zfs/dsl_bookmark.c \
$(top_srcdir)/module/zfs/dsl_dataset.c \
$(top_srcdir)/module/zfs/dsl_deadlist.c \
$(top_srcdir)/module/zfs/dsl_deleg.c \
$(top_srcdir)/module/zfs/dsl_dir.c \
$(top_srcdir)/module/zfs/dsl_pool.c \
$(top_srcdir)/module/zfs/dsl_prop.c \
$(top_srcdir)/module/zfs/dsl_scan.c \
$(top_srcdir)/module/zfs/dsl_synctask.c \
$(top_srcdir)/module/zfs/dsl_destroy.c \
$(top_srcdir)/module/zfs/dsl_userhold.c \
$(top_srcdir)/module/zfs/fm.c \
$(top_srcdir)/module/zfs/gzip.c \
$(top_srcdir)/module/zfs/lzjb.c \
$(top_srcdir)/module/zfs/lz4.c \
$(top_srcdir)/module/zfs/metaslab.c \
$(top_srcdir)/module/zfs/multilist.c \
$(top_srcdir)/module/zfs/range_tree.c \
$(top_srcdir)/module/zfs/refcount.c \
$(top_srcdir)/module/zfs/rrwlock.c \
$(top_srcdir)/module/zfs/sa.c \
$(top_srcdir)/module/zfs/sha256.c \
$(top_srcdir)/module/zfs/spa.c \
$(top_srcdir)/module/zfs/spa_boot.c \
$(top_srcdir)/module/zfs/spa_config.c \
$(top_srcdir)/module/zfs/spa_errlog.c \
$(top_srcdir)/module/zfs/spa_history.c \
$(top_srcdir)/module/zfs/spa_misc.c \
$(top_srcdir)/module/zfs/spa_stats.c \
$(top_srcdir)/module/zfs/space_map.c \
$(top_srcdir)/module/zfs/space_reftree.c \
$(top_srcdir)/module/zfs/txg.c \
$(top_srcdir)/module/zfs/trace.c \
$(top_srcdir)/module/zfs/uberblock.c \
$(top_srcdir)/module/zfs/unique.c \
$(top_srcdir)/module/zfs/vdev.c \
$(top_srcdir)/module/zfs/vdev_cache.c \
$(top_srcdir)/module/zfs/vdev_file.c \
$(top_srcdir)/module/zfs/vdev_label.c \
$(top_srcdir)/module/zfs/vdev_mirror.c \
$(top_srcdir)/module/zfs/vdev_missing.c \
$(top_srcdir)/module/zfs/vdev_queue.c \
$(top_srcdir)/module/zfs/vdev_raidz.c \
$(top_srcdir)/module/zfs/vdev_root.c \
$(top_srcdir)/module/zfs/zap.c \
$(top_srcdir)/module/zfs/zap_leaf.c \
$(top_srcdir)/module/zfs/zap_micro.c \
$(top_srcdir)/module/zfs/zfeature.c \
$(top_srcdir)/module/zfs/zfeature_common.c \
$(top_srcdir)/module/zfs/zfs_byteswap.c \
$(top_srcdir)/module/zfs/zfs_debug.c \
$(top_srcdir)/module/zfs/zfs_fm.c \
$(top_srcdir)/module/zfs/zfs_fuid.c \
$(top_srcdir)/module/zfs/zfs_sa.c \
$(top_srcdir)/module/zfs/zfs_znode.c \
$(top_srcdir)/module/zfs/zil.c \
$(top_srcdir)/module/zfs/zio.c \
$(top_srcdir)/module/zfs/zio_checksum.c \
$(top_srcdir)/module/zfs/zio_compress.c \
$(top_srcdir)/module/zfs/zio_inject.c \
$(top_srcdir)/module/zfs/zle.c \
$(top_srcdir)/module/zfs/zrlock.c
USER_C = \
kernel.c \
taskq.c \
util.c
KERNEL_C = \
zfs_comutil.c \
zfs_deleg.c \
zfs_fletcher.c \
zfs_namecheck.c \
zfs_prop.c \
zfs_uio.c \
zpool_prop.c \
zprop_common.c \
arc.c \
blkptr.c \
bplist.c \
bpobj.c \
bptree.c \
dbuf.c \
dbuf_stats.c \
ddt.c \
ddt_zap.c \
dmu.c \
dmu_diff.c \
dmu_object.c \
dmu_objset.c \
dmu_send.c \
dmu_traverse.c \
dmu_tx.c \
dmu_zfetch.c \
dnode.c \
dnode_sync.c \
dsl_bookmark.c \
dsl_dataset.c \
dsl_deadlist.c \
dsl_deleg.c \
dsl_dir.c \
dsl_pool.c \
dsl_prop.c \
dsl_scan.c \
dsl_synctask.c \
dsl_destroy.c \
dsl_userhold.c \
fm.c \
gzip.c \
lzjb.c \
lz4.c \
metaslab.c \
multilist.c \
range_tree.c \
refcount.c \
rrwlock.c \
sa.c \
sha256.c \
spa.c \
spa_boot.c \
spa_config.c \
spa_errlog.c \
spa_history.c \
spa_misc.c \
spa_stats.c \
space_map.c \
space_reftree.c \
txg.c \
trace.c \
uberblock.c \
unique.c \
vdev.c \
vdev_cache.c \
vdev_file.c \
vdev_label.c \
vdev_mirror.c \
vdev_missing.c \
vdev_queue.c \
vdev_raidz.c \
vdev_root.c \
zap.c \
zap_leaf.c \
zap_micro.c \
zfeature.c \
zfeature_common.c \
zfs_byteswap.c \
zfs_debug.c \
zfs_fm.c \
zfs_fuid.c \
zfs_sa.c \
zfs_znode.c \
zil.c \
zio.c \
zio_checksum.c \
zio_compress.c \
zio_inject.c \
zle.c \
zrlock.c
nodist_libzpool_la_SOURCES = \
$(USER_C) \
$(KERNEL_C)
libzpool_la_LIBADD = \
$(top_builddir)/lib/libunicode/libunicode.la \
@ -110,23 +121,4 @@ libzpool_la_LIBADD = \
libzpool_la_LIBADD += $(ZLIB)
libzpool_la_LDFLAGS = -version-info 2:0:0
EXTRA_DIST = \
$(top_srcdir)/module/zfs/vdev_disk.c \
$(top_srcdir)/module/zfs/zfs_acl.c \
$(top_srcdir)/module/zfs/zfs_ctldir.c \
$(top_srcdir)/module/zfs/zfs_dir.c \
$(top_srcdir)/module/zfs/zfs_ioctl.c \
$(top_srcdir)/module/zfs/zfs_log.c \
$(top_srcdir)/module/zfs/zfs_onexit.c \
$(top_srcdir)/module/zfs/zfs_replay.c \
$(top_srcdir)/module/zfs/zfs_rlock.c \
$(top_srcdir)/module/zfs/zfs_vfsops.c \
$(top_srcdir)/module/zfs/zfs_vnops.c \
$(top_srcdir)/module/zfs/zpl_ctldir.c \
$(top_srcdir)/module/zfs/zpl_export.c \
$(top_srcdir)/module/zfs/zpl_file.c \
$(top_srcdir)/module/zfs/zpl_inode.c \
$(top_srcdir)/module/zfs/zpl_super.c \
$(top_srcdir)/module/zfs/zpl_xattr.c \
$(top_srcdir)/module/zfs/zvol.c \
$(top_srcdir)/module/zpios/pios.c
EXTRA_DIST = $(USER_C)

View File

@ -63,6 +63,10 @@ modules_uninstall:
done
distdir:
list='$(subdir-m)'; for subdir in $$list; do \
(find @top_srcdir@/module/$$subdir -name '*.c' -o -name '*.h' |\
xargs /bin/cp -t $$distdir/$$subdir); \
done
distclean maintainer-clean: clean
install: modules_install

View File

@ -1,7 +1,10 @@
src = @abs_top_srcdir@/module/avl
obj = @abs_builddir@
MODULE := zavl
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
obj-$(CONFIG_ZFS) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/avl/avl.o
$(MODULE)-objs += avl.o

View File

@ -1,10 +1,13 @@
src = @abs_top_srcdir@/module/nvpair
obj = @abs_builddir@
MODULE := znvpair
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
obj-$(CONFIG_ZFS) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/nvpair/nvpair.o
$(MODULE)-objs += @top_srcdir@/module/nvpair/fnvpair.o
$(MODULE)-objs += @top_srcdir@/module/nvpair/nvpair_alloc_spl.o
$(MODULE)-objs += @top_srcdir@/module/nvpair/nvpair_alloc_fixed.o
$(MODULE)-objs += nvpair.o
$(MODULE)-objs += fnvpair.o
$(MODULE)-objs += nvpair_alloc_spl.o
$(MODULE)-objs += nvpair_alloc_fixed.o

View File

@ -1,8 +1,11 @@
src = @abs_top_srcdir@/module/unicode
obj = @abs_builddir@
MODULE := zunicode
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
obj-$(CONFIG_ZFS) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/unicode/u8_textprep.o
$(MODULE)-objs += @top_srcdir@/module/unicode/uconv.o
$(MODULE)-objs += u8_textprep.o
$(MODULE)-objs += uconv.o

View File

@ -1,14 +1,17 @@
src = @abs_top_srcdir@/module/zcommon
obj = @abs_builddir@
MODULE := zcommon
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
obj-$(CONFIG_ZFS) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_deleg.o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_prop.o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zprop_common.o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_namecheck.o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_comutil.o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_fletcher.o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_uio.o
$(MODULE)-objs += @top_srcdir@/module/zcommon/zpool_prop.o
$(MODULE)-objs += zfs_deleg.o
$(MODULE)-objs += zfs_prop.o
$(MODULE)-objs += zprop_common.o
$(MODULE)-objs += zfs_namecheck.o
$(MODULE)-objs += zfs_comutil.o
$(MODULE)-objs += zfs_fletcher.o
$(MODULE)-objs += zfs_uio.o
$(MODULE)-objs += zpool_prop.o

View File

@ -1,105 +1,108 @@
src = @abs_top_srcdir@/module/zfs
obj = @abs_builddir@
MODULE := zfs
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
obj-$(CONFIG_ZFS) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/zfs/arc.o
$(MODULE)-objs += @top_srcdir@/module/zfs/blkptr.o
$(MODULE)-objs += @top_srcdir@/module/zfs/bplist.o
$(MODULE)-objs += @top_srcdir@/module/zfs/bpobj.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dbuf.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dbuf_stats.o
$(MODULE)-objs += @top_srcdir@/module/zfs/bptree.o
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt.o
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt_zap.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_diff.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_object.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_objset.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_send.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_traverse.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_tx.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_zfetch.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode_sync.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dataset.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deadlist.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deleg.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_bookmark.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_pool.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_prop.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_scan.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_synctask.o
$(MODULE)-objs += @top_srcdir@/module/zfs/fm.o
$(MODULE)-objs += @top_srcdir@/module/zfs/gzip.o
$(MODULE)-objs += @top_srcdir@/module/zfs/lzjb.o
$(MODULE)-objs += @top_srcdir@/module/zfs/lz4.o
$(MODULE)-objs += @top_srcdir@/module/zfs/metaslab.o
$(MODULE)-objs += @top_srcdir@/module/zfs/multilist.o
$(MODULE)-objs += @top_srcdir@/module/zfs/range_tree.o
$(MODULE)-objs += @top_srcdir@/module/zfs/refcount.o
$(MODULE)-objs += @top_srcdir@/module/zfs/rrwlock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/sa.o
$(MODULE)-objs += @top_srcdir@/module/zfs/sha256.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_boot.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_config.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_errlog.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_history.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_misc.o
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_stats.o
$(MODULE)-objs += @top_srcdir@/module/zfs/space_map.o
$(MODULE)-objs += @top_srcdir@/module/zfs/space_reftree.o
$(MODULE)-objs += @top_srcdir@/module/zfs/txg.o
$(MODULE)-objs += @top_srcdir@/module/zfs/trace.o
$(MODULE)-objs += @top_srcdir@/module/zfs/uberblock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/unique.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_cache.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_disk.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_file.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_label.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_mirror.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_missing.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_queue.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_raidz.o
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_root.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zap.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_leaf.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_micro.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfeature.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfeature_common.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_acl.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_byteswap.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ctldir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_debug.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_dir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fm.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fuid.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ioctl.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_log.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_onexit.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_replay.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_rlock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_sa.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vfsops.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vnops.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_znode.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zil.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_checksum.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_compress.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_inject.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zle.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_ctldir.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_export.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_file.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_inode.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_super.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_xattr.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zrlock.o
$(MODULE)-objs += @top_srcdir@/module/zfs/zvol.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_destroy.o
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_userhold.o
$(MODULE)-objs += arc.o
$(MODULE)-objs += blkptr.o
$(MODULE)-objs += bplist.o
$(MODULE)-objs += bpobj.o
$(MODULE)-objs += dbuf.o
$(MODULE)-objs += dbuf_stats.o
$(MODULE)-objs += bptree.o
$(MODULE)-objs += ddt.o
$(MODULE)-objs += ddt_zap.o
$(MODULE)-objs += dmu.o
$(MODULE)-objs += dmu_diff.o
$(MODULE)-objs += dmu_object.o
$(MODULE)-objs += dmu_objset.o
$(MODULE)-objs += dmu_send.o
$(MODULE)-objs += dmu_traverse.o
$(MODULE)-objs += dmu_tx.o
$(MODULE)-objs += dmu_zfetch.o
$(MODULE)-objs += dnode.o
$(MODULE)-objs += dnode_sync.o
$(MODULE)-objs += dsl_dataset.o
$(MODULE)-objs += dsl_deadlist.o
$(MODULE)-objs += dsl_deleg.o
$(MODULE)-objs += dsl_bookmark.o
$(MODULE)-objs += dsl_dir.o
$(MODULE)-objs += dsl_pool.o
$(MODULE)-objs += dsl_prop.o
$(MODULE)-objs += dsl_scan.o
$(MODULE)-objs += dsl_synctask.o
$(MODULE)-objs += fm.o
$(MODULE)-objs += gzip.o
$(MODULE)-objs += lzjb.o
$(MODULE)-objs += lz4.o
$(MODULE)-objs += metaslab.o
$(MODULE)-objs += multilist.o
$(MODULE)-objs += range_tree.o
$(MODULE)-objs += refcount.o
$(MODULE)-objs += rrwlock.o
$(MODULE)-objs += sa.o
$(MODULE)-objs += sha256.o
$(MODULE)-objs += spa.o
$(MODULE)-objs += spa_boot.o
$(MODULE)-objs += spa_config.o
$(MODULE)-objs += spa_errlog.o
$(MODULE)-objs += spa_history.o
$(MODULE)-objs += spa_misc.o
$(MODULE)-objs += spa_stats.o
$(MODULE)-objs += space_map.o
$(MODULE)-objs += space_reftree.o
$(MODULE)-objs += txg.o
$(MODULE)-objs += trace.o
$(MODULE)-objs += uberblock.o
$(MODULE)-objs += unique.o
$(MODULE)-objs += vdev.o
$(MODULE)-objs += vdev_cache.o
$(MODULE)-objs += vdev_disk.o
$(MODULE)-objs += vdev_file.o
$(MODULE)-objs += vdev_label.o
$(MODULE)-objs += vdev_mirror.o
$(MODULE)-objs += vdev_missing.o
$(MODULE)-objs += vdev_queue.o
$(MODULE)-objs += vdev_raidz.o
$(MODULE)-objs += vdev_root.o
$(MODULE)-objs += zap.o
$(MODULE)-objs += zap_leaf.o
$(MODULE)-objs += zap_micro.o
$(MODULE)-objs += zfeature.o
$(MODULE)-objs += zfeature_common.o
$(MODULE)-objs += zfs_acl.o
$(MODULE)-objs += zfs_byteswap.o
$(MODULE)-objs += zfs_ctldir.o
$(MODULE)-objs += zfs_debug.o
$(MODULE)-objs += zfs_dir.o
$(MODULE)-objs += zfs_fm.o
$(MODULE)-objs += zfs_fuid.o
$(MODULE)-objs += zfs_ioctl.o
$(MODULE)-objs += zfs_log.o
$(MODULE)-objs += zfs_onexit.o
$(MODULE)-objs += zfs_replay.o
$(MODULE)-objs += zfs_rlock.o
$(MODULE)-objs += zfs_sa.o
$(MODULE)-objs += zfs_vfsops.o
$(MODULE)-objs += zfs_vnops.o
$(MODULE)-objs += zfs_znode.o
$(MODULE)-objs += zil.o
$(MODULE)-objs += zio.o
$(MODULE)-objs += zio_checksum.o
$(MODULE)-objs += zio_compress.o
$(MODULE)-objs += zio_inject.o
$(MODULE)-objs += zle.o
$(MODULE)-objs += zpl_ctldir.o
$(MODULE)-objs += zpl_export.o
$(MODULE)-objs += zpl_file.o
$(MODULE)-objs += zpl_inode.o
$(MODULE)-objs += zpl_super.o
$(MODULE)-objs += zpl_xattr.o
$(MODULE)-objs += zrlock.o
$(MODULE)-objs += zvol.o
$(MODULE)-objs += dsl_destroy.o
$(MODULE)-objs += dsl_userhold.o

View File

@ -1,7 +1,10 @@
src = @abs_top_srcdir@/module/zpios
obj = @abs_builddir@
MODULE := zpios
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
obj-$(CONFIG_ZFS) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/zpios/pios.o
$(MODULE)-objs += pios.o

View File

@ -1,7 +1,7 @@
udevrule_DATA = \
$(top_srcdir)/udev/rules.d/69-vdev.rules \
$(top_srcdir)/udev/rules.d/60-zvol.rules \
$(top_srcdir)/udev/rules.d/90-zfs.rules
69-vdev.rules \
60-zvol.rules \
90-zfs.rules
EXTRA_DIST = \
$(top_srcdir)/udev/rules.d/69-vdev.rules.in \
@ -14,7 +14,7 @@ $(udevrule_DATA):
-e 's,@udevdir\@,$(udevdir),g' \
-e 's,@udevruledir\@,$(udevruledir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
'$@.in' >'$@'
"$(top_srcdir)/udev/rules.d/$@.in" > '$@'
distclean-local::
-$(RM) $(udevrule_DATA)