cannelloni: needs dynamic library
[buildroot-gz.git] / package / wireless_tools / wireless_tools.mk
blob5fb8f12e971a7e1e594db68278a411e7702cbb90
1 ################################################################################
3 # wireless_tools
5 ################################################################################
7 WIRELESS_TOOLS_VERSION_MAJOR = 30
8 WIRELESS_TOOLS_VERSION = $(WIRELESS_TOOLS_VERSION_MAJOR).pre9
9 WIRELESS_TOOLS_SITE = http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
10 WIRELESS_TOOLS_SOURCE = wireless_tools.$(WIRELESS_TOOLS_VERSION).tar.gz
11 WIRELESS_TOOLS_LICENSE = GPLv2
12 WIRELESS_TOOLS_LICENSE_FILES = COPYING
13 WIRELESS_TOOLS_INSTALL_STAGING = YES
15 WIRELESS_TOOLS_BUILD_TARGETS = iwmulticall
16 WIRELESS_TOOLS_INSTALL_TARGETS = install-iwmulticall
19 ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y)
20 WIRELESS_TOOLS_BUILD_TARGETS += libiw.so.$(WIRELESS_TOOLS_VERSION_MAJOR)
21 WIRELESS_TOOLS_INSTALL_TARGETS += install-dynamic
23 define WIRELESS_TOOLS_INSTALL_STAGING_CMDS
24 $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)" LDCONFIG=/bin/true install-dynamic
25 $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)/usr" install-hdr
26 endef
28 endif
30 define WIRELESS_TOOLS_BUILD_CMDS
31 $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
32 $(WIRELESS_TOOLS_BUILD_TARGETS)
33 endef
35 define WIRELESS_TOOLS_INSTALL_TARGET_CMDS
36 $(MAKE) -C $(@D) PREFIX="$(TARGET_DIR)" LDCONFIG=/bin/true $(WIRELESS_TOOLS_INSTALL_TARGETS)
37 $(MAKE) -C $(@D) INSTALL_MAN="$(TARGET_DIR)/usr/share/man" install-man
38 endef
40 $(eval $(generic-package))