add mac partition support
[openwrt.git] / obsolete-buildroot / make / wtools.mk
1 #############################################################
2 #
3 # wtools - Wireless Tools
4 #
5 #############################################################
6 #
7 WTOOLS_SOURCE_URL=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
8 WTOOLS_SOURCE=wireless_tools.26.tar.gz
9 WTOOLS_BUILD_DIR=$(BUILD_DIR)/wireless_tools.26
10
11 $(DL_DIR)/$(WTOOLS_SOURCE):
12 $(WGET) -P $(DL_DIR) $(WTOOLS_SOURCE_URL)/$(WTOOLS_SOURCE)
13
14 $(WTOOLS_BUILD_DIR)/.unpacked: $(DL_DIR)/$(WTOOLS_SOURCE)
15 zcat $(DL_DIR)/$(WTOOLS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
16 touch $(WTOOLS_BUILD_DIR)/.unpacked
17
18 $(WTOOLS_BUILD_DIR)/.configured: $(WTOOLS_BUILD_DIR)/.unpacked
19 touch $(WTOOLS_BUILD_DIR)/.configured
20
21 $(WTOOLS_BUILD_DIR)/iwconfig: $(WTOOLS_BUILD_DIR)/.configured
22 $(MAKE) -C $(WTOOLS_BUILD_DIR) \
23 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
24 BUILD_SHARED=y # may want to make this an option
25
26 $(TARGET_DIR)/sbin/iwconfig: $(WTOOLS_BUILD_DIR)/iwconfig
27 # Copy The Wireless Tools
28 cp -af $(WTOOLS_BUILD_DIR)/iwconfig $(TARGET_DIR)/sbin/
29 cp -af $(WTOOLS_BUILD_DIR)/iwevent $(TARGET_DIR)/sbin/
30 cp -af $(WTOOLS_BUILD_DIR)/iwgetid $(TARGET_DIR)/sbin/
31 cp -af $(WTOOLS_BUILD_DIR)/iwlist $(TARGET_DIR)/sbin/
32 cp -af $(WTOOLS_BUILD_DIR)/iwpriv $(TARGET_DIR)/sbin/
33 cp -af $(WTOOLS_BUILD_DIR)/iwspy $(TARGET_DIR)/sbin/
34 cp -af $(WTOOLS_BUILD_DIR)/libiw.so.26 $(TARGET_DIR)/lib
35 $(STRIP) $(TARGET_DIR)/sbin/iwconfig $(TARGET_DIR)/sbin/iwevent \
36 $(TARGET_DIR)/sbin/iwgetid $(TARGET_DIR)/sbin/iwlist \
37 $(TARGET_DIR)/sbin/iwpriv $(TARGET_DIR)/sbin/iwspy \
38 $(TARGET_DIR)/lib/libiw.so.26
39
40 wtools: $(TARGET_DIR)/sbin/iwconfig
41
42 wtools-source: $(DL_DIR)/$(WTOOLS_SOURCE)
43
44 wtools-clean:
45 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(WTOOLS_BUILD_DIR) uninstall
46 -$(MAKE) -C $(WTOOLS_BUILD_DIR) clean
47
48 wtools-dirclean:
49 rm -rf $(WTOOLS_BUILD_DIR)
50
This page took 0.038648 seconds and 5 git commands to generate.