2 # Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
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.
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.
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.
36 # $Id: //depot/sw/linuxsrc/src/802_11/madwifi/madwifi/ath/Makefile#12 $
40 # Makefile for the Atheros WLAN driver.
43 obj := $(firstword $(obj) $(SUBDIRS) .)
46 include $(TOP)/Makefile.inc
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 \
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 \
72 ar5211/ar5211_power.o \
73 ar5211/ar5211_recv.o \
74 ar5211/ar5211_reset.o \
75 ar5211/ar5211_xmit.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 \
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 \
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 \
117 ar5416/ar9280_attach.o
119 ifeq ($(strip $(BUS)),AHB)
120 ifeq ($(CONFIG_64BIT)),)
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 \
134 export-objs := ah_os.o
139 EXTRA_CFLAGS+= $(INCS) $(COPTS)
141 -include $(TOPDIR)/Rules.make
145 $(MAKE) -C $(KERNELPATH) SUBDIRS=$(shell pwd) modules
149 test -d $(DESTDIR)/$(KMODPATH) || mkdir -p $(DESTDIR)/$(KMODPATH)
150 install -m 0644 ath_hal.$(KMODSUF) $(DESTDIR)/$(KMODPATH)
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
159 ath_hal.o: $(addprefix $(obj)/,$(ath_hal-objs))
160 $(LD) $(LDOPTS) -o ath_hal.$(KMODSUF) -r $(ath_hal-objs)