aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs_core/Makefile.am
blob: d1c6fb86d186626ebc2792161236790239c606e7 (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
libzfs_core_la_CFLAGS  = $(AM_CFLAGS) $(LIBRARY_CFLAGS)
libzfs_core_la_CFLAGS += -fvisibility=hidden

lib_LTLIBRARIES += libzfs_core.la
CPPCHECKTARGETS += libzfs_core.la

libzfs_core_la_SOURCES = \
	%D%/libzfs_core.c

if BUILD_LINUX
libzfs_core_la_SOURCES += \
	%D%/os/linux/libzfs_core_ioctl.c
endif

libzfs_core_la_CPPFLAGS  = $(AM_CPPFLAGS)
if BUILD_FREEBSD
libzfs_core_la_CPPFLAGS += -Iinclude/os/freebsd/zfs

libzfs_core_la_SOURCES += \
	%D%/os/freebsd/libzfs_core_ioctl.c

nodist_libzfs_core_la_SOURCES = \
	module/os/freebsd/zfs/zfs_ioctl_compat.c
endif

libzfs_core_la_LIBADD = \
	libnvpair.la \
	libspl.la

libzfs_core_la_LIBADD += $(LTLIBINTL)

libzfs_core_la_LDFLAGS = -pthread

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

if BUILD_FREEBSD
libzfs_core_la_LIBADD += -lutil -lgeom
endif

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

pkgconfig_DATA += %D%/libzfs_core.pc

dist_noinst_DATA += %D%/libzfs_core.abi %D%/libzfs_core.suppr