1 # SPDX-License-Identifier: GPL-2.0
4 # This file is part of Lustre, http://www.lustre.org/
8 # Rules file for the kernel-related autoconf tests.
16 @if test -d $(DESTDIR)$(kextdir) ; then \
17 echo chown -R root:wheel $(DESTDIR)$(kextdir) ; \
18 chown -R root:wheel $(DESTDIR)$(kextdir) || \
19 echo >&2 "*** WARNING: Could not fix kext ownership for $(DESTDIR)$(kextdir)" ; \
24 include @LINUX_CONFIG@
26 EXTRA_CFLAGS := $(EXTRA_PRE_CFLAGS)
27 EXTRA_CFLAGS += @EXTRA_KCFLAGS@ @CFLAGS@
28 EXTRA_CFLAGS += $(EXTRA_POST_CFLAGS)
30 KBUILD_EXTRA_SYMBOLS += @EXTRA_SYMBOLS@
32 obj-m += $(patsubst %,%.o,$(MODULES))