xref: /freebsd/sys/contrib/openzfs/lib/libnvpair/Makefile.am (revision e3aa18ad71782a73d3dd9dd3d526bbd2b607ca16)
1libnvpair_la_CFLAGS  = $(AM_CFLAGS) $(KERNEL_CFLAGS) $(LIBRARY_CFLAGS)
2libnvpair_la_CFLAGS += $(LIBTIRPC_CFLAGS)
3libnvpair_la_CFLAGS += -fvisibility=hidden
4
5# wchar_t is undefined-signedness, but we compare to >=0; this warns with unsigned wchar_t
6%D%/libnvpair_la-libnvpair_json.$(OBJEXT) : CFLAGS += -Wno-type-limits
7%D%/libnvpair_la-libnvpair_json.l$(OBJEXT): CFLAGS += -Wno-type-limits
8
9lib_LTLIBRARIES += libnvpair.la
10CPPCHECKTARGETS += libnvpair.la
11
12dist_libnvpair_la_SOURCES = \
13	%D%/libnvpair.c \
14	%D%/libnvpair_json.c \
15	%D%/nvpair_alloc_system.c
16
17nodist_libnvpair_la_SOURCES = \
18	module/nvpair/nvpair_alloc_fixed.c \
19	module/nvpair/nvpair.c \
20	module/nvpair/fnvpair.c
21
22libnvpair_la_LIBADD = \
23	libspl_assert.la
24
25libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL)
26
27libnvpair_la_LDFLAGS =
28
29if !ASAN_ENABLED
30libnvpair_la_LDFLAGS += -Wl,-z,defs
31endif
32
33libnvpair_la_LDFLAGS += -version-info 3:0:0
34
35dist_noinst_DATA += %D%/libnvpair.abi %D%/libnvpair.suppr
36