openwrt: honour gcc extra configuration flags
[openwrt.git] / package / rt2x00 / src / Makefile
index dd32cf6..97a8831 100644 (file)
@@ -46,11 +46,11 @@ rt2x00lib-objs := rt2x00dev.o rt2x00mac.o
 ifeq ($(CONFIG_RT2X00),y)
        obj-m += rt2x00lib.o
 
-ifneq ($(CONFIG_PCI),)
+ifeq ($(CONFIG_RT2X00PCI),y)
        obj-m += rt2x00pci.o
 endif
 
-ifneq ($(CONFIG_USB),)
+ifeq ($(CONFIG_RT2X00USB),y)
        obj-m += rt2x00usb.o
 endif
 
@@ -97,6 +97,7 @@ endif
 endif
 
 MAKEFLAGS += --no-print-directory
+CFLAGS := -include $(SUBDIRS)/rt2x00_compat.h $(CFLAGS)
 
 all: default
 
This page took 0.025161 seconds and 4 git commands to generate.