1include $(srcdir)/%D%/include/Makefile.am 2 3libspl_assert_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS) $(LIBUNWIND_CFLAGS) 4libspl_la_CFLAGS = $(libspl_assert_la_CFLAGS) 5 6noinst_LTLIBRARIES += libspl_assert.la libspl.la 7CPPCHECKTARGETS += libspl_assert.la libspl.la 8 9libspl_assert_la_SOURCES = \ 10 %D%/assert.c \ 11 %D%/backtrace.c 12 13libspl_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 25 26if BUILD_LINUX 27libspl_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 32endif 33 34if BUILD_FREEBSD 35libspl_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 41endif 42 43libspl_la_LIBADD = \ 44 libspl_assert.la 45 46libspl_la_LIBADD += $(LIBATOMIC_LIBS) $(LIBCLOCK_GETTIME) 47 48libspl_assert_la_LIBADD = $(BACKTRACE_LIBS) $(LIBUNWIND_LIBS) 49 50if BUILD_FREEBSD 51libspl_assert_la_LIBADD += -lpthread 52endif 53