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
14 include $(INCLUDE_DIR
)/package.mk
16 define Package
/libnl-tiny
19 TITLE
:=netlink socket library
22 define Package
/libnl-tiny
/description
23 This package contains a stripped down version of libnl
27 mkdir
-p
$(PKG_BUILD_DIR
)
28 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
31 TARGET_CFLAGS
+= $(FPIC
)
34 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 $(TARGET_CONFIGURE_OPTS
) \
36 CFLAGS
="$(TARGET_CFLAGS)" \
40 define Build
/InstallDev
41 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
$(1)/usr
/include/libnl-tiny
42 $(CP
) $(PKG_BUILD_DIR
)/include/* $(1)/usr
/include/libnl-tiny
43 $(CP
) $(PKG_BUILD_DIR
)/libnl-tiny.so
$(1)/usr
/lib
/
44 $(CP
) .
/files
/libnl-tiny.
pc $(1)/usr
/lib
/pkgconfig
47 define Package
/libnl-tiny
/install
48 $(INSTALL_DIR
) $(1)/usr
/lib
49 $(CP
) $(PKG_BUILD_DIR
)/libnl-tiny.so
$(1)/usr
/lib
/
52 $(eval
$(call BuildPackage
,libnl-tiny
))