2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/libnl-tiny
22 TITLE
:=netlink socket library
25 define Package
/libnl-tiny
/description
26 This package contains a stripped down version of libnl
29 TARGET_CFLAGS
+= $(FPIC
)
32 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
33 $(TARGET_CONFIGURE_OPTS
) \
34 CFLAGS
="$(TARGET_CFLAGS)" \
38 define Build
/InstallDev
39 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
$(1)/usr
/include/libnl-tiny
40 $(CP
) $(PKG_BUILD_DIR
)/include/* $(1)/usr
/include/libnl-tiny
41 $(CP
) $(PKG_BUILD_DIR
)/libnl-tiny.so
$(1)/usr
/lib
/
42 $(CP
) .
/files
/libnl-tiny.
pc $(1)/usr
/lib
/pkgconfig
45 define Package
/libnl-tiny
/install
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(CP
) $(PKG_BUILD_DIR
)/libnl-tiny.so
$(1)/usr
/lib
/
50 $(eval
$(call BuildPackage
,libnl-tiny
))