8f6056eb5eb64e3d44df23ff4c36ea85fc31aef6
[openwrt.git] / package / linux / kernel-source / drivers / net / wl / Makefile
1 #
2 # Makefile for the Broadcom wl driver
3 #
4 # Copyright 2004, Broadcom Corporation
5 # All Rights Reserved.
6 #
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
11 #
12 # $Id$
13 #
14
15 O_TARGET := wl.o
16
17 WL_OBJS := wl_linux.o wlc.o d11ucode.o wlc_phy.o wlc_rate.o wlc_led.o wlc_security.o rc4.o tkhash.o bcmwpa.o
18
19 INSUP_OBJS := aes.o aeskeywrap.o hmac.o md5.o passhash.o prf.o rijndael-alg-fst.o sha1.o
20
21 # Alternate ioctl interfaces
22 ifeq ($(CONFIG_NET_WIRELESS),y)
23 WL_OBJS += wlc_cmn_ioctl.o
24 endif
25 ifeq ($(CONFIG_WL_OID),y)
26 WL_OBJS += wl_oid.o
27 endif
28
29 ifeq ($(CONFIG_WL_STA),y)
30 WL_OBJS += $(INSUP_OBJS)
31 endif
32
33 # Prefix driver variants
34 WL_APOBJS := $(foreach obj,$(WL_OBJS),ap_$(obj))
35 WL_STAOBJS := $(foreach obj,$(WL_OBJS) wlc_sup.o,sta_$(obj))
36 WL_APSTAOBJS := $(foreach obj,$(WL_OBJS) wlc_sup.o,apsta_$(obj))
37 ifneq ($(CONFIG_WL_STA),y)
38 WL_APSTAOBJS += $(foreach obj,$(INSUP_OBJS), apsta_$(obj))
39 endif
40
41 # Either or both
42 ifeq ($(CONFIG_WL_AP),y)
43 AP := AP
44 endif
45 ifeq ($(CONFIG_WL_STA),y)
46 STA := STA
47 endif
48
49 # Build all variants as modules but link only one of them
50 export-objs :=
51 obj-y := $(WL_$(AP)$(STA)OBJS)
52 obj-m := $(O_TARGET)
53 variant-objs := $(WL_APOBJS) $(WL_STAOBJS) $(WL_APSTAOBJS)
54
55 EXTRA_CFLAGS += -DDMA
56
57 include $(TOPDIR)/Rules.make
58
59
This page took 0.059042 seconds and 3 git commands to generate.