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 12# wchar_t is undefined-signedness, but we compare to >=0; this warns with unsigned wchar_t 13libnvpair_json.$(OBJEXT): CFLAGS += -Wno-type-limits 14libnvpair_json.l$(OBJEXT): CFLAGS += -Wno-type-limits 15 16lib_LTLIBRARIES = libnvpair.la 17 18include $(top_srcdir)/config/Abigail.am 19 20USER_C = \ 21 libnvpair.c \ 22 libnvpair_json.c \ 23 nvpair_alloc_system.c 24 25KERNEL_C = \ 26 nvpair_alloc_fixed.c \ 27 nvpair.c \ 28 fnvpair.c 29 30dist_libnvpair_la_SOURCES = \ 31 $(USER_C) 32 33nodist_libnvpair_la_SOURCES = \ 34 $(KERNEL_C) 35 36libnvpair_la_LIBADD = \ 37 $(abs_top_builddir)/lib/libspl/libspl_assert.la 38 39libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL) 40 41libnvpair_la_LDFLAGS = 42 43if !ASAN_ENABLED 44libnvpair_la_LDFLAGS += -Wl,-z,defs 45endif 46 47libnvpair_la_LDFLAGS += -version-info 3:0:0 48 49include $(top_srcdir)/config/CppCheck.am 50 51# Library ABI 52EXTRA_DIST = libnvpair.abi libnvpair.suppr 53