2022-04-07 23:07:08 +00:00
|
|
|
include $(srcdir)/%D%/include/Makefile.am
|
2010-08-26 18:50:56 +00:00
|
|
|
|
2024-04-30 00:37:29 +00:00
|
|
|
libspl_assert_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS) $(LIBUNWIND_CFLAGS)
|
2022-04-07 23:07:08 +00:00
|
|
|
libspl_la_CFLAGS = $(libspl_assert_la_CFLAGS)
|
2010-08-26 18:50:56 +00:00
|
|
|
|
2022-04-07 23:07:08 +00:00
|
|
|
noinst_LTLIBRARIES += libspl_assert.la libspl.la
|
|
|
|
CPPCHECKTARGETS += libspl_assert.la libspl.la
|
2020-07-04 22:24:13 +00:00
|
|
|
|
|
|
|
libspl_assert_la_SOURCES = \
|
2024-05-10 01:26:11 +00:00
|
|
|
%D%/assert.c \
|
|
|
|
%D%/backtrace.c
|
2022-04-07 23:07:08 +00:00
|
|
|
|
|
|
|
libspl_la_SOURCES = \
|
|
|
|
%D%/libspl_impl.h \
|
|
|
|
%D%/atomic.c \
|
|
|
|
%D%/getexecname.c \
|
|
|
|
%D%/list.c \
|
|
|
|
%D%/mkdirp.c \
|
|
|
|
%D%/page.c \
|
|
|
|
%D%/strlcat.c \
|
|
|
|
%D%/strlcpy.c \
|
|
|
|
%D%/timestamp.c \
|
|
|
|
%D%/include/sys/list.h \
|
|
|
|
%D%/include/sys/list_impl.h
|
2014-06-09 21:55:31 +00:00
|
|
|
|
2019-10-02 17:39:48 +00:00
|
|
|
if BUILD_LINUX
|
2022-04-07 23:07:08 +00:00
|
|
|
libspl_la_SOURCES += \
|
|
|
|
%D%/os/linux/getexecname.c \
|
|
|
|
%D%/os/linux/gethostid.c \
|
|
|
|
%D%/os/linux/getmntany.c \
|
|
|
|
%D%/os/linux/zone.c
|
2019-10-02 17:39:48 +00:00
|
|
|
endif
|
|
|
|
|
2020-04-14 18:36:28 +00:00
|
|
|
if BUILD_FREEBSD
|
2022-04-07 23:07:08 +00:00
|
|
|
libspl_la_SOURCES += \
|
|
|
|
%D%/os/freebsd/getexecname.c \
|
|
|
|
%D%/os/freebsd/gethostid.c \
|
|
|
|
%D%/os/freebsd/getmntany.c \
|
|
|
|
%D%/os/freebsd/mnttab.c \
|
|
|
|
%D%/os/freebsd/zone.c
|
2020-04-14 18:36:28 +00:00
|
|
|
endif
|
|
|
|
|
2020-07-04 22:24:13 +00:00
|
|
|
libspl_la_LIBADD = \
|
|
|
|
libspl_assert.la
|
|
|
|
|
2021-04-19 05:13:24 +00:00
|
|
|
libspl_la_LIBADD += $(LIBATOMIC_LIBS) $(LIBCLOCK_GETTIME)
|
2024-04-27 11:35:05 +00:00
|
|
|
|
2024-04-30 00:37:29 +00:00
|
|
|
libspl_assert_la_LIBADD = $(BACKTRACE_LIBS) $(LIBUNWIND_LIBS)
|
2024-05-09 14:43:48 +00:00
|
|
|
|
|
|
|
if BUILD_FREEBSD
|
|
|
|
libspl_assert_la_LIBADD += -lpthread
|
|
|
|
endif
|