obj-$(CONFIG_CFG80211) += cfg80211.o

cfg80211-y += core.o sysfs.o
cfg80211-$(CONFIG_NL80211) += nl80211.o
cfg80211-$(CONFIG_CFG80211_WEXT_COMPAT) += wext-compat.o

ifeq ($(CONFIG_CFG80211),m)
obj-$(CONFIG_CFG80211_WEXT_COMPAT) += wext-export.o
cfg80211-$(CONFIG_CFG80211_WEXT_COMPAT) += wext-mod.o
# we need something to tell us what's up...
# but we can't use #ifdef MODULE because we also need to
# know in the part that is built in (namely wext-common.c)
CFLAGS += -DCFG80211_MODULE
endif

obj-$(CONFIG_WIRELESS_EXT) += wext-common.o wext-old.o
obj-$(CONFIG_CFG80211_WEXT_COMPAT) += wext-common.o
