# This is the Makefile used by the Linux kernel build system

ifndef NOCHECK
ifndef CONFIG_MODULES
$(error Module support is not enabled)
endif
ifndef CONFIG_NET_RADIO
$(error Wireless extensions are not enabled)
endif
endif

# Compatibility headers
EXTRA_CFLAGS := -I$(M)

tmp-m := hermes.o orinoco.o
tmp-y :=

tmp-$(CONFIG_PPC_PMAC) += airport.o

tmp-$(CONFIG_PCI) += orinoco_nortel.o orinoco_pci.o orinoco_plx.o orinoco_tmd.o

tmp-$(CONFIG_PCMCIA) += orinoco_cs.o

ifdef CONFIG_FW_LOADER
tmp-$(CONFIG_PCMCIA) += spectrum_cs.o
endif

# Force all objects to be modules
obj-m := $(tmp-y) $(tmp-m)
