ubuntu-buildroot/package/libmnl/libmnl.mk

44 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
################################################################################
#
# libmnl
#
################################################################################
LIBMNL_VERSION = 1.0.5
LIBMNL_SOURCE = libmnl-$(LIBMNL_VERSION).tar.bz2
LIBMNL_SITE = http://netfilter.org/projects/libmnl/files
LIBMNL_INSTALL_STAGING = YES
LIBMNL_LICENSE = LGPL-2.1+
LIBMNL_LICENSE_FILES = COPYING
LIBMNL_CPE_ID_VENDOR = netfilter
ifeq ($(BR2_PACKAGE_LIBMNL_EXAMPLES),y)
define LIBMNL_EXAMPLES_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) check -C $(@D)
endef
LIBMNL_POST_BUILD_HOOKS += LIBMNL_EXAMPLES_BUILD_CMDS
LIBMNL_EXAMPLES_INSTALL_TARGETS += \
$(addprefix examples/genl/, genl-family-get genl-group-events)
LIBMNL_EXAMPLES_INSTALL_TARGETS += \
$(addprefix examples/kobject/, kobject-event)
LIBMNL_EXAMPLES_INSTALL_TARGETS += \
$(addprefix examples/netfilter/, nfct-create-batch \
nfct-daemon nfct-dump nfct-event nf-log \
nf-queue)
LIBMNL_EXAMPLES_INSTALL_TARGETS += \
$(addprefix examples/rtnl/, rtnl-addr-add rtnl-addr-dump \
rtnl-link-dump rtnl-link-dump2 rtnl-link-dump3 \
rtnl-link-event rtnl-link-set rtnl-neigh-dump \
rtnl-route-add rtnl-route-dump rtnl-route-event)
define LIBMNL_EXAMPLES_INSTALL_TARGET_CMDS
$(foreach t,$(LIBMNL_EXAMPLES_INSTALL_TARGETS), \
$(INSTALL) -D -m 0755 $(@D)/$(t) \
$(TARGET_DIR)/usr/bin/$(notdir $(t))$(sep))
endef
LIBMNL_POST_INSTALL_TARGET_HOOKS += LIBMNL_EXAMPLES_INSTALL_TARGET_CMDS
endif
$(eval $(autotools-package))