1include $(top_srcdir)/config/Rules.am 2PHONY = 3 4VPATH = \ 5 $(top_srcdir)/module/nvpair \ 6 $(top_srcdir)/lib/libnvpair 7 8# Includes kernel code, generate warnings for large stack frames 9# and required CFLAGS for libtirpc 10AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS) 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 45# Library ABI 46EXTRA_DIST = libnvpair.abi libnvpair.suppr 47