############################################################# # # madwifi-ng # ############################################################# MADWIFI_VER:=0.9.4 MADWIFI_SOURCE_URL:=http://$(SF_DL_HOST)/sourceforge/madwifi MADWIFI_SOURCE:=madwifi-$(MADWIFI_VER).tar.gz MADWIFI_BUILD_DIR:=$(BUILD_DIR)/madwifi-$(MADWIFI_VER) # # download source # $(DL_DIR)/$(MADWIFI_SOURCE): $(WGET) -P $(DL_DIR) $(MADWIFI_SOURCE_URL)/$(MADWIFI_SOURCE) # # unpack source and potentially patch package; use zcat for gz files # $(MADWIFI_BUILD_DIR)/noask: $(DL_DIR)/$(MADWIFI_SOURCE) zcat $(DL_DIR)/$(MADWIFI_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(SED) -i -e 's/sh scripts\/find-mad/echo "r"|sh scripts\/find-mad/g' $(MADWIFI_BUILD_DIR)/Makefile touch $@ $(MADWIFI_BUILD_DIR)/.unpacked: $(MADWIFI_BUILD_DIR)/noask touch $@ # # build package # $(MADWIFI_BUILD_DIR)/ath/ath_pci.ko: $(MADWIFI_BUILD_DIR)/noask $(MAKE) -C $(MADWIFI_BUILD_DIR) \ KERNELPATH=$(LINUX_DIR) \ COPTS="$(TARGET_CONFIGURE_CFLAGS) -DATH_PCI -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1" \ CC=$(TARGET_CC) \ modules # # install package # $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/ath_pci.ko: $(MADWIFI_BUILD_DIR)/ath/ath_pci.ko $(MAKE) -C $(MADWIFI_BUILD_DIR) \ KERNELPATH=$(LINUX_DIR) \ CC=$(TARGET_CC) \ DESTDIR=$(TARGET_DIR) \ KMODPATH=/lib/modules/$(LINUX_VERSION)/kernel/drivers/net \ install-modules madwifi: $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/kernel/drivers/net/ath_pci.ko madwifi-source: $(DL_DIR)/$(MADWIFI_SOURCE) madwifi-clean: -$(MAKE) -C $(MADWIFI_BUILD_DIR) KERNELPATH=$(LINUX_DIR) clean madwifi-dirclean: rm -rf $(MADWIFI_BUILD_DIR)