aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libnvpair/Makefile.am
blob: 7b9ebebe79063de0f9265dcce94460a45a04b90d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
include $(top_srcdir)/config/Rules.am

VPATH = \
	$(top_srcdir)/module/nvpair \
	$(top_srcdir)/lib/libnvpair

# Includes kernel code, generate warnings for large stack frames
# and required CFLAGS for libtirpc
AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS)
AM_CFLAGS += -fvisibility=hidden

lib_LTLIBRARIES = libnvpair.la

include $(top_srcdir)/config/Abigail.am

USER_C = \
	libnvpair.c \
	libnvpair_json.c \
	nvpair_alloc_system.c

KERNEL_C = \
	nvpair_alloc_fixed.c \
	nvpair.c \
	fnvpair.c

dist_libnvpair_la_SOURCES = \
	$(USER_C)

nodist_libnvpair_la_SOURCES = \
	$(KERNEL_C)

libnvpair_la_LIBADD = \
	$(abs_top_builddir)/lib/libspl/libspl_assert.la

libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL)

libnvpair_la_LDFLAGS =

if !ASAN_ENABLED
libnvpair_la_LDFLAGS += -Wl,-z,defs
endif

libnvpair_la_LDFLAGS += -version-info 3:0:0

include $(top_srcdir)/config/CppCheck.am

# Library ABI
EXTRA_DIST = libnvpair.abi libnvpair.suppr