Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2007 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=iw
  10. PKG_REV:=11b24c28b802bae2abda8f46d457df60fa602594
  11. PKG_VERSION:=20071130_$(PKG_REV)
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://git.sipsolutions.net/iw.git
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=$(PKG_REV)
  18. PKG_BUILD_DEPENDS:=mac80211 libnl
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/iw
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=cfg80211 interface configuration utility
  24. URL:=http://git.sipsolutions.net/?p=iw.git
  25. DEPENDS:=@!TARGET_avr32 @!TARGET_etrax +libnl
  26. endef
  27. define Build/Configure
  28. $(CP) $(PKG_BUILD_DIR)/defconfig $(PKG_BUILD_DIR)/.config
  29. endef
  30. MAKE_FLAGS += \
  31. CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/mac80211 -I$(STAGING_DIR)/usr/include/libnl -I$(STAGING_DIR)/usr/include" \
  32. LDFLAGS="-L$(STAGING_DIR)/usr/lib -lnl"
  33. ifneq ($(CONFIG_LINUX_2_6_23),)
  34. define Package/iw/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/
  37. endef
  38. endif
  39. $(eval $(call BuildPackage,iw))