diff options
Diffstat (limited to 'drivers/staging/wlags49_h2')
-rw-r--r-- | drivers/staging/wlags49_h2/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/wlags49_h2/Makefile b/drivers/staging/wlags49_h2/Makefile index 25d0a8a9ce3..e604ebd5aeb 100644 --- a/drivers/staging/wlags49_h2/Makefile +++ b/drivers/staging/wlags49_h2/Makefile | |||
@@ -12,8 +12,8 @@ | |||
12 | # If you want to build AP support (untested), comment out -DSTA_ONLY | 12 | # If you want to build AP support (untested), comment out -DSTA_ONLY |
13 | 13 | ||
14 | INSTALLDIR := /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless | 14 | INSTALLDIR := /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless |
15 | EXTRA_CFLAGS += -I$(KERNELDIR)/include | 15 | ccflags-y := -I$(KERNELDIR)/include |
16 | EXTRA_CFLAGS += -I$(src) \ | 16 | ccflags-y += -I$(src) \ |
17 | -DBUS_PCMCIA \ | 17 | -DBUS_PCMCIA \ |
18 | -DUSE_WPA \ | 18 | -DUSE_WPA \ |
19 | -DUSE_WEXT \ | 19 | -DUSE_WEXT \ |
@@ -25,16 +25,16 @@ EXTRA_CFLAGS += -I$(src) \ | |||
25 | # -DUSE_UIL \ | 25 | # -DUSE_UIL \ |
26 | # -DUSE_PROFILE \ | 26 | # -DUSE_PROFILE \ |
27 | 27 | ||
28 | ifeq ($(findstring HERMES25,$(EXTRA_CFLAGS)),) | 28 | ifeq ($(findstring HERMES25,$(ccflags-y)),) |
29 | WLNAME := wlags49_h2_cs | 29 | WLNAME := wlags49_h2_cs |
30 | $(WLNAME)-y := sta_h2.o | 30 | $(WLNAME)-y := sta_h2.o |
31 | ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),) | 31 | ifeq ($(findstring STA_ONLY,$(ccflags-y)),) |
32 | $(WLNAME)-y += ap_h2.o | 32 | $(WLNAME)-y += ap_h2.o |
33 | endif | 33 | endif |
34 | else | 34 | else |
35 | WLNAME=wlags49_h25_cs | 35 | WLNAME=wlags49_h25_cs |
36 | $(WLNAME)-y := sta_h25.o | 36 | $(WLNAME)-y := sta_h25.o |
37 | ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),) | 37 | ifeq ($(findstring STA_ONLY,$(ccflags-y)),) |
38 | $(WLNAME)-y += ap_h25.o | 38 | $(WLNAME)-y += ap_h25.o |
39 | endif | 39 | endif |
40 | endif | 40 | endif |