summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 11:22:58 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 13:41:27 -0700
commitc9c0d073da561bcbefbdf09c87fc75b227415619 (patch)
tree7daee55ae61526107f421de48171573fa5a15d28 /lib
parent40b84e7aec6392187722e61e5a4a853b530bf60f (diff)
Add build system
Add autoconf style build infrastructure to the ZFS tree. This includes autogen.sh, configure.ac, m4 macros, some scripts/*, and makefiles for all the core ZFS components.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am1
-rw-r--r--lib/libavl/Makefile.am14
-rw-r--r--lib/libefi/Makefile.am14
-rw-r--r--lib/libnvpair/Makefile.am19
-rw-r--r--lib/libunicode/Makefile.am15
-rw-r--r--lib/libuutil/Makefile.am27
-rw-r--r--lib/libzfs/Makefile.am39
-rw-r--r--lib/libzpool/Makefile.am168
-rw-r--r--lib/libzpool/include/Makefile.am1
9 files changed, 298 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
new file mode 100644
index 000000000..2de022787
--- /dev/null
+++ b/lib/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = libavl libefi libnvpair libunicode libuutil libzfs libzpool
diff --git a/lib/libavl/Makefile.am b/lib/libavl/Makefile.am
new file mode 100644
index 000000000..50185e281
--- /dev/null
+++ b/lib/libavl/Makefile.am
@@ -0,0 +1,14 @@
+include $(top_srcdir)/config/Rules.am
+
+AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
+
+DEFAULT_INCLUDES += \
+ -I${top_srcdir}/module/avl/include \
+ -I${top_srcdir}/lib/libspl/include
+
+lib_LTLIBRARIES = libavl.la
+
+libavl_la_SOURCES = \
+ ${top_srcdir}/module/avl/avl.c \
+ ${top_srcdir}/module/avl/include/sys/avl.h \
+ ${top_srcdir}/module/avl/include/sys/avl_impl.h
diff --git a/lib/libefi/Makefile.am b/lib/libefi/Makefile.am
new file mode 100644
index 000000000..431179340
--- /dev/null
+++ b/lib/libefi/Makefile.am
@@ -0,0 +1,14 @@
+include $(top_srcdir)/config/Rules.am
+
+AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
+
+DEFAULT_INCLUDES += \
+ -I${top_srcdir}/lib/libefi/include \
+ -I${top_srcdir}/lib/libspl/include
+
+lib_LTLIBRARIES = libefi.la
+
+libefi_la_SOURCES = \
+ ${top_srcdir}/lib/libefi/rdwr_efi.c \
+ ${top_srcdir}/lib/libefi/include/sys/efi_partition.h \
+ ${top_srcdir}/lib/libefi/include/sys/uuid.h
diff --git a/lib/libnvpair/Makefile.am b/lib/libnvpair/Makefile.am
new file mode 100644
index 000000000..9cac22c53
--- /dev/null
+++ b/lib/libnvpair/Makefile.am
@@ -0,0 +1,19 @@
+include $(top_srcdir)/config/Rules.am
+
+AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
+
+DEFAULT_INCLUDES += \
+ -I${top_srcdir}/module/nvpair/include \
+ -I${top_srcdir}/lib/libnvpair/include \
+ -I${top_srcdir}/lib/libspl/include
+
+lib_LTLIBRARIES = libnvpair.la
+
+libnvpair_la_SOURCES = \
+ ${top_srcdir}/lib/libnvpair/libnvpair.c \
+ ${top_srcdir}/lib/libnvpair/nvpair_alloc_system.c \
+ ${top_srcdir}/lib/libnvpair/include/libnvpair.h \
+ ${top_srcdir}/module/nvpair/nvpair_alloc_fixed.c \
+ ${top_srcdir}/module/nvpair/nvpair.c \
+ ${top_srcdir}/module/nvpair/include/sys/nvpair.h \
+ ${top_srcdir}/module/nvpair/include/sys/nvpair_impl.h
diff --git a/lib/libunicode/Makefile.am b/lib/libunicode/Makefile.am
new file mode 100644
index 000000000..9d5785595
--- /dev/null
+++ b/lib/libunicode/Makefile.am
@@ -0,0 +1,15 @@
+include $(top_srcdir)/config/Rules.am
+
+AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
+
+DEFAULT_INCLUDES += \
+ -I${top_srcdir}/module/unicode/include \
+ -I${top_srcdir}/lib/libspl/include
+
+lib_LTLIBRARIES = libunicode.la
+
+libunicode_la_SOURCES = \
+ ${top_srcdir}/module/unicode/u8_textprep.c \
+ ${top_srcdir}/module/unicode/uconv.c \
+ ${top_srcdir}/module/unicode/include/sys/u8_textprep.h \
+ ${top_srcdir}/module/unicode/include/sys/u8_textprep_data.h
diff --git a/lib/libuutil/Makefile.am b/lib/libuutil/Makefile.am
new file mode 100644
index 000000000..6edca7313
--- /dev/null
+++ b/lib/libuutil/Makefile.am
@@ -0,0 +1,27 @@
+include $(top_srcdir)/config/Rules.am
+
+AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
+
+DEFAULT_INCLUDES += \
+ -I${top_srcdir}/lib/libuutil/include \
+ -I${top_srcdir}/lib/libspl/include \
+ -I${top_srcdir}/module/avl/include
+
+lib_LTLIBRARIES = libuutil.la
+
+libuutil_la_LIBADD = ${top_srcdir}/lib/libavl/libavl.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 \
+ ${top_srcdir}/lib/libuutil/include/libuutil.h \
+ ${top_srcdir}/lib/libuutil/include/libuutil_common.h \
+ ${top_srcdir}/lib/libuutil/include/libuutil_impl.h
diff --git a/lib/libzfs/Makefile.am b/lib/libzfs/Makefile.am
new file mode 100644
index 000000000..071362a86
--- /dev/null
+++ b/lib/libzfs/Makefile.am
@@ -0,0 +1,39 @@
+include $(top_srcdir)/config/Rules.am
+
+DEFAULT_INCLUDES += \
+ -I${top_srcdir}/lib/libzfs/include \
+ -I${top_srcdir}/lib/libzpool/include \
+ -I${top_srcdir}/lib/libspl/include \
+ -I${top_srcdir}/lib/libnvpair/include \
+ -I${top_srcdir}/lib/libuutil/include \
+ -I${top_srcdir}/lib/libefi/include \
+ -I${top_srcdir}/module/zfs \
+ -I${top_srcdir}/module/zfs/include \
+ -I${top_srcdir}/module/zcommon/include \
+ -I${top_srcdir}/module/nvpair/include \
+ -I${top_srcdir}/module/avl/include \
+ -I${top_srcdir}/module/unicode/include
+
+lib_LTLIBRARIES = libzfs.la
+
+libzfs_la_LDFLAGS = -lm
+
+libzfs_la_LIBADD = \
+ ${top_srcdir}/lib/libefi/libefi.la \
+ ${top_srcdir}/lib/libuutil/libuutil.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_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 \
+ ${top_srcdir}/lib/libzfs/include/libzfs.h \
+ ${top_srcdir}/lib/libzfs/include/libzfs_impl.h
diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am
new file mode 100644
index 000000000..4e2f31f75
--- /dev/null
+++ b/lib/libzpool/Makefile.am
@@ -0,0 +1,168 @@
+include $(top_srcdir)/config/Rules.am
+
+AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN)
+
+SUBDIRS = include
+DEFAULT_INCLUDES += \
+ -I${top_srcdir}/lib/libzpool/include \
+ -I${top_srcdir}/lib/libspl/include \
+ -I${top_srcdir}/lib/libnvpair/include \
+ -I${top_srcdir}/module/zcommon/include \
+ -I${top_srcdir}/module/nvpair/include \
+ -I${top_srcdir}/module/avl/include \
+ -I${top_srcdir}/module/unicode/include \
+ -I${top_srcdir}/module/zfs/include
+
+lib_LTLIBRARIES = libzpool.la
+
+libzpool_la_LIBADD = \
+ ${top_srcdir}/lib/libunicode/libunicode.la \
+ ${top_srcdir}/lib/libavl/libavl.la \
+ ${top_srcdir}/lib/libspl/libspl.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/zpool_prop.c \
+ ${top_srcdir}/module/zcommon/zprop_common.c \
+ ${top_srcdir}/module/zcommon/include/sys/fs \
+ ${top_srcdir}/module/zcommon/include/sys/fs/zfs.h \
+ ${top_srcdir}/module/zcommon/include/zfs_comutil.h \
+ ${top_srcdir}/module/zcommon/include/zfs_deleg.h \
+ ${top_srcdir}/module/zcommon/include/zfs_fletcher.h \
+ ${top_srcdir}/module/zcommon/include/zfs_namecheck.h \
+ ${top_srcdir}/module/zcommon/include/zfs_prop.h \
+ ${top_srcdir}/module/zfs/arc.c \
+ ${top_srcdir}/module/zfs/bplist.c \
+ ${top_srcdir}/module/zfs/bpobj.c \
+ ${top_srcdir}/module/zfs/dbuf.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_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/fm.c \
+ ${top_srcdir}/module/zfs/gzip.c \
+ ${top_srcdir}/module/zfs/lzjb.c \
+ ${top_srcdir}/module/zfs/metaslab.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/space_map.c \
+ ${top_srcdir}/module/zfs/txg.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/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_onexit.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 \
+ ${top_srcdir}/module/zfs/include/sys/arc.h \
+ ${top_srcdir}/module/zfs/include/sys/bplist.h \
+ ${top_srcdir}/module/zfs/include/sys/dbuf.h \
+ ${top_srcdir}/module/zfs/include/sys/dmu.h \
+ ${top_srcdir}/module/zfs/include/sys/dmu_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/dmu_objset.h \
+ ${top_srcdir}/module/zfs/include/sys/dmu_traverse.h \
+ ${top_srcdir}/module/zfs/include/sys/dmu_tx.h \
+ ${top_srcdir}/module/zfs/include/sys/dmu_zfetch.h \
+ ${top_srcdir}/module/zfs/include/sys/dnode.h \
+ ${top_srcdir}/module/zfs/include/sys/dsl_dataset.h \
+ ${top_srcdir}/module/zfs/include/sys/dsl_deleg.h \
+ ${top_srcdir}/module/zfs/include/sys/dsl_dir.h \
+ ${top_srcdir}/module/zfs/include/sys/dsl_pool.h \
+ ${top_srcdir}/module/zfs/include/sys/dsl_prop.h \
+ ${top_srcdir}/module/zfs/include/sys/dsl_synctask.h \
+ ${top_srcdir}/module/zfs/include/sys/metaslab.h \
+ ${top_srcdir}/module/zfs/include/sys/metaslab_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/refcount.h \
+ ${top_srcdir}/module/zfs/include/sys/rrwlock.h \
+ ${top_srcdir}/module/zfs/include/sys/spa_boot.h \
+ ${top_srcdir}/module/zfs/include/sys/space_map.h \
+ ${top_srcdir}/module/zfs/include/sys/spa.h \
+ ${top_srcdir}/module/zfs/include/sys/spa_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/txg.h \
+ ${top_srcdir}/module/zfs/include/sys/txg_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/uberblock.h \
+ ${top_srcdir}/module/zfs/include/sys/uberblock_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/unique.h \
+ ${top_srcdir}/module/zfs/include/sys/vdev_file.h \
+ ${top_srcdir}/module/zfs/include/sys/vdev.h \
+ ${top_srcdir}/module/zfs/include/sys/vdev_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/zap.h \
+ ${top_srcdir}/module/zfs/include/sys/zap_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/zap_leaf.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_acl.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_context.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_ctldir.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_debug.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_dir.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_fuid.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_ioctl.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_onexit.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_rlock.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_stat.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_vfsops.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_znode.h \
+ ${top_srcdir}/module/zfs/include/sys/zfs_zrlock.h \
+ ${top_srcdir}/module/zfs/include/sys/zil.h \
+ ${top_srcdir}/module/zfs/include/sys/zil_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/zio_checksum.h \
+ ${top_srcdir}/module/zfs/include/sys/zio_compress.h \
+ ${top_srcdir}/module/zfs/include/sys/zio.h \
+ ${top_srcdir}/module/zfs/include/sys/zio_impl.h \
+ ${top_srcdir}/module/zfs/include/sys/zvol.h \
+ ${top_srcdir}/module/zfs/include/sys/fm/protocol.h \
+ ${top_srcdir}/module/zfs/include/sys/fm/util.h \
+ ${top_srcdir}/module/zfs/include/sys/fm/fs/zfs.h
+
+libzpool_la_LDFLAGS = -pthread
diff --git a/lib/libzpool/include/Makefile.am b/lib/libzpool/include/Makefile.am
new file mode 100644
index 000000000..2d7d45358
--- /dev/null
+++ b/lib/libzpool/include/Makefile.am
@@ -0,0 +1 @@
+nobase_pkginclude_HEADERS = sys/*.h