--- /dev/null 2007-08-25 21:26:15.000000000 -0400 +++ madwifi-old-openhal-jiri-r1/Makefile 2007-09-08 15:06:18.000000000 -0400 @@ -0,0 +1,12 @@ +KDIR=/lib/modules/$(shell uname -r)/build +KBUILD=$(MAKE) -C $(KDIR) M=$(PWD) + +obj-y += openhal/ ath/ + +all: + $(KBUILD) modules + +clean: + $(KBUILD) clean + +.PHONY: all clean --- /dev/null 2007-08-25 21:26:15.000000000 -0400 +++ madwifi-old-openhal-jiri-r1/ath/Makefile 2007-09-08 15:06:18.000000000 -0400 @@ -0,0 +1,21 @@ +# +# Copyright (c) 2007 Jiri Slaby +# All rights reserved. +# +# This software may be distributed under the terms of the +# GNU General Public License ("GPL") version 2 as published by the Free +# Software Foundation. + +ifeq ($(strip $(BUS)),AHB) +EXTRA_CFLAGS += -DATH_AHB +bus=ath +else +EXTRA_CFLAGS += -DATH_PCI +bus=pci +endif + +obj-m += ath_$(bus).o +ath_ahb-objs := if_ath.o if_ath_ahb.o radar.o +ath_pci-objs := if_ath.o if_ath_pci.o radar.o + +EXTRA_CFLAGS += -I../openhal/ --- /dev/null 2007-08-25 21:26:15.000000000 -0400 +++ madwifi-old-openhal-jiri-r1/openhal/Makefile 2007-09-08 15:06:18.000000000 -0400 @@ -0,0 +1,2 @@ +obj-m += ath_hal.o +ath_hal-objs := ah_osdep.o ath5k_hw.o ieee80211_regdomain.o