]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - cmd/ztest/Makefile.am
Vendor import of openzfs master @ 184df27eef0abdc7ab2105b21257f753834b936b
[FreeBSD/FreeBSD.git] / cmd / ztest / Makefile.am
1 include $(top_srcdir)/config/Rules.am
2
3 # Get rid of compiler warning for unchecked truncating snprintfs on gcc 7.1.1
4 AM_CFLAGS += $(NO_FORMAT_TRUNCATION)
5
6 # Includes kernel code, generate warnings for large stack frames
7 AM_CFLAGS += $(FRAME_LARGER_THAN)
8
9 # Unconditionally enable ASSERTs
10 AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG
11
12 sbin_PROGRAMS = ztest
13
14 ztest_SOURCES = \
15         ztest.c
16
17 ztest_LDADD = \
18         $(abs_top_builddir)/lib/libzpool/libzpool.la \
19         $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
20         $(abs_top_builddir)/lib/libnvpair/libnvpair.la
21
22 ztest_LDADD += -lm
23 ztest_LDFLAGS = -pthread