1 # This is the Makefile used by the Linux kernel build system
5 ifneq ($(VERSION).$(PATCHLEVEL),2.6)
6 $(error Only Linux 2.6.x is supported)
9 ifneq (,$(filter $(SUBLEVEL),0 1 2 3 4 5 6 7 8 9 10 11))
10 $(error This kernel is too old and not supported)
13 ifneq (,$(filter $(SUBLEVEL),12 13))
14 $(warning This kernel is quite old - spectrum_cs will not be compiled)
19 ifneq (,$(filter $(SUBLEVEL),14 15 16 17))
24 $(error Module support is not enabled)
27 ifndef CONFIG_NET_RADIO
28 $(error Wireless extensions are not enabled)
31 ifeq ($(CONFIG_HERMES),y)
32 $(error This driver is already enabled in the kernel)
40 tmp-$(CONFIG_USB) += orinoco_usb.o
43 EXTRA_CFLAGS += -include $(obj)/compat.h -I$(obj)
46 # Force all objects to be modules
47 obj-m := $(tmp-y) $(tmp-m)