replace common -I and -L search flags with TARGET_CPPFLAGS and TARGET_LDFLAGS
[openwrt/svn-archive/archive.git] / package / hostap-utils / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=hostap-utils
11 PKG_VERSION:=0.4.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
16 PKG_MD5SUM:=afe041581b8f01666e353bec20917c85
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/hostap-utils
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=kmod-hostap
24 TITLE:=Host AP driver utility programs
25 URL:=http://hostap.epitest.fi/
26 endef
27
28 define Build/Compile
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -Wall" \
32 all
33 endef
34
35 define Package/hostap-utils/install
36 $(INSTALL_DIR) $(1)/usr/sbin
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_crypt_conf $(1)/usr/sbin/
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_diag $(1)/usr/sbin/
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_io_debug $(1)/usr/sbin/
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_rid $(1)/usr/sbin/
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/prism2_srec $(1)/usr/sbin/
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/split_combined_hex $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,hostap-utils))