zdb: show dedup table and log attributes
[zfs.git] / lib / libspl / Makefile.am
blobf8943572bf29bfa91a5a37b9bbccef7c95b45eac
1 include $(srcdir)/%D%/include/Makefile.am
3 libspl_assert_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS) $(LIBUNWIND_CFLAGS)
4 libspl_la_CFLAGS        = $(libspl_assert_la_CFLAGS)
6 noinst_LTLIBRARIES += libspl_assert.la libspl.la
7 CPPCHECKTARGETS    += libspl_assert.la libspl.la
9 libspl_assert_la_SOURCES = \
10         %D%/assert.c \
11         %D%/backtrace.c
13 libspl_la_SOURCES = \
14         %D%/libspl_impl.h \
15         %D%/atomic.c \
16         %D%/getexecname.c \
17         %D%/list.c \
18         %D%/mkdirp.c \
19         %D%/page.c \
20         %D%/strlcat.c \
21         %D%/strlcpy.c \
22         %D%/timestamp.c \
23         %D%/include/sys/list.h \
24         %D%/include/sys/list_impl.h
26 if BUILD_LINUX
27 libspl_la_SOURCES += \
28         %D%/os/linux/getexecname.c \
29         %D%/os/linux/gethostid.c \
30         %D%/os/linux/getmntany.c \
31         %D%/os/linux/zone.c
32 endif
34 if BUILD_FREEBSD
35 libspl_la_SOURCES += \
36         %D%/os/freebsd/getexecname.c \
37         %D%/os/freebsd/gethostid.c \
38         %D%/os/freebsd/getmntany.c \
39         %D%/os/freebsd/mnttab.c \
40         %D%/os/freebsd/zone.c
41 endif
43 libspl_la_LIBADD = \
44         libspl_assert.la
46 libspl_la_LIBADD += $(LIBATOMIC_LIBS) $(LIBCLOCK_GETTIME)
48 libspl_assert_la_LIBADD = $(BACKTRACE_LIBS) $(LIBUNWIND_LIBS)
50 if BUILD_FREEBSD
51 libspl_assert_la_LIBADD += -lpthread
52 endif