1
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libnl-tiny
  9. PKG_VERSION:=0.1
  10. PKG_RELEASE:=5
  11. PKG_LICENSE:=LGPL-2.1
  12. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/libnl-tiny
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=netlink socket library
  18. endef
  19. define Package/libnl-tiny/description
  20. This package contains a stripped down version of libnl
  21. endef
  22. TARGET_CFLAGS += $(FPIC)
  23. define Build/Compile
  24. $(MAKE) -C $(PKG_BUILD_DIR) \
  25. $(TARGET_CONFIGURE_OPTS) \
  26. CFLAGS="$(TARGET_CFLAGS)" \
  27. all
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny
  31. $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/libnl-tiny
  32. $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/
  33. $(CP) ./files/libnl-tiny.pc $(1)/usr/lib/pkgconfig
  34. endef
  35. define Package/libnl-tiny/install
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,libnl-tiny))