############################################################# # # hostap-utils # ############################################################# # Copyright (C) 2001-2003 by Erik Andersen # Copyright (C) 2002 by Tim Riker # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA HOSTAP_UTILS_VERSION=0.4.7 HOSTAP_UTILS_SOURCE:=hostap-utils-$(HOSTAP_UTILS_VERSION).tar.gz HOSTAP_UTILS_DIR:=$(BUILD_DIR)/hostap-utils-$(HOSTAP_UTILS_VERSION) HOSTAP_UTILS_CAT:=zcat $(DL_DIR)/$(HOSTAP_UTILS_SOURCE): $(WGET) -P $(DL_DIR) $(HOSTAP_SITE)/$(HOSTAP_UTILS_SOURCE) hostap-utils-source: $(DL_DIR)/$(HOSTAP_UTILS_SOURCE) $(HOSTAP_UTILS_DIR)/.unpacked: $(DL_DIR)/$(HOSTAP_UTILS_SOURCE) $(HOSTAP_UTILS_CAT) $(DL_DIR)/$(HOSTAP_UTILS_SOURCE) | \ tar $(TAR_VERBOSE) -C $(BUILD_DIR) -xf - touch $(HOSTAP_UTILS_DIR)/.unpacked $(HOSTAP_UTILS_DIR)/.patched: $(HOSTAP_UTILS_DIR)/.unpacked touch $(HOSTAP_UTILS_DIR)/.patched $(HOSTAP_UTILS_DIR)/hostap_crypt_conf: $(HOSTAP_UTILS_DIR)/.patched $(MAKE) CC="$(TARGET_CC)" -C $(HOSTAP_UTILS_DIR) CFLAGS="$(TARGET_CFLAGS)" $(HOSTAP_PKG_DIR)/usr/sbin/hostap_crypt_conf: $(HOSTAP_UTILS_DIR)/hostap_crypt_conf mkdir -p $(HOSTAP_PKG_DIR)/usr/sbin cp -a $(HOSTAP_UTILS_DIR)/hostap_crypt_conf $(HOSTAP_PKG_DIR)/usr/sbin/. cp -a $(HOSTAP_UTILS_DIR)/hostap_diag $(HOSTAP_PKG_DIR)/usr/sbin/. cp -a $(HOSTAP_UTILS_DIR)/hostap_fw_load $(HOSTAP_PKG_DIR)/usr/sbin/. cp -a $(HOSTAP_UTILS_DIR)/hostap_io_debug $(HOSTAP_PKG_DIR)/usr/sbin/. cp -a $(HOSTAP_UTILS_DIR)/hostap_rid $(HOSTAP_PKG_DIR)/usr/sbin/. cp -a $(HOSTAP_UTILS_DIR)/prism2_param $(HOSTAP_PKG_DIR)/usr/sbin/. cp -a $(HOSTAP_UTILS_DIR)/prism2_srec $(HOSTAP_PKG_DIR)/usr/sbin/. cp -a $(HOSTAP_UTILS_DIR)/split_combined_hex $(HOSTAP_PKG_DIR)/usr/sbin/. -$(SSTRIP) $(HOSTAP_PKG_DIR)/usr/sbin/* hostap-utils: $(HOSTAP_PKG_DIR)/usr/sbin/hostap_crypt_conf hostap-utils-clean: -$(RM) -r $(HOSTAP_PKG_DIR)/* -$(MAKE) CC="$(TARGET_CC)" -C $(HOSTAP_UTILS_DIR) clean -$(RM) $(HOSTAP_UTILS_DIR)/.configured $(HOSTAP_UTILS_DIR)/config.out hostap-utils-dirclean: -$(RM) -r $(HOSTAP_UTILS_DIR)