-@BUILD_GMNAL_TRUE@subdir-m += gmnal
-@BUILD_OPENIBNAL_TRUE@subdir-m += openibnal
-@BUILD_IIBNAL_TRUE@subdir-m += iibnal
-@BUILD_QSWNAL_TRUE@subdir-m += qswnal
-subdir-m += socknal
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+
+@BUILD_GNILND_TRUE@obj-m += gnilnd/
+@BUILT_IN_KO2IBLND_TRUE@obj-m += in-kernel-o2iblnd/
+ifneq ($(BUILD_EXT_O2IB),)
+@EXTERNAL_KO2IBLND_TRUE@obj-m += o2iblnd/
+endif
+@BUILD_KFILND_TRUE@obj-m += kfilnd/
+obj-m += socklnd/
@INCLUDE_RULES@