Cosmetic fix
[openwrt.git] / openwrt / package / wireless-tools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=wireless-tools
6 PKG_VERSION:=28.pre6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=3ad1da3b17dff963eba32f0b79401253
9
10 PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
11 PKG_SOURCE:=wireless_tools.$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.28
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,WIRELESS_TOOLS,wireless-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
27 all iwmulticall
28 mkdir -p $(PKG_INSTALL_DIR)
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 PREFIX="$(PKG_INSTALL_DIR)" \
31 INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
32 INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \
33 install install-iwmulticall
34 touch $@
35
36 $(IPKG_WIRELESS_TOOLS):
37 mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/lib
38 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/
39 mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/sbin
40 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/
41 $(RSTRIP) $(IDIR_WIRELESS_TOOLS)
42 $(IPKG_BUILD) $(IDIR_WIRELESS_TOOLS) $(PACKAGE_DIR)
This page took 0.041876 seconds and 5 git commands to generate.