Add picocom package, move serial comm. stuff to its section in Config.in
[openwrt.git] / package / wireless-tools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=wireless-tools
6 PKG_VERSION:=28.pre7
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=bf598d6ded79e9e6b9bc2dbeb8258f48
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)
43
44 install-dev:
45 mkdir -p $(STAGING_DIR)/usr/{lib,include}
46 cp -a $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
47 ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
48 cp -a $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
49
50 uninstall-dev:
51 rm -f $(STAGING_DIR)/usr/lib/libiw.*
52 rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
53
54 compile: install-dev
55 clean: uninstall-dev
This page took 0.038819 seconds and 5 git commands to generate.