--- a/src/Makefile +++ b/src/Makefile @@ -2 +2 @@ -obj-$(CONFIG_IWLEGACY) += iwlegacy.o +obj-m += iwlegacy.o @@ -4 +4 @@ -iwlegacy-$(CONFIG_IWLEGACY_DEBUGFS) += debug.o +iwlegacy-m += debug.o @@ -9 +9 @@ -obj-$(CONFIG_IWL4965) += iwl4965.o +obj-m += iwl4965.o @@ -11 +11 @@ -iwl4965-$(CONFIG_IWLEGACY_DEBUGFS) += 4965-debug.o +iwl4965-m += 4965-debug.o @@ -14 +14 @@ -obj-$(CONFIG_IWL3945) += iwl3945.o +obj-m += iwl3945.o @@ -16 +16,5 @@ -iwl3945-$(CONFIG_IWLEGACY_DEBUGFS) += 3945-debug.o +iwl3945-m += 3945-debug.o + +ccflags-y += -DCONFIG_IWL4965 +ccflags-y += -DCONFIG_IWL3945 +ccflags-y += -DCONFIG_IWLEGACY_DEBUGFS