mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
d31277abb1
Factor Linux specific pieces out of libspl. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Sean Eric Fagan <sef@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9336
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
#
|
|
# Default build rules for all user space components, every Makefile.am
|
|
# should include these rules and override or extend them as needed.
|
|
#
|
|
|
|
DEFAULT_INCLUDES = \
|
|
-include ${top_builddir}/zfs_config.h \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/module/icp/include \
|
|
-I$(top_srcdir)/lib/libspl/include
|
|
|
|
if BUILD_LINUX
|
|
DEFAULT_INCLUDES += \
|
|
-I$(top_srcdir)/lib/libspl/include/os/linux
|
|
endif
|
|
|
|
AM_LIBTOOLFLAGS = --silent
|
|
|
|
AM_CFLAGS = -std=gnu99 -Wall -Wstrict-prototypes -fno-strict-aliasing
|
|
AM_CFLAGS += $(NO_OMIT_FRAME_POINTER)
|
|
AM_CFLAGS += $(DEBUG_CFLAGS)
|
|
AM_CFLAGS += $(ASAN_CFLAGS)
|
|
AM_CFLAGS += $(CODE_COVERAGE_CFLAGS)
|
|
|
|
AM_CPPFLAGS = -D_GNU_SOURCE
|
|
AM_CPPFLAGS += -D_REENTRANT
|
|
AM_CPPFLAGS += -D_FILE_OFFSET_BITS=64
|
|
AM_CPPFLAGS += -D_LARGEFILE64_SOURCE
|
|
AM_CPPFLAGS += -DHAVE_LARGE_STACKS=1
|
|
AM_CPPFLAGS += -DTEXT_DOMAIN=\"zfs-linux-user\"
|
|
AM_CPPFLAGS += -DLIBEXECDIR=\"$(libexecdir)\"
|
|
AM_CPPFLAGS += -DRUNSTATEDIR=\"$(runstatedir)\"
|
|
AM_CPPFLAGS += -DSBINDIR=\"$(sbindir)\"
|
|
AM_CPPFLAGS += -DSYSCONFDIR=\"$(sysconfdir)\"
|
|
AM_CPPFLAGS += $(DEBUG_CPPFLAGS)
|
|
AM_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
|
|
|
|
AM_LDFLAGS = $(DEBUG_LDFLAGS)
|
|
AM_LDFLAGS += $(ASAN_LDFLAGS)
|