2 # Default build rules for all user space components, every Makefile.am
3 # should include these rules and override or extend them as needed.
6 DEFAULT_INCLUDES = -include ${top_builddir}/zfs_config.h
8 AM_LIBTOOLFLAGS = --silent
10 AM_CFLAGS = -std=gnu99 -Wall -Wstrict-prototypes -fno-strict-aliasing
11 AM_CFLAGS += $(DEBUG_CFLAGS)
12 AM_CFLAGS += $(ASAN_CFLAGS)
13 AM_CFLAGS += $(CODE_COVERAGE_CFLAGS)
15 AM_CPPFLAGS = -D_GNU_SOURCE
16 AM_CPPFLAGS += -D_REENTRANT
17 AM_CPPFLAGS += -D_FILE_OFFSET_BITS=64
18 AM_CPPFLAGS += -D_LARGEFILE64_SOURCE
19 AM_CPPFLAGS += -DHAVE_LARGE_STACKS=1
20 AM_CPPFLAGS += -DTEXT_DOMAIN=\"zfs-linux-user\"
21 AM_CPPFLAGS += -DLIBEXECDIR=\"$(libexecdir)\"
22 AM_CPPFLAGS += -DRUNSTATEDIR=\"$(runstatedir)\"
23 AM_CPPFLAGS += -DSBINDIR=\"$(sbindir)\"
24 AM_CPPFLAGS += -DSYSCONFDIR=\"$(sysconfdir)\"
25 AM_CPPFLAGS += $(DEBUG_CPPFLAGS)
26 AM_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
28 AM_LDFLAGS = $(DEBUG_LDFLAGS)
29 AM_LDFLAGS += $(ASAN_LDFLAGS)