root/floppyfw-3.0/makefiles/hostap-utils.mk

Revision 267, 2.7 KB (checked in by root, 2 years ago)

Some fixes and 3.0.12

Line 
1#############################################################
2#
3# hostap-utils
4#
5#############################################################
6# Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
7# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU Library General Public License as
11# published by the Free Software Foundation; either version 2 of the
12# License, or (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# Library General Public License for more details.
18#
19# You should have received a copy of the GNU Library General Public
20# License along with this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22# USA
23HOSTAP_UTILS_VERSION=0.4.7
24HOSTAP_UTILS_SOURCE:=hostap-utils-$(HOSTAP_UTILS_VERSION).tar.gz
25HOSTAP_UTILS_DIR:=$(BUILD_DIR)/hostap-utils-$(HOSTAP_UTILS_VERSION)
26HOSTAP_UTILS_CAT:=zcat
27
28$(DL_DIR)/$(HOSTAP_UTILS_SOURCE):
29        $(WGET) -P $(DL_DIR) $(HOSTAP_SITE)/$(HOSTAP_UTILS_SOURCE)
30
31hostap-utils-source: $(DL_DIR)/$(HOSTAP_UTILS_SOURCE)
32
33$(HOSTAP_UTILS_DIR)/.unpacked: $(DL_DIR)/$(HOSTAP_UTILS_SOURCE)
34        $(HOSTAP_UTILS_CAT) $(DL_DIR)/$(HOSTAP_UTILS_SOURCE) | \
35                tar $(TAR_VERBOSE) -C $(BUILD_DIR) -xf -
36        touch $(HOSTAP_UTILS_DIR)/.unpacked
37
38$(HOSTAP_UTILS_DIR)/.patched: $(HOSTAP_UTILS_DIR)/.unpacked
39        touch $(HOSTAP_UTILS_DIR)/.patched
40
41$(HOSTAP_UTILS_DIR)/hostap_crypt_conf: $(HOSTAP_UTILS_DIR)/.patched
42        $(MAKE) CC="$(TARGET_CC)" -C $(HOSTAP_UTILS_DIR) CFLAGS="$(TARGET_CFLAGS)"
43
44$(HOSTAP_PKG_DIR)/usr/sbin/hostap_crypt_conf: $(HOSTAP_UTILS_DIR)/hostap_crypt_conf
45        mkdir -p $(HOSTAP_PKG_DIR)/usr/sbin
46        cp -a $(HOSTAP_UTILS_DIR)/hostap_crypt_conf $(HOSTAP_PKG_DIR)/usr/sbin/.
47        cp -a $(HOSTAP_UTILS_DIR)/hostap_diag $(HOSTAP_PKG_DIR)/usr/sbin/.
48        cp -a $(HOSTAP_UTILS_DIR)/hostap_fw_load $(HOSTAP_PKG_DIR)/usr/sbin/.
49        cp -a $(HOSTAP_UTILS_DIR)/hostap_io_debug $(HOSTAP_PKG_DIR)/usr/sbin/.
50        cp -a $(HOSTAP_UTILS_DIR)/hostap_rid $(HOSTAP_PKG_DIR)/usr/sbin/.
51        cp -a $(HOSTAP_UTILS_DIR)/prism2_param $(HOSTAP_PKG_DIR)/usr/sbin/.
52        cp -a $(HOSTAP_UTILS_DIR)/prism2_srec $(HOSTAP_PKG_DIR)/usr/sbin/.
53        cp -a $(HOSTAP_UTILS_DIR)/split_combined_hex $(HOSTAP_PKG_DIR)/usr/sbin/.
54        -$(SSTRIP) $(HOSTAP_PKG_DIR)/usr/sbin/*
55
56hostap-utils: $(HOSTAP_PKG_DIR)/usr/sbin/hostap_crypt_conf
57
58hostap-utils-clean:
59        -$(RM) -r $(HOSTAP_PKG_DIR)/*
60        -$(MAKE) CC="$(TARGET_CC)" -C $(HOSTAP_UTILS_DIR) clean
61        -$(RM) $(HOSTAP_UTILS_DIR)/.configured $(HOSTAP_UTILS_DIR)/config.out
62
63hostap-utils-dirclean:
64        -$(RM) -r $(HOSTAP_UTILS_DIR)
Note: See TracBrowser for help on using the browser.