Makefile 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (C) 2009-2013 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:=mklibs
  9. PKG_VERSION:=0.1.45
  10. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@DEBIAN/pool/main/m/mklibs/
  12. PKG_HASH:=dd92a904b3942566f713fe536cd77dd1a5cfc62243c0e0bc6bb5d866e37422f3
  13. HOST_FIXUP:=autoreconf
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CFLAGS += -I$(CURDIR)/include
  16. HOST_CPPFLAGS += -std=gnu++98
  17. define Host/Install
  18. $(INSTALL_BIN) \
  19. $(HOST_BUILD_DIR)/src/mklibs \
  20. $(HOST_BUILD_DIR)/src/mklibs-copy \
  21. $(HOST_BUILD_DIR)/src/mklibs-readelf/mklibs-readelf \
  22. $(STAGING_DIR_HOST)/bin/
  23. endef
  24. define Host/Clean
  25. rm -f $(STAGING_DIR_HOST)/bin/mklibs*
  26. endef
  27. $(eval $(call HostBuild))