add HUGE sample uClibc for full LTP
[buildroot.git] / package / wireless-tools / wireless-tools.mk
blob487bdc5d47669c1414ebaf80849ac588f75bac72
1 #############################################################
3 # wireless-tools - Wireless Tools
5 #############################################################
7 # This Makefile only work with the multicall version of Wireless Tools,
8 # which is available in 28-pre3 and later...
9 # Jean II
10 # v28.pre3 -> earliest possible
11 WIRELESS_TOOLS_VERSION:=29
12 WIRELESS_TOOLS_SUBVER:=
14 #WIRELESS_TOOLS_SOURCE_URL:=http://pcmcia-cs.sourceforge.net/ftp/contrib
15 WIRELESS_TOOLS_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
16 WIRELESS_TOOLS_SOURCE:=wireless_tools.$(WIRELESS_TOOLS_VERSION)$(WIRELESS_TOOLS_SUBVER).tar.gz
17 WIRELESS_TOOLS_BUILD_DIR=$(BUILD_DIR)/wireless_tools.$(WIRELESS_TOOLS_VERSION)
19 $(DL_DIR)/$(WIRELESS_TOOLS_SOURCE):
20 $(WGET) -P $(DL_DIR) $(WIRELESS_TOOLS_SOURCE_URL)/$(WIRELESS_TOOLS_SOURCE)
22 $(WIRELESS_TOOLS_BUILD_DIR)/.unpacked: $(DL_DIR)/$(WIRELESS_TOOLS_SOURCE)
23 $(ZCAT) $(DL_DIR)/$(WIRELESS_TOOLS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 $(SED) s:'strip':'$(STRIPCMD)':g $(WIRELESS_TOOLS_BUILD_DIR)/Makefile
25 touch $@
27 $(WIRELESS_TOOLS_BUILD_DIR)/.configured: $(WIRELESS_TOOLS_BUILD_DIR)/.unpacked
28 touch $@
30 $(WIRELESS_TOOLS_BUILD_DIR)/iwmulticall: $(WIRELESS_TOOLS_BUILD_DIR)/.configured
31 $(MAKE) -C $(WIRELESS_TOOLS_BUILD_DIR) \
32 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
33 iwmulticall
35 $(TARGET_DIR)/sbin/iwconfig: $(WIRELESS_TOOLS_BUILD_DIR)/iwmulticall
36 $(MAKE) -C $(WIRELESS_TOOLS_BUILD_DIR) \
37 PREFIX="$(TARGET_DIR)" \
38 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
39 install-iwmulticall
40 $(STRIPCMD) $(STRIP_STRIP_ALL) $@
42 wireless-tools: $(TARGET_DIR)/sbin/iwconfig
44 wireless-tools-source: $(DL_DIR)/$(WIRELESS_TOOLS_SOURCE)
46 wireless-tools-clean:
47 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(WIRELESS_TOOLS_BUILD_DIR) uninstall
48 -$(MAKE) -C $(WIRELESS_TOOLS_BUILD_DIR) clean
49 rm -f $(TARGET_DIR)/sbin/iwconfig
51 wireless-tools-dirclean:
52 rm -rf $(WIRELESS_TOOLS_BUILD_DIR)
53 #############################################################
55 # Toplevel Makefile options
57 #############################################################
58 ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS),y)
59 TARGETS+=wireless-tools
60 endif