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) 10 11lib_LTLIBRARIES = libnvpair.la 12 13USER_C = \ 14 libnvpair.c \ 15 libnvpair_json.c \ 16 nvpair_alloc_system.c 17 18KERNEL_C = \ 19 nvpair_alloc_fixed.c \ 20 nvpair.c \ 21 fnvpair.c 22 23dist_libnvpair_la_SOURCES = \ 24 $(USER_C) 25 26nodist_libnvpair_la_SOURCES = \ 27 $(KERNEL_C) 28 29libnvpair_la_LIBADD = \ 30 $(abs_top_builddir)/lib/libspl/libspl_assert.la 31 32libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL) 33 34libnvpair_la_LDFLAGS = 35 36if !ASAN_ENABLED 37libnvpair_la_LDFLAGS += -Wl,-z,defs 38endif 39 40if BUILD_FREEBSD 41libnvpair_la_LDFLAGS += -version-info 3:0:0 42else 43libnvpair_la_LDFLAGS += -version-info 1:1:0 44endif 45