1include $(srcdir)/%D%/include/Makefile.am 2 3libzpool_la_CFLAGS = $(AM_CFLAGS) $(KERNEL_CFLAGS) $(LIBRARY_CFLAGS) 4libzpool_la_CFLAGS += $(ZLIB_CFLAGS) 5 6libzpool_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS) 7libzpool_la_CPPFLAGS += -I$(srcdir)/include/os/@ac_system_l@/zfs 8libzpool_la_CPPFLAGS += -DLIB_ZPOOL_BUILD 9 10lib_LTLIBRARIES += libzpool.la 11CPPCHECKTARGETS += libzpool.la 12 13dist_libzpool_la_SOURCES = \ 14 %D%/abd_os.c \ 15 %D%/arc_os.c \ 16 %D%/kernel.c \ 17 %D%/taskq.c \ 18 %D%/util.c \ 19 %D%/vdev_label_os.c \ 20 %D%/zfs_racct.c \ 21 %D%/zfs_debug.c 22 23nodist_libzpool_la_SOURCES = \ 24 module/lua/lapi.c \ 25 module/lua/lauxlib.c \ 26 module/lua/lbaselib.c \ 27 module/lua/lcode.c \ 28 module/lua/lcompat.c \ 29 module/lua/lcorolib.c \ 30 module/lua/lctype.c \ 31 module/lua/ldebug.c \ 32 module/lua/ldo.c \ 33 module/lua/lfunc.c \ 34 module/lua/lgc.c \ 35 module/lua/llex.c \ 36 module/lua/lmem.c \ 37 module/lua/lobject.c \ 38 module/lua/lopcodes.c \ 39 module/lua/lparser.c \ 40 module/lua/lstate.c \ 41 module/lua/lstring.c \ 42 module/lua/lstrlib.c \ 43 module/lua/ltable.c \ 44 module/lua/ltablib.c \ 45 module/lua/ltm.c \ 46 module/lua/lvm.c \ 47 module/lua/lzio.c \ 48 \ 49 module/os/linux/zfs/vdev_file.c \ 50 module/os/linux/zfs/zio_crypt.c \ 51 \ 52 module/zcommon/cityhash.c \ 53 module/zcommon/simd_stat.c \ 54 module/zcommon/zfeature_common.c \ 55 module/zcommon/zfs_comutil.c \ 56 module/zcommon/zfs_deleg.c \ 57 module/zcommon/zfs_fletcher.c \ 58 module/zcommon/zfs_fletcher_aarch64_neon.c \ 59 module/zcommon/zfs_fletcher_avx512.c \ 60 module/zcommon/zfs_fletcher_intel.c \ 61 module/zcommon/zfs_fletcher_sse.c \ 62 module/zcommon/zfs_fletcher_superscalar.c \ 63 module/zcommon/zfs_fletcher_superscalar4.c \ 64 module/zcommon/zfs_namecheck.c \ 65 module/zcommon/zfs_prop.c \ 66 module/zcommon/zfs_valstr.c \ 67 module/zcommon/zpool_prop.c \ 68 module/zcommon/zprop_common.c \ 69 \ 70 module/zfs/abd.c \ 71 module/zfs/aggsum.c \ 72 module/zfs/arc.c \ 73 module/zfs/blake3_zfs.c \ 74 module/zfs/blkptr.c \ 75 module/zfs/bplist.c \ 76 module/zfs/bpobj.c \ 77 module/zfs/bptree.c \ 78 module/zfs/bqueue.c \ 79 module/zfs/btree.c \ 80 module/zfs/brt.c \ 81 module/zfs/dbuf.c \ 82 module/zfs/dbuf_stats.c \ 83 module/zfs/ddt.c \ 84 module/zfs/ddt_log.c \ 85 module/zfs/ddt_stats.c \ 86 module/zfs/ddt_zap.c \ 87 module/zfs/dmu.c \ 88 module/zfs/dmu_diff.c \ 89 module/zfs/dmu_direct.c \ 90 module/zfs/dmu_object.c \ 91 module/zfs/dmu_objset.c \ 92 module/zfs/dmu_recv.c \ 93 module/zfs/dmu_redact.c \ 94 module/zfs/dmu_send.c \ 95 module/zfs/dmu_traverse.c \ 96 module/zfs/dmu_tx.c \ 97 module/zfs/dmu_zfetch.c \ 98 module/zfs/dnode.c \ 99 module/zfs/dnode_sync.c \ 100 module/zfs/dsl_bookmark.c \ 101 module/zfs/dsl_crypt.c \ 102 module/zfs/dsl_dataset.c \ 103 module/zfs/dsl_deadlist.c \ 104 module/zfs/dsl_deleg.c \ 105 module/zfs/dsl_destroy.c \ 106 module/zfs/dsl_dir.c \ 107 module/zfs/dsl_pool.c \ 108 module/zfs/dsl_prop.c \ 109 module/zfs/dsl_scan.c \ 110 module/zfs/dsl_synctask.c \ 111 module/zfs/dsl_userhold.c \ 112 module/zfs/edonr_zfs.c \ 113 module/zfs/fm.c \ 114 module/zfs/gzip.c \ 115 module/zfs/hkdf.c \ 116 module/zfs/lz4.c \ 117 module/zfs/lz4_zfs.c \ 118 module/zfs/lzjb.c \ 119 module/zfs/metaslab.c \ 120 module/zfs/mmp.c \ 121 module/zfs/multilist.c \ 122 module/zfs/objlist.c \ 123 module/zfs/pathname.c \ 124 module/zfs/range_tree.c \ 125 module/zfs/refcount.c \ 126 module/zfs/rrwlock.c \ 127 module/zfs/sa.c \ 128 module/zfs/sha2_zfs.c \ 129 module/zfs/skein_zfs.c \ 130 module/zfs/spa.c \ 131 module/zfs/spa_checkpoint.c \ 132 module/zfs/spa_config.c \ 133 module/zfs/spa_errlog.c \ 134 module/zfs/spa_history.c \ 135 module/zfs/spa_log_spacemap.c \ 136 module/zfs/spa_misc.c \ 137 module/zfs/spa_stats.c \ 138 module/zfs/space_map.c \ 139 module/zfs/space_reftree.c \ 140 module/zfs/txg.c \ 141 module/zfs/uberblock.c \ 142 module/zfs/unique.c \ 143 module/zfs/vdev.c \ 144 module/zfs/vdev_draid.c \ 145 module/zfs/vdev_draid_rand.c \ 146 module/zfs/vdev_indirect.c \ 147 module/zfs/vdev_indirect_births.c \ 148 module/zfs/vdev_indirect_mapping.c \ 149 module/zfs/vdev_initialize.c \ 150 module/zfs/vdev_label.c \ 151 module/zfs/vdev_mirror.c \ 152 module/zfs/vdev_missing.c \ 153 module/zfs/vdev_queue.c \ 154 module/zfs/vdev_raidz.c \ 155 module/zfs/vdev_raidz_math.c \ 156 module/zfs/vdev_raidz_math_aarch64_neon.c \ 157 module/zfs/vdev_raidz_math_aarch64_neonx2.c \ 158 module/zfs/vdev_raidz_math_avx2.c \ 159 module/zfs/vdev_raidz_math_avx512bw.c \ 160 module/zfs/vdev_raidz_math_avx512f.c \ 161 module/zfs/vdev_raidz_math_powerpc_altivec.c \ 162 module/zfs/vdev_raidz_math_scalar.c \ 163 module/zfs/vdev_raidz_math_sse2.c \ 164 module/zfs/vdev_raidz_math_ssse3.c \ 165 module/zfs/vdev_rebuild.c \ 166 module/zfs/vdev_removal.c \ 167 module/zfs/vdev_root.c \ 168 module/zfs/vdev_trim.c \ 169 module/zfs/zap.c \ 170 module/zfs/zap_leaf.c \ 171 module/zfs/zap_micro.c \ 172 module/zfs/zcp.c \ 173 module/zfs/zcp_get.c \ 174 module/zfs/zcp_global.c \ 175 module/zfs/zcp_iter.c \ 176 module/zfs/zcp_set.c \ 177 module/zfs/zcp_synctask.c \ 178 module/zfs/zfeature.c \ 179 module/zfs/zfs_byteswap.c \ 180 module/zfs/zfs_chksum.c \ 181 module/zfs/zfs_fm.c \ 182 module/zfs/zfs_fuid.c \ 183 module/zfs/zfs_ratelimit.c \ 184 module/zfs/zfs_rlock.c \ 185 module/zfs/zfs_sa.c \ 186 module/zfs/zfs_znode.c \ 187 module/zfs/zil.c \ 188 module/zfs/zio.c \ 189 module/zfs/zio_checksum.c \ 190 module/zfs/zio_compress.c \ 191 module/zfs/zio_inject.c \ 192 module/zfs/zle.c \ 193 module/zfs/zrlock.c \ 194 module/zfs/zthr.c 195 196libzpool_la_LIBADD = \ 197 libicp.la \ 198 libunicode.la \ 199 libnvpair.la \ 200 libzstd.la \ 201 libzutil.la 202 203libzpool_la_LIBADD += $(LIBCLOCK_GETTIME) $(ZLIB_LIBS) -ldl -lm 204 205libzpool_la_LDFLAGS = -pthread 206 207if !ASAN_ENABLED 208libzpool_la_LDFLAGS += -Wl,-z,defs 209endif 210 211if BUILD_FREEBSD 212libzpool_la_LIBADD += -lgeom 213endif 214 215libzpool_la_LDFLAGS += -version-info 6:0:0 216 217if TARGET_CPU_POWERPC 218module/zfs/libzpool_la-vdev_raidz_math_powerpc_altivec.$(OBJEXT) : CFLAGS += -maltivec 219module/zfs/libzpool_la-vdev_raidz_math_powerpc_altivec.l$(OBJEXT): CFLAGS += -maltivec 220endif 221