1libzfs_core_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS) 2libzfs_core_la_CFLAGS += -fvisibility=hidden 3 4lib_LTLIBRARIES += libzfs_core.la 5CPPCHECKTARGETS += libzfs_core.la 6 7libzfs_core_la_SOURCES = \ 8 %D%/libzfs_core.c 9 10if BUILD_LINUX 11libzfs_core_la_SOURCES += \ 12 %D%/os/linux/libzfs_core_ioctl.c 13endif 14 15libzfs_core_la_CPPFLAGS = $(AM_CPPFLAGS) 16if BUILD_FREEBSD 17libzfs_core_la_CPPFLAGS += -Iinclude/os/freebsd/zfs 18 19libzfs_core_la_SOURCES += \ 20 %D%/os/freebsd/libzfs_core_ioctl.c 21 22nodist_libzfs_core_la_SOURCES = \ 23 module/os/freebsd/zfs/zfs_ioctl_compat.c 24endif 25 26libzfs_core_la_LIBADD = \ 27 libnvpair.la \ 28 libspl.la 29 30libzfs_core_la_LIBADD += $(LTLIBINTL) 31 32libzfs_core_la_LDFLAGS = -pthread 33 34if !ASAN_ENABLED 35libzfs_core_la_LDFLAGS += -Wl,-z,defs 36endif 37 38if BUILD_FREEBSD 39libzfs_core_la_LIBADD += -lutil -lgeom 40endif 41 42libzfs_core_la_LDFLAGS += -version-info 3:0:0 43 44pkgconfig_DATA += %D%/libzfs_core.pc 45 46dist_noinst_DATA += %D%/libzfs_core.abi %D%/libzfs_core.suppr 47