Fix numerous "FAILED verification" messages on AR5210 and AR5211
[madwifi/.git] / ath_hal / Makefile
1 #
2 # Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 # 1. Redistributions of source code must retain the above copyright
9 #    notice, this list of conditions and the following disclaimer,
10 #    without modification.
11 # 2. Redistributions in binary form must reproduce at minimum a disclaimer
12 #    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13 #    redistribution must be conditioned upon including a substantially
14 #    similar Disclaimer requirement for further binary redistribution.
15 # 3. Neither the names of the above-listed copyright holders nor the names
16 #    of any contributors may be used to endorse or promote products derived
17 #    from this software without specific prior written permission.
18 #
19 # Alternatively, this software may be distributed under the terms of the
20 # GNU General Public License ("GPL") version 2 as published by the Free
21 # Software Foundation.
22 #
23 # NO WARRANTY
24 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 # LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
27 # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
28 # THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
29 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
32 # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
34 # THE POSSIBILITY OF SUCH DAMAGES.
35 #
36 # $Id: //depot/sw/linuxsrc/src/802_11/madwifi/madwifi/ath/Makefile#12 $
37 #
38
39 #
40 # Makefile for the Atheros WLAN driver.
41 #
42
43 obj := $(firstword $(obj) $(SUBDIRS) .)
44 TOP = $(obj)/..
45
46 include $(TOP)/Makefile.inc
47
48 obj-m           += ath_hal.o
49 ath_hal-objs    := \
50         ah.o \
51         ah_eeprom_v1.o \
52         ah_eeprom_v14.o \
53         ah_eeprom_v3.o \
54         ah_os.o \
55         ah_regdomain.o \
56         ar5210/ar5210_attach.o \
57         ar5210/ar5210_beacon.o \
58         ar5210/ar5210_interrupts.o \
59         ar5210/ar5210_keycache.o \
60         ar5210/ar5210_misc.o \
61         ar5210/ar5210_phy.o \
62         ar5210/ar5210_power.o \
63         ar5210/ar5210_recv.o \
64         ar5210/ar5210_reset.o \
65         ar5210/ar5210_xmit.o \
66         ar5211/ar5211_attach.o \
67         ar5211/ar5211_beacon.o \
68         ar5211/ar5211_interrupts.o \
69         ar5211/ar5211_keycache.o \
70         ar5211/ar5211_misc.o \
71         ar5211/ar5211_phy.o \
72         ar5211/ar5211_power.o \
73         ar5211/ar5211_recv.o \
74         ar5211/ar5211_reset.o \
75         ar5211/ar5211_xmit.o \
76         ar5212/ar2316.o \
77         ar5212/ar2317.o \
78         ar5212/ar2413.o \
79         ar5212/ar2425.o \
80         ar5212/ar5111.o \
81         ar5212/ar5112.o \
82         ar5212/ar5212_ani.o \
83         ar5212/ar5212_attach.o \
84         ar5212/ar5212_beacon.o \
85         ar5212/ar5212_eeprom.o \
86         ar5212/ar5212_gpio.o \
87         ar5212/ar5212_interrupts.o \
88         ar5212/ar5212_keycache.o \
89         ar5212/ar5212_misc.o \
90         ar5212/ar5212_phy.o \
91         ar5212/ar5212_power.o \
92         ar5212/ar5212_recv.o \
93         ar5212/ar5212_reset.o \
94         ar5212/ar5212_rfgain.o \
95         ar5212/ar5212_xmit.o \
96         ar5212/ar5413.o \
97         ar5416/ar2133.o \
98         ar5416/ar5416_ani.o \
99         ar5416/ar5416_attach.o \
100         ar5416/ar5416_beacon.o \
101         ar5416/ar5416_cal.o \
102         ar5416/ar5416_cal_adcdc.o \
103         ar5416/ar5416_cal_adcgain.o \
104         ar5416/ar5416_cal_iq.o \
105         ar5416/ar5416_eeprom.o \
106         ar5416/ar5416_gpio.o \
107         ar5416/ar5416_interrupts.o \
108         ar5416/ar5416_keycache.o \
109         ar5416/ar5416_misc.o \
110         ar5416/ar5416_phy.o \
111         ar5416/ar5416_power.o \
112         ar5416/ar5416_recv.o \
113         ar5416/ar5416_reset.o \
114         ar5416/ar5416_xmit.o \
115         ar5416/ar9160_attach.o \
116         ar5416/ar9280.o \
117         ar5416/ar9280_attach.o
118
119 ifeq ($(strip $(BUS)),AHB)
120 ifeq ($(CONFIG_64BIT)),)
121 ath_hal-objs += \
122         ar5312/ar5312_attach.o \
123         ar5312/ar5312_eeprom.o \
124         ar5312/ar5312_gpio.o \
125         ar5312/ar5312_interrupts.o \
126         ar5312/ar5312_misc.o \
127         ar5312/ar5312_power.o \
128         ar5312/ar5312_reset.o \
129         ar5312/ar5315_gpio.o
130 endif
131 endif
132
133 ifdef LINUX24
134 export-objs     := ah_os.o
135 endif
136
137 INCS += -I$(HAL)
138
139 EXTRA_CFLAGS+= $(INCS) $(COPTS)
140
141 -include $(TOPDIR)/Rules.make
142
143 .PHONY: all
144 all:
145         $(MAKE) -C $(KERNELPATH) SUBDIRS=$(shell pwd) modules
146
147 .PHONY: install
148 install:
149         test -d $(DESTDIR)/$(KMODPATH) || mkdir -p $(DESTDIR)/$(KMODPATH)
150         install -m 0644 ath_hal.$(KMODSUF) $(DESTDIR)/$(KMODPATH)
151
152 .PHONY: clean
153 clean:
154         rm -f *~ *.o *.ko *.mod.c .*.cmd
155         rm -f modules.order .depend .version .*.o.flags .*.o.d
156         rm -f ar*/*~ ar*/*.o ar*/.*.cmd
157         rm -rf .tmp_versions
158
159 ath_hal.o: $(addprefix $(obj)/,$(ath_hal-objs))
160         $(LD) $(LDOPTS) -o ath_hal.$(KMODSUF) -r $(ath_hal-objs)
161