# SPDX-License-Identifier: GPL-2.0

#
# This file is part of Lustre, http://www.lustre.org/
#
# Makefile.in
#
# Template to generate top-level Makefile
#

this-makefile := $(lastword $(MAKEFILE_LIST))
lsrctree := $(realpath $(dir $(this-makefile)))

ifneq (ldiskfs,)
obj-m += ldiskfs/
endif
obj-m += libcfs/ lnet/
obj-m += lustre/

subdir-ccflags-y := -include $(lsrctree)/undef.h
subdir-ccflags-y += -include $(lsrctree)/config.h
subdir-ccflags-y += -I$(lsrctree)/libcfs/include
subdir-ccflags-y += -I$(lsrctree)/libcfs/include/libcfs
subdir-ccflags-y += -I$(lsrctree)/lnet/include/uapi
subdir-ccflags-y += -I$(lsrctree)/lnet/include
subdir-ccflags-y += -I$(lsrctree)/lustre/include/uapi
subdir-ccflags-y += -I$(lsrctree)/lustre/include
subdir-ccflags-y += -I$(lsrctree)/include
subdir-ccflags-y += $(call cc-option, -Wno-format-truncation)
subdir-ccflags-y += $(call cc-option, -Wno-stringop-truncation)
subdir-ccflags-y += $(call cc-option, -Wno-stringop-overflow)

include /home/green/git/lustre-release/Rules
