-@BUILD_MXLND_TRUE@subdir-m += mxlnd
-@BUILD_RALND_TRUE@subdir-m += ralnd
-@BUILD_O2IBLND_TRUE@subdir-m += o2iblnd
-@BUILD_OPENIBLND_TRUE@subdir-m += openiblnd
-@BUILD_CIBLND_TRUE@subdir-m += ciblnd
-@BUILD_IIBLND_TRUE@subdir-m += iiblnd
-@BUILD_VIBLND_TRUE@subdir-m += viblnd
-@BUILD_QSWLND_TRUE@subdir-m += qswlnd
-@BUILD_PTLLND_TRUE@subdir-m += ptllnd
-subdir-m += socklnd
+@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@