1include $(top_srcdir)/config/Rules.am 2 3VPATH = \ 4 $(top_srcdir)/module/nvpair \ 5 $(top_srcdir)/lib/libnvpair 6 7# Includes kernel code, generate warnings for large stack frames 8# and required CFLAGS for libtirpc 9AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS) 10AM_CFLAGS += -fvisibility=hidden 11 12lib_LTLIBRARIES = libnvpair.la 13 14include $(top_srcdir)/config/Abigail.am 15 16USER_C = \ 17 libnvpair.c \ 18 libnvpair_json.c \ 19 nvpair_alloc_system.c 20 21KERNEL_C = \ 22 nvpair_alloc_fixed.c \ 23 nvpair.c \ 24 fnvpair.c 25 26dist_libnvpair_la_SOURCES = \ 27 $(USER_C) 28 29nodist_libnvpair_la_SOURCES = \ 30 $(KERNEL_C) 31 32libnvpair_la_LIBADD = \ 33 $(abs_top_builddir)/lib/libspl/libspl_assert.la 34 35libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL) 36 37libnvpair_la_LDFLAGS = 38 39if !ASAN_ENABLED 40libnvpair_la_LDFLAGS += -Wl,-z,defs 41endif 42 43libnvpair_la_LDFLAGS += -version-info 3:0:0 44 45include $(top_srcdir)/config/CppCheck.am 46 47# Library ABI 48EXTRA_DIST = libnvpair.abi libnvpair.suppr 49